:root {
  --bg: #020617;
  --panel: rgba(6, 10, 24, 0.72);
  --panel2: rgba(6, 10, 24, 0.88);
  --line: rgba(130, 200, 255, 0.18);
  --line2: rgba(255, 255, 255, 0.1);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, 0.7);
  --accent: #38bdf8;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(
      1200px 900px at 50% 35%,
      rgba(56, 189, 248, 0.1),
      transparent 55%
    ),
    linear-gradient(180deg, #040815, var(--bg));
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.9;
}

.page {
  display: flex;
  justify-content: center;
  padding: 34px 16px 54px;
}
.shell {
  width: 100%;
  max-width: 1180px;
}

.hero-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
  background: var(--panel2);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)),
    linear-gradient(to right, rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    url("../data/sc-banner.webp");
  background-size: auto, 54px 54px, 54px 54px, cover;
  background-position: center, center, center, center 35%;
  opacity: 1;
  pointer-events: none;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    900px 200px at 50% 52%,
    rgba(56, 189, 248, 0.35),
    transparent 60%
  );
  opacity: 0.35;
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.nbmark {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.nbmark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brandtitle {
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 14px;
}
.brandsub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(255, 255, 255, 0.09);
}
.btn.primary {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.35),
    rgba(99, 102, 241, 0.22)
  );
}

.hero-banner {
  position: relative;
  z-index: 2;
  padding: 36px 28px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.hero-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(3, 6, 15, 0.35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.logo-mark img {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.35));
}

.orgname {
  font-weight: 950;
  letter-spacing: 0.06em;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}
.orgsub {
  margin-top: 8px;
  color: rgba(234, 240, 255, 0.75);
  letter-spacing: 0.22em;
  font-weight: 800;
  font-size: 13px;
}

.below {
  margin-top: 18px;
}

.lead {
  margin: 0 0 16px;
  font-size: 18px;
  color: rgba(234, 240, 255, 0.78);
  line-height: 1.5;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.cards {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.card {
  border-radius: 18px;
  background: rgba(6, 10, 24, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.16);
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.45);
  padding: 16px 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(125, 211, 252, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  opacity: 0.45;
  pointer-events: none;
}
.card > * {
  position: relative;
  z-index: 1;
}

.cardhead {
  font-weight: 900;
  color: rgba(234, 240, 255, 0.92);
  letter-spacing: 0.06em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mt {
  margin-top: 16px;
}

.ops {
  margin: 0;
  padding-left: 18px;
  color: rgba(234, 240, 255, 0.86);
}
.ops li {
  margin: 6px 0;
}

.fleetroles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.fleetrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(234, 240, 255, 0.86);
  margin: 6px 0;
  font-weight: 700;
}
.sq {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}
.rolerow {
  color: rgba(234, 240, 255, 0.76);
  margin: 6px 0;
  font-weight: 700;
}

.rolecards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rc {
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(3, 6, 15, 0.35);
  overflow: hidden;
}
.rc-ico {
  height: 66px;
  background: radial-gradient(
      140px 80px at 50% 40%,
      rgba(56, 189, 248, 0.3),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(3, 6, 15, 0), rgba(3, 6, 15, 0.55));
  position: relative;
}
.rc-ico::after {
  content: "";
  position: absolute;
  inset: 12px 12px auto 12px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(56, 189, 248, 0.08);
}
.rc-t {
  padding: 10px 10px 12px;
  text-align: center;
  font-weight: 900;
  color: rgba(234, 240, 255, 0.82);
  font-size: 12px;
}

.video-wrap {
  margin-top: 8px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.yt {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.25);
}
.yt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.04);
}
.yt-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(
      400px 240px at 50% 50%,
      rgba(56, 189, 248, 0.12),
      transparent 65%
    ),
    rgba(0, 0, 0, 0.2);
}
/* .yt-play {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(3, 6, 15, 0.35);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: rgba(234, 240, 255, 0.92);
  box-shadow: 0 0 0 10px rgba(56, 189, 248, 0.1);
  transition: transform 0.18s ease, filter 0.18s ease;
} */
/* .yt:hover .yt-play {
  transform: scale(1.05);
  filter: brightness(1.08);
} */

.vidnote {
  margin-top: 10px;
  color: rgba(234, 240, 255, 0.6);
  font-size: 12px;
}

.footer {
  margin-top: 16px;
  text-align: center;
  color: rgba(234, 240, 255, 0.55);
  font-size: 12px;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    padding: 24px 14px 22px;
    min-height: 280px;
  }
  .hero-banner-inner {
    flex-direction: column;
  }
  .rolecards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    justify-content: flex-start;
  }
}

.orgdesc {
  margin: -6px 0 16px;
  color: rgba(234, 240, 255, 0.7);
  line-height: 1.55;
  max-width: 92ch;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.rolecards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rc {
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(3, 6, 15, 0.4);
  overflow: hidden;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
}

.rc-ico {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px 8px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  background: radial-gradient(
      260px 140px at 50% 40%,
      rgba(56, 189, 248, 0.22),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(3, 6, 15, 0), rgba(3, 6, 15, 0.65));
}

.rc-ico img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
  opacity: 0.95;
}

.rc-t {
  padding: 12px 10px 12px;
  text-align: center;
  font-weight: 900;
  color: rgba(234, 240, 255, 0.88);
  font-size: 12px;
  letter-spacing: 0.01em;
  position: relative;
}

.rc-t::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.85),
    transparent
  );
  opacity: 0.9;
}

@media (max-width: 980px) {
  .rolecards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Image scoping fixes (prevents icon slicing) --- */
.nbmark img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}
.logo-mark img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.35));
}

/* Role icon images: keep centered and NEVER crop */
.rc-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rc-ico img {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
}
