:root {
  --ff-navy: #19212a;
  --ff-navy-2: #24303a;
  --ff-teal-structural: #5a7e7f;
  --ff-teal-interface: #4b6b6d;
  --ff-grey-steel: #66717a;
  --ff-grey-frame: #aeb3b7;
  --ff-grey-foundation: #d9dddf;
  --ff-off-white: #f7f8f7;
  --ff-white: #ffffff;
  --ff-error: #8b2d2d;

  --radius: 3px;
  --header-height: 78px;
  --wrap: 1240px;
  --shadow-small: 0 10px 30px rgba(25, 33, 42, 0.06);
}

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

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

body {
  margin: 0;
  background: var(--ff-off-white);
  color: var(--ff-navy);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.wrap {
  width: min(var(--wrap), calc(100% - 64px));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.anchor-section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 500;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--ff-navy);
  color: var(--ff-white);
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ff-grey-foundation);
  background: rgba(247, 248, 247, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--ff-navy);
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 28px;
  flex: 0 0 auto;
}

.brand-word {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.075em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.desktop-nav > a:not(.btn) {
  position: relative;
  color: var(--ff-navy);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.desktop-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--ff-teal-interface);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav > a:not(.btn):hover::after,
.desktop-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--ff-grey-steel);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  z-index: 90;
  display: none;
  padding: 18px 20px 24px;
  border-bottom: 1px solid var(--ff-grey-foundation);
  background: var(--ff-off-white);
  box-shadow: var(--shadow-small);
}

.mobile-nav[data-open="true"] {
  display: block;
}

.mobile-nav a {
  display: flex;
  min-height: 50px;
  align-items: center;
  border-bottom: 1px solid var(--ff-grey-foundation);
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 18px;
  border-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.btn--primary {
  border-color: var(--ff-teal-interface);
  background: var(--ff-teal-interface);
  color: var(--ff-white);
}

.btn--primary:hover {
  border-color: #3f5c5e;
  background: #3f5c5e;
}

.btn--primary:active {
  transform: translateY(1px);
}

.btn--primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--ff-white),
    0 0 0 5px var(--ff-navy);
}

.btn--secondary {
  border-color: var(--ff-navy);
  background: transparent;
  color: var(--ff-navy);
}

.btn--secondary:hover {
  background: var(--ff-navy);
  color: var(--ff-white);
}

.btn--light {
  border-color: var(--ff-white);
  color: var(--ff-white);
}

.btn--light:hover {
  background: var(--ff-white);
  color: var(--ff-navy);
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: var(--ff-teal-interface);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--ff-teal-structural);
  transform: skewX(-16deg);
}

h1,
h2,
h3 {
  margin-top: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 5.2vw, 4.7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  line-height: 1.25;
}

.lead {
  color: var(--ff-grey-steel);
  font-size: clamp(1.05rem, 1.5vw, 1.16rem);
  line-height: 1.68;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 106px 0 94px;
  border-bottom: 1px solid var(--ff-grey-foundation);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -70px;
  width: 430px;
  height: 160px;
  background: var(--ff-grey-foundation);
  opacity: 0.6;
  clip-path: polygon(18% 0, 100% 0, 76% 100%, 0 100%);
}

.page-hero .lead {
  max-width: 780px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* Home hero */
.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding: 112px 0 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(25, 33, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25, 33, 42, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to right, black 0%, black 68%, transparent 96%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: 52px;
  align-items: center;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 34px;
  color: var(--ff-grey-steel);
  font-size: clamp(1.05rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.capability-line {
  max-width: 760px;
  color: var(--ff-grey-steel);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.085em;
}

.hero-system {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.system-frame {
  position: relative;
  width: min(100%, 490px);
  aspect-ratio: 0.98;
}

.plane {
  position: absolute;
  left: 0;
  height: 29%;
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}

.plane--one {
  top: 3%;
  width: 100%;
  background: var(--ff-navy);
}

.plane--two {
  top: 36%;
  width: 84%;
  background: var(--ff-navy-2);
}

.plane--three {
  top: 70%;
  left: 26%;
  width: 52%;
  background: var(--ff-teal-structural);
  clip-path: polygon(22% 0, 100% 0, 75% 100%, 0 100%);
}

.system-label {
  position: absolute;
  left: -8px;
  width: 230px;
  color: var(--ff-grey-steel);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.system-label strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ff-navy);
  font-weight: 500;
  letter-spacing: 0.09em;
}

.system-label--input {
  top: -2%;
}

.system-label--intelligence {
  top: 34%;
}

.system-label--output {
  top: 77%;
  color: var(--ff-teal-interface);
}

.system-label--output strong {
  color: var(--ff-teal-interface);
}

.system-index {
  position: absolute;
  right: -12px;
  bottom: 1%;
  color: var(--ff-grey-frame);
  font-size: 10px;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
}

/* Authority strip */
.authority-strip {
  position: relative;
  z-index: 5;
  border-block: 1px solid var(--ff-grey-foundation);
  background: var(--ff-white);
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.authority-item {
  display: flex;
  min-height: 82px;
  align-items: center;
  padding: 18px 24px;
  border-right: 1px solid var(--ff-grey-foundation);
  color: var(--ff-grey-steel);
  font-size: 13px;
}

.authority-item:last-child {
  border-right: 0;
}

.authority-node,
.principle-mark {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--ff-teal-structural);
  transform: rotate(45deg);
}

.authority-node {
  margin-right: 11px;
}

/* Shared sections */
.block {
  padding: 112px 0;
}

.block--white {
  background: var(--ff-white);
}

.block--compact-top {
  padding-top: 12px;
}

.section-head {
  max-width: 790px;
  margin-bottom: 58px;
}

.section-head p,
.body-copy {
  color: var(--ff-grey-steel);
  font-size: 1.075rem;
  line-height: 1.68;
}

.section-head p {
  max-width: 740px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ff-grey-steel);
  border-bottom: 1px solid var(--ff-grey-foundation);
}

.cap-card {
  position: relative;
  min-height: 290px;
  padding: 36px 28px 32px;
  border-right: 1px solid var(--ff-grey-foundation);
}

.cap-card:last-child {
  border-right: 0;
}

.cap-number {
  display: block;
  margin-bottom: 54px;
  color: var(--ff-teal-interface);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.cap-card h3 {
  margin-bottom: 14px;
  font-size: 1.12rem;
}

.cap-card p {
  color: var(--ff-grey-steel);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cap-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 28px;
  width: 52px;
  height: 3px;
  background: var(--ff-teal-structural);
  transform: skewX(-28deg);
}

/* Systems cards */
.systems-intro {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}

.systems-intro p {
  color: var(--ff-grey-steel);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.system-card {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  overflow: hidden;
  padding: 32px 30px;
  border: 1px solid var(--ff-grey-foundation);
  border-radius: var(--radius);
  background: var(--ff-white);
  transition: transform 180ms ease, border-color 180ms ease;
}

.system-card:hover {
  border-color: var(--ff-grey-steel);
  transform: translateY(-2px);
}

.system-card--custom {
  border-color: var(--ff-teal-structural);
  border-style: dashed;
}

.system-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 112px;
  height: 82px;
  background: var(--ff-grey-foundation);
  opacity: 0.55;
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 0 100%);
}

.system-card--custom::before {
  background: var(--ff-teal-structural);
  opacity: 0.3;
}

.system-category {
  position: relative;
  z-index: 1;
  margin-bottom: 68px;
  color: var(--ff-teal-interface);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.system-card h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.system-card p {
  flex-grow: 1;
  margin-bottom: 28px;
  color: var(--ff-grey-steel);
  font-size: 0.97rem;
  line-height: 1.62;
}

.system-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--ff-teal-interface);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.system-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.system-link:hover::after {
  transform: translateX(4px);
}

/* Approach */
.approach-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 76px;
  align-items: start;
}

.approach-copy {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.approach-copy p {
  color: var(--ff-grey-steel);
  font-size: 1.05rem;
  line-height: 1.65;
}

.principles {
  border-top: 1px solid var(--ff-grey-steel);
}

.principle {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--ff-grey-foundation);
}

.principle-mark {
  margin-top: 7px;
}

.principle h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.principle p {
  margin: 0;
  color: var(--ff-grey-steel);
  font-size: 0.95rem;
  line-height: 1.58;
}

/* Advanced */
.advanced {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  background: var(--ff-navy);
  color: var(--ff-white);
}

.advanced::after {
  content: "";
  position: absolute;
  top: -28%;
  right: -12%;
  width: 52%;
  height: 168%;
  background: var(--ff-teal-structural);
  opacity: 0.09;
  clip-path: polygon(32% 0, 100% 0, 68% 100%, 0 100%);
}

.advanced-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 60px;
  align-items: end;
}

.advanced .eyebrow {
  color: var(--ff-white);
}

.advanced h2 {
  max-width: 760px;
}

.advanced p {
  max-width: 720px;
  color: var(--ff-grey-frame);
  font-size: 1.08rem;
  line-height: 1.68;
}

.advanced-fields {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
}

.advanced-field {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(25, 33, 42, 0.75);
  color: var(--ff-white);
  font-size: 11px;
  letter-spacing: 0.075em;
}

.advanced-field::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 12px;
  background: var(--ff-teal-structural);
  transform: rotate(45deg);
}

/* Product detail pages */
.product-section {
  padding: 112px 0;
  border-bottom: 1px solid var(--ff-grey-foundation);
}

.product-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 70px;
  align-items: start;
}

.product-side {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.product-side .mono {
  color: var(--ff-teal-interface);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.product-content h2 {
  margin-bottom: 24px;
}

.product-content h3 {
  margin: 34px 0 12px;
  font-size: 1.15rem;
}

.product-content p,
.product-content li {
  color: var(--ff-grey-steel);
  font-size: 1rem;
  line-height: 1.68;
}

.product-content ul {
  display: grid;
  gap: 10px;
  padding-left: 1.2rem;
}

.workflow {
  display: grid;
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--ff-grey-foundation);
  background: var(--ff-grey-foundation);
}

.workflow-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 14px 18px;
  background: var(--ff-white);
}

.workflow-step span:first-child {
  color: var(--ff-teal-interface);
  font-size: 11px;
}

/* About */
.story-grid,
.fact-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--ff-grey-foundation);
  background: var(--ff-grey-foundation);
}

.story-grid {
  grid-template-columns: repeat(5, 1fr);
}

.story-card,
.fact-card {
  background: var(--ff-white);
}

.story-card {
  min-height: 260px;
  padding: 28px 24px;
}

.story-card .mono {
  display: block;
  margin-bottom: 52px;
  color: var(--ff-teal-interface);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.story-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.story-card p {
  color: var(--ff-grey-steel);
  font-size: 0.92rem;
  line-height: 1.58;
}

.fact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.fact-card {
  padding: 24px 26px;
}

.fact-card dt {
  margin-bottom: 5px;
  color: var(--ff-teal-interface);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.fact-card dd {
  margin: 0;
  font-weight: 500;
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 70px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--ff-grey-steel);
  border-radius: var(--radius);
  background: var(--ff-white);
  color: var(--ff-navy);
}

.form-field input,
.form-field select {
  min-height: 50px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 180px;
  padding: 14px;
  resize: vertical;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--ff-navy);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--ff-teal-interface);
}

.form-help,
.privacy-note {
  color: var(--ff-grey-steel);
  font-size: 13px;
  line-height: 1.55;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-panel {
  padding: 32px;
  border: 1px solid var(--ff-grey-foundation);
  background: var(--ff-white);
}

.contact-panel h2 {
  font-size: 1.45rem;
}

.contact-panel ul {
  display: grid;
  gap: 14px;
  padding-left: 1.2rem;
  color: var(--ff-grey-steel);
  line-height: 1.58;
}

/* Privacy */
.legal-copy {
  max-width: 790px;
}

.legal-copy h2 {
  margin-top: 54px;
  font-size: 1.55rem;
}

.legal-copy h3 {
  margin-top: 30px;
  font-size: 1.08rem;
}

.legal-copy p,
.legal-copy li {
  color: var(--ff-grey-steel);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-copy ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2rem;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 126px 0;
  text-align: center;
}

.final-cta::before,
.final-cta::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 44px;
  background: var(--ff-grey-foundation);
  opacity: 0.55;
  transform: skewX(-28deg);
}

.final-cta::before {
  top: 40px;
  left: -90px;
}

.final-cta::after {
  right: -90px;
  bottom: 40px;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
}

.final-cta p {
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--ff-grey-steel);
  font-size: 1.075rem;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  padding: 54px 0 32px;
  background: var(--ff-navy);
  color: var(--ff-white);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.footer-brand .brand-word {
  color: var(--ff-white);
}

.footer-tagline {
  margin-top: 8px;
  color: var(--ff-grey-frame);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-links a {
  color: var(--ff-grey-frame);
  font-size: 14px;
  text-decoration: none;
}

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

.footer-legal {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ff-grey-frame);
  font-size: 12px;
}

/* 404 / Thanks */
.state-page {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 80px 0;
}

.state-card {
  max-width: 760px;
  text-align: center;
}

.state-code {
  margin-bottom: 18px;
  color: var(--ff-teal-interface);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 1040px) {
  .hero-inner {
    grid-template-columns: 1fr 0.78fr;
    gap: 28px;
  }

  .system-label {
    display: none;
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-card:nth-child(2) {
    border-right: 0;
  }

  .cap-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ff-grey-foundation);
  }

  .systems-intro,
  .approach-layout,
  .advanced-inner,
  .product-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .approach-copy,
  .product-side {
    position: static;
  }

  .story-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  :root {
    --header-height: 68px;
  }

  .wrap {
    width: min(100% - 40px, var(--wrap));
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-system {
    min-height: 320px;
    margin-top: 8px;
    overflow: hidden;
  }

  .system-frame {
    width: min(420px, 112%);
    transform: translateX(12%);
  }

  .system-index {
    display: none;
  }

  .authority-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .authority-item:nth-child(2) {
    border-right: 0;
  }

  .authority-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--ff-grey-foundation);
  }

  .block,
  .product-section {
    padding: 84px 0;
  }

  .systems-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: 340px;
  }

  .footer-main {
    flex-direction: column;
  }

  .page-hero {
    padding: 76px 0 68px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .brand-word {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(2.42rem, 12vw, 3.25rem);
  }

  .eyebrow {
    max-width: 100%;
    font-size: 10px;
  }

  .cta-row,
  .page-actions,
  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .capability-line {
    font-size: 9.5px;
  }

  .hero-system {
    min-height: 265px;
  }

  .system-frame {
    width: 320px;
    transform: translateX(18%);
  }

  .authority-grid,
  .cap-grid,
  .story-grid,
  .fact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .authority-item {
    min-height: 62px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--ff-grey-foundation);
  }

  .authority-item:last-child {
    border-bottom: 0;
  }

  .cap-card {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid var(--ff-grey-foundation);
  }

  .cap-card:last-child {
    border-bottom: 0;
  }

  .cap-number {
    margin-bottom: 38px;
  }

  .systems-intro {
    display: block;
  }

  .systems-intro h2 {
    margin-bottom: 18px;
  }

  .story-card:last-child {
    grid-column: auto;
  }

  .advanced {
    padding: 86px 0;
  }

  .final-cta {
    padding: 92px 0;
  }

  .contact-panel {
    padding: 24px 20px;
  }
}

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

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