:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #0a0807;
  --text: #f3eee5;
  --text-strong: #fff9ee;
  --muted: #a8a096;
  --muted-2: #7f786e;
  --panel: rgba(17, 16, 15, 0.88);
  --panel-strong: rgba(25, 21, 17, 0.94);
  --panel-soft: rgba(243, 238, 229, 0.045);
  --line: rgba(243, 238, 229, 0.15);
  --line-strong: rgba(243, 238, 229, 0.34);
  --accent: #e25434;
  --accent-2: #caa45d;
  --accent-3: #a8c66d;
  --accent-ink: #180806;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --wash-1: rgba(226, 84, 52, 0.16);
  --wash-2: rgba(202, 164, 93, 0.12);
  --wash-3: rgba(168, 198, 109, 0.08);
  --grain: 0.32;
  --max: 1180px;
  --edge: 24px;
  --radius: 8px;
  font-family:
    "Arial",
    "Segoe UI",
    system-ui,
    sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3eee3;
  --bg-2: #e7ddcf;
  --text: #221d19;
  --text-strong: #120f0d;
  --muted: #6d6258;
  --muted-2: #8a7d70;
  --panel: rgba(255, 250, 240, 0.82);
  --panel-strong: rgba(255, 249, 236, 0.96);
  --panel-soft: rgba(34, 29, 25, 0.045);
  --line: rgba(34, 29, 25, 0.15);
  --line-strong: rgba(34, 29, 25, 0.32);
  --accent: #b63e2c;
  --accent-2: #836234;
  --accent-3: #536f45;
  --accent-ink: #fff7ea;
  --shadow: 0 26px 80px rgba(95, 72, 50, 0.2);
  --soft-shadow: 0 16px 50px rgba(95, 72, 50, 0.14);
  --wash-1: rgba(182, 62, 44, 0.13);
  --wash-2: rgba(131, 98, 52, 0.12);
  --wash-3: rgba(83, 111, 69, 0.1);
  --grain: 0.2;
}

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

html {
  min-width: 0;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 12%, var(--wash-1), transparent 28rem),
    radial-gradient(circle at 83% 6%, var(--wash-2), transparent 25rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: geometricPrecision;
  transition:
    background 220ms ease,
    color 220ms ease;
}

.page-noise,
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-noise {
  z-index: -2;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(180deg, var(--line) 1px, transparent 1px),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, calc(var(--grain) * 0.035)) 0,
      rgba(255, 255, 255, calc(var(--grain) * 0.035)) 1px,
      transparent 1px,
      transparent 7px
    );
  background-size: 46px 46px, 46px 46px, auto;
  opacity: 0.42;
}

.spotlight {
  z-index: -1;
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 12%), rgba(226, 84, 52, 0.22), transparent 18rem),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
  opacity: 0.55;
  transition: opacity 220ms ease;
}

html[data-theme="light"] .spotlight {
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 12%), rgba(182, 62, 44, 0.18), transparent 19rem),
    linear-gradient(180deg, transparent, rgba(255, 245, 226, 0.18));
  opacity: 0.62;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

main {
  position: relative;
  z-index: 1;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 3px;
  background: rgba(127, 120, 110, 0.18);
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transform-origin: left center;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  width: min(var(--max), calc(100% - var(--edge) * 2));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel-strong) 88%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition:
    border-color 220ms ease,
    background 220ms ease,
    top 220ms ease,
    box-shadow 220ms ease;
}

.topbar.is-scrolled {
  top: 10px;
  border-color: color-mix(in srgb, var(--accent-2) 48%, transparent);
  box-shadow: var(--soft-shadow);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
}

.brand span {
  display: grid;
  min-width: 0;
}

.brand strong {
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 950;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.nav a,
.topbar__cta,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.nav a {
  padding: 0 12px;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--panel-soft);
  color: var(--text-strong);
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar__cta {
  border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text-strong);
  padding: 0 13px;
}

.topbar__cta:hover,
.topbar__cta:focus-visible {
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle {
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: color-mix(in srgb, var(--accent-2) 70%, transparent);
  color: var(--text-strong);
}

.theme-toggle__track {
  position: relative;
  width: 34px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, var(--accent-2));
}

.theme-toggle__dot {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-2);
  transform: translateY(-50%);
  transition:
    left 200ms ease,
    background 200ms ease;
}

html[data-theme="light"] .theme-toggle__dot {
  left: 17px;
  background: var(--accent);
}

.chapter-rail {
  position: fixed;
  top: 50%;
  left: 18px;
  z-index: 50;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.chapter-link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.chapter-link.is-active {
  border-color: color-mix(in srgb, var(--accent-2) 82%, transparent);
  background: color-mix(in srgb, var(--accent-2) 17%, transparent);
  color: var(--text-strong);
  transform: translateX(5px);
}

.hero,
.section,
.footer {
  width: min(var(--max), calc(100% - var(--edge) * 2));
  margin: 0 auto;
}

.hero {
  min-height: 100svh;
  padding: 118px 0 74px;
}

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero__kicker span,
.eyebrow,
.tag,
.section__label {
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.hero__kicker span {
  padding: 9px 11px;
  background: var(--panel-soft);
}

.hero__kicker span:nth-child(2),
.hero__kicker span:nth-child(3) {
  border-color: color-mix(in srgb, var(--accent-2) 52%, transparent);
  color: var(--accent-2);
}

.hero__kicker span:nth-child(4) {
  border-color: color-mix(in srgb, var(--accent-3) 52%, transparent);
  color: var(--accent-3);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.hero__manifest {
  grid-column: 1 / span 8;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--panel) 48%, transparent);
  color: var(--accent-2);
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 950;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  font-family:
    Impact,
    "Arial Black",
    "Segoe UI",
    sans-serif;
  font-size: 5.55rem;
  line-height: 0.92;
  text-transform: uppercase;
}

h2 {
  font-size: 4.15rem;
  line-height: 0.98;
}

h3 {
  font-size: 2rem;
  line-height: 1.04;
}

.hero__lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero__side {
  grid-column: 9 / span 4;
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-width: 0;
  border-left: 1px solid var(--line-strong);
  padding-left: 20px;
}

.status-card,
.hero-note,
.product-card,
.principle,
.role-focus,
.role-card,
.systems__copy,
.systems-stack,
.process-grid,
.faq-list details,
.final-cta__grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.status-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 286px;
  padding: 20px;
  overflow: hidden;
}

.status-card::before,
.product-card::before,
.role-focus::before,
.systems__copy::before,
.final-cta__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0, var(--wash-1), transparent 24rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 24px 24px, 24px 24px;
  opacity: 0.75;
  pointer-events: none;
}

.status-card > *,
.product-card > *,
.role-focus > *,
.systems__copy > *,
.final-cta__grid > * {
  position: relative;
}

.status-card__label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.status-card strong {
  align-self: end;
  color: var(--text-strong);
  font-size: 2.25rem;
  line-height: 1.02;
  transition: opacity 180ms ease;
}

.status-card small {
  color: var(--muted);
  font-size: 13px;
}

.hero-note {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.hero-note span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 950;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
}

.hero__actions,
.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-strong);
  font-weight: 950;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button {
  padding: 0 18px;
}

.button:hover,
.button:focus-visible,
.card-link:hover,
.card-link:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  border-color: color-mix(in srgb, var(--accent) 76%, transparent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: color-mix(in srgb, var(--accent) 88%, var(--text-strong));
}

.button--ghost {
  background: var(--panel-soft);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: color-mix(in srgb, var(--accent-2) 78%, transparent);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
}

.button--pulse {
  animation: cta-breath 4.8s ease-in-out infinite;
}

@keyframes cta-breath {
  0%,
  100% {
    box-shadow: 0 18px 42px color-mix(in srgb, var(--accent) 20%, transparent);
  }
  50% {
    box-shadow: 0 18px 58px color-mix(in srgb, var(--accent) 34%, transparent);
  }
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  overflow: hidden;
}

.metric-strip div {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip span {
  color: var(--text-strong);
  font-family:
    Impact,
    "Arial Black",
    sans-serif;
  font-size: 3.4rem;
  line-height: 0.9;
}

.metric-strip p {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.entry-strip {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.05fr;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  overflow: hidden;
}

.entry-strip article {
  display: grid;
  gap: 10px;
  min-height: 168px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  transition:
    background 180ms ease,
    color 180ms ease;
}

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

.entry-strip article:hover {
  background: color-mix(in srgb, var(--accent-2) 9%, transparent);
}

.entry-strip span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 950;
}

.entry-strip strong {
  align-self: end;
  color: var(--text-strong);
  font-size: 1.22rem;
  line-height: 1.06;
}

.entry-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section__label {
  margin-bottom: 22px;
  padding: 9px 12px;
  color: var(--muted);
}

.section__intro {
  display: grid;
  gap: 18px;
  max-width: 900px;
}

.section__intro--wide {
  max-width: 1060px;
}

.product-board {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 14px;
  margin-top: 42px;
}

.product-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 590px;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--accent) 78%, transparent);
  background: color-mix(in srgb, var(--panel-strong) 92%, var(--accent));
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-card--lead {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background:
    linear-gradient(135deg, var(--wash-1), transparent 44%),
    var(--panel-strong);
}

.product-card--urgent:hover {
  border-color: color-mix(in srgb, var(--accent-3) 78%, transparent);
}

.product-card__index {
  color: color-mix(in srgb, var(--text) 15%, transparent);
  font-family:
    Impact,
    "Arial Black",
    sans-serif;
  font-size: 7rem;
  line-height: 0.78;
}

.tag {
  padding: 8px 10px;
  color: var(--accent-2);
}

.product-card h3 {
  margin-top: auto;
  font-size: 3.05rem;
}

.product-card p,
.product-card li {
  color: var(--muted);
}

.product-card p {
  margin: 0;
  font-size: 1.04rem;
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding-left: 22px;
}

.product-card li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--accent-2);
}

.card-link {
  align-self: end;
  margin-top: 6px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: start;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  display: grid;
  gap: 14px;
  min-height: 164px;
  padding: 22px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.principle:hover {
  border-color: color-mix(in srgb, var(--accent-2) 70%, transparent);
  background: color-mix(in srgb, var(--accent-2) 9%, var(--panel));
  transform: translateX(4px);
}

.principle strong {
  color: var(--text-strong);
  font-size: 1.25rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.role-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.role-focus {
  position: sticky;
  top: 112px;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 560px;
  padding: 22px;
  overflow: hidden;
}

.role-focus__eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.role-focus strong {
  color: var(--text-strong);
  font-size: 3.1rem;
  line-height: 1;
}

.role-focus p {
  margin: 0;
  color: var(--muted);
}

.role-focus__grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.role-focus b {
  display: block;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.role-focus ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.role-focus li {
  position: relative;
  padding-left: 18px;
}

.role-focus li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--accent-3);
}

.role-focus small {
  align-self: end;
  color: var(--muted-2);
  font-weight: 800;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.role-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 176px;
  min-width: 0;
  padding: 16px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.role-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: left;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.role-card:hover,
.role-card:focus-visible,
.role-card.is-active {
  border-color: color-mix(in srgb, var(--accent-2) 78%, transparent);
  background:
    radial-gradient(circle at 0 0, var(--wash-2), transparent 14rem),
    var(--panel-strong);
  box-shadow: var(--soft-shadow);
  color: var(--text-strong);
  transform: translateY(-3px) scale(1.01);
}

.role-card:hover::after,
.role-card:focus-visible::after,
.role-card.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.role-card__name {
  color: var(--text-strong);
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1.05;
}

.role-card__job {
  color: var(--muted);
  font-size: 0.94rem;
}

.role-card__result {
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--accent-3) 38%, transparent);
  border-radius: 999px;
  color: var(--accent-3);
  font-size: 0.78rem;
  font-weight: 950;
}

.systems__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin-top: 26px;
}

.systems__copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 20px;
  min-height: 620px;
  padding: 28px;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  overflow: hidden;
}

.systems__copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.systems-stack {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.system-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 154px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  transition:
    background 180ms ease,
    color 180ms ease;
}

.system-row:last-child {
  border-bottom: 0;
}

.system-row:hover {
  background: color-mix(in srgb, var(--accent-3) 10%, transparent);
}

.system-row span {
  color: var(--accent-3);
  font-weight: 950;
}

.system-row strong {
  color: var(--text-strong);
  font-size: 1.3rem;
  line-height: 1.05;
}

.system-row p {
  margin: 0;
  color: var(--muted);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  overflow: hidden;
}

.process-step {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 330px;
  padding: 22px;
  border-right: 1px solid var(--line);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.process-step:last-child {
  border-right: 0;
}

.process-step:hover {
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
}

.process-step span {
  color: color-mix(in srgb, var(--text) 20%, transparent);
  font-family:
    Impact,
    "Arial Black",
    sans-serif;
  font-size: 4.5rem;
  line-height: 0.78;
}

.process-step h3 {
  font-size: 1.45rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 38px;
}

.faq-list details {
  background: var(--panel);
  box-shadow: none;
}

.faq-list summary {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 0 20px;
  color: var(--text-strong);
  font-size: 1.12rem;
  font-weight: 950;
  cursor: pointer;
}

.faq-list summary::marker {
  color: var(--accent-2);
}

.faq-list p {
  margin: 0;
  max-width: 820px;
  padding: 0 20px 20px;
  color: var(--muted);
}

.final-cta {
  padding-bottom: 120px;
}

.final-cta__grid {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 32px;
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background:
    radial-gradient(circle at 0 0, var(--wash-1), transparent 26rem),
    radial-gradient(circle at 100% 20%, var(--wash-3), transparent 28rem),
    var(--panel-strong);
  overflow: hidden;
}

.final-cta h2 {
  max-width: 1000px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  transform: translateY(28px);
  opacity: 0;
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.word-reveal .word {
  display: inline-block;
  transform: translateY(1em);
  opacity: 0;
  animation: word-rise 700ms cubic-bezier(0.2, 0.72, 0.18, 1) forwards;
  animation-delay: calc(var(--word-index) * 38ms);
}

@keyframes word-rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@supports (content-visibility: auto) {
  .section {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
  }
}

@media (max-width: 1180px) {
  .chapter-rail {
    display: none;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3.5rem;
  }
}

@media (max-width: 960px) {
  :root {
    --edge: 18px;
  }

  .topbar {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 104px;
  }

  h1 {
    font-size: 4.15rem;
  }

  .hero__grid,
  .editorial-split,
  .product-board,
  .role-stage,
  .systems__layout {
    grid-template-columns: 1fr;
  }

  .hero__manifest,
  .hero__side {
    grid-column: auto;
  }

  .hero__side {
    border-left: 0;
    padding-left: 0;
  }

  .status-card {
    min-height: 250px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-strip div:nth-child(2) {
    border-right: 0;
  }

  .metric-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .entry-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .role-focus,
  .systems__copy {
    position: static;
    min-height: auto;
  }

  .roles-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:nth-child(2) {
    border-right: 0;
  }

  .process-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  :root {
    --edge: 14px;
  }

  body {
    font-size: 15px;
  }

  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .topbar__actions {
    gap: 6px;
  }

  .theme-toggle {
    min-height: 38px;
    padding: 0 8px;
    font-size: 12px;
  }

  .theme-toggle__track {
    width: 30px;
  }

  html[data-theme="light"] .theme-toggle__dot {
    left: 13px;
  }

  .topbar__cta {
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 106px 0 48px;
  }

  .hero__kicker {
    margin-bottom: 26px;
  }

  .hero__kicker span,
  .eyebrow,
  .tag,
  .section__label {
    font-size: 11px;
  }

  h1 {
    font-size: 3rem;
    line-height: 0.94;
  }

  h2 {
    font-size: 2.38rem;
    line-height: 1;
  }

  h3 {
    font-size: 1.55rem;
  }

  .hero__lead,
  .systems__copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .status-card strong {
    font-size: 1.6rem;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .entry-strip {
    grid-template-columns: 1fr;
  }

  .metric-strip div {
    min-height: 112px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .entry-strip article {
    min-height: 132px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip div:last-child {
    border-bottom: 0;
  }

  .entry-strip article:last-child {
    border-bottom: 0;
  }

  .metric-strip span {
    font-size: 2.8rem;
  }

  .section {
    padding: 62px 0;
  }

  .product-card {
    min-height: auto;
    padding: 20px;
  }

  .product-card__index {
    font-size: 4.6rem;
  }

  .product-card h3 {
    font-size: 2.05rem;
  }

  .roles-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .role-focus strong {
    font-size: 2.25rem;
  }

  .role-card {
    min-height: 144px;
  }

  .system-row {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
  }

  .process-step {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .process-step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .button,
  .card-link {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
  }

  .final-cta {
    padding-bottom: 72px;
  }

  .final-cta__grid {
    padding: 22px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 2.52rem;
  }

  h2 {
    font-size: 2.04rem;
  }

  .brand strong {
    font-size: 14px;
  }

  .hero,
  .section,
  .footer {
    width: calc(100% - 24px);
  }
}

@media (pointer: coarse) {
  .spotlight {
    opacity: 0.42;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .word-reveal .word {
    transform: none;
    opacity: 1;
  }
}
