:root {
  --bg: #f5f7fb;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #5c667a;
  --line: #d9e0ec;
  --blue: #1556a8;
  --blue-dark: #0e3770;
  --copper: #b86528;
  --green: #2f7d62;
  --shadow: 0 18px 46px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  --font-body: "Inter", Arial, sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 86, 168, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(21, 86, 168, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
}

a {
  color: var(--blue);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

main {
  padding-bottom: 56px;
}

.hero {
  background:
    linear-gradient(120deg, rgba(21, 86, 168, 0.92), rgba(14, 55, 112, 0.9)),
    #123c75;
  color: white;
  padding: clamp(28px, 5vw, 68px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero .eyebrow {
  color: #aee5d3;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  overflow-wrap: normal;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.55rem);
}

h3 {
  font-size: 1.05rem;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.2vw, 1.18rem);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  padding: 6px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.9rem;
}

.hero-photo {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-photo img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: white;
}

figcaption {
  padding: 11px 12px 13px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.9rem;
}

.section-band,
.section-block {
  margin-top: 28px;
}

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

.intro-grid article,
.text-panel,
.result-card,
.pdf-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2vw, 24px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
}

.intro-grid p,
.text-panel p,
.result-card p,
.application-card p,
.section-intro {
  color: var(--muted);
}

.intro-grid p,
.text-panel p,
.result-card p,
.application-card p {
  margin: 10px 0 0;
}

.section-block {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.media-card img {
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  background: #f7f9fd;
}

.content-grid .media-card img {
  min-height: 360px;
  object-fit: contain;
}

.image-row,
.gallery-grid,
.application-grid,
.results-grid,
.pdf-grid {
  display: grid;
  gap: 16px;
}

.image-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.image-row .media-card img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.section-intro {
  max-width: 820px;
  margin: 0 0 18px;
}

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

.gallery-grid .media-card img {
  aspect-ratio: 4 / 3;
}

.gallery-grid .wide {
  grid-column: span 2;
}

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

.result-card {
  border-top: 4px solid var(--copper);
}

.media-card.full {
  margin-top: 16px;
}

.media-card.full img {
  max-height: 720px;
  object-fit: contain;
}

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

.application-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--paper);
}

.application-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #f7f9fd;
}

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

.pdf-card {
  padding: 14px;
}

.pdf-card h3 {
  margin-bottom: 12px;
}

.pdf-card iframe {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fd;
}

.pdf-card a,
.source-list a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border-radius: 6px;
  padding: 7px 12px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-list a {
  margin-top: 0;
  background: #eef4ff;
  color: var(--blue-dark);
  border: 1px solid #c8d8f0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding: 20px 0;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .intro-grid,
  .results-grid,
  .pdf-grid {
    grid-template-columns: 1fr;
  }

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

  .application-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
  }

  .top-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .section-block {
    padding: 18px;
  }

  .image-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .wide {
    grid-column: auto;
  }

  .application-card {
    grid-template-columns: 1fr;
  }

  .pdf-card iframe {
    height: 300px;
  }
}
