:root {
  --bg-start: #070d16;
  --bg-end: #05080d;
  --surface: #101a28;
  --surface-2: #172334;
  --text: #ecf2f9;
  --muted: #b3bfd0;
  --accent: #0b5394;
  --accent-strong: #d8e8fb;
  --accent-soft: rgba(11, 83, 148, 0.18);
  --accent-soft-2: rgba(11, 83, 148, 0.32);
  --line: #325476;
  --header-bg: rgba(8, 13, 21, 0.94);
  --header-border: rgba(47, 79, 116, 0.66);
  --button-bg: #0b5394;
  --button-hover: #1464b1;
  --button-text: #edf5ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  min-height: 100vh;
}

body.dept-lspd {
  --bg-start: #070d16;
  --bg-end: #05080d;
  --surface: #101a28;
  --surface-2: #172334;
  --text: #ecf2f9;
  --muted: #b3bfd0;
  --accent: #0b5394;
  --accent-strong: #d8e8fb;
  --accent-soft: rgba(11, 83, 148, 0.18);
  --accent-soft-2: rgba(11, 83, 148, 0.32);
  --line: #325476;
  --header-bg: rgba(8, 13, 21, 0.94);
  --header-border: rgba(47, 79, 116, 0.66);
  --button-bg: #0b5394;
  --button-hover: #1464b1;
  --button-text: #edf5ff;
}

body.dept-bcso {
  --bg-start: #0c0f12;
  --bg-end: #07090a;
  --surface: #181d20;
  --surface-2: #22282c;
  --text: #edf1f4;
  --muted: #b6c0ca;
  --accent: #4d8f6f;
  --accent-strong: #d9f0e3;
  --accent-soft: rgba(77, 143, 111, 0.2);
  --accent-soft-2: rgba(77, 143, 111, 0.34);
  --line: #586a61;
  --header-bg: rgba(15, 18, 20, 0.94);
  --header-border: rgba(107, 120, 111, 0.7);
  --button-bg: #4d8f6f;
  --button-hover: #5aa47f;
  --button-text: #f3fbf6;
}

body.dept-sahp {
  --bg-start: #080d14;
  --bg-end: #050709;
  --surface: #121922;
  --surface-2: #1a2230;
  --text: #f2eee4;
  --muted: #cabca1;
  --accent: #c89f5a;
  --accent-strong: #f6e3bc;
  --accent-soft: rgba(200, 159, 90, 0.2);
  --accent-soft-2: rgba(200, 159, 90, 0.36);
  --line: #796745;
  --header-bg: rgba(11, 20, 32, 0.95);
  --header-border: rgba(134, 110, 70, 0.72);
  --button-bg: #c89f5a;
  --button-hover: #dab06c;
  --button-text: #19140d;
}

body.dept-doc {
  --bg-start: #0a0811;
  --bg-end: #06050a;
  --surface: #171327;
  --surface-2: #221b36;
  --text: #f0eafc;
  --muted: #c6b9de;
  --accent: #8f6cc7;
  --accent-strong: #e1cffd;
  --accent-soft: rgba(143, 108, 199, 0.2);
  --accent-soft-2: rgba(143, 108, 199, 0.34);
  --line: #62488c;
  --header-bg: rgba(19, 14, 32, 0.95);
  --header-border: rgba(114, 90, 153, 0.7);
  --button-bg: #8f6cc7;
  --button-hover: #a17bd8;
  --button-text: #f6f1ff;
}

body.dept-ems {
  --bg-start: #120a0a;
  --bg-end: #0a0505;
  --surface: #251515;
  --surface-2: #341f1f;
  --text: #f8eded;
  --muted: #d4b7b7;
  --accent: #b15656;
  --accent-strong: #f2cccc;
  --accent-soft: rgba(177, 86, 86, 0.2);
  --accent-soft-2: rgba(177, 86, 86, 0.34);
  --line: #7a4444;
  --header-bg: rgba(36, 16, 16, 0.95);
  --header-border: rgba(138, 76, 76, 0.72);
  --button-bg: #b15656;
  --button-hover: #c66868;
  --button-text: #fff4f4;
}

body.dept-fire {
  --bg-start: #120c09;
  --bg-end: #090604;
  --surface: #251b15;
  --surface-2: #33251e;
  --text: #f7eee8;
  --muted: #d7c0b2;
  --accent: #c96a3d;
  --accent-strong: #f6d3c2;
  --accent-soft: rgba(201, 106, 61, 0.2);
  --accent-soft-2: rgba(201, 106, 61, 0.34);
  --line: #8a5438;
  --header-bg: rgba(34, 20, 14, 0.95);
  --header-border: rgba(149, 91, 62, 0.72);
  --button-bg: #c96a3d;
  --button-hover: #dd7d50;
  --button-text: #1c0f0a;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 0%, var(--accent-soft), transparent 36%),
    radial-gradient(
      circle at 92% 8%,
      rgba(148, 160, 176, 0.12),
      transparent 40%
    ),
    linear-gradient(transparent 96%, var(--accent-soft) 100%);
  background-size:
    auto,
    auto,
    100% 34px;
}

.page {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  margin-top: 0.9rem;
  padding: 0.68rem 0.78rem;
  position: relative;
  z-index: 40;
  border: 1px solid var(--header-border);
  border-radius: 10px;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 28px -24px rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.74rem;
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  top: 0;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  background: var(--accent);
  opacity: 0.8;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  text-decoration: none;
  color: inherit;
  padding: 0.28rem 0.4rem;
  border-radius: 7px;
  border: 1px solid rgba(119, 137, 158, 0.5);
  background: rgba(9, 15, 24, 0.84);
}

.brand-mark {
  width: 2.42rem;
  height: 1.54rem;
  border-radius: 4px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  font-size: 0;
  color: transparent;
  line-height: 0;
  background: url("/Pictures/ODY%20Leo.webp") center / contain no-repeat;
  border: none;
}

.brand-text {
  font-size: 0.88rem;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: #deebfb;
}

.header-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-btn {
  border: 1px solid rgba(116, 133, 153, 0.72);
  background: rgba(11, 18, 29, 0.94);
  color: #dfe8f5;
  border-radius: 8px;
  padding: 0.56rem 0.8rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.015em;
  cursor: pointer;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}

.auth-btn:hover {
  border-color: var(--accent);
  background: rgba(13, 21, 33, 0.98);
}

.auth-btn-alt {
  border-color: rgba(119, 137, 158, 0.7);
  background: rgba(13, 21, 33, 0.72);
  color: #cfdbeb;
  font-size: 0.77rem;
}

.nav-group {
  position: relative;
  min-width: 146px;
}

.nav-group summary {
  list-style: none;
  color: #dce8f7;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.52rem 0.76rem;
  border-radius: 8px;
  border: 1px solid rgba(112, 128, 147, 0.66);
  background: rgba(9, 15, 24, 0.94);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
  cursor: pointer;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "\25BE";
  color: var(--accent);
  font-size: 0.65rem;
  transform: translateY(-1px);
}

.nav-group summary:hover {
  border-color: var(--accent);
  background: rgba(11, 20, 32, 0.98);
  box-shadow: inset 0 -2px 0 var(--accent-soft-2);
}

.nav-group[open] summary {
  border-color: var(--accent);
  background: rgba(12, 21, 35, 0.98);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.34rem);
  left: 0;
  min-width: max(100%, 210px);
  border-radius: 8px;
  border: 1px solid rgba(110, 129, 150, 0.74);
  background: rgba(6, 11, 20, 0.98);
  box-shadow: 0 18px 30px -24px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(7px);
  overflow: hidden;
  z-index: 80;
}

.dropdown-panel a {
  display: block;
  color: #c3d2e3;
  text-decoration: none;
  font-size: 0.84rem;
  padding: 0.56rem 0.74rem;
  border-bottom: 1px solid rgba(40, 58, 81, 0.88);
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.dropdown-panel a:last-child {
  border-bottom: none;
}

.dropdown-panel a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

main {
  display: grid;
  gap: 0.92rem;
  padding: 0.9rem 0 0.35rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.3rem 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(11, 18, 29, 0.95), rgba(8, 13, 22, 0.95)),
    radial-gradient(circle at 92% 10%, var(--accent-soft), transparent 45%);
  box-shadow: 0 18px 36px -30px rgba(0, 0, 0, 0.9);
}

.hero::after {
  content: "";
  position: absolute;
  right: -5.4rem;
  top: -6rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-soft-2), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  text-transform: uppercase;
}

.hero p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 68ch;
  position: relative;
  z-index: 1;
}

.hero-badge-row {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.44rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 14, 23, 0.84);
}

.hero-badge-row span {
  color: #dbe8f8;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-apply {
  margin-top: 1rem;
}

.hero-apply .btn {
  min-width: 180px;
}

.hero-logo {
  width: 2.85rem;
  height: 2.85rem;
  padding: 0.12rem;
  border-radius: 6px;
  object-fit: cover;
  object-position: 50% 40%;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 24, 36, 0.92), rgba(10, 16, 26, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.28);
}

.hero-logo.patch {
  object-fit: contain;
  background: rgba(13, 20, 32, 0.85);
}

.section-kicker {
  margin: 0;
  color: #cad8e8;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.section-gallery h2 {
  margin-top: 0.28rem;
}

.media-grid {
  margin-top: 0.84rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.72rem;
}

.media-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(93, 117, 147, 0.56);
  background: rgba(10, 16, 25, 0.9);
  min-height: 150px;
  grid-column: span 3;
}

.media-card.feature {
  min-height: 324px;
  grid-column: span 6;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.06) contrast(1.03);
}

.media-card figcaption {
  display: none;
}

.media-card.badge {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, var(--accent-soft), transparent 52%),
    linear-gradient(180deg, rgba(11, 18, 29, 0.96), rgba(8, 13, 22, 0.94));
}

.media-card.badge img {
  width: min(70%, 250px);
  height: auto;
  object-fit: contain;
  border: none;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.45));
}

.media-card.badge figcaption {
  display: none;
}

.lane-grid {
  margin-top: 0.84rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.lane-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 19, 30, 0.82);
  padding: 0.84rem;
}

.lane-card h3 {
  font-size: 1.15rem;
}

.lane-card p {
  margin: 0.52rem 0 0;
  line-height: 1.55;
  color: var(--muted);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.stat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 36, 0.92);
  padding: 0.9rem;
  box-shadow: 0 14px 28px -24px rgba(0, 0, 0, 0.82);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--accent-soft-2), transparent 44%),
    linear-gradient(transparent 80%, var(--accent-soft));
  opacity: 0.58;
  pointer-events: none;
}

.stat strong {
  display: block;
  color: var(--accent-strong);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(9, 15, 25, 0.95), rgba(6, 11, 18, 0.96)),
    radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 52%);
  padding: 1.18rem;
  box-shadow: 0 18px 34px -30px rgba(0, 0, 0, 0.86);
}

.section h2 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

.section p {
  color: var(--muted);
  line-height: 1.7;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
}

.card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(10, 18, 31, 0.84);
  padding: 0.95rem;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 28px -24px rgba(0, 0, 0, 0.64);
}

.card h3 {
  font-size: 1.32rem;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
}

.join-box {
  position: relative;
  overflow: hidden;
  margin: 0.2rem 0 2.2rem;
  padding: 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.94);
  box-shadow: 0 22px 38px -32px rgba(0, 0, 0, 0.9);
}

.join-box::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-soft-2), transparent 65%);
  pointer-events: none;
}

.join-box p {
  color: var(--muted);
}

.btn {
  text-decoration: none;
  color: var(--button-text);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.72rem 1.1rem;
  border: 1px solid rgba(210, 220, 232, 0.25);
  background: var(--button-bg);
  box-shadow: 0 10px 18px -14px rgba(0, 0, 0, 0.58);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--button-hover);
  box-shadow: 0 14px 22px -16px rgba(0, 0, 0, 0.62);
}

.footer {
  color: #92a0b2;
  font-size: 0.86rem;
  padding: 0 0 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 450ms ease,
    transform 450ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-card,
  .media-card.feature {
    min-height: 210px;
    grid-column: span 1;
  }

  .lane-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand {
    width: 100%;
  }

  .site-nav {
    width: 100%;
    justify-content: stretch;
  }

  .header-auth {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .nav-group {
    width: 100%;
    min-width: 0;
  }

  .dropdown-panel {
    position: static;
    margin-top: 0.35rem;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .hero-badge-row {
    width: 100%;
    justify-content: flex-start;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
}
:root {
  --bg-start: #070d16;
  --bg-end: #05080d;
  --surface: #101a28;
  --surface-2: #172334;
  --text: #edf3fb;
  --muted: #b5c0d0;
  --accent: #0b5394;
  --accent-strong: #d7e8fb;
  --accent-soft: rgba(11, 83, 148, 0.18);
  --accent-soft-2: rgba(11, 83, 148, 0.32);
  --line: #325476;
  --header-bg: rgba(8, 13, 21, 0.94);
  --header-border: rgba(47, 79, 116, 0.64);
  --button-bg: #0b5394;
  --button-hover: #1a6fc2;
  --button-text: #edf5ff;
}
