:root {
  --ink: #111a22;
  --ink-2: #26323d;
  --muted: #65727d;
  --line: rgba(17, 26, 34, 0.14);
  --paper: #f6f3ed;
  --paper-2: #ebe7de;
  --white: #fffdf8;
  --green: #1d6b58;
  --green-deep: #0f4036;
  --blue: #244f73;
  --copper: #a76635;
  --shadow: 0 24px 70px rgba(17, 26, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 32px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 16px;
  color: var(--white);
  border: 1px solid rgba(255, 253, 248, 0.22);
  background: rgba(17, 26, 34, 0.32);
  backdrop-filter: blur(22px);
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(17, 26, 34, 0.12);
}

.subpage .site-header {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(17, 26, 34, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 188px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 188px;
  overflow: hidden;
}

.brand-logo-img {
  width: 188px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-img-primary {
  display: none;
}

.site-header.scrolled .brand-logo-img-primary {
  display: block;
}

.site-header.scrolled .brand-logo-img-inverse {
  display: none;
}

.subpage .brand-logo-img-primary {
  display: block;
}

.subpage .brand-logo-img-inverse {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: inherit;
  font-size: 14px;
}

.nav a:hover {
  background: rgba(255, 253, 248, 0.16);
}

.site-header.scrolled .nav a:hover {
  background: rgba(17, 26, 34, 0.06);
}

.subpage .nav a:hover {
  background: rgba(17, 26, 34, 0.06);
}

.nav a.nav-cta {
  margin-left: 6px;
  background: var(--green);
  color: var(--white);
  font-weight: 680;
}

.nav a.nav-cta:hover,
.site-header.scrolled .nav a.nav-cta:hover {
  background: var(--green-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 100px;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 56px;
  padding: 142px 28px 34px;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 26, 34, 0.92) 0%, rgba(17, 26, 34, 0.70) 38%, rgba(17, 26, 34, 0.18) 76%),
    linear-gradient(0deg, rgba(17, 26, 34, 0.94) 0%, rgba(17, 26, 34, 0.28) 46%, rgba(17, 26, 34, 0.38) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto 0 max(0px, calc((100vw - 1160px) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 12px;
  font-weight: 780;
}

.hero .eyebrow {
  color: #f0c096;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.9;
  font-weight: 600;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 680;
  font-size: 15px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.button.primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.button.primary:hover {
  box-shadow: 0 10px 26px rgba(15, 64, 54, 0.35);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.28);
  background: rgba(255, 253, 248, 0.08);
}

.button.ghost:hover {
  border-color: rgba(255, 253, 248, 0.5);
  background: rgba(255, 253, 248, 0.16);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 4px;
  color: rgba(255, 253, 248, 0.82);
  text-decoration: none;
  font-weight: 680;
  font-size: 15px;
  transition: color 160ms ease;
}

.hero-link span {
  display: inline-block;
  transition: transform 160ms ease;
}

.hero-link:hover {
  color: var(--white);
}

.hero-link:hover span {
  transform: translateX(3px);
}

.hero-microcopy {
  margin: 14px 0 0;
  color: rgba(255, 253, 248, 0.58);
  font-size: 13px;
}

.workflow-panel {
  position: relative;
  z-index: 3;
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 8px;
  background: rgba(17, 26, 34, 0.56);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workflow-tabs {
  display: grid;
  border-right: 1px solid rgba(255, 253, 248, 0.18);
}

.workflow-tab {
  border: 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
  background: transparent;
  color: rgba(255, 253, 248, 0.72);
  min-height: 58px;
  padding: 0 18px;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.workflow-tab:last-child {
  border-bottom: 0;
}

.workflow-tab.active,
.workflow-tab:hover {
  color: var(--white);
  background: rgba(255, 253, 248, 0.10);
}

.workflow-tab.active {
  box-shadow: inset 3px 0 0 #f0c096;
}

.workflow-result {
  padding: 22px;
}

.result-label {
  color: #f0c096;
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.workflow-result h2 {
  margin: 7px 0 8px;
  font-size: 28px;
}

.workflow-result p {
  margin: 0;
  color: rgba(255, 253, 248, 0.76);
}

.fade-in {
  animation: fadeUp 320ms ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.section {
  padding: 104px 28px;
}

.section-intro,
.problem-copy,
.problem-grid,
.system-grid,
.engine-layout,
.asset-grid,
.case-grid,
.fit-lists,
.pilot-band,
.contact,
.footer {
  width: min(1160px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 42px;
}

.section-intro.narrow {
  display: block;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section h2,
.pilot-band h2,
.contact h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.98;
  font-weight: 600;
}

.section-intro.narrow p:not(.eyebrow) {
  margin: 18px auto 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.section-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 780;
  text-decoration: none;
}

.section-link span {
  transition: transform 160ms ease;
}

.section-link:hover span {
  transform: translateX(3px);
}

.problem {
  background: var(--paper);
}

.problem-copy {
  max-width: 820px;
  margin-bottom: 34px;
}

.problem-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 20px;
}

.problem-copy .rule {
  margin-top: 20px;
  padding-left: 18px;
  border-left: 3px solid var(--green);
  color: var(--ink);
  font-weight: 680;
}

.problem-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.problem-grid article,
.case-grid article,
.fit-lists > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 26px;
}

.problem-grid span {
  color: var(--copper);
  font-weight: 780;
  font-size: 13px;
}

h3 {
  margin: 10px 0 8px;
  font-size: 22px;
  line-height: 1.16;
}

.problem-grid p,
.case-grid p,
.fit-lists li,
.pilot-steps p,
.contact p {
  color: var(--muted);
}

.systems {
  background: var(--white);
}

.system-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 44px;
  transition: grid-template-columns 320ms ease;
}

.system-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.system-card.open {
  background: var(--white);
  border-color: rgba(29, 107, 88, 0.24);
  box-shadow: 0 22px 56px rgba(17, 26, 34, 0.10);
}

.system-card button {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 74px;
  padding: 0 22px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 780;
  font-size: 20px;
  text-align: left;
}

.system-card:not(.open) button span {
  overflow-wrap: anywhere;
}

.system-card button i {
  font-style: normal;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.system-body {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 22px;
  transition: grid-template-rows 280ms ease, padding-bottom 280ms ease;
}

.system-body-inner {
  overflow: hidden;
  min-height: 0;
}

.system-card.open .system-body {
  grid-template-rows: 1fr;
  padding-bottom: 22px;
}

.system-card.open button i {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.system-body p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 17px;
}

.system-body dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.system-body dt {
  color: var(--copper);
  font-weight: 780;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.system-body dd {
  margin: -8px 0 0;
  color: var(--muted);
}

.engine {
  background: var(--paper);
}

.engine-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 34px;
  align-items: start;
}

.engine-copy {
  position: sticky;
  top: 112px;
  padding: 26px 0;
}

.engine-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 20px;
}

.engine-copy p + p {
  margin-top: 20px;
  color: var(--muted);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
}

.pipeline article,
.asset-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.pipeline article {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  min-height: 194px;
  align-content: start;
}

.pipeline span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.pipeline h3,
.asset-grid h3 {
  margin: 0;
}

.pipeline p,
.asset-grid p {
  margin: 0;
  color: var(--muted);
}

.pipeline p {
  align-self: end;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.asset-grid article {
  background: rgba(255, 253, 248, 0.62);
}

.asset-grid p {
  margin-top: 10px;
}

.pilot-band {
  margin-top: 88px;
  margin-bottom: 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  padding: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.pilot-copy p:not(.eyebrow) {
  color: rgba(255, 253, 248, 0.76);
  font-size: 18px;
  margin: 20px 0 28px;
}

.pilot-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pilot-steps div {
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.05);
}

.pilot-steps span {
  color: #f0c096;
  font-weight: 780;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.pilot-steps strong {
  display: block;
  margin-top: 10px;
  font-size: 21px;
}

.pilot-steps p {
  margin: 8px 0 0;
  color: rgba(255, 253, 248, 0.68);
}

.proof {
  background: var(--paper);
}

.case-grid h3 {
  margin-top: 0;
}

.fit {
  background: var(--white);
}

.fit-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fit-lists h3 {
  margin-top: 0;
}

.fit-lists ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.fit-lists li {
  position: relative;
  padding-left: 24px;
}

.fit-lists li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 92px 28px;
}

.contact p:not(.eyebrow) {
  font-size: 20px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-weight: 680;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(29, 107, 88, 0.28);
  border-color: var(--green);
}

.footer {
  border-top: 1px solid var(--line);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 780;
}

.footer a {
  color: inherit;
}

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

.page-hero {
  padding: 164px 28px 86px;
  background: var(--paper);
}

.page-hero-inner,
.library-section,
.library-process {
  width: min(1160px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.page-hero h1 {
  color: var(--ink);
  max-width: 900px;
  font-size: clamp(48px, 7vw, 92px);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: 21px;
}

.library-section {
  padding: 0 28px 92px;
}

.library-heading {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.library-heading h2,
.library-process h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 0.98;
  font-weight: 600;
}

.usecase-list {
  display: grid;
  gap: 14px;
}

.usecase-item {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.usecase-kicker {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.usecase-item h3 {
  margin-top: 0;
  font-size: 28px;
}

.usecase-item p:not(.usecase-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.usecase-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 780;
  text-decoration: none;
}

.usecase-link span {
  transition: transform 160ms ease;
}

.usecase-link:hover span {
  transform: translateX(3px);
}

.usecase-item dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.usecase-item dt {
  color: var(--green);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.usecase-item dd {
  margin: -6px 0 8px;
  color: var(--ink-2);
}

.library-process {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 92px;
  padding: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.library-process .eyebrow {
  color: #f0c096;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.process-grid article {
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.05);
}

.process-grid span {
  color: #f0c096;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.process-grid h3 {
  color: var(--white);
}

.process-grid p {
  margin: 0;
  color: rgba(255, 253, 248, 0.68);
}

.detail-hero {
  padding-bottom: 64px;
}

.detail-section,
.detail-cta {
  width: min(1160px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.detail-section {
  padding: 0 28px 92px;
}

.detail-grid,
.detail-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-panel,
.detail-flow article,
.detail-output,
.detail-pilot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 28px;
}

.detail-label,
.detail-flow span {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-panel p:last-child,
.detail-flow p,
.detail-output > p,
.detail-pilot li {
  color: var(--muted);
  font-size: 17px;
}

.detail-flow {
  margin-top: 14px;
}

.detail-flow h2,
.detail-output h2,
.detail-pilot h2,
.detail-cta h2 {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
  font-weight: 600;
}

.detail-flow p {
  margin: 16px 0 0;
}

.detail-output,
.detail-pilot,
.detail-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
  margin-top: 14px;
}

.detail-output > p {
  margin: 0;
}

.detail-pilot ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

.detail-cta {
  align-items: center;
  margin-bottom: 92px;
  padding: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.detail-cta .eyebrow {
  color: #f0c096;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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

@media (max-width: 980px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .nav a.nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    gap: 40px;
    padding: 124px 20px 24px;
  }

  .hero-content {
    margin: 0;
  }

  .workflow-panel {
    grid-template-columns: 1fr;
  }

  .workflow-tabs {
    grid-template-columns: repeat(2, 1fr);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 248, 0.18);
  }

  .problem-grid,
  .case-grid,
  .engine-layout,
  .system-grid,
  .pilot-band,
  .library-heading,
  .usecase-item,
  .library-process,
  .process-grid,
  .detail-grid,
  .detail-flow,
  .detail-output,
  .detail-pilot,
  .detail-cta,
  .fit-lists,
  .contact,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .system-card.open .system-body-inner {
    grid-template-columns: 1fr;
  }

  .engine-copy {
    position: static;
    padding: 0;
  }

  .pipeline,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .pipeline article {
    min-height: 0;
  }

  .pilot-band {
    width: calc(100vw - 40px);
    margin: 56px 20px;
    padding: 28px;
  }

  .page-hero {
    padding: 132px 20px 64px;
  }

  .library-section {
    padding: 0 20px 72px;
  }

  .detail-section {
    padding: 0 20px 72px;
  }

  .library-process {
    width: calc(100vw - 40px);
    margin: 0 20px 72px;
    padding: 28px;
  }

  .detail-cta {
    width: calc(100vw - 40px);
    margin: 0 20px 72px;
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding-left: 12px;
    padding-right: 10px;
  }

  .brand-logo {
    width: 164px;
    height: 38px;
    flex-basis: 164px;
  }

  .brand-logo-img {
    width: 164px;
  }

  .nav a.nav-cta {
    white-space: nowrap;
    padding: 0 10px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 54px);
  }

  .hero-actions,
  .button,
  .contact-form .button {
    width: 100%;
  }

  .workflow-tabs,
  .pilot-steps,
  .asset-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 20px;
  }

  .section h2,
  .pilot-band h2,
  .contact h2,
  .library-heading h2,
  .library-process h2,
  .detail-flow h2,
  .detail-output h2,
  .detail-pilot h2,
  .detail-cta h2 {
    font-size: 42px;
  }

  .contact {
    padding: 72px 20px;
  }

  .footer {
    padding: 0 20px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
}
