:root {
  --navy-900: #0a1628;
  --navy-800: #0f2038;
  --navy-700: #172d4d;
  --line: #24406a;
  --red: #c8102e;
  --red-hover: #e0233f;
  --paper: #f3f1ec;
  --text: #e8ecf2;
  --muted: #9fb0c8;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--red-hover); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.eyebrow {
  margin: 0 0 .5rem;
  font: 500 .8rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red-hover);
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 2rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(10 22 40 / .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(255 255 255 / .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font: 700 1.25rem/1 var(--sans); text-decoration: none; letter-spacing: .02em; }
.brand-dot { color: var(--red); }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a {
  font: 500 .875rem/1 var(--mono);
  text-decoration: none;
  color: var(--muted);
  transition: color .15s;
}
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 22 40 / .94) 0%, rgb(10 22 40 / .78) 45%, rgb(10 22 40 / .35) 100%),
    linear-gradient(0deg, var(--navy-900) 0%, transparent 35%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-top: 4rem;
  padding-bottom: 5rem;
}
@media (min-width: 760px) {
  .hero-inner { flex-direction: row; align-items: center; gap: 2.5rem; }
}
.headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 3px var(--red), 0 12px 40px rgb(0 0 0 / .45);
  flex-shrink: 0;
}
@media (min-width: 760px) { .headshot { width: 180px; height: 180px; } }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); font-weight: 700; }
.lede { max-width: 34ch; margin: 1rem 0 2rem; font-size: 1.15rem; color: #cdd7e5; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font: 500 .9rem/1 var(--mono);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { border: 1px solid rgb(255 255 255 / .35); }
.btn-ghost:hover { border-color: var(--paper); }

/* Thin red / white / blue rule under the hero */
.stripe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(180deg, var(--red) 0 2px, var(--paper) 2px 4px, var(--navy-700) 4px 6px);
}

/* Sections */
.section { padding: 5rem 0; }

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: #34588c; border-top-color: var(--red-hover); }
.card h3 { font-size: 1.2rem; }
.card p { margin: .6rem 0 1rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.tags li {
  padding: .25rem .55rem;
  font: 400 .75rem/1.2 var(--mono);
  color: #c7d3e6;
  background: var(--navy-700);
  border-radius: 3px;
}
.links { display: flex; gap: 1rem; margin-top: auto; }
.links a {
  font: 500 .85rem/1 var(--mono);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
}
.links a::after { content: " ↗"; color: var(--muted); }
.links a:hover { color: #fff; border-bottom-color: var(--red-hover); }

.teaser { max-width: 420px; margin-top: 2rem; }
.teaser .status {
  margin: 0 0 .6rem;
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.teaser .status::before { content: "● "; color: var(--red-hover); }
.teaser h3 { font-size: 1.4rem; }
.teaser p:last-child { margin-bottom: 0; }

/* Flags band */
.band { position: relative; margin: 0 0 3rem; }
.band img { width: 100%; height: clamp(160px, 24vw, 340px); object-fit: cover; object-position: 60% 50%; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, transparent 25%, transparent 75%, var(--navy-900) 100%);
}

/* About */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about p:not(.eyebrow) { max-width: 60ch; color: #cdd7e5; font-size: 1.05rem; }
.about-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
@media (min-width: 860px) {
  .about { grid-template-columns: 1fr 360px; gap: 4rem; }
  .about-img { max-height: 480px; }
}

/* Footer */
.site-footer { background: var(--navy-800); border-top: 1px solid var(--line); padding: 1.75rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.social { display: flex; gap: 1.25rem; }
.social a { font: 500 .9rem/1 var(--mono); color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--text); }
.fineprint { font: 400 .75rem/1 var(--mono); color: #6f819c; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
