:root {
  --forest-950: #071f1a;
  --forest-900: #0b2b25;
  --forest-800: #123d33;
  --forest-700: #176047;
  --forest-600: #1c7656;
  --lime-500: #b9df35;
  --lime-400: #c9e95a;
  --ivory-50: #fbfaf6;
  --ivory-100: #f4f0e6;
  --ivory-200: #e9e3d5;
  --sage-100: #e4ebe6;
  --sage-300: #b8c8bf;
  --ink-900: #10201c;
  --ink-700: #30433c;
  --ink-600: #4b5c55;
  --white: #fff;
  --danger: #962e2e;
  --danger-soft: #fff2f0;
  --success: #176047;
  --shadow-sm: 0 12px 28px rgba(7, 31, 26, .08);
  --shadow-lg: 0 28px 70px rgba(7, 31, 26, .16);
  --radius-sm: 4px;
  --radius-md: 12px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 68px);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Inter, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 148px; }
body {
  margin: 0;
  color: var(--ink-900);
  background: var(--ivory-50);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--forest-700); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--forest-900); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { margin-bottom: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(3.25rem, 6.2vw, 6.1rem); line-height: .96; }
h2 { font-size: clamp(2rem, 3.4vw, 3.35rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
p { margin-bottom: 1.1em; }

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--forest-950), 0 0 0 8px var(--lime-400);
}
::selection { color: var(--forest-950); background: var(--lime-400); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--forest-950);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.container { width: min(calc(100% - (var(--gutter) * 2)), var(--container)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--forest-700);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}
.eyebrow::before { width: 30px; height: 2px; content: ""; background: var(--lime-500); }
.eyebrow-light { color: var(--lime-400); }
.lead { color: var(--ink-700); font-size: clamp(1.07rem, 1.6vw, 1.26rem); line-height: 1.58; }
.muted { color: var(--ink-600); }
.small { font-size: .9rem; line-height: 1.55; }

.utility-bar { color: rgba(255,255,255,.9); background: var(--forest-950); font-size: .78rem; letter-spacing: .025em; }
.utility-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.utility-inner p { margin: 0; }
.utility-links { display: flex; align-items: center; gap: 22px; }
.utility-bar a { color: var(--white); text-decoration: none; }
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(11,43,37,.12);
  background: rgba(251,250,246,.97);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { display: block; flex: none; text-decoration: none; }
.brand img { width: 124px; height: 86px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); }
.nav > a:not(.btn) { position: relative; color: var(--ink-900); font-size: .9rem; font-weight: 700; text-decoration: none; }
.nav > a:not(.btn)::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 2px; content: ""; background: var(--lime-500); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--forest-950); background: var(--lime-500); }
.btn-primary:hover { color: var(--forest-950); background: var(--lime-400); }
.btn-dark { color: var(--white); background: var(--forest-900); }
.btn-dark:hover { color: var(--white); background: var(--forest-700); }
.btn-outline { border-color: var(--forest-800); color: var(--forest-900); background: transparent; }
.btn-outline:hover { color: var(--white); background: var(--forest-900); }
.btn-light { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.btn-light:hover { color: var(--forest-950); background: var(--white); }
.btn-arrow::after { content: "\2197"; }

.apply-hero { position: relative; overflow: clip; padding-block: clamp(54px, 6vw, 90px); background: var(--ivory-100); }
.apply-layout { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(580px, 1.2fr); gap: clamp(28px, 4vw, 58px); align-items: start; }
.story-panel {
  position: sticky;
  top: 158px;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-900);
  box-shadow: var(--shadow-lg);
}
.story-copy { padding: clamp(34px, 4.5vw, 64px); }
.story-copy h1 { color: var(--white); }
.story-copy .lead { margin-top: 26px; color: rgba(255,255,255,.78); }
.story-points { display: grid; gap: 0; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.16); list-style: none; }
.story-points li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.9); font-size: .93rem; font-weight: 700; }
.story-points li::before { position: absolute; top: 14px; left: 2px; color: var(--lime-400); content: "\2713"; }
.rep-context { margin: 22px 0 0; padding: 13px 15px; border-left: 3px solid var(--lime-500); color: rgba(255,255,255,.8); background: rgba(255,255,255,.07); font-size: .86rem; }
.rep-context[hidden] { display: none; }
.story-media { position: relative; min-height: 235px; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); background: var(--forest-950); }
.story-media picture, .story-media img { width: 100%; height: 100%; }
.story-media img { min-height: 235px; object-fit: cover; object-position: 62% center; }
.story-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(7,31,26,.06), rgba(7,31,26,.36)); }
.story-caption { position: absolute; z-index: 2; right: 22px; bottom: 18px; left: 22px; margin: 0; color: rgba(255,255,255,.88); font-size: .8rem; font-weight: 700; }

.form-card { position: relative; padding: clamp(30px, 4.4vw, 58px); background: var(--white); border: 1px solid var(--ivory-200); box-shadow: var(--shadow-sm); }
.form-card::before { position: absolute; top: 0; right: 0; left: 0; height: 7px; content: ""; background: var(--lime-500); }
.form-intro { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; margin-bottom: 34px; }
.form-intro h2 { color: var(--forest-950); }
.form-intro p { max-width: 620px; margin: 14px 0 0; color: var(--ink-600); }
.form-badge { padding: 8px 11px; color: var(--forest-800); background: var(--sage-100); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.status { margin-bottom: 24px; padding: 14px 16px; border-left: 4px solid var(--forest-700); color: var(--ink-900); background: var(--sage-100); }
.status.error { border-left-color: var(--danger); color: #742020; background: var(--danger-soft); }
.status[hidden] { display: none; }

form { display: grid; gap: 30px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 18px; padding: 0 0 10px; border-bottom: 1px solid var(--ivory-200); color: var(--forest-900); font-family: var(--sans); font-size: .8rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
label { display: inline-block; margin-bottom: 7px; color: var(--ink-900); font-size: .88rem; font-weight: 800; }
.required { color: var(--forest-700); }
input, textarea, select {
  width: 100%;
  color: var(--ink-900);
  background: var(--ivory-50);
  border: 1px solid var(--sage-300);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input, select { min-height: 54px; padding: 12px 14px; }
textarea { min-height: 145px; padding: 13px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #78867f; opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: var(--forest-600); }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--forest-700); background: var(--white); box-shadow: 0 0 0 4px rgba(28,118,86,.13); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.field-help { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--ink-600); font-size: .78rem; line-height: 1.45; }
.field-error { min-height: 1.25em; margin-top: 5px; color: var(--danger); font-size: .78rem; font-weight: 750; }
.field-error:empty { display: none; }
.safe-note { margin: 0; padding: 14px 16px; border-left: 3px solid var(--lime-500); color: var(--ink-700); background: var(--ivory-100); font-size: .84rem; }

.consent-row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.consent-row input { width: 22px; min-height: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--forest-700); }
.consent-row label { margin: 0; font-weight: 700; }
.consent-help { display: block; margin: 5px 0 0; color: var(--ink-600); font-size: .78rem; font-weight: 500; }
.consent-error { grid-column: 2; }
.hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.submit-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-top: 2px; }
.apply-submit { min-height: 60px; width: 100%; border: 0; font-size: 1rem; }
.apply-submit[disabled] { opacity: .66; cursor: wait; transform: none; }
.submit-fallback { color: var(--ink-600); font-size: .8rem; text-align: right; }
.submit-fallback a { font-weight: 800; }

.support-strip { color: var(--white); background: var(--forest-950); }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.support-item { min-height: 104px; display: flex; align-items: center; gap: 16px; padding: 24px clamp(20px, 3vw, 40px); border-left: 1px solid rgba(255,255,255,.17); }
.support-item:first-child { border-left: 0; }
.support-mark { width: 34px; height: 2px; flex: none; background: var(--lime-500); }
.support-item strong { display: block; font-size: .88rem; line-height: 1.35; }
.support-item span:last-child { display: block; margin-top: 3px; color: rgba(255,255,255,.6); font-size: .75rem; }

.section { padding-block: clamp(72px, 8vw, 112px); }
.surface-sage { background: var(--sage-100); }
.surface-white { background: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .55fr); gap: 42px; align-items: end; margin-bottom: clamp(34px, 5vw, 58px); }
.section-head p { margin: 0; color: var(--ink-700); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sage-300); border: 1px solid var(--sage-300); }
.process-step { padding: clamp(26px, 3vw, 42px); background: var(--white); }
.process-number { display: block; margin-bottom: 36px; color: var(--forest-700); font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.process-step h3 { margin-bottom: 12px; color: var(--forest-950); }
.process-step p { margin: 0; color: var(--ink-700); }

.privacy-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(34px, 6vw, 84px); align-items: start; }
.privacy-copy p { margin-top: 22px; color: var(--ink-700); }
.privacy-list { margin: 0; padding: 0; border-top: 1px solid var(--sage-300); list-style: none; }
.privacy-list li { position: relative; padding: 16px 12px 16px 34px; border-bottom: 1px solid var(--sage-300); font-weight: 700; }
.privacy-list li::before { position: absolute; top: 16px; left: 4px; color: var(--forest-700); content: "\2713"; }

.cta-band { color: var(--white); background: var(--forest-700); }
.cta-inner { min-height: 250px; display: flex; align-items: center; justify-content: space-between; gap: 42px; padding-block: 48px; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { max-width: 680px; margin: 14px 0 0; color: rgba(255,255,255,.78); }
.cta-actions { flex: none; display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { padding: 54px 0 92px; color: rgba(255,255,255,.68); background: var(--forest-950); }
.footer-top { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 44px; padding-bottom: 38px; }
.footer-brand img { width: 150px; height: 104px; object-fit: contain; filter: brightness(0) invert(1); opacity: .96; }
.footer-brand p { max-width: 430px; margin: 12px 0 0; }
.footer-column h2 { margin-bottom: 16px; color: var(--white); font-family: var(--sans); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li + li { margin-top: 7px; }
.footer-column a { color: rgba(255,255,255,.76); text-decoration: none; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: .76rem; }
.footer-bottom p { margin: 0; }

.success-modal[hidden] { display: none; }
.success-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.success-backdrop { position: absolute; inset: 0; border: 0; background: rgba(7,31,26,.78); backdrop-filter: blur(7px); }
.success-panel { position: relative; width: min(100%, 590px); padding: clamp(34px, 5vw, 58px); background: var(--ivory-50); box-shadow: 0 36px 100px rgba(7,31,26,.34); text-align: center; }
.success-panel::before { position: absolute; top: 0; right: 0; left: 0; height: 7px; content: ""; background: var(--lime-500); }
.success-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 24px; color: var(--forest-950); background: var(--lime-500); font-size: 1.7rem; font-weight: 900; }
.success-panel h2 { color: var(--forest-950); }
.success-panel p { max-width: 460px; margin: 18px auto 0; color: var(--ink-700); }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.success-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 1px solid var(--sage-300); border-radius: 50%; color: var(--forest-950); background: transparent; font-size: 1.4rem; cursor: pointer; }

.mobile-actions { display: none; }
.error-page { min-height: 68vh; display: grid; place-items: center; padding-block: 80px; color: var(--white); background: var(--forest-900); text-align: center; }
.error-page h1 { color: var(--white); }
.error-page p { max-width: 620px; margin: 24px auto 0; color: rgba(255,255,255,.76); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

@media (max-width: 1080px) {
  .apply-layout { grid-template-columns: 1fr; }
  .story-panel { position: relative; top: auto; display: grid; grid-template-columns: 1fr minmax(310px, .72fr); }
  .story-media { min-height: 100%; clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%); }
  .story-media img { height: 100%; min-height: 100%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .utility-inner { justify-content: center; text-align: center; }
  .utility-links { display: none; }
  .header-inner { min-height: 74px; gap: 14px; }
  .brand img { width: 105px; height: 73px; }
  .nav { gap: 8px; }
  .nav > a:not(.btn) { display: none; }
  .nav .btn { min-height: 44px; padding: 10px 13px; font-size: .78rem; }
  .apply-hero { padding-block: 30px 52px; }
  .story-panel { display: block; }
  .story-copy { padding: 34px 26px; }
  .story-copy h1 { font-size: clamp(3rem, 14.5vw, 4.8rem); }
  .story-media { min-height: 240px; clip-path: none; }
  .form-card { padding: 34px 22px; }
  .form-intro { grid-template-columns: 1fr; gap: 14px; }
  .form-badge { justify-self: start; }
  .fields, .section-head, .privacy-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .submit-area { grid-template-columns: 1fr; }
  .submit-fallback { text-align: left; }
  .support-grid, .process-grid { grid-template-columns: 1fr; }
  .support-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.17); }
  .support-item:first-child { border-top: 0; }
  .section { padding-block: 64px; }
  .cta-inner { display: grid; }
  .cta-actions { display: grid; width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: grid; gap: 12px; }
  .mobile-actions {
    position: fixed;
    z-index: 220;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px;
    color: var(--white);
    background: rgba(7,31,26,.97);
    border-top: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(12px);
  }
  .mobile-actions a { min-height: 48px; display: grid; place-items: center; color: var(--white); font-size: .82rem; font-weight: 850; text-decoration: none; }
  .mobile-actions a:last-child { color: var(--forest-950); background: var(--lime-500); }
  .success-modal { padding: 14px; }
  .success-actions { display: grid; }
  .success-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .story-copy { padding-inline: 22px; }
  .form-card { padding-inline: 18px; }
  .fields { gap: 17px; }
  .consent-row { grid-template-columns: 22px 1fr; gap: 10px; }
}

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

@media print {
  .utility-bar, .site-header, .mobile-actions, .cta-band, .site-footer, .story-media, .apply-submit { display: none !important; }
  body { background: #fff; }
  .apply-hero { padding: 0; background: #fff; }
  .apply-layout { display: block; }
  .story-panel { color: #000; background: #fff; box-shadow: none; }
  .story-copy h1, .story-copy .lead, .story-points li { color: #000; }
  .form-card { box-shadow: none; border: 1px solid #999; }
}
