:root {
  --forest-deep: #0d3028;
  --forest: #17483d;
  --forest-soft: #255b4e;
  --moss: #61806f;
  --brass: #b38b46;
  --brass-soft: #e7c989;
  --porcelain: #f7f4ed;
  --paper: #fffdf8;
  --mist: #e9f0ea;
  --ink: #14231f;
  --muted: #53635d;
  --rule: rgba(13, 48, 40, 0.17);
  --danger: #9b2f2f;
  --content: min(1160px, calc(100% - 48px));
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --shadow: 0 28px 70px rgba(13, 48, 40, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a, button, input, select, textarea { font: inherit; }
a { color: inherit; }
button { border: 0; }

section[id], form[id] { scroll-margin-top: 110px; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 10px 14px;
  background: var(--paper);
  color: var(--forest-deep);
  box-shadow: var(--shadow);
}

.skip-link:focus { transform: translateY(0); }

.section-shell { width: var(--content); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: var(--content);
  min-height: 86px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  background: rgba(247, 244, 237, 0.94);
  box-shadow: 0 0 0 100vmax rgba(247, 244, 237, 0.94);
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 128px; height: 66px; object-fit: contain; }

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.primary-nav a, .header-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--forest-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a { border-bottom: 1px solid transparent; }
.primary-nav a:hover { border-color: var(--forest-deep); }
.header-cta { border-bottom: 1px solid var(--forest-deep); }

.eyebrow {
  margin: 0 0 20px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  color: var(--forest-deep);
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}

h1 { font-size: clamp(50px, 5.5vw, 78px); line-height: .98; letter-spacing: -.052em; }
h2 { font-size: clamp(40px, 4.5vw, 62px); line-height: 1.03; letter-spacing: -.04em; }
h3 { font-size: 29px; line-height: 1.05; }
p { margin: 0 0 1.1em; }

.hero {
  min-height: calc(100vh - 86px);
  padding: clamp(78px, 9vw, 130px) 0 clamp(84px, 10vw, 138px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr);
  align-items: center;
  gap: clamp(54px, 8vw, 110px);
}

.hero-copy { max-width: 780px; }
.hero-body { max-width: 680px; margin-top: 34px; color: var(--muted); font-size: 18px; }
.hero-body p:last-child { color: var(--forest-deep); font-weight: 700; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--forest-deep);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button::after { content: '→'; margin-left: 12px; font-size: 19px; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest-deep); color: white; }
.button-primary:hover { background: var(--forest); }
.button-accent { width: 100%; background: var(--brass-soft); color: var(--forest-deep); border-color: var(--brass-soft); cursor: pointer; }
.button-accent:hover { background: #efd797; }
.button:disabled { opacity: .58; cursor: wait; transform: none; }

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--forest-deep);
  font-size: 14px;
  font-weight: 800;
  text-underline-offset: 5px;
}

.hero-system {
  position: relative;
  padding: 34px;
  background: var(--forest-deep);
  color: white;
  box-shadow: var(--shadow);
}

.hero-system::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 96px;
  height: 96px;
  border-top: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
}

.system-core { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.18); font-family: var(--serif); }
.system-core span { font-size: 26px; }
.system-core strong { color: var(--brass-soft); font-size: 54px; font-weight: 500; line-height: 1; }
.hero-system ol { margin: 0; padding: 16px 0 0; list-style: none; }
.hero-system li { min-height: 58px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.13); font-family: var(--serif); font-size: 25px; }
.hero-system li span { color: var(--brass-soft); font-family: var(--sans); font-size: 11px; letter-spacing: .12em; }

.engine-strip {
  min-height: 92px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--forest-deep);
  color: white;
}

.engine-strip span { display: grid; place-items: center; border-right: 1px solid rgba(255,255,255,.14); font-family: var(--serif); font-size: 23px; }
.engine-strip span:last-child { border-right: 0; }

.split-section {
  padding: clamp(90px, 10vw, 140px) 0;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(50px, 8vw, 110px);
  border-bottom: 1px solid var(--rule);
}

.section-heading > p:last-child { margin-top: 26px; color: var(--muted); }
.section-copy { max-width: 600px; color: var(--muted); }
.section-copy > p:first-child { color: var(--ink); font-size: 19px; }
.closing-line { color: var(--forest-deep); font-family: var(--serif); font-size: 25px; line-height: 1.3; }

.dark-section { padding: clamp(94px, 11vw, 148px) 0; background: var(--forest-deep); color: white; }
.section-heading-light { max-width: 800px; }
.section-heading-light h2, .dark-section h2, .dark-section h3 { color: white; }
.dark-section .eyebrow { color: var(--brass-soft); }

.engines-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.engines-grid article { padding: 34px 27px 38px 0; }
.engines-grid article + article { padding-left: 27px; border-left: 1px solid rgba(255,255,255,.2); }
.engines-grid span, .process-grid > li > span { color: var(--brass-soft); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.engines-grid h3 { margin-top: 34px; }
.engines-grid p { margin-top: 18px; color: rgba(255,255,255,.72); font-size: 14px; }
.framework-close { margin: 38px 0 6px; font-family: var(--serif); font-size: 25px; }
.framework-note { max-width: 820px; color: rgba(255,255,255,.66); font-size: 14px; }

.applications { padding: clamp(95px, 11vw, 150px) 0; }
.applications-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 55px; }
.applications-heading > p { color: var(--muted); font-size: 18px; }
.application-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.application-card { min-height: 348px; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); background: var(--paper); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.application-card-featured { grid-column: 1 / -1; min-height: 310px; background: var(--mist); }
.application-card-featured h3 { font-size: clamp(38px, 4vw, 54px); }
.application-card-top { display: flex; justify-content: space-between; gap: 20px; }
.status { color: var(--moss); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.status-live { color: var(--forest-deep); }
.card-number { color: var(--brass); font-family: var(--serif); font-size: 19px; }
.application-card h3 { max-width: 440px; margin-top: 32px; }
.application-card p { max-width: 610px; margin: 20px 0 32px; color: var(--muted); font-size: 15px; }
.card-action { min-height: 44px; margin-top: auto; padding: 0; align-self: flex-start; background: transparent; color: var(--forest-deep); border-bottom: 1px solid var(--forest-deep); font-size: 13px; font-weight: 800; text-align: left; text-decoration: none; cursor: pointer; }
.card-action span { margin-left: 8px; }
.applications-note { max-width: 900px; margin: 34px 0 0; color: var(--muted); font-size: 14px; }

.decision-band { padding: 32px 24px; display: flex; align-items: center; justify-content: center; gap: 24px; background: var(--brass-soft); color: var(--forest-deep); }
.decision-band p { margin: 0; font-family: var(--serif); font-size: clamp(22px, 3vw, 31px); }
.decision-band span { font-size: 25px; }

.mist-section { padding: clamp(94px, 11vw, 145px) 0; background: var(--mist); }
.process .section-heading { max-width: 720px; }
.process-grid { margin: 62px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.process-grid li { padding: 32px 25px 36px 0; }
.process-grid li + li { padding-left: 25px; border-left: 1px solid var(--rule); }
.process-grid h3 { margin-top: 28px; font-family: var(--sans); font-size: 17px; font-weight: 800; }
.process-grid p { margin-top: 15px; color: var(--muted); font-size: 14px; }

.check-list { margin: 30px 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.check-list li { position: relative; padding: 17px 0 17px 30px; border-bottom: 1px solid var(--rule); color: var(--forest-deep); font-size: 14px; font-weight: 700; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--brass); }

.form-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr); gap: clamp(60px, 9vw, 120px); align-items: start; }
.form-intro { position: sticky; top: 124px; }
.form-intro > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.privacy-notice { margin-top: 30px; padding: 18px; border-left: 3px solid var(--brass-soft); background: rgba(255,255,255,.07); color: rgba(255,255,255,.78); font-size: 14px; }
.interest-form, .submission-success { padding: clamp(28px, 4vw, 45px); background: var(--paper); color: var(--ink); box-shadow: 0 32px 80px rgba(0,0,0,.22); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 9px; color: var(--forest-deep); font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid rgba(13,48,40,.28); border-radius: 0; background: white; color: var(--ink); }
.field textarea { min-height: 135px; resize: vertical; }
.field input[aria-invalid='true'], .field select[aria-invalid='true'] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field-help, .field-error { margin: 7px 0 0; font-size: 12px; line-height: 1.5; }
.field-help { color: var(--muted); }
.field-error { color: var(--danger); font-weight: 700; }
.form-consent { margin: 28px 0 18px; color: var(--muted); font-size: 12px; }
.form-reassurance { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.form-status { margin: 14px 0 0; color: var(--danger); font-size: 13px; font-weight: 800; text-align: center; }
.submission-success p { color: var(--muted); }
.submission-success .success-note { padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; }
.text-link-light { color: var(--forest-deep); }

.faq { padding: clamp(95px, 11vw, 145px) 0; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(55px, 8vw, 100px); }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { position: relative; min-height: 64px; padding: 20px 52px 20px 0; color: var(--forest-deep); font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; top: 10px; right: 6px; color: var(--brass); font-family: var(--serif); font-size: 33px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 720px; padding: 0 46px 24px 0; color: var(--muted); font-size: 15px; }

.final-cta { width: min(1030px, calc(100% - 48px)); margin: 0 auto 90px; padding: clamp(50px, 8vw, 90px); background: var(--mist); text-align: center; }
.final-cta p:not(.eyebrow) { max-width: 700px; margin: 24px auto; color: var(--muted); }
.final-cta .button { margin-top: 10px; }
.final-framework { font-size: 13px; font-weight: 800; letter-spacing: .08em; }

.site-footer { padding: 60px max(24px, calc((100% - 1160px) / 2)); background: var(--forest-deep); color: white; }
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-brand img { width: 122px; height: 70px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.site-footer > p { color: rgba(255,255,255,.68); font-size: 13px; }
.footer-links { margin: 34px 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: white; font-size: 13px; }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-system { max-width: 560px; }
  .engines-grid { grid-template-columns: repeat(2, 1fr); }
  .engines-grid article:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .engines-grid article:nth-child(4) { border-top: 1px solid rgba(255,255,255,.2); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid li:nth-child(4) { border-left: 0; border-top: 1px solid var(--rule); }
  .process-grid li:nth-child(5) { border-top: 1px solid var(--rule); }
  .form-layout, .faq { grid-template-columns: 1fr; }
  .form-intro { position: static; max-width: 700px; }
}

@media (max-width: 680px) {
  :root { --content: min(100% - 30px, 1160px); }
  body { font-size: 16px; }
  section[id], form[id] { scroll-margin-top: 82px; }
  .site-header { min-height: 74px; gap: 14px; }
  .brand img { width: 106px; height: 58px; }
  .header-cta { max-width: 142px; justify-content: flex-end; text-align: right; }
  h1 { font-size: clamp(43px, 12vw, 56px); }
  h2 { font-size: clamp(35px, 10vw, 46px); }
  .hero { padding: 62px 0 78px; gap: 55px; }
  .hero-body { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-system { padding: 28px 24px; }
  .engine-strip { grid-template-columns: repeat(2, 1fr); }
  .engine-strip span { min-height: 72px; border-bottom: 1px solid rgba(255,255,255,.14); }
  .split-section, .applications, .faq { padding-top: 82px; padding-bottom: 82px; grid-template-columns: 1fr; }
  .applications-heading { grid-template-columns: 1fr; gap: 24px; }
  .application-grid { grid-template-columns: 1fr; }
  .application-card-featured { grid-column: 1; }
  .decision-band { align-items: flex-start; flex-direction: column; gap: 4px; }
  .decision-band span { transform: rotate(90deg); }
  .engines-grid, .process-grid { grid-template-columns: 1fr; }
  .engines-grid article, .engines-grid article + article, .engines-grid article:nth-child(3) { padding: 28px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .engines-grid article:first-child { border-top: 0; }
  .process-grid li, .process-grid li + li, .process-grid li:nth-child(4) { padding: 26px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .process-grid li:first-child { border-top: 0; }
  .form-layout { grid-template-columns: 1fr; gap: 48px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: 1; }
  .interest-form, .submission-success { padding: 26px 18px; }
  .final-cta { width: calc(100% - 30px); margin-bottom: 55px; padding: 52px 20px; }
  .footer-brand { align-items: flex-start; flex-direction: column; }
}

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

@media (forced-colors: active) {
  .button, .application-card, .hero-system, .interest-form, input, select, textarea { border: 1px solid ButtonText; }
  .check-list li::before, .button::after { forced-color-adjust: none; }
}
