/* ==========================================================================
   Space Leadership Institute — NASA-style light corporate design
   Off-white, navy, silver, grey, charcoal, black
   ========================================================================== */

:root {
  /* NASA-style palette */
  --offwhite: #f4f4f4;
  --white: #ffffff;
  --navy: #0c2340;
  --navy-mid: #1a4d7a;
  --silver: #aeb0b5;
  --grey: #71767a;
  --charcoal: #2d2d2d;
  --black: #1a1a1a;

  /* Section tints */
  --tint-blue: #e8eef5;
  --tint-slate: #eef0f3;

  /* Semantic */
  --bg-primary: #f4f4f4;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #2d2d2d;
  --text-muted: #71767a;
  --border: #d8d8d8;
  --border-light: #e5e5e5;
  --accent: #0c2340;

  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.25rem;
  --space-xl: 1.5rem;
  --space-2xl: 2.5rem;
  --space-3xl: 3.5rem;
  --space-4xl: 4.5rem;

  --max-width: 1100px;
  --header-height: 56px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Dark theme ----- */
html[data-theme="dark"] {
  --offwhite: #1a2332;
  --white: #1e2735;
  --navy: #5a9cf8;
  --navy-mid: #7bb3fa;
  --silver: #6b7280;
  --grey: #8b929a;
  --charcoal: #c2c8d0;
  --black: #f0f2f5;

  --tint-blue: #151d2e;
  --tint-slate: #161f30;

  --bg-primary: #0f1624;
  --bg-secondary: #131b28;
  --bg-card: #1a2332;
  --text-primary: #f0f2f5;
  --text-secondary: #c2c8d0;
  --text-muted: #8b929a;
  --border: #2d3640;
  --border-light: #252d38;
  --accent: #5a9cf8;
}

html[data-theme="dark"] .hero__bg-pattern {
  background: linear-gradient(160deg, rgba(15, 22, 36, 0.92) 0%, rgba(15, 22, 36, 0.85) 50%, rgba(15, 22, 36, 0.94) 100%);
}
html[data-theme="dark"] .section--navy {
  background: linear-gradient(135deg, #1a2332 0%, #252d38 100%);
}
html[data-theme="dark"] .section--navy .btn--primary {
  background: var(--navy);
  color: #0f1624;
}
html[data-theme="dark"] .section--navy .btn--primary:hover {
  background: var(--navy-mid);
  color: #0f1624;
}
html[data-theme="dark"] .section--navy h2,
html[data-theme="dark"] .section--navy .section-title {
  color: #ffffff;
}
html[data-theme="dark"] .section--navy .section-title::after {
  background: #ffffff;
}
html[data-theme="dark"] .section__bg::after {
  background: linear-gradient(180deg, rgba(21, 29, 46, 0.96) 0%, rgba(21, 29, 46, 0.98) 100%);
}
html[data-theme="dark"] .site-footer {
  background: #0a0f18;
  border-top-color: var(--border);
}
html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .site-footer a {
  color: #c2c8d0;
}
html[data-theme="dark"] .site-footer a:hover {
  color: #ffffff;
}
html[data-theme="dark"] .page-hero::before {
  background: linear-gradient(160deg, rgba(15, 22, 36, 0.9) 0%, rgba(15, 22, 36, 0.82) 100%);
}

/* Dark mode: force light text on hero and page-hero (they use --white which becomes dark) */
html[data-theme="dark"] .hero__title,
html[data-theme="dark"] .hero__subtitle {
  color: #ffffff;
}
html[data-theme="dark"] .hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
}
html[data-theme="dark"] .hero .btn--primary {
  background: #ffffff;
  color: #0c2340;
}
html[data-theme="dark"] .hero .btn--primary:hover {
  background: #e8eef5;
  color: #0c2340;
}
html[data-theme="dark"] .page-hero h1 {
  color: #ffffff;
}
html[data-theme="dark"] .page-hero p {
  color: rgba(255, 255, 255, 0.92);
}

/* Dark mode: section titles and content on dark parallax/blue sections must stay light */
html[data-theme="dark"] .section--parallax .section-title,
html[data-theme="dark"] .section--parallax h2,
html[data-theme="dark"] .section--parallax h3,
html[data-theme="dark"] .section--parallax p,
html[data-theme="dark"] .section--parallax li,
html[data-theme="dark"] .section--bg-trust .section-title,
html[data-theme="dark"] .section--bg-trust h2,
html[data-theme="dark"] .section--bg-trust p,
html[data-theme="dark"] .section--bg-trust li,
html[data-theme="dark"] .section--bg-diff .section-title,
html[data-theme="dark"] .section--bg-diff h2,
html[data-theme="dark"] .section--bg-diff p,
html[data-theme="dark"] .section--bg-diff li {
  color: #f0f2f5;
}
html[data-theme="dark"] .section--parallax .section-title::after,
html[data-theme="dark"] .section--bg-trust .section-title::after,
html[data-theme="dark"] .section--bg-diff .section-title::after {
  background: #5a9cf8;
}
html[data-theme="dark"] .section--parallax .pillar-card__number,
html[data-theme="dark"] .section--parallax .diff-item h3,
html[data-theme="dark"] .section--parallax .founder-card .title-role,
html[data-theme="dark"] .section--bg-trust .content-block strong,
html[data-theme="dark"] .section--bg-diff .diff-item h3 {
  color: #7bb3fa;
}
html[data-theme="dark"] .section--parallax .pillar-card p,
html[data-theme="dark"] .section--parallax .diff-item p,
html[data-theme="dark"] .section--parallax .founder-card p,
html[data-theme="dark"] .section--parallax .content-block p,
html[data-theme="dark"] .section--bg-trust .content-block p,
html[data-theme="dark"] .section--bg-diff .diff-item p {
  color: rgba(240, 242, 245, 0.9);
}
html[data-theme="dark"] .section--parallax a:not(.btn),
html[data-theme="dark"] .section--bg-trust a:not(.btn),
html[data-theme="dark"] .section--bg-diff a:not(.btn) {
  color: #7bb3fa;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--navy-mid); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  color: var(--text-primary);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-bottom: var(--space-md); }
h3 { font-size: 1.0625rem; margin-bottom: var(--space-sm); }
h4 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}
.section--alt { background: var(--bg-secondary); }
.section--blue { background: var(--tint-blue); }
.section--slate { background: var(--tint-slate); }

/* Section color variants for variety */
.section--cream { background: #f6f4f0; }
.section--mint { background: #e5eeeb; }
.section--lavender { background: #ebeef5; }
html[data-theme="dark"] .section--cream { background: #1c232e; }
html[data-theme="dark"] .section--mint { background: #18202a; }
html[data-theme="dark"] .section--lavender { background: #1a2130; }

/* Section with background image (homepage trust, etc.) */
.section--bg-trust,
.section--bg-diff { position: relative; background: transparent !important; overflow: hidden; }
.section__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}
.section__bg-inner {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(232, 238, 245, 0.94) 0%, rgba(232, 238, 245, 0.98) 100%);
  z-index: 0;
}
.section--bg-trust .section__bg-inner { background-image: url('../images/iss018e008671~orig.jpg'); }
.section--bg-diff .section__bg-inner { background-image: url('../images/201107080054HQ~large.jpg'); }

/* Parallax sections */
.section--parallax {
  position: relative;
  overflow: hidden;
  background: transparent !important;
}
.parallax-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
}
.parallax-bg__image {
  position: absolute;
  top: -15%;
  left: 0;
  right: 0;
  width: 100%;
  height: 130%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.parallax-bg__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.section--parallax .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(232, 238, 245, 0.92) 0%, rgba(232, 238, 245, 0.96) 100%);
}
.section--parallax.section--slate .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(238, 240, 243, 0.92) 0%, rgba(238, 240, 243, 0.96) 100%);
}
.section--parallax.section--alt .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 249, 250, 0.95) 100%);
}
.section--parallax.section--cream .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(246, 244, 240, 0.9) 0%, rgba(246, 244, 240, 0.96) 100%);
}
.section--parallax.section--mint .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(229, 238, 235, 0.9) 0%, rgba(229, 238, 235, 0.96) 100%);
}
.section--parallax.section--lavender .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(235, 238, 245, 0.9) 0%, rgba(235, 238, 245, 0.96) 100%);
}
html[data-theme="dark"] .section--parallax .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(21, 29, 46, 0.92) 0%, rgba(21, 29, 46, 0.97) 100%);
}
html[data-theme="dark"] .section--parallax.section--cream .parallax-bg__overlay,
html[data-theme="dark"] .section--parallax.section--mint .parallax-bg__overlay,
html[data-theme="dark"] .section--parallax.section--lavender .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(21, 29, 46, 0.92) 0%, rgba(21, 29, 46, 0.97) 100%);
}
html[data-theme="dark"] .section--parallax.section--slate .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.92) 0%, rgba(22, 31, 48, 0.97) 100%);
}
html[data-theme="dark"] .section--parallax.section--alt .parallax-bg__overlay {
  background: linear-gradient(180deg, rgba(19, 27, 40, 0.9) 0%, rgba(19, 27, 40, 0.96) 100%);
}
.section--navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
}
.section--navy .section-title,
.section--navy h2 { color: var(--white); }
.section--navy .btn--primary {
  background: var(--white);
  color: var(--navy);
}
.section--navy .btn--primary:hover {
  background: var(--offwhite);
  color: var(--navy);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--charcoal);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}
.section-title.fade-in { transform: translateX(-50%) translateY(12px); }
.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: var(--navy);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}
.section-title.is-visible::after { width: 60px; }
.section-title.fade-in.is-visible { transform: translateX(-50%) translateY(0); }
.section--navy .section-title::after { background: var(--white); }

/* ----- Header: compact, corporate ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 8px rgba(0,0,0,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}
.logo__img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo__initials {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.logo:hover .logo__img { opacity: 0.9; }
.logo:hover .logo__initials { opacity: 0.9; }

.nav-main { display: none; }

@media (min-width: 900px) {
  .nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
  }
}

.nav-main a {
  color: var(--charcoal);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.nav-main a:hover { color: var(--navy); }

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-right: var(--space-sm);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-toggle:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--tint-blue);
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
html[data-theme="dark"] .theme-toggle__sun { display: block; }
html[data-theme="dark"] .theme-toggle__moon { display: none; }
.theme-toggle--mobile { width: 100%; margin-bottom: var(--space-md); justify-content: center; }

.header-cta { display: none; }
@media (min-width: 900px) {
  .header-cta { display: inline-block; }
  .theme-toggle { margin-right: var(--space-md); }
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover { background: var(--navy-mid); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--pop {
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn--pop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 35, 64, 0.35);
}

/* Mobile menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
}
@media (min-width: 900px) { .menu-toggle { display: none; } }

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: var(--header-height); left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--white);
  padding: var(--space-lg);
  overflow-y: auto;
  border-top: 1px solid var(--border);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-mobile.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.nav-mobile a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-light);
}
.nav-mobile a:hover { color: var(--navy); }
.nav-mobile .btn { margin-top: var(--space-md); width: 100%; }
@media (min-width: 900px) { .nav-mobile { display: none; } }

/* ----- Hero: clean, one line + CTA ----- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-color: var(--navy);
  background-image: url('../images/s126e014882~orig.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  min-width: 100%;
  min-height: 100%;
  height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
}
@media (min-aspect-ratio: 16/9) {
  .hero__bg-video iframe { width: 177.78vh; height: 100vh; min-height: 100%; }
}
.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12, 35, 64, 0.92) 0%, rgba(12, 35, 64, 0.88) 50%, rgba(12, 35, 64, 0.94) 100%);
  z-index: 1;
}
.hero__title {
  max-width: 20ch;
  margin: 0 auto var(--space-md);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 0, 0, 0.35);
}
.hero__subtitle {
  max-width: 48ch;
  margin: 0 auto var(--space-lg);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 0, 0, 0.3);
}
.hero .btn--primary { background: var(--white); color: var(--navy); }
.hero .btn--primary:hover { background: var(--offwhite); color: var(--navy); }

.hero .container { position: relative; z-index: 2; text-align: center; width: 100%; }

.hero__cta { margin-top: var(--space-lg); }

/* Content */
.content-block {
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}
.content-block ul {
  margin: var(--space-sm) 0;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}
.content-block li { margin-bottom: var(--space-xs); }

/* Icons */
.icon {
  width: 1.25em;
  height: 1.25em;
  display: block;
  flex-shrink: 0;
}

/* Pillars: tight cards + icons */
.pillars-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(5, 1fr); } }

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--navy);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: rgba(12, 35, 64, 0.2);
}
.pillar-card:hover::before { transform: scaleY(1); }
.pillar-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--tint-blue);
  color: var(--navy);
  margin-bottom: var(--space-sm);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.pillar-card__icon .icon { width: 20px; height: 20px; }
.pillar-card:hover .pillar-card__icon {
  transform: scale(1.08);
  background: var(--navy);
  color: var(--white);
}
.pillar-card__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}
.pillar-card h3 { font-size: 0.9375rem; margin-bottom: var(--space-xs); }
.pillar-card p { font-size: 0.8125rem; margin-bottom: 0; color: var(--text-muted); }

/* Services */
.services-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  border-color: rgba(12, 35, 64, 0.2);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tint-blue);
  color: var(--navy);
  margin-bottom: var(--space-md);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card:hover .service-card__icon {
  transform: scale(1.08);
  background: var(--navy);
  color: var(--white);
}
.service-card h3 { margin-bottom: var(--space-sm); }
.service-card p { font-size: 0.9375rem; margin-bottom: var(--space-md); }
.service-card .btn { margin-top: auto; transition: transform 0.2s var(--ease); }
.service-card .btn:hover { transform: translateX(4px); }

/* Differentiators */
.diff-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }

.diff-item {
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.diff-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.diff-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  margin-bottom: var(--space-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease);
}
.diff-item__icon .icon { width: 22px; height: 22px; }
.diff-item:hover .diff-item__icon { transform: scale(1.1); }
.diff-item h3 { color: var(--navy); font-size: 0.9375rem; margin-bottom: var(--space-xs); }
.diff-item p { font-size: 0.9375rem; margin-bottom: 0; }

/* Founders */
.founders-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .founders-grid { grid-template-columns: repeat(2, 1fr); } }

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.founder-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: rgba(12, 35, 64, 0.15);
}
.founder-card__photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: var(--space-md);
  display: block;
}
.founder-card h3 { margin-bottom: var(--space-xs); }
.founder-card .title-role { color: var(--navy); font-size: 0.8125rem; margin-bottom: var(--space-sm); }
.founder-card p { font-size: 0.9375rem; }
.founder-card a {
  margin-top: var(--space-sm);
  font-size: 0.875rem;
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.founder-card a:hover { transform: translateX(4px); }

/* CTA section */
.cta-section {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  border-top: none;
}
.cta-section h2 { margin-bottom: var(--space-lg); }

/* Page hero (inner pages) – supports background image via inline style or class */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  background: var(--navy);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(12, 35, 64, 0.88) 0%, rgba(12, 35, 64, 0.78) 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: var(--space-sm); color: var(--white); }
.page-hero p { max-width: 55ch; margin-bottom: 0; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.9); }

/* Page-hero background images (set in HTML via class or inline) */
.page-hero--framework { background-image: url('../images/KSC-00pp0735~orig.jpg'); background-size: cover; background-position: center; }
.page-hero--program { background-image: url('../images/KSC-03pd3188~orig.jpg'); background-size: cover; background-position: center; }
.page-hero--advisory { background-image: url('../images/201107070033HQ~medium.jpg'); background-size: cover; background-position: center; }
.page-hero--teams { background-image: url('../images/201107080054HQ~large.jpg'); background-size: cover; background-position: center; }
.page-hero--bios { background-image: url('../images/201107210027HQ~large.jpg'); background-size: cover; background-position: center; }
.page-hero--differentiators { background-image: url('../images/iss018e008671~orig.jpg'); background-size: cover; background-position: center; }
.page-hero--contact { background-image: url('../images/jsc2000-06245~orig.jpg'); background-size: cover; background-position: center; }
.page-hero--thankyou {
  background-image: url('../images/s126e014882~orig.jpg');
  background-size: cover;
  background-position: center;
  justify-content: center;
}
.page-hero--thankyou .container {
  text-align: center;
  width: 100%;
  max-width: var(--max-width);
}
.page-hero--thankyou h1,
.page-hero--thankyou p {
  margin-left: auto;
  margin-right: auto;
}

/* Content sections */
.content-section {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--border-light);
}
.content-section:last-of-type { border-bottom: none; }
.content-section h2 {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
}

/* Bio page: founder photo + name block */
.bio-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.bio-photo {
  width: 160px;
  height: 160px;
  min-width: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
}
.bio-header h2 { margin-bottom: var(--space-xs); border-bottom: none; padding-bottom: 0; }
.bio-header .title-role { color: var(--navy); font-size: 0.9375rem; margin: 0; }
@media (max-width: 480px) {
  .bio-header { flex-direction: column; align-items: center; text-align: center; }
}

/* Partner logo (e.g. O'Donnell Aerospace) */
.partner-logo { margin: var(--space-md) 0; }
.partner-logo__img {
  max-width: 220px;
  height: auto;
  display: block;
  transition: opacity 0.2s var(--ease);
}
.partner-logo a:hover .partner-logo__img { opacity: 0.85; }

/* Contact */
.contact-grid {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info h3 { margin-bottom: var(--space-md); }
.contact-info address, .contact-info p { font-style: normal; color: var(--text-secondary); font-size: 0.9375rem; }
.contact-info a { display: block; margin-bottom: var(--space-xs); }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
  color: var(--charcoal);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form__status {
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b1538;
  background: #fde8ec;
  border: 1px solid #f5c6cf;
  border-radius: var(--radius);
}
html[data-theme="dark"] .contact-form__status {
  color: #fca5a5;
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(248, 113, 113, 0.35);
}

.contact-form { position: relative; }
.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Thank you (post-form) */
.thank-you-panel {
  max-width: 36rem;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(12, 35, 64, 0.08);
}
.thank-you-panel__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-blue);
  border-radius: 50%;
}
.thank-you-panel__icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thank-you-panel__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--navy);
  margin-bottom: var(--space-md);
  font-weight: 700;
}
.thank-you-panel p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}
.thank-you-panel__actions { margin-bottom: 0 !important; }
.thank-you-panel .btn { min-width: 12rem; }
html[data-theme="dark"] .thank-you-panel {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .thank-you-panel__title { color: var(--navy); }
html[data-theme="dark"] .thank-you-panel__icon {
  background: rgba(90, 156, 248, 0.15);
  color: var(--navy);
}

/* Footer */
.site-footer {
  padding: var(--space-xl) var(--space-lg);
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  text-align: center;
}
.site-footer p {
  margin-bottom: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--silver);
}
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--silver); }

.site-footer .footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 0;
}
.site-footer .footer-linkedin__icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.fade-in-stagger.is-visible > *:nth-child(1) { transition-delay: 0.03s; }
.fade-in-stagger.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.fade-in-stagger.is-visible > *:nth-child(3) { transition-delay: 0.09s; }
.fade-in-stagger.is-visible > *:nth-child(4) { transition-delay: 0.12s; }
.fade-in-stagger.is-visible > *:nth-child(5) { transition-delay: 0.15s; }
.fade-in-stagger.is-visible > *:nth-child(6) { transition-delay: 0.18s; }
.fade-in-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

.skip-link {
  position: absolute;
  top: -100px; left: var(--space-md);
  z-index: 10001;
  padding: var(--space-sm) var(--space-md);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-md); }
html[data-theme="dark"] .skip-link { background: var(--navy); color: #ffffff; }
