:root {
  --ink: #071421;
  --ink-2: #0b2035;
  --navy: #1f3c61;
  --forest: #2e5a3b;
  --ice: #c7d9e9;
  --gold: #c99c2a;
  --gold-light: #e1bd5d;
  --paper: #eef2f0;
  --muted: #99a8ae;
  --line: rgba(255, 255, 255, 0.14);
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.sr-only {
  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;
  z-index: 1000;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  color: white;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, height .25s ease;
}
.site-header.scrolled {
  height: 4.75rem;
  background: rgba(7, 20, 33, .94);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.5));
}
.brand-copy { display: grid; line-height: 1.05; text-transform: uppercase; letter-spacing: .09em; }
.brand-copy strong { color: var(--gold-light); font-size: .95rem; }
.brand-copy span { margin-top: .3rem; color: var(--ice); font-size: .7rem; font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.site-nav a {
  position: relative;
  color: #d8e2e8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.55rem;
  height: 2px;
  background: var(--gold);
  transition: right .2s ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.active::after { right: 0; }
.nav-cta { padding: .7rem 1.15rem; border: 1px solid var(--gold); color: var(--gold-light) !important; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--gold); color: var(--ink) !important; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: 2rem;
  padding: 8.5rem var(--pad) 6rem;
  color: white;
  background:
    linear-gradient(112deg, rgba(7,20,33,.98) 0 53%, rgba(10,28,45,.91) 53.1% 100%),
    var(--ink);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: .55rem;
  background: linear-gradient(90deg, var(--ice) 0 34%, var(--gold) 34% 37%, var(--forest) 37%);
}
.hero::after {
  content: "KODIAK";
  position: absolute;
  z-index: -2;
  left: -1vw;
  bottom: 1rem;
  color: rgba(255,255,255,.025);
  font-size: clamp(9rem, 23vw, 25rem);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .68;
  pointer-events: none;
}
.hero-lines {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .15;
  background-image: repeating-linear-gradient(122deg, transparent 0 48px, rgba(199,217,233,.16) 49px 50px);
  mask-image: linear-gradient(90deg, transparent, black 60%, black);
}
.hero-content { max-width: 710px; }
.eyebrow {
  margin: 0 0 1.3rem;
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow span { margin-right: 1rem; color: var(--ice); }
.hero h1, .section-heading h2, .doctrine-intro h2, .enlist-copy h2 {
  margin: 0;
  font-size: clamp(3.6rem, 7.2vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .84;
  text-transform: uppercase;
}
.hero h1 span { display: block; color: var(--ice); font-size: .59em; letter-spacing: -.025em; }
.hero-lede { max-width: 590px; margin: 2rem 0 0; color: #b8c6cd; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.button {
  min-height: 3.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: .85rem 1.35rem;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: var(--gold-light); }
.button-quiet { color: #e7ecef; }
.button-quiet:hover, .button-quiet:focus-visible { border-color: var(--ice); background: rgba(255,255,255,.06); }
.hero-index { display: flex; align-items: center; gap: .8rem; margin-top: 3rem; color: #708594; font: 700 .7rem/1 "Courier New", monospace; letter-spacing: .13em; }
.index-line { width: 3.5rem; height: 1px; background: #456078; }

.hero-emblem { position: relative; justify-self: center; width: min(42vw, 650px); }
.hero-emblem img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 2rem 2.8rem rgba(0,0,0,.52)); }
.emblem-halo {
  position: absolute;
  z-index: 1;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(201,156,42,.28);
  box-shadow: 0 0 0 3rem rgba(199,217,233,.018), 0 0 0 6rem rgba(199,217,233,.012);
}
.hero-emblem p {
  position: absolute;
  z-index: 3;
  right: -1rem;
  bottom: 8%;
  margin: 0;
  padding: .8rem 1rem;
  color: var(--ice);
  background: rgba(7,20,33,.88);
  border-left: 3px solid var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-emblem p span { display: block; color: #8094a2; font-size: .62rem; }
.scroll-cue { position: absolute; left: var(--pad); bottom: 2rem; display: flex; align-items: center; gap: .8rem; color: #6f8594; font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.scroll-line { width: 3rem; height: 1px; background: currentColor; }

.briefing-bar {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) 3fr;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  background: white;
  box-shadow: 0 18px 45px rgba(7,20,33,.09);
}
.briefing-label { display: flex; align-items: center; gap: .7rem; padding: 1.5rem; color: var(--forest); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; border-right: 1px solid #dce2e0; }
.signal { display: inline-block; flex: 0 0 auto; width: .55rem; height: .55rem; background: var(--gold); box-shadow: 0 0 0 .25rem rgba(201,156,42,.16); border-radius: 50%; }
.briefing-bar dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.briefing-bar dl div { padding: 1.25rem 1.4rem; border-right: 1px solid #e1e6e4; }
.briefing-bar dl div:last-child { border-right: 0; }
.briefing-bar dt { color: #7a898c; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.briefing-bar dd { margin: .2rem 0 0; color: var(--ink); font-size: .92rem; font-weight: 900; text-transform: uppercase; }

.section { padding: clamp(6rem, 10vw, 10rem) var(--pad); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-kicker { display: flex; align-items: center; gap: .9rem; margin-bottom: clamp(3rem, 6vw, 5rem); color: #526366; font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-kicker::after { content: ""; width: 4rem; height: 1px; background: #a7b3b1; }
.section-kicker span { color: var(--gold); font-family: "Courier New", monospace; }
.section-kicker.light { color: #8ea0aa; }
.section-kicker.light::after { background: rgba(255,255,255,.2); }

.mission-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 8vw, 8rem); }
.section-heading h2 { color: var(--ink); font-size: clamp(3rem, 6vw, 6rem); }
.mission-copy { align-self: end; max-width: 580px; color: #526164; }
.mission-copy .lead { color: var(--ink); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; line-height: 1.45; }
.mission-copy p:last-child { margin-top: 1.5rem; }
.flag-feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 0; margin-top: clamp(4rem, 8vw, 7rem); background: var(--ink); color: white; }
.flag-frame { min-height: 430px; overflow: hidden; }
.flag-frame img { width: 100%; height: 100%; object-fit: cover; }
.flag-feature figcaption { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(2rem, 4vw, 4rem); border-left: .45rem solid var(--gold); }
.flag-feature figcaption span { color: var(--gold-light); font-size: .7rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.flag-feature figcaption strong { margin-top: .8rem; font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: 1; text-transform: uppercase; }
.flag-feature figcaption p { margin: 1rem 0 0; color: #aebdc5; }

.doctrine-section { color: white; background: var(--ink); }
.doctrine-intro { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: clamp(3rem, 8vw, 8rem); }
.doctrine-intro h2 { max-width: 800px; font-size: clamp(3rem, 6vw, 6.2rem); }
.doctrine-intro > p { color: #9cafb8; font-size: 1.1rem; }
.doctrine-list { margin-top: 5rem; border-top: 1px solid var(--line); }
.doctrine-card { position: relative; display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: start; padding: 2.2rem 0; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.doctrine-card:hover { padding-left: 1rem; padding-right: 1rem; background: rgba(255,255,255,.025); }
.card-number { color: var(--gold); font: 700 .75rem/1.5 "Courier New", monospace; }
.doctrine-card h3 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.45rem); text-transform: uppercase; }
.doctrine-card p { max-width: 620px; margin: .55rem 0 0; color: #94a7b0; }
.card-mark { color: var(--gold); font-size: 1.5rem; }

.standards-section { background: #dfe6e4; }
.standards-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.section-heading.compact h2 { font-size: clamp(2.7rem, 4.8vw, 5rem); }
.operation-cycle { margin: 0; padding: 0; list-style: none; border-top: 1px solid #aeb9b6; }
.operation-cycle li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.4rem; padding: 1.5rem 0; border-bottom: 1px solid #aeb9b6; }
.operation-cycle > li > span { color: var(--gold); font: 700 .75rem/1.9 "Courier New", monospace; }
.operation-cycle h3 { margin: 0; font-size: 1.35rem; text-transform: uppercase; }
.operation-cycle p { margin: .35rem 0 0; color: #5d6b6d; }

.enlist-section { position: relative; overflow: hidden; padding: clamp(6rem, 10vw, 10rem) var(--pad); color: white; background: linear-gradient(115deg, #1e4931, var(--forest)); }
.enlist-section::before { content: ""; position: absolute; inset: 0 61% 0 0; background: var(--ink); clip-path: polygon(0 0, 74% 0, 100% 50%, 74% 100%, 0 100%); opacity: .94; }
.enlist-section > *:not(.enlist-watermark) { position: relative; z-index: 2; max-width: var(--max); margin-left: auto; margin-right: auto; }
.enlist-watermark { position: absolute; right: -1rem; bottom: -4rem; color: rgba(255,255,255,.04); font-size: clamp(12rem, 32vw, 35rem); font-weight: 900; line-height: .7; letter-spacing: -.1em; }
.enlist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.enlist-copy h2 { font-size: clamp(3.2rem, 6vw, 6.2rem); }
.enlist-copy > p:last-child { max-width: 620px; margin-top: 2rem; color: #c8d5d1; font-size: 1.1rem; }
.requirements { padding: clamp(2rem, 4vw, 3.2rem); background: rgba(7,20,33,.88); box-shadow: 0 2rem 5rem rgba(0,0,0,.2); }
.requirements h3 { margin: 0 0 1.8rem; color: var(--gold-light); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; }
.requirements ul { margin: 0; padding: 0; list-style: none; }
.requirements li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .75rem; padding: 1rem 0; color: #e3eaed; border-top: 1px solid var(--line); }
.requirements li span { color: var(--gold); font: 700 .7rem/2.3 "Courier New", monospace; }
.recruitment-note { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.recruitment-note p { margin: 0; color: #9eb0b9; font-size: .9rem; }
.recruitment-note strong { color: white; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem var(--pad); color: #91a2aa; background: #030b12; border-top: 1px solid rgba(255,255,255,.08); font-size: .74rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { width: 3.7rem; height: 3.7rem; object-fit: contain; }
.footer-brand div { display: grid; line-height: 1.3; }
.footer-brand strong { color: white; text-transform: uppercase; }
.footer-brand span { color: var(--gold); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer > p { margin: 0; text-align: center; }
.site-footer > a { justify-self: end; color: var(--ice); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr .72fr; }
  .hero-emblem { width: min(42vw, 500px); }
  .briefing-bar { grid-template-columns: 1fr; }
  .briefing-label { border-right: 0; border-bottom: 1px solid #dce2e0; }
  .briefing-bar dl { grid-template-columns: repeat(2, 1fr); }
  .briefing-bar dl div:nth-child(2) { border-right: 0; }
  .briefing-bar dl div:nth-child(-n+2) { border-bottom: 1px solid #e1e6e4; }
  .mission-grid, .doctrine-intro, .standards-layout, .enlist-grid { grid-template-columns: 1fr; }
  .mission-copy { max-width: 700px; }
  .flag-feature { grid-template-columns: 1fr; }
  .flag-feature figcaption { border-left: 0; border-top: .45rem solid var(--gold); }
  .enlist-section::before { inset: 0 0 63% 0; clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > p { grid-row: 2; grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 760px) {
  .enlist-watermark { right: -4.5rem; }
  .site-header { height: 4.75rem; }
  .brand img { width: 2.65rem; height: 2.65rem; }
  .menu-toggle {
    display: grid;
    place-content: center;
    gap: .45rem;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    color: white;
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
  }
  .menu-toggle > span:not(.sr-only) { display: block; width: 1.25rem; height: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: 0;
    padding: .75rem var(--pad) 1.5rem;
    background: rgba(7,20,33,.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .nav-cta { margin-top: .75rem; padding: .8rem 1rem !important; text-align: center; border: 1px solid var(--gold) !important; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 8rem; padding-bottom: 7rem; }
  .hero-content { position: relative; z-index: 4; }
  .hero-emblem { width: min(88vw, 480px); margin: -1.5rem auto 0; opacity: .9; }
  .hero-emblem p { right: 0; }
  .scroll-cue { display: none; }
  .hero-index { margin-top: 2.2rem; }
  .briefing-bar { padding: 0; }
  .briefing-bar dl { grid-template-columns: 1fr; }
  .briefing-bar dl div { border-right: 0; border-bottom: 1px solid #e1e6e4; }
  .briefing-bar dl div:nth-child(3) { border-bottom: 1px solid #e1e6e4; }
  .flag-frame { min-height: 260px; }
  .doctrine-card { grid-template-columns: 2.4rem 1fr; }
  .card-mark { display: none; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p { grid-row: auto; grid-column: auto; }
  .site-footer > a { justify-self: start; }
}

@media (max-width: 460px) {
  .brand-copy span { display: none; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 4.7rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .eyebrow span { display: block; margin: 0 0 .35rem; }
  .section-heading h2, .doctrine-intro h2, .enlist-copy h2 { overflow-wrap: anywhere; }
}

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