:root {
  --ink: #14212a;
  --navy: #173653;
  --steel: #465760;
  --paper: #f7f3ea;
  --white: #ffffff;
  --timber: #c57938;
  --clay: #8f4a2c;
  --moss: #4d6f58;
  --line: rgba(20, 33, 42, 0.16);
  --shadow: 0 18px 50px rgba(20, 33, 42, 0.18);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(20, 33, 42, 0.86);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.brand-name {
  font-size: 1.06rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  height: calc(100vh - 132px);
  max-height: 720px;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 25, 32, 0.88) 0%, rgba(13, 25, 32, 0.62) 42%, rgba(13, 25, 32, 0.16) 100%),
    linear-gradient(0deg, rgba(13, 25, 32, 0.45) 0%, rgba(13, 25, 32, 0) 50%);
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.hero-content {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 78px;
}

.eyebrow,
.section-kicker,
.proof-label {
  margin: 0 0 12px;
  color: var(--timber);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero .eyebrow {
  color: #f5b16d;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.95;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.22rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.career-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  overflow-wrap: anywhere;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: #783d25;
  border-color: #783d25;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.58);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--clay);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band > div {
  min-height: 116px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  font-size: 1.02rem;
}

.intro-band span {
  max-width: 330px;
  margin-top: 4px;
  color: var(--steel);
}

.section {
  padding: 88px max(24px, calc((100vw - var(--max)) / 2));
}

.section-light {
  background: var(--white);
}

.section-copy {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-copy h2,
.split-copy h2,
.contact-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: 2.45rem;
  line-height: 1.08;
}

.section-copy p:not(.section-kicker),
.split-copy p,
.contact-copy p {
  margin: 0;
  color: var(--steel);
  font-size: 1.05rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-index {
  display: block;
  margin-bottom: 34px;
  color: var(--clay);
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.service-card p {
  margin: 0;
  color: var(--steel);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.split-copy p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.proof-panel {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

.proof-panel > div {
  padding: 26px;
  background: #20313b;
}

.proof-panel strong {
  display: block;
  font-size: 1.32rem;
  line-height: 1.25;
}

.careers-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.72fr);
  gap: 40px;
  align-items: center;
  background: var(--paper);
}

.careers-section .section-copy {
  display: block;
  margin: 0;
}

.career-actions {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.career-actions p {
  margin: 6px 0 0;
  color: var(--steel);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
  background: var(--white);
}

.contact-copy {
  position: sticky;
  top: 104px;
}

.contact-copy p:not(.section-kicker) {
  margin-top: 16px;
}

.contact-form,
.application-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

.full {
  grid-column: 1 / -1;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(20, 33, 42, 0.22);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(143, 74, 44, 0.18);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
}

legend {
  padding: 0 6px;
  font-weight: 900;
}

.field-label {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.required {
  color: var(--clay);
}

.hint {
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-note {
  padding: 16px;
  border: 1px solid rgba(77, 111, 88, 0.32);
  border-radius: 8px;
  background: rgba(77, 111, 88, 0.1);
  color: var(--steel);
  font-weight: 700;
}

.submit-status {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

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

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--steel);
}

.choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 3px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  margin: 0;
}

.application-page {
  background: var(--white);
}

.page-hero {
  padding: 96px max(24px, calc((100vw - var(--max)) / 2)) 64px;
  background: var(--ink);
  color: var(--white);
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.12rem;
}

.application-section {
  background: var(--paper);
}

.application-form {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
}

.form-section-title {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.form-section-title:first-child {
  padding-top: 0;
  border-top: 0;
}

.form-section-title h2 {
  margin: 0;
  font-size: 1.22rem;
}

@media (max-width: 980px) {
  .hero h1,
  .page-hero h1 {
    font-size: 3.4rem;
  }

  .intro-band,
  .section-copy,
  .split-section,
  .careers-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-copy {
    gap: 16px;
    align-items: start;
  }

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

  .contact-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero {
    min-height: 520px;
    height: auto;
  }

  .hero-content {
    width: min(100% - 32px, var(--max));
    padding: 78px 0 58px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.85rem;
  }

  .hero p:not(.eyebrow) {
    font-size: 1.08rem;
  }

  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-copy h2,
  .split-copy h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .service-grid,
  .field-grid,
  .checks {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-index {
    margin-bottom: 18px;
  }

  .contact-form,
  .application-form,
  .career-actions {
    padding: 18px;
  }

  .site-footer {
    flex-direction: column;
    padding-left: 18px;
    padding-right: 18px;
  }
}
