:root {
  --blue-950: #07163c;
  --blue-900: #10245c;
  --blue-800: #173579;
  --blue-700: #1c4aa4;
  --orange-500: #f59a23;
  --orange-600: #e27d19;
  --ink: #162033;
  --muted: #697386;
  --line: #dfe5ee;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --smoke: #e9eef6;
  --shadow: 0 18px 45px rgba(8, 20, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 229, 238, 0.82);
  box-shadow: 0 8px 28px rgba(8, 20, 48, 0.08);
  backdrop-filter: blur(14px);
  transition:
    min-height 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  min-height: 66px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(8, 20, 48, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 128px;
}

.brand img {
  width: 128px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  min-height: 36px;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--blue-900);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--orange-500);
  color: #fff;
}

.office-hour {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(28, 74, 164, 0.16);
  border-radius: 6px;
  color: var(--blue-800);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--blue-900);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle span + span {
  margin-top: -12px;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 78vh;
  overflow: hidden;
  isolation: isolate;
  padding: 112px 0 48px;
  background: var(--blue-950);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 22, 60, 0.86), rgba(16, 36, 92, 0.68) 42%, rgba(7, 22, 60, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 22, 60, 0.3), rgba(7, 22, 60, 0.02) 52%, rgba(7, 22, 60, 0.22));
}

.hero-content {
  width: min(720px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1160px) / 2));
  color: #fff;
}

.anniversary-mark {
  width: 132px;
  height: auto;
  margin-bottom: 18px;
  border-radius: 6px;
  box-shadow: 0 15px 42px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-500);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue-700);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  max-width: 720px;
  font-size: 4.1rem;
  font-weight: 950;
  text-transform: uppercase;
}

h2 {
  font-size: 2.55rem;
  font-weight: 920;
}

h3 {
  font-size: 1.08rem;
  font-weight: 880;
}

.hero-copy {
  max-width: 610px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
}

.hero-actions,
.department-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.15;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease,
    border-color 170ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(8, 20, 48, 0.18);
}

.button.primary {
  background: var(--orange-500);
  color: #fff;
}

.button.primary:hover {
  background: var(--orange-600);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.button.dark {
  background: var(--blue-900);
  color: #fff;
}

.button.outline {
  border-color: var(--blue-800);
  color: var(--blue-900);
}

.section-band {
  background: var(--soft);
}

.intro,
.services,
.operations,
.video,
.career {
  padding: 92px 0;
}

.intro-grid,
.operations-grid,
.career-grid,
.contact-grid,
.sop-grid {
  display: grid;
  align-items: center;
  gap: 48px;
}

.intro-grid,
.operations-grid,
.career-grid,
.contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.intro-copy p,
.section-heading p,
.operations-copy p,
.career-copy p,
.sop p,
.site-footer p {
  color: var(--muted);
}

.intro-copy p:not(.eyebrow),
.operations-copy p,
.career-copy p,
.sop p {
  margin: 20px 0 0;
  font-size: 1.02rem;
}

.intro-media img,
.map-panel img,
.career-media img,
.contact-media img {
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.intro-media img {
  aspect-ratio: 16 / 9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
  box-shadow: 0 18px 45px rgba(8, 20, 48, 0.08);
}

.stats-grid div {
  min-height: 128px;
  padding: 24px;
  background: #fff;
}

.stats-grid strong {
  display: block;
  color: var(--orange-500);
  font-size: 2.7rem;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--blue-900);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vision {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 112px 0;
  color: #fff;
  background: var(--blue-950);
}

.vision > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  z-index: -2;
}

.vision::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 22, 60, 0.92), rgba(16, 36, 92, 0.72), rgba(245, 154, 35, 0.18));
}

.vision-content {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 56px;
  align-items: center;
}

.mission-list {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.mission-list h3 {
  margin-bottom: 18px;
  color: #fff;
  text-transform: uppercase;
}

.mission-list ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.88);
}

.mission-list li + li {
  margin-top: 10px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
}

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

.service-card,
.project-card,
.news-card,
.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(8, 20, 48, 0.09);
}

.service-card img,
.project-card img,
.news-card img,
.video-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.service-card img,
.video-card img {
  aspect-ratio: 16 / 9;
}

.service-card:hover img,
.project-card:hover img,
.news-card:hover img,
.video-card:hover img {
  transform: scale(1.04);
}

.service-card h3 {
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--blue-900);
}

.projects,
.blog,
.sop,
.contact {
  padding: 92px 0;
  background: var(--blue-900);
  color: #fff;
}

.projects .section-heading p,
.blog .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.project-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr 0.82fr;
  gap: 20px;
  align-items: stretch;
}

.project-card {
  min-height: 360px;
  background: var(--blue-950);
}

.project-card img {
  height: 100%;
  min-height: 360px;
}

.project-card::after,
.news-card::after,
.video-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(7, 22, 60, 0.82), rgba(7, 22, 60, 0));
  pointer-events: none;
}

.project-card div {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 1;
}

.project-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--orange-500);
  font-weight: 900;
}

.project-card h3 {
  color: #fff;
  text-transform: uppercase;
}

.operations-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.unit-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.unit-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}

.map-panel img {
  aspect-ratio: 16 / 9;
  background: #fff;
}

.blog {
  background:
    linear-gradient(180deg, rgba(7, 22, 60, 0.94), rgba(16, 36, 92, 0.96)),
    var(--blue-900);
}

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

.news-card {
  min-height: 360px;
  color: #fff;
}

.news-card img {
  height: 360px;
}

.news-card h3 {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  max-width: calc(100% - 36px);
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
}

.video {
  background: #eef3f8;
}

.video-card {
  color: #fff;
  background: var(--blue-950);
}

.video-card span {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-card span span {
  position: static;
}

.sop {
  background: #fff;
  color: var(--ink);
}

.sop-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
}

.department-links {
  justify-content: flex-end;
  margin-top: 0;
}

.career-media img {
  aspect-ratio: 16 / 9;
}

.contact {
  background: var(--blue-950);
}

.contact-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.contact-copy address {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.contact-hour {
  margin: 18px 0 0;
  color: var(--orange-500);
  font-weight: 850;
  text-transform: uppercase;
}

.social-strip {
  width: min(580px, 100%);
  margin-top: 24px;
  padding: 10px 0;
}

.contact-media img {
  aspect-ratio: 18 / 7;
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

.site-footer {
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px 0;
}

.site-footer img {
  width: 148px;
}

.site-footer p {
  max-width: 420px;
  margin: 16px 0 0;
}

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

.site-footer nav a {
  color: var(--blue-900);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.copyright {
  margin: 0;
  padding: 17px 20px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 550ms ease,
    transform 550ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 78px 18px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    text-align: center;
  }

  .office-hour {
    display: none;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.18rem;
  }

  .intro,
  .services,
  .operations,
  .video,
  .career,
  .projects,
  .blog,
  .sop,
  .contact {
    padding: 72px 0;
  }

  .intro-grid,
  .operations-grid,
  .career-grid,
  .contact-grid,
  .sop-grid,
  .vision-content {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .services-grid,
  .news-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-card,
  .project-card img,
  .news-card,
  .news-card img {
    min-height: 300px;
    height: 300px;
  }

  .department-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand,
  .brand img {
    width: 112px;
  }

  .site-nav {
    inset: 68px 10px auto;
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav a {
    min-height: 40px;
    padding: 12px 8px;
    font-size: 0.74rem;
  }

  .hero {
    min-height: 76vh;
    padding: 92px 0 42px;
  }

  .hero-content {
    width: min(100% - 28px, 720px);
    margin-inline: auto;
  }

  .anniversary-mark {
    width: 112px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.88rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-actions,
  .department-links {
    display: grid;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .stats-grid,
  .services-grid,
  .news-grid,
  .video-grid,
  .unit-strip {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    min-height: 112px;
  }

  .vision {
    padding: 82px 0;
  }

  .mission-list {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
