:root {
  --bg: #fffdf4;
  --bg-alt: #fff8d9;
  --bg-soft: #fffef8;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 252, 237, 0.97);
  --line: rgba(184, 151, 49, 0.2);
  --text: #32280f;
  --muted: #756a4e;
  --accent: #d9a316;
  --accent-strong: #f0c94f;
  --success: #237b4b;
  --warn: #ad7800;
  --danger: #b84f39;
  --shadow: 0 24px 60px rgba(180, 145, 47, 0.14);
  --max-width: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 201, 79, 0.28), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(255, 238, 168, 0.45), transparent 26%),
    linear-gradient(180deg, #fffef9 0%, #fff8df 55%, #fffdf4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 151, 49, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 151, 49, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
  pointer-events: none;
}

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

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

audio {
  display: none;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  margin: 18px 0 30px;
  background: rgba(255, 254, 246, 0.9);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  background: #fff;
  border: 1px solid rgba(184, 151, 49, 0.28);
  box-shadow: 0 10px 24px rgba(180, 145, 47, 0.16);
}

.brand-logo-basa {
  width: 124px;
  height: 40px;
  padding: 5px 10px;
  border-radius: 14px;
  background: #ffffff;
  object-fit: contain;
  object-position: center;
}

.brand-logo-pk {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: #5a4306;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #6f6241;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(240, 201, 79, 0.28);
  color: #4d3908;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 10px 16px;
  font: inherit;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(135deg, rgba(240, 201, 79, 0.22), transparent 38%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(255, 249, 225, 0.94));
  box-shadow: var(--shadow);
}

.hero {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  min-height: 72vh;
}

.page-main {
  display: grid;
  gap: 28px;
}

.page-hero {
  min-height: 280px;
  align-content: end;
}

.hero h1,
.page-hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #5b4100;
}

.page-hero h1,
.section-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.hero-text,
.page-hero p,
.feature-card p,
.mission-entry p,
.program-card p,
.team-card p,
.facility-card p,
.section-text,
.facility-callout p,
.hotass-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b88900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #392802;
  box-shadow: 0 18px 40px rgba(240, 201, 79, 0.38);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-panel,
.status-card,
.feature-card,
.mission-snapshot,
.mission-entry,
.program-card,
.team-card,
.facility-card,
.facility-metrics article,
.gallery-card,
.hotass-copy {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-panel {
  padding: 22px;
}

.hero-photo {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.hero-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hero-photo figcaption {
  padding: 10px 14px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-card {
  padding: 24px;
  margin-bottom: 18px;
  background: linear-gradient(145deg, rgba(240, 201, 79, 0.22), rgba(255, 253, 243, 0.96));
}

.status-label,
.status-note,
.status-grid span,
.program-label {
  color: #8b7340;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

.status-value {
  margin: 10px 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  color: #5a4306;
}

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

.status-grid article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 249, 228, 0.8);
}

.status-grid strong {
  display: block;
  margin-top: 10px;
  font-weight: 500;
}

.section {
  padding: 26px 0 6px;
}

.section-dark {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(180deg, rgba(255, 252, 238, 0.96), rgba(255, 246, 205, 0.9));
}

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

.feature-grid,
.timeline-preview,
.program-grid,
.team-grid,
.facility-layout,
.hotass-showcase {
  display: grid;
  gap: 20px;
}

.feature-grid,
.timeline-preview,
.program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.mission-snapshot,
.program-card,
.team-card,
.facility-card,
.mission-entry,
.gallery-card,
.hotass-copy {
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature-card h3,
.mission-snapshot h3,
.program-card h2,
.team-card h2,
.facility-card h2,
.mission-entry h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.9rem;
  color: #583f03;
}

.mission-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.mission-tag.success {
  background: rgba(35, 123, 75, 0.12);
  color: var(--success);
}

.mission-tag.nominal {
  background: rgba(217, 163, 22, 0.16);
  color: #9c7300;
}

.mission-tag.caution {
  background: rgba(173, 120, 0, 0.14);
  color: var(--warn);
}

.mission-tag.danger {
  background: rgba(184, 79, 57, 0.14);
  color: var(--danger);
}

.facility-callout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.facility-metrics {
  display: grid;
  gap: 14px;
}

.facility-metrics article {
  padding: 22px;
}

.facility-metrics strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  color: #5a4306;
}

.mission-list {
  display: grid;
  gap: 18px;
}

.mission-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.spec-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

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

.team-card:nth-child(5) {
  grid-column: span 2;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: #b88900;
}

.hotass-showcase {
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: stretch;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.cinematic-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cinematic-card img,
.feature-video {
  display: block;
  width: 100%;
  min-height: 340px;
  object-fit: cover;
}

.audio-player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(320px, calc(100vw - 24px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 238, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.audio-player__label {
  color: #8b7340;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.audio-player__title {
  margin-top: 6px;
  font-weight: 700;
  color: #5a4306;
}

.audio-player__controls {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.audio-player__button {
  border: 1px solid var(--line);
  background: #fffef8;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

@media (max-width: 960px) {
  .hero,
  .feature-grid,
  .timeline-preview,
  .program-grid,
  .team-grid,
  .facility-layout,
  .facility-callout,
  .hotass-showcase {
    grid-template-columns: 1fr;
  }

  .team-card:nth-child(5) {
    grid-column: auto;
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 30px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero,
  .page-hero {
    padding: 34px 24px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 8px;
  }

  .site-nav.open {
    display: flex;
  }

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

  .brand {
    align-items: flex-start;
    width: 100%;
    flex-wrap: wrap;
  }

  .brand-copy small {
    max-width: 150px;
  }

  .brand-logo {
    max-width: 100%;
  }

  .brand-logo-basa {
    width: 98px;
    height: 34px;
  }

  .brand-logo-pk {
    width: 42px;
    height: 42px;
  }

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

  .mission-head,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .gallery-card img {
    min-height: 220px;
  }

  .audio-player {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

@media (max-width: 540px) {
  .topbar {
    padding: 14px 14px 18px;
  }

  .brand-copy strong {
    font-size: 1.25rem;
  }

  .brand-copy small {
    max-width: 200px;
    font-size: 0.75rem;
  }

  .hero,
  .page-hero {
    padding: 26px 18px;
    gap: 20px;
  }

  .hero h1,
  .page-hero h1,
  .section-heading h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .feature-card,
  .mission-snapshot,
  .program-card,
  .team-card,
  .facility-card,
  .mission-entry,
  .gallery-card,
  .hotass-copy {
    padding: 18px;
  }

  .site-shell {
    width: min(calc(100% - 14px), var(--max-width));
  }

  .cinematic-card img,
  .feature-video {
    min-height: 220px;
  }

  .audio-player__controls {
    flex-direction: column;
  }
}
