: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(--white);
  background: rgba(17, 26, 34, 0.82);
  border-color: rgba(255, 253, 248, 0.18);
  box-shadow: 0 14px 40px rgba(17, 26, 34, 0.22);
}

.subpage .site-header {
  color: var(--white);
  background: rgba(17, 26, 34, 0.82);
  border-color: rgba(255, 253, 248, 0.18);
  box-shadow: 0 14px 40px rgba(17, 26, 34, 0.22);
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.08);
  color: currentColor;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle:hover {
  background: rgba(255, 253, 248, 0.16);
}

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

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

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

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

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

.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: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 126px 28px 72px;
  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-microcopy {
  margin: 14px 0 0;
  color: rgba(255, 253, 248, 0.58);
  font-size: 13px;
}

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

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

.form-status {
  margin: 0;
  font-size: 14px;
  font-weight: 680;
}

.form-status:empty {
  display: none;
}

.form-status.form-status-success {
  color: var(--green);
}

.form-status.form-status-error {
  color: var(--copper);
}

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

.footer-links a:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--line);
}

.legal-section {
  width: min(820px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 0 28px 92px;
}

.legal-section .updated {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal-section h2 {
  margin: 48px 0 14px;
  color: var(--ink);
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
}

.legal-section h2:first-of-type {
  margin-top: 0;
}

.legal-section p,
.legal-section li {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 17px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-section li {
  margin: 0;
}

.legal-section a {
  color: var(--green);
}

.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) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    width: 100%;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 253, 248, 0.16);
  }

  .site-header.menu-open .nav {
    display: flex;
  }

  .nav a {
    min-height: 44px;
    justify-content: center;
    padding: 0 14px;
    font-size: 15px;
  }

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

  .hero {
    min-height: 82vh;
    padding: 124px 20px 72px;
  }

  .hero-content {
    margin: 0;
  }

  .problem-grid,
  .case-grid,
  .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;
  }

  .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: 156px;
    height: 36px;
    flex-basis: 156px;
  }

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

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

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

  .pilot-steps,
  .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;
  }
}
