/*
  Telent Space Strategy — theme layer.
  Sits on top of assets/css/bootstrap-base.css (vendored Bootstrap 5 + One Page Wonder base).
  Brand colors sampled directly from the Telent logo/background artwork embedded in the
  source PPTX (image10.png / image1.png): purple #76027D / #781875, lilac accent #D7BAD6.
*/

@font-face {
  font-family: "Catamaran";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/catamaran/catamaran-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato/lato-400.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lato/lato-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/lato/lato-700.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/lato/lato-900.woff2") format("woff2");
}

:root {
  --telent-purple: #76027d;
  --telent-purple-mid: #781875;
  --telent-purple-deep: #3c0140;
  --telent-lilac: #d7bad6;
  --telent-lilac-tint: #f5eef5;
  --telent-ink: #170318;
  --telent-text: #241226;
  --telent-grey-bg: #f6f3f7;

  --bs-primary: var(--telent-purple);
  --bs-primary-rgb: 118, 2, 125;
  --bs-secondary: var(--telent-lilac);
  --bs-link-color: var(--telent-purple);
  --bs-link-hover-color: var(--telent-purple-deep);
  --bs-body-font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--telent-text);
  --bs-body-bg: #ffffff;
}

body {
  font-family: "Lato", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.masthead-heading, .masthead-subheading, .section-heading {
  font-family: "Catamaran", sans-serif;
  font-weight: 800;
  color: var(--telent-ink);
}

header.masthead .masthead-heading,
header.masthead .masthead-subheading {
  color: #ffffff;
}

a { color: var(--telent-purple); }
a:hover { color: var(--telent-purple-deep); }

.btn-primary {
  --bs-btn-bg: var(--telent-purple);
  --bs-btn-border-color: var(--telent-purple);
  --bs-btn-hover-bg: var(--telent-purple-deep);
  --bs-btn-hover-border-color: var(--telent-purple-deep);
  --bs-btn-active-bg: var(--telent-purple-deep);
  --bs-btn-active-border-color: var(--telent-purple-deep);
  --bs-btn-focus-shadow-rgb: 118, 2, 125;
}
.btn-outline-light:hover { color: var(--telent-purple); }

/* Bootstrap bakes .btn-outline-secondary's colors to static hex at build time (the
   template's original orange), so the --bs-secondary override above doesn't reach it.
   Redeclare its component variables directly with the Telent palette instead. */
.btn-outline-secondary {
  --bs-btn-color: var(--telent-purple);
  --bs-btn-border-color: var(--telent-purple);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--telent-purple);
  --bs-btn-hover-border-color: var(--telent-purple);
  --bs-btn-focus-shadow-rgb: 118, 2, 125;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--telent-purple);
  --bs-btn-active-border-color: var(--telent-purple);
  --bs-btn-disabled-color: var(--telent-purple);
  --bs-btn-disabled-border-color: var(--telent-purple);
}

/* ---------- Navigation ---------- */
.navbar-custom {
  background-color: rgba(23, 3, 24, 0.92);
  backdrop-filter: blur(6px);
}
.navbar-custom .navbar-brand img { height: 28px; }
.navbar-custom .navbar-nav .nav-item .nav-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.15s ease;
}
.navbar-custom .navbar-nav .nav-item .nav-link:hover,
.navbar-custom .navbar-nav .nav-item .nav-link.active {
  color: #ffffff;
}
.navbar-custom .navbar-nav .nav-item .nav-link.active {
  position: relative;
}
.navbar-custom .navbar-nav .nav-item .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--telent-lilac);
}

/* ---------- Hero / masthead ---------- */
header.masthead {
  background: radial-gradient(ellipse at top, var(--telent-purple-mid) 0%, var(--telent-ink) 70%);
  min-height: 100vh;
}
header.masthead canvas#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
header.masthead .bg-circle { display: none; }
header.masthead .masthead-content { z-index: 2; }
header.masthead .masthead-eyebrow {
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--telent-lilac);
}
header.masthead .masthead-heading { font-size: 3.2rem; }
header.masthead .masthead-subheading {
  font-size: 1.4rem;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  opacity: 0.9;
}
header.masthead .masthead-presenter {
  font-size: 0.95rem;
  opacity: 0.7;
}
@media (min-width: 992px) {
  header.masthead .masthead-heading { font-size: 4.5rem; }
  header.masthead .masthead-subheading { font-size: 1.6rem; }
}

/* ---------- Vision band (Earth-from-orbit, between hero and CNI) ---------- */
.vision-band {
  background-size: cover;
  background-position: center 65%;
  padding: 0;
}
.vision-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 3, 24, 0.88) 0%, rgba(60, 1, 64, 0.72) 45%, rgba(23, 3, 24, 0.88) 100%);
}
.vision-band .section-eyebrow { color: var(--telent-lilac); }
.vision-quote {
  font-family: "Catamaran", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.5;
  max-width: 46rem;
}
@media (min-width: 992px) {
  .vision-quote { font-size: 1.75rem; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section-alt { background-color: var(--telent-grey-bg); }
.section-dark {
  background-color: var(--telent-ink);
  color: rgba(255, 255, 255, 0.9);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #ffffff; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--telent-purple);
}
.section-dark .section-eyebrow { color: var(--telent-lilac); }
.section-lede {
  font-size: 1.1rem;
  color: #4a3a4c;
  max-width: 62rem;
}
.section-dark .section-lede { color: rgba(255,255,255,0.8); }

/* bullet list with a small square marker in brand purple, used throughout */
.brand-list { list-style: none; padding-left: 0; margin: 0; }
.brand-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}
.brand-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4rem;
  width: 0.6rem; height: 0.6rem;
  background: var(--telent-purple);
}
.section-dark .brand-list li::before { background: var(--telent-lilac); }

/* ---------- Audience cards (USG supports:) ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.audience-card {
  background: var(--telent-lilac-tint);
  border-left: 3px solid var(--telent-purple);
  border-radius: 0.25rem;
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--telent-text);
}

/* ---------- Stat cards (slide 4: what is UK Space worth) ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat-card {
  background: #ffffff;
  border: 1px solid rgba(118, 2, 125, 0.12);
  border-top: 4px solid var(--telent-purple);
  border-radius: 0.25rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.stat-card .stat-number {
  font-family: "Catamaran", sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  color: var(--telent-purple);
  line-height: 1.1;
  display: block;
}
.stat-card .stat-label {
  font-size: 0.9rem;
  color: #4a3a4c;
  margin-top: 0.35rem;
  display: block;
}
.defence-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.defence-timeline-stacked { grid-template-columns: 1fr; gap: 1rem; }
.defence-timeline .timeline-year {
  font-family: "Catamaran", sans-serif;
  font-weight: 800;
  color: var(--telent-purple);
  font-size: 1.1rem;
}

/* ---------- Icon-bullet grid (growth requirements / sectors) ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.icon-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.25rem;
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}
section:not(.section-dark) .icon-card {
  background: #ffffff;
  border-color: rgba(118,2,125,0.12);
  color: var(--telent-text);
}
.icon-card svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--telent-lilac); }
section:not(.section-dark) .icon-card svg { color: var(--telent-purple); }

/* ---------- Credentials / photo section ---------- */
.credential-photo {
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(23, 3, 24, 0.15);
}
.credential-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Tool showcase (SDA / spacemap) ---------- */
.tool-shot {
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 1.5rem 3rem rgba(0,0,0,0.4);
}
.tool-shot img { width: 100%; display: block; }
.tool-capability-list { columns: 2; column-gap: 2rem; }
.tool-capability-list li { break-inside: avoid; }
@media (max-width: 767px) { .tool-capability-list { columns: 1; } }

.factsheet-figure img {
  width: 100%;
  border-radius: 0.25rem;
  box-shadow: 0 1rem 2rem rgba(23,3,24,0.12);
}
figcaption {
  font-size: 0.8rem;
  color: #6b5a6d;
  margin-top: 0.5rem;
}
.section-dark figcaption { color: rgba(255,255,255,0.6); }

/* ---------- Data hub pillars (slide 8) ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.pillar-card {
  background: #ffffff;
  border-radius: 0.25rem;
  padding: 1.75rem;
  border-left: 4px solid var(--telent-purple);
  box-shadow: 0 0.5rem 1.5rem rgba(23,3,24,0.06);
}
.pillar-card h4 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.pillar-card p { font-size: 0.95rem; color: #4a3a4c; margin: 0; }

/* ---------- Contact / footer ---------- */
.site-footer {
  background: var(--telent-ink);
  color: rgba(255,255,255,0.65);
}
.site-footer a { color: var(--telent-lilac); }
.site-footer .footer-logo { height: 26px; filter: brightness(0) invert(1); opacity: 0.9; }

/* ---------- Key-info PDF trigger button ---------- */
.btn-key-info {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.5rem 1.5rem rgba(23,3,24,0.35);
}

/* count-up number: avoid layout jump before JS runs */
[data-count-to] { font-variant-numeric: tabular-nums; }

/* ---------- CNI tri-service photo cluster ---------- */
.tri-service { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.tri-service figure { margin: 0; width: 8rem; }
.tri-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 0.5rem 1.25rem rgba(23, 3, 24, 0.18);
}
.tri-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* the source photo has a lot of empty sea below the ships, which reads as
   visually heavier/lower than the other two crops — zoom in to balance it */
.tri-photo-zoom img { transform: scale(1.55); object-position: 50% 25%; }
.tri-service figcaption {
  text-align: center;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03rem;
  color: var(--telent-purple);
}

/* ---------- Value section accents ---------- */
.stat-badge { display: block; width: 2.75rem; height: auto; margin: 0 auto 0.6rem; }
.value-flag { height: 1.9rem; width: auto; border-radius: 0.15rem; box-shadow: 0 0.2rem 0.5rem rgba(23,3,24,0.15); }

/* ---------- Long-term opportunity callout (Why Telent) ---------- */
.callout-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--telent-lilac);
  border-radius: 0.25rem;
  padding: 1.5rem 1.75rem;
}
section:not(.section-dark) .callout-card {
  background: var(--telent-lilac-tint);
  border-color: rgba(118, 2, 125, 0.15);
  border-left-color: var(--telent-purple);
}
