/* Astro Defense Solutions
   Newsreader and Source Sans 3 are used under the SIL Open Font License.
   See /fonts/OFL.txt. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #081018;
  --bg-elev: #0d1a26;
  --bg-card: #122333;
  --ink: #e8eef3;
  --muted: #c3d0db;
  --faint: #9aafbf;
  --line: rgba(186, 214, 230, 0.18);
  --line-strong: rgba(186, 214, 230, 0.34);
  --cyan: #b7dff0;
  --brass: #e0c17a;
  --brass-deep: #c4a15a;
  --ink-on-brass: #1c160b;
  --header: 4.75rem;
  --wrap: 1120px;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--cyan);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--brass);
  color: var(--ink-on-brass);
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

h1, h2, h3, .stat-num, .statement {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1, h2, h3 {
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 42rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 16, 24, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 3.15rem;
  height: auto;
}

.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
  line-height: 1.15;
}

.brand-name em {
  display: block;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  color: var(--faint);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  content: "";
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

#site-nav ul {
  display: flex;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

#site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.35rem 0;
}

#site-nav a:hover,
#site-nav a[aria-current="page"] {
  color: var(--ink);
}

#site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--brass);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: end;
  padding: 4.5rem 0 4rem;
  isolation: isolate;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 16, 24, 0.94) 0%, rgba(8, 16, 24, 0.86) 34%, rgba(8, 16, 24, 0.45) 62%, rgba(8, 16, 24, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 16, 24, 0.25) 0%, rgba(8, 16, 24, 0) 28%, rgba(8, 16, 24, 0.35) 70%, var(--bg) 100%);
}

.hero-copy {
  max-width: 40rem;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  max-width: 11.2em;
  margin: 0 0 1.1rem;
}

.hero .dek {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 0.4rem;
}

.hero .dek-sub {
  color: var(--faint);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 1.35rem;
}

.credential {
  margin: 0;
  color: var(--faint);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.15rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink-on-brass);
}

.btn-primary:hover {
  background: #edd39a;
  color: var(--ink-on-brass);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(8, 16, 24, 0.35);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: #fff;
}

/* Who we help */

.statement {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  max-width: 22em;
  margin: 0 0 1.25rem;
}

.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.audience li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.25rem 1.2rem 1.1rem;
  min-height: 100%;
}

.audience h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.45rem;
}

.audience p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Services */

.band {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}

.tablist {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  margin: 0 0 1.75rem;
  scrollbar-color: var(--line-strong) transparent;
}

.tablist button {
  flex: 1 0 12.5rem;
  appearance: none;
  background: transparent;
  color: var(--faint);
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0.95rem 1rem 0.85rem;
  text-align: left;
  font: 600 1rem/1.3 var(--sans);
  cursor: pointer;
}

.tablist button span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--brass);
  margin-bottom: 0.2rem;
}

.tablist button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--brass);
}

.service-intro {
  font-size: 1.15rem;
  max-width: 46rem;
  color: var(--muted);
}

.service-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.fit-card {
  background: rgba(8, 16, 24, 0.45);
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 0.6rem;
}

.fit-card h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}

.fit-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fit-card li {
  position: relative;
  padding-left: 1rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.fit-card li::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--brass);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.no-js .tablist {
  display: none;
}

.no-js .tab-panel {
  display: block !important;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.panel-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 0.8rem;
}

/* Stats */

.stats-band {
  padding: 3.25rem 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(224, 193, 122, 0.08), transparent 46%),
    #070e16;
  border-block: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stat-num {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--brass);
  margin: 0 0 0.35rem;
  line-height: 1;
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
  text-wrap: balance;
}

.stats-note {
  margin: 1.5rem 0 0;
  color: var(--faint);
  font-size: 0.92rem;
  max-width: 52rem;
}

/* Timeline */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
  border-left: 1px solid var(--line-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 2.1rem 1.5rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--brass);
  position: absolute;
  left: -0.36rem;
  top: 0.3rem;
}

.when {
  margin: 0 0 0.25rem;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline h3 {
  font-size: 1.55rem;
  margin-bottom: 0.2rem;
}

.where {
  margin: 0 0 0.45rem;
  color: var(--faint);
  font-size: 0.95rem;
}

.timeline p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  max-width: 46rem;
}

/* Founder */

.founder {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line), 0.7rem 0.7rem 0 rgba(224, 193, 122, 0.42);
}

.portrait figcaption {
  margin-top: 0.75rem;
  color: var(--faint);
  font-size: 0.92rem;
}

.founder h2 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 0.85rem;
}

.founder .role {
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Domains */

.domains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.domains li {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 1.1rem 1rem 1rem;
  min-height: 100%;
}

.domains .idx {
  display: block;
  font-family: var(--serif);
  color: var(--brass);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.domains h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.domains p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Johns Hopkins */

.jhu {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.75rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.jhu-logo {
  background: #fff;
  padding: 0.85rem 1rem;
  border-radius: 2px;
}

.jhu-logo img {
  width: min(280px, 70vw);
  height: auto;
}

.course-list {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.course-list li {
  margin: 0.25rem 0;
}

/* Press */

.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.15rem 1.1rem 1.05rem;
  background: rgba(8, 16, 24, 0.45);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.video-card:hover {
  border-color: var(--brass-deep);
  color: inherit;
}

.play {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--brass);
  display: grid;
  place-items: center;
  color: var(--brass);
}

.play svg {
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 2px;
  fill: currentColor;
}

.video-card .outlet,
.press-list .outlet {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.video-card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.video-card p:last-child,
.press-meta {
  margin: 0;
  margin-top: auto;
  color: var(--faint);
  font-size: 0.92rem;
}

.press-group {
  margin: 0 0 1.75rem;
}

.press-group h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.35rem;
}

.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.press-list li {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.press-list a {
  font-weight: 600;
  color: var(--ink);
  text-decoration-color: rgba(183, 223, 240, 0.45);
}

.press-list a:hover {
  color: #fff;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 0.8rem;
}

.contact-card {
  border: 1px solid var(--line);
  padding: 1.1rem 1.1rem 0.95rem;
  background: rgba(8, 16, 24, 0.35);
}

.contact-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
}

.contact-card p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact-card a[href^="mailto"],
.contact-card a[href*="linkedin"] {
  font-weight: 600;
  overflow-wrap: anywhere;
}

form {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: var(--bg-card);
}

.field {
  display: grid;
  gap: 0.3rem;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: #0b1622;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.7rem 0.75rem;
  min-height: 2.9rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.field-error {
  color: #f0c2b0;
  font-size: 0.9rem;
  min-height: 1.1em;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--faint);
  font-size: 0.92rem;
}

.form-status {
  color: var(--cyan);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
}

.footer-lockup {
  width: 8.5rem;
  height: auto;
}

.footer-meta {
  color: var(--faint);
  font-size: 0.95rem;
  text-align: right;
}

.footer-meta p {
  margin: 0 0 0.35rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: #fff;
}

/* Biography page */

.page-hero {
  padding: 3.2rem 0 1rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 14em;
}

.crumb {
  margin: 0 0 0.8rem;
  color: var(--faint);
  font-size: 0.92rem;
}

.crumb a {
  color: var(--muted);
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 4.5rem;
  align-items: start;
}

.bio-side {
  position: sticky;
  top: calc(var(--header) + 1rem);
}

.bio-side img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.bio-side p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose h2 {
  font-size: 1.7rem;
  margin: 2rem 0 0.7rem;
}

.prose p,
.prose li {
  max-width: 68ch;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.prose a {
  font-weight: 600;
}

/* 404 */

.missing {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

@media (max-width: 980px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .domains {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  #site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #081018;
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0 0.9rem;
  }

  #site-nav.is-open {
    display: block;
  }

  #site-nav ul {
    flex-direction: column;
    align-items: stretch;
    width: min(var(--wrap), calc(100% - 2.5rem));
    margin-inline: auto;
    gap: 0;
  }

  #site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .founder,
  .contact-grid,
  .fit-grid,
  .jhu,
  .bio-layout {
    grid-template-columns: 1fr;
  }

  .bio-side {
    position: static;
    max-width: 22rem;
  }

  .press-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta,
  .footer-links {
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 1.75rem));
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0 3rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
  }

  .stats,
  .videos,
  .domains {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
