/* ==========================================================================
   Aleš Svoboda — alessvoboda.space (v2, operator/HUD iteration)
   Palette: #050A30 navy, #ED0000 red (brand guide).
   Display: Barlow Condensed. Body: Inter. Mono: JetBrains Mono.
   ========================================================================== */

:root {
  --navy: #050A30;
  --navy-deep: #020716;
  --black: #05060d;
  --navy-soft: #0b1346;
  --red: #ED0000;
  --red-dark: #B80000;
  --red-glow: rgba(237, 0, 0, 0.2);
  --white: #ffffff;
  --cream: #f6f3ec;
  --cream-alt: #ece7dc;
  --ink: #0b0e24;
  --muted: #8b92a8;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.06);

  --font-display: "Barlow Condensed", "DIN Next Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1280px;
  --container-narrow: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 0.98;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}

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

h1 { font-size: clamp(3.2rem, 7.6vw, 7.4rem); }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2.1vw, 1.85rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: inherit; text-decoration: none; transition: color 0.2s, opacity 0.2s; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

.section { padding: 128px 0; position: relative; }
.section--light { background: var(--cream); color: var(--ink); }
.section--tight { padding: 88px 0; }

/* ==========================================================================
   Operator / HUD utility classes
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 42px; height: 2px;
  background: var(--red);
}

.section--light .eyebrow { color: var(--red); }

.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.9;
}

.mono-tag::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--red-glow);
  vertical-align: middle;
  margin-right: 8px;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(237,0,0,0.2); }
  50% { box-shadow: 0 0 0 8px rgba(237,0,0,0.05); }
}

.brackets {
  position: relative;
  display: inline-block;
  padding: 2px 14px;
}

.brackets::before, .brackets::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 8px;
  border-color: var(--red);
  border-style: solid;
}

.brackets::before { left: 0; border-width: 1px 0 1px 1px; }
.brackets::after  { right: 0; border-width: 1px 1px 1px 0; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: linear-gradient(180deg, rgba(5,10,48,0.78) 0%, rgba(5,10,48,0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s;
}

.nav--solid { background: rgba(5,10,48,0.97); border-bottom: 1px solid var(--line); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.nav__brand img {
  height: 38px; width: auto;
  background: var(--white);
  border-radius: 4px;
  padding: 2px;
}

.nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav__links a { color: var(--white); opacity: 0.78; }
.nav__links a:hover { opacity: 1; }

.nav__cta {
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.35);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}

.nav__cta:hover { background: var(--red); border-color: var(--red); opacity: 1 !important; }

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  width: 44px; height: 44px;
  cursor: pointer; padding: 0;
}

.nav__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); margin: 5px auto;
}

/* ==========================================================================
   Hero — operator interface
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 40%, #0e1a5e 0%, var(--navy) 35%, var(--navy-deep) 80%);
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  z-index: 1;
}

.hero__scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 85%, rgba(237,0,0,0.04) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__pilot {
  position: absolute;
  right: -3%;
  bottom: 0;
  height: 94%;
  width: auto;
  z-index: 2;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 145px 0 20px;
  max-width: 700px;
  transform: translateY(-20px);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: var(--white);
}

.hero__kicker::before {
  content: "";
  width: 48px; height: 2px;
  background: var(--red);
}

.hero__title {
  font-size: clamp(3.6rem, 8vw, 7.6rem);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.012em;
  line-height: 0.92;
}

.hero__title .red { color: var(--red); }

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0.95;
  white-space: nowrap;
}

.hero__tagline .role { white-space: nowrap; }
.hero__tagline .dot {
  color: var(--red);
  margin: 0 12px;
  font-weight: 600;
  letter-spacing: 0;
}

@media (max-width: 520px) {
  .hero__tagline { white-space: normal; font-size: 0.95rem; }
  .hero__tagline .dot { margin: 0 8px; }
}

.hero__sub {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  max-width: 44ch;
  opacity: 0.9;
  margin-bottom: 48px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(24px, 3.2vw, 48px);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 540px;
  position: relative;
}

.hero__stats::before,
.hero__stats::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 2px solid var(--red);
}

.hero__stats::before { left: -6px; top: -6px; border-right: none; border-bottom: none; }
.hero__stats::after  { right: -6px; bottom: -6px; border-left: none; border-top: none; }

.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  white-space: nowrap;
}

.hero__stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.78;
  font-family: var(--font-display);
}

/* Optional monospace corner data readout */
.hud-corner {
  position: absolute;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  color: var(--white);
  pointer-events: none;
}

.hud-corner--tr { top: 92px; right: 36px; text-align: right; }
.hud-corner--br { bottom: 30px; right: 36px; text-align: right; }
.hud-corner--bl { bottom: 76px; left: 36px; text-align: left; }

.hud-corner .lbl { color: var(--red); margin-right: 8px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn::after { content: "→"; font-family: var(--font-body); transition: transform 0.2s; }
.btn:hover::after { transform: translateX(4px); }

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--ghost:hover { background: rgba(255,255,255,0.1); }

.btn--dark { color: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--white); }

.btn--sm { padding: 12px 22px; font-size: 0.9rem; }

/* ==========================================================================
   Split sections
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.split--reverse .split__media { order: 2; }
.split--wide { grid-template-columns: 5fr 7fr; }

.split__media { position: relative; }

.split__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.split__media--wide img { aspect-ratio: 16/10; }

.split__media .badge {
  position: absolute;
  left: -16px; top: 28px;
  background: var(--red);
  padding: 10px 18px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.88rem;
  color: var(--white);
  font-weight: 600;
}

.split__media .frame-tick {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--red);
}

.split__media .frame-tick--tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.split__media .frame-tick--tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.split__media .frame-tick--bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.split__media .frame-tick--br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.split__content p { opacity: 0.92; font-size: 1.05rem; }
.split__content p.lead { font-size: 1.3rem; opacity: 1; margin-bottom: 1.2em; line-height: 1.45; }
.split__content ul { padding-left: 20px; margin-bottom: 28px; }
.split__content li { margin-bottom: 8px; font-size: 1.02rem; }

/* ==========================================================================
   Keynote speaking block — subtle funnel
   ========================================================================== */

.keynote-block {
  background: var(--cream);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  /* Thin top border serving as the divider between O Alešovi and Keynote. */
  box-shadow: inset 0 1px 0 0 var(--navy-deep, #080a1f);
  padding: 78px 0 72px;
}

.keynote-block__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(18, 21, 48, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 21, 48, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
  opacity: 0.85;
}

.keynote-block .container { position: relative; z-index: 1; }

.keynote-intro {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  margin-bottom: 44px;
}

.keynote-intro h2 { max-width: 16ch; margin-bottom: 20px; }

.keynote-intro p { font-size: 1.1rem; opacity: 0.92; max-width: 58ch; }

/* Solo variant (no gallery): headline + body span the whole section width */
.keynote-intro--solo {
  display: block;
  margin-bottom: 56px;
}
.keynote-intro--solo > div { max-width: none; }
.keynote-intro--solo h2 { max-width: none; }
.keynote-intro--solo p  { max-width: none; }

.keynote-media {
  position: relative;
  aspect-ratio: 4/5;
  background: radial-gradient(ellipse at 60% 40%, #141d5e 0%, var(--navy-deep) 75%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.keynote-media img {
  width: 92%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* Modifier: full-bleed photo (for action/stage shots with a real background) */
.keynote-media--full { background: none; }
.keynote-media--full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.keynote-media--full::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,7,22,0) 40%, rgba(2,7,22,0.75) 100%);
  pointer-events: none;
}

/* Corner ticks on keynote media */
.keynote-media .frame-tick {
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--red);
  z-index: 3;
}
.keynote-media .frame-tick--tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.keynote-media .frame-tick--tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.keynote-media .frame-tick--bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.keynote-media .frame-tick--br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.keynote-media .hud-corner {
  position: absolute;
  top: 16px; left: 16px;
  color: var(--red);
  opacity: 0.85;
  z-index: 3;
}

.keynote-media .caption {
  position: absolute;
  left: 20px; bottom: 18px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.88;
}

.keynote-topics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  margin-bottom: 44px;
}
/* 2-up compact row used under "Další témata" */
.keynote-topics--compact {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0;
}

/* =====================================================================
   V21 — Featured keynote cards (always-expanded top 3) + section subheads
   ===================================================================== */

.keynote-subhead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}
.keynote-subhead h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.keynote-subhead--tight { margin-top: 52px; margin-bottom: 18px; }

/* =====================================================================
   PORTED FROM aimhigh.cz — keynote topics (3 always-open infoboxes)
   Verbatim style/structure: golden-ratio diagonal photo, ghost CTA,
   giant data-kf watermark, "Also available on request" block.
   ===================================================================== */

.topics-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.topics-header h2 { margin-bottom: 0; max-width: 26ch; }
/* Sub-header sized variant for the topics intro h2 */
.topics-header__h2 {
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Tab-panel stage */
.kf-stage {
  position: relative;
}

.keynote-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.kf-card {
  position: relative;
  background: rgba(12, 16, 46, 0.94);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--red);
  overflow: hidden;
  width: 100%;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
}

.kf-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(237,0,0,0.05) 0%, rgba(0,0,0,0) 40%);
  z-index: 0;
}

.kf-card__toggle {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 26px 34px 22px;
  /* Reserve room on the right for the golden-ratio photo panel (φ ≈ 61.8 / 38.2) */
  padding-right: calc(42% + 24px);
  text-align: left;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.kf-card__head {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 14px;
}

.kf-card__num {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 1.12rem;
  letter-spacing: -0.04em;
}

.kf-card__label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.55;
}

.kf-card__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.01em;
  color: var(--white);
  display: block;
  font-size: clamp(1.6rem, 2.2vw, 1.95rem);
  line-height: 1.05;
}

.kf-card__lede {
  margin: 10px 0 0;
  max-width: 70ch;
  color: var(--white);
  font-size: 1.06rem;
  line-height: 1.5;
  opacity: 0.86;
  display: block;
}

.kf-card__body {
  display: block;
  padding: 4px 34px 34px;
  padding-right: calc(42% + 24px);
  position: relative;
  z-index: 1;
}

.kf-card__takeaways { max-width: none; }

.kf-card::before {
  content: attr(data-kf);
  position: absolute;
  top: -0.22em;
  left: -0.02em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(220px, 26vw, 380px);
  line-height: 0.88;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.kf-card__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  transition: opacity 320ms ease;
}

.kf-card__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14,15,20,0.55) 0%, rgba(14,15,20,0.15) 30%, rgba(14,15,20,0) 55%);
  pointer-events: none;
}

.kf-card[data-kf="01"] .kf-card__backdrop {
  background-image: url('assets/gripen-cockpit.jpg');
  background-size: auto 140%;
  background-position: center 85%;
}
.kf-card[data-kf="03"] .kf-card__backdrop { background-image: url('assets/survival.png'); }

.kf-card[data-kf="02"] .kf-card__backdrop {
  background:
    url('assets/f35-helmet-nvg.png') center bottom / cover no-repeat,
    linear-gradient(180deg, #1d3a5c 0%, #4d7fa8 35%, #88b3d0 70%, #c8dde8 100%);
}

/* ==========================================================================
   "Also available on request" — ancillary topics block under the 3 keynotes
   ========================================================================== */

.kf-also {
  margin-top: 48px;
  padding: 24px 0 8px;
  background: transparent;
  border: none;
}

.kf-also__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 800;
  margin-bottom: 18px;
}

.kf-also__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.kf-also__list li {
  position: relative;
  padding-left: 22px;
}

.kf-also__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-size: 1rem;
  line-height: 1.5;
}

.kf-also__title {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.kf-also__desc {
  display: block;
  color: var(--ink);
  opacity: 0.72;
  font-size: 0.98rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .kf-also__list {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.kf-card__takeaways h5 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
  font-weight: 600;
}

.kf-card__takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.kf-card__takeaways li {
  padding: 9px 0 9px 26px;
  position: relative;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--white);
  opacity: 0.95;
}

.kf-card__takeaways li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red);
}

.kf-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--white);
  padding: 12px 20px;
  margin-top: 10px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.kf-card__cta::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 1.1em;
  transition: transform 0.2s;
}

.kf-card__cta:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.kf-card__cta:hover::after { transform: translateX(4px); }

/* Tablet: shrink the diagonal photo panel so text has breathing room */
@media (max-width: 1100px) {
  .kf-card__toggle { padding-right: calc(34% + 20px); }
  .kf-card__body   { padding-right: calc(34% + 20px); }
  .kf-card__backdrop {
    width: 38%;
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    -webkit-clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
}

/* Mobile: photo becomes a header band over the card */
@media (max-width: 760px) {
  .kf-card__body { padding: 0 22px 24px; }
  .kf-card__toggle { padding: 22px 22px 18px; padding-right: 22px; }
  .kf-card__backdrop {
    width: 100%;
    height: 160px;
    bottom: auto;
    clip-path: none;
    -webkit-clip-path: none;
    opacity: 0.55;
  }
  .kf-card__backdrop::after {
    background: linear-gradient(180deg, rgba(14,15,20,0.15) 0%, rgba(12,16,46,0.85) 70%, rgba(12,16,46,1) 100%);
  }
  .kf-card__toggle { padding-top: 130px; }
}

.k-topic {
  background: var(--navy);
  padding: 30px 24px 32px;
  transition: background 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.k-topic::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.k-topic:hover { background: #0a1042; }
.k-topic:hover::before { transform: scaleY(1); }

.k-topic__num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 6px;
}

.k-topic__label {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.55;
  margin-bottom: 20px;
}

.k-topic__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.9vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 14px;
}

.k-topic__desc {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--white);
  opacity: 0.78;
  margin: 0;
}

.k-topic__more {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}

.k-topic:hover .k-topic__more { opacity: 0.95; transform: translateY(0); }

.keynote-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.keynote-cta__text {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 52ch;
}

.keynote-cta__text strong { color: var(--red); font-weight: 600; }

.keynote-clients {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.55;
  margin-top: 24px;
}

/* Keynote light-theme overrides — applied on top of the defaults above.
   Section is cream/ink; topic boxes stay dark navy with white text. */
.keynote-block .eyebrow { color: var(--red); }
.keynote-block .keynote-intro h2 { color: var(--ink); }
.keynote-block .keynote-intro p { color: var(--ink); opacity: 0.82; }
.keynote-block .keynote-topics { background: rgba(18, 21, 48, 0.14); }
.keynote-block .keynote-cta { border-top: 1px solid rgba(18, 21, 48, 0.15); }
.keynote-block .keynote-cta__text { color: var(--ink); opacity: 0.88; }
.keynote-block .keynote-clients { color: var(--ink); opacity: 0.62; }
/* Expanded dossier panel lives on dark navy — force white text regardless of section color */
.keynote-block .k-topic-panel,
.keynote-block .k-topic-panel li,
.keynote-block .k-topic-panel p,
.keynote-block .k-topic-panel .k-topic-panel__cta { color: var(--white); }
.keynote-block .k-topic-panel__specs p { color: var(--white); opacity: 0.85; }
.keynote-block .keynote-media {
  background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.6) 0%, rgba(18,21,48,0.08) 75%);
}
/* Subtle outer frame + only 2 red corners (TL + BR) — mirrors hero__stats */
.keynote-block .keynote-media.carousel {
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(18, 21, 48, 0.22);
}
.keynote-block .keynote-media.carousel > .frame-tick--tr,
.keynote-block .keynote-media.carousel > .frame-tick--bl { display: none; }

/* ==========================================================================
   ISS mission — context block with Crew Dragon
   ========================================================================== */

.mission {
  background: var(--black);
  position: relative;
  overflow: hidden;
  /* Crop the section to exactly the map (1200×620) — no empty air above/below */
  aspect-ratio: 1200 / 620;
  min-height: 560px;
  display: flex;
  align-items: center;
}
@media (max-width: 900px) {
  .mission {
    aspect-ratio: auto;
    min-height: 0;
    display: block;
  }
}

.mission__bg {
  position: absolute; inset: 0;
  background: #02050e;
  opacity: 1;
  z-index: 0;
}

.mission-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Graticule — subtle grid, slightly lifted so it reads clearly */
.mission-map__graticule polyline {
  stroke: rgba(255, 255, 255, 0.10);
  stroke-width: 1;
  fill: none;
  vector-effect: non-scaling-stroke;
}
.mission-map__graticule .is-prime,
.mission-map__graticule .is-equator {
  stroke: rgba(255, 255, 255, 0.20);
  stroke-dasharray: 2 3;
}

/* Land polygons — Palantir-style deep blue coastlines. Red stays reserved for
   the ISS trajectory + position so the eye reads them first. */
.mission-map__land path {
  stroke: rgba(96, 156, 230, 0.90);
  stroke-width: 1.1;
  fill: rgba(42, 96, 180, 0.16);
  fill-rule: evenodd;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px rgba(88, 148, 220, 0.45));
}

/* Terminator night shading */
.mission-map__night {
  fill: rgba(2, 4, 12, 0.55);
  stroke: rgba(96, 156, 230, 0.35);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

/* ISS ground track */
.mission-map__orbit {
  fill: none;
  stroke: rgb(255, 80, 80);
  stroke-width: 1.8;
  /* Butt caps avoid the "knot" effect where two adjacent paths' round
     semicircular caps overlap and composite to a darker dot. Joins
     within a single path stay round so the polyline approximation of
     the orbital sinusoid still reads as a smooth curve. */
  stroke-linecap: butt;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
/* The trace is built dynamically as a chain of per-segment paths inside
   this group. Each segment's stroke-opacity is set inline by JS so the
   trail fades smoothly from bright at the live ISS dot to transparent
   at the ends. The drop-shadow filter is applied ONCE to the whole
   group rather than per-segment — orders of magnitude cheaper to paint
   than ~90 individual filter passes. */
.mission-map__orbit-group {
  filter: drop-shadow(0 0 4px rgba(237, 0, 0, 0.85));
}

/* ISS target reticle — always on, high contrast */
.mission-map__iss {
  fill: var(--red);
  stroke: #ffffff;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px rgba(237, 0, 0, 1)) drop-shadow(0 0 16px rgba(237, 0, 0, 0.6));
}
.mission-map__iss-ring {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.4;
  opacity: 0.85;
  vector-effect: non-scaling-stroke;
}
.mission-map__iss-tick {
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.mission-map__iss-pulse {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.4;
  transform-origin: center;
  transform-box: fill-box;
  animation: mapIssPulse 2.6s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}
.mission-map__iss-pulse--b { animation-delay: 1.3s; }
@keyframes mapIssPulse {
  0%   { transform: scale(1);   opacity: 1;   stroke-width: 1.8; }
  100% { transform: scale(9);   opacity: 0;   stroke-width: 0.4; }
}

/* Overlay — dialed back so the map reads clearly while text stays legible. */
.mission__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(5,6,13,0.80) 0%,
      rgba(5,6,13,0.42) 45%,
      rgba(5,6,13,0.05) 100%),
    linear-gradient(180deg,
      rgba(5,6,13,0.2) 0%,
      rgba(5,6,13,0) 35%,
      rgba(5,6,13,0) 70%,
      rgba(5,6,13,0.35) 100%);
  z-index: 1;
  pointer-events: none;
}
/* On narrow screens, the content stacks on top of the map so we need more
   contrast top-to-bottom rather than left-to-right. */
@media (max-width: 900px) {
  .mission__overlay {
    background: linear-gradient(180deg,
      rgba(5,6,13,0.55) 0%,
      rgba(5,6,13,0.78) 25%,
      rgba(5,6,13,0.82) 100%);
  }
}

.mission .container {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 100%;
}
@media (max-width: 900px) {
  .mission .container {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

.mission__grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 80px;
  align-items: center;
}

.mission__head {
  display: flex; align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.mission__code {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.mission__code::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--red);
}

.mission h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 16ch;
  margin-bottom: 28px;
}

.mission__lead {
  font-size: 1.2rem;
  max-width: 58ch;
  opacity: 0.92;
  margin-bottom: 24px;
  line-height: 1.5;
}

.mission__body { font-size: 1.05rem; opacity: 0.85; max-width: 58ch; }

.mission__panel {
  border: 1px solid var(--line);
  background: rgba(5,6,13,0.72);
  padding: 36px;
  backdrop-filter: blur(4px);
  position: relative;
}

.mission__panel-tag {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
}

.mission__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  margin-bottom: 28px;
}

.mission__pillar {
  background: rgba(5,6,13,0.6);
  padding: 20px;
}

.mission__pillar h4 {
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 6px;
}

.mission__pillar p { margin: 0; font-size: 0.95rem; opacity: 0.85; }

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.newsletter input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.newsletter input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter button {
  padding: 14px 22px;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter button:hover { background: var(--red-dark); }

.newsletter__note {
  font-size: 0.88rem;
  opacity: 0.6;
  margin-top: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--cream);
  color: var(--ink);
  padding: 96px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.contact__heading {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
  color: var(--ink);
}

.contact__heading .accent { color: var(--red); }

.accent-red { color: var(--red); }

.keynote-h2-tail { display: block; margin-top: 0; }

.contact__meta { margin-top: 24px; }

.contact__meta p {
  font-size: 1.02rem;
  opacity: 0.85;
  margin-bottom: 24px;
  max-width: 38ch;
}

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

.contact__meta li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}

.contact__meta li .ico {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--cream);
  font-size: 0.82rem; font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.contact__meta li:first-child .ico {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  padding-bottom: 2px; /* optical centering for ✉ glyph */
}

.contact__meta a { color: var(--ink); opacity: 0.88; }
.contact__meta a:hover { color: var(--red); opacity: 1; }

/* Press chip — pointer to media-kit page from the contact section */
.press-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 10px 16px 10px 10px;
  border: 1px solid rgba(18, 21, 48, 0.18);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.press-chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  opacity: 1;
}
.press-chip__tag {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 9px;
  font-weight: 600;
}
.press-chip__text {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.92rem;
}
.press-chip__arrow {
  font-family: var(--font-mono);
  color: var(--red);
  transition: transform 0.18s ease;
}
.press-chip:hover .press-chip__arrow {
  transform: translateX(3px);
  color: var(--white);
}
/* Override the .contact__meta a hover-color rule for this chip */
.contact__meta .press-chip:hover { color: var(--cream); }

.form-card {
  background: var(--white);
  padding: 44px 48px;
  box-shadow: 0 8px 24px rgba(18,21,48,0.08);
  border-top: 3px solid var(--red);
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.86rem;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 600;
}

.field label span { color: var(--red); margin-left: 4px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(18,21,48,0.18);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}

.field textarea { min-height: 150px; resize: vertical; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.gdpr {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  opacity: 0.82;
  margin: 16px 0 24px;
  line-height: 1.5;
}

.gdpr a { color: var(--ink); text-decoration: underline; }

.form-submit {
  padding: 16px 32px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 600;
}
.form-submit:disabled { opacity: 0.6; cursor: progress; }
.form-status { margin-top: 14px; font-size: 0.92rem; min-height: 1.2em; }
.form-status[data-state="ok"]  { color: var(--red); }
.form-status[data-state="err"] { color: var(--red); }

.form-submit:hover { background: var(--red); border-color: var(--red); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #02040f;
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
  font-size: 0.96rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__brand img {
  height: 44px;
  background: var(--white);
  border-radius: 4px;
  padding: 3px;
  margin-bottom: 14px;
}

.footer__brand p { opacity: 0.7; max-width: 32ch; }

.footer__col h5 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 14px;
}

.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; opacity: 0.82; }
.footer__col a:hover { color: var(--red); opacity: 1; }

.footer__legal {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 0.88rem;
  opacity: 0.55;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Page header (bio page)
   ========================================================================== */

.page-header {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 64px;
}

.page-header__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 22%;
  z-index: 0;
}

.page-header__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,10,48,0.4) 0%, rgba(5,10,48,0.2) 50%, rgba(5,10,48,0.96) 100%);
  z-index: 1;
}

.page-header .container { position: relative; z-index: 2; padding-top: 140px; }

.page-header h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  margin: 0;
}

.page-header .subtitle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 12px;
}

.page-header .subtitle__sep {
  display: inline-block;
  margin: 0 0.55em;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0;
}

/* ==========================================================================
   Timeline (bio page)
   ========================================================================== */

.timeline-wrap {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}

.timeline-wrap .intro p { opacity: 0.92; font-size: 1.05rem; }
.timeline-wrap .lead { font-size: 1.22rem; line-height: 1.5; margin-bottom: 1.1em; }

/* Bio-page timeline — mirrors the home-page about-timeline visual language
   (red gradient spine, red bullet, red horizontal tick, downward chevron at end)
   but keeps the stacked year-on-top / text-below layout. */
.timeline {
  position: relative;
  padding: 40px 0 28px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(237, 0, 0, 0.55) 8%,
    rgba(237, 0, 0, 0.55) 92%,
    transparent 100%
  );
  pointer-events: none;
}

/* Downward chevron at the bottom of the spine (echo from home page) */
.timeline::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: 6px;
  width: 24px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='%23ed0000'><polyline points='4 0 12 6 20 0' stroke-width='2' stroke-opacity='0.85'/><polyline points='6 10 12 15 18 10' stroke-width='1.5' stroke-opacity='0.35'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.t-item {
  position: relative;
  padding: 0 0 28px 40px;
  margin: 0;
}

.t-item:last-child { padding-bottom: 28px; }

/* Red bullet aligned to the year line */
.t-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(237, 0, 0, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

/* Horizontal tick passes exactly through the dot's vertical mid-point.
   Dot: top:4 + height:12 → center y=10. Tick: top:9 + height:2 → center y=10. */
.t-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 2px;
  background: rgba(237, 0, 0, 0.55);
  pointer-events: none;
}

.t-item:hover::before {
  transform: scale(1.18);
  box-shadow: 0 0 0 5px rgba(237, 0, 0, 0.28);
}

/* Milestones — same dot, slightly stronger halo */
.t-item--milestone::before {
  box-shadow: 0 0 0 4px rgba(237, 0, 0, 0.28);
}

.t-year {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}

.t-text {
  font-size: 1.02rem;
  opacity: 0.92;
  margin: 0;
  max-width: 52ch;
  color: var(--ink);
}

.section--dark .t-text { color: var(--white); opacity: 0.88; }

/* ==========================================================================
   Bio page (ales.html) — tighten the spacious section/column padding
   ========================================================================== */

/* Section padding — was 128px (.section default), trim for a denser read */
.bio-intro.section { padding: 80px 0 72px; }
.section--creds.section { padding: 64px 0; }
.section--favs.section { padding: 72px 0; }

/* Timeline column gap — was 80px */
.timeline-wrap { gap: 56px; }

/* Bio intro paragraph rhythm — pull paragraphs closer together */
.timeline-wrap .intro p { margin-bottom: 0.7em; }
.timeline-wrap .intro .lead { margin-bottom: 0.85em; }

/* ==========================================================================
   Credentials / favorites (bio)
   ========================================================================== */

.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 36px; }

.creds h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 12px;
}

.creds ul { list-style: none; padding: 0; margin: 0; }
.creds li { margin-bottom: 6px; font-size: 1rem; line-height: 1.45; }

.favorites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(18,21,48,0.1);
}

.favorites h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.favorites ul { list-style: none; padding: 0; margin: 0; }
.favorites li { margin-bottom: 5px; font-size: 1rem; line-height: 1.45; }
.favorites em { font-style: italic; }

.signature {
  margin-top: 48px;
  font-family: "Caveat", "Brush Script MT", cursive;
  font-size: 2.6rem;
  opacity: 0.9;
  font-style: italic;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-grid a:hover img { transform: scale(1.02); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .split,
  .split--wide,
  .keynote-intro,
  .mission__grid,
  .timeline-wrap,
  .contact__grid,
  .favorites,
  .creds {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split--reverse .split__media { order: 0; }

  .keynote-topics { grid-template-columns: repeat(2, 1fr); }
  .mission__pillars { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    padding: 24px 32px; background: var(--navy-deep);
    border-top: 1px solid var(--line); gap: 20px;
  }

  .nav__toggle { display: block; }
  .nav__cta { display: none; }

  .section { padding: 88px 0; }
  .hero__content { padding: 128px 0 88px; max-width: 100%; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 28px; max-width: 100%; }
  .hero__pilot { opacity: 0.18; height: 70%; right: -20%; }
  .hero__sub { max-width: 100%; }

  .form-card { padding: 32px 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .hud-corner { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 17.5px; }
  .photo-grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; }
  .keynote-topics { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .newsletter { flex-direction: column; }
}

/* ==========================================================================
   Interactive behaviors — reveal, stat counter, ISS live, topic dossier
   ========================================================================== */

/* Scroll-reveal: sections fade + lift when they enter the viewport */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* HUD mission clock — force monospace alignment */
.hud-corner .kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.hud-corner .kv .lbl { margin: 0; }

/* Live ISS position strip (sits in the mission section) */
.iss-live {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 13, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.iss-live__dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--red-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.iss-live__label { color: var(--red); font-weight: 500; }
.iss-live__coords { opacity: 0.95; }
.iss-live__alt,
.iss-live__speed { opacity: 0.6; }
.iss-live[data-state="error"] { display: none; }

/* Topic cards become buttons when interactive */
button.k-topic {
  font: inherit;
  text-align: left;
  color: inherit;
  border: none;
  cursor: pointer;
  width: 100%;
}
button.k-topic[aria-expanded="true"] {
  background: #0a1042;
}
button.k-topic[aria-expanded="true"]::before { transform: scaleY(1); }
button.k-topic[aria-expanded="true"] .k-topic__more { opacity: 0.95; transform: translateY(0); }

/* Expandable topic detail panels (one rendered per card, only one visible at a time) */
.keynote-panels {
  display: grid;
  gap: 0;
  margin-bottom: 44px;
}
.k-topic-panel {
  max-height: 0;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid transparent;
  border-top: none;
  transition: max-height 0.55s cubic-bezier(0.2, 0.9, 0.3, 1),
              border-color 0.2s 0.2s,
              padding 0.3s ease;
}
.k-topic-panel[data-open="true"] {
  max-height: 900px;
  border-color: var(--line);
}
.k-topic-panel__inner {
  padding: 40px 36px;
}
.k-topic-panel__head {
  display: flex; align-items: baseline;
  gap: 18px; flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.k-topic-panel__num {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 1.12rem;
  letter-spacing: 0.18em;
}
.k-topic-panel__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.k-topic-panel__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
}
.k-topic-panel h4 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}
.k-topic-panel ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.k-topic-panel li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.58;
  opacity: 0.92;
}
.k-topic-panel li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red);
}
.k-topic-panel__specs {
  background: rgba(255, 255, 255, 0.03);
  padding: 22px 24px;
  border-left: 2px solid var(--red);
}
.k-topic-panel__specs p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 14px;
}
.k-topic-panel__specs p strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
  font-weight: 500;
}
.k-topic-panel__cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.92rem;
  color: var(--white);
  border-bottom: 1px solid var(--red);
  padding: 6px 0;
  transition: color 0.2s;
}
.k-topic-panel__cta:hover { color: var(--red); }

@media (max-width: 900px) {
  .k-topic-panel__grid { grid-template-columns: 1fr; gap: 28px; }
  .k-topic-panel__inner { padding: 28px 24px; }
  .k-topic-panel[data-open="true"] { max-height: 1400px; }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot,
  .iss-live__dot { animation: none; }
  .k-topic-panel { transition: none; }
  .k-topic::before { transition: none; }
  .k-topic__more { transition: none; }
}

/* =====================================================================
   V2 INTERACTIVE — typewriter, briefing terminal, orbit globe, gallery
   ===================================================================== */

/* --- Typewriter glitch on hero tagline --- */
.hero__tagline[data-typewriter] { min-height: 1.6em; }
.hero__tagline[data-typewriter] .role,
.hero__tagline[data-typewriter] .dot { opacity: 0; transition: opacity 0.18s; }
.hero__tagline[data-typewriter].is-typing .role,
.hero__tagline[data-typewriter].is-typing .dot,
.hero__tagline[data-typewriter].is-done .role,
.hero__tagline[data-typewriter].is-done .dot { opacity: 1; }
.hero__tagline[data-typewriter] .role.is-glitching {
  animation: twGlitch 0.28s steps(2, end) 1;
  text-shadow: 1px 0 0 var(--red), -1px 0 0 rgba(0, 200, 255, 0.75);
}
@keyframes twGlitch {
  0%   { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  20%  { transform: translate(-1px, 0.5px); clip-path: inset(10% 0 60% 0); }
  40%  { transform: translate(1px, -0.5px); clip-path: inset(40% 0 20% 0); }
  60%  { transform: translate(-0.5px, 0); clip-path: inset(70% 0 5% 0); }
  80%  { transform: translate(0.5px, 0.5px); clip-path: inset(20% 0 45% 0); }
  100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); text-shadow: none; }
}

/* --- Mission briefing terminal --- */
.briefing {
  margin: 20px 0 26px;
  max-width: 580px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 13, 0.55);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  overflow: hidden;
}
.briefing::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--red);
}
.briefing__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
}
.briefing__dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--red-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.briefing__label { flex: 1; }
.briefing__tag {
  color: var(--red);
  font-weight: 500;
}
.briefing__body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  min-height: 44px;
}
.briefing__prompt { color: var(--red); font-weight: 500; }
.briefing__line {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.briefing__cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--red);
  animation: briefCursor 0.9s steps(2) infinite;
  vertical-align: middle;
}
@keyframes briefCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (max-width: 640px) {
  .briefing { font-size: 0.7rem; }
  .briefing__body { padding: 12px 12px; }
}

/* --- Keynote carousel (replaces static image + gallery strip) --- */
.carousel {
  position: relative;
}
.carousel__stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
}
.carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 13, 0.55);
  border: 1px solid rgba(237, 0, 0, 0.5);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  backdrop-filter: blur(2px);
}
.carousel__nav:hover,
.carousel__nav:focus-visible {
  border-color: var(--red);
  background: rgba(237, 0, 0, 0.18);
  color: var(--red);
  outline: none;
}
.carousel__nav--prev { left: 14px; }
.carousel__nav--next { right: 14px; }
.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.carousel__dots button {
  width: 22px;
  height: 4px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, width 0.3s;
}
.carousel__dots button.is-active {
  background: var(--red);
  width: 34px;
}
.carousel__dots button:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .carousel__nav { width: 36px; height: 36px; font-size: 1.15rem; }
  .carousel__nav--prev { left: 8px; }
  .carousel__nav--next { right: 8px; }
  .carousel__dots { bottom: 10px; }
  .carousel__dots button { width: 16px; }
  .carousel__dots button.is-active { width: 26px; }
}

/* --- O Alešovi full-height left-edge image override --- */
#o-alesovi { padding: 0; }
#o-alesovi .container {
  max-width: none;
  padding: 0;
  position: relative;
}
/* O Alešovi: photo fills the entire vertical span of the section (bleed past
   the usual section padding), while the body text stays compact and
   vertically centered with minimal surrounding blank space. */
#o-alesovi.section { padding: 0; }

#o-alesovi .split {
  display: grid;
  grid-template-columns: clamp(260px, 28vw, 380px) minmax(0, 1fr) clamp(260px, 30vw, 380px);
  gap: clamp(18px, 2.2vw, 36px);
  align-items: stretch;
  min-height: clamp(480px, 62vh, 620px);
  position: relative;
}
#o-alesovi .split__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  align-self: stretch;
  justify-self: start;
}
#o-alesovi .split__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
#o-alesovi .split__media .badge {
  left: 20px;
  top: 32px;
}
#o-alesovi .split__media .frame-tick { display: none; }
#o-alesovi .split__content {
  padding: clamp(16px, 2vw, 32px) clamp(20px, 3vw, 40px);
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* --- O Alešovi vertical timeline in the right third --- */
#o-alesovi .about-timeline {
  position: relative;
  align-self: stretch;
  /* Equal top/bottom padding so the dead space above the first item
     matches the dead space below the last item. */
  padding: clamp(18px, 2.4vh, 28px) clamp(14px, 1.6vw, 24px) clamp(18px, 2.4vh, 28px) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  font-size: 1rem;
  /* Spine at left:19 (center x=20). Bullets at at-item left:14 (center 14+6=20).
     about-timeline padding-left MUST be 0 so the at-item's coordinate system
     shares the same origin as the spine's, otherwise the spine drifts off-axis. */
}
#o-alesovi .about-timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  /* Fade to transparent at top and bottom so the line originates and
     terminates within the timeline rather than slicing the section. */
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(237, 0, 0, 0.55) 14%,
    rgba(237, 0, 0, 0.55) 86%,
    transparent 100%
  );
  pointer-events: none;
}
/* Trajectory marker — a primary downward chevron with a fainter echo below it.
   Drawn as an inline SVG so two strokes can be stacked in one pseudo-element.
   Box centered at x=20 (left:8 + width:24/2). 16px tall fits inside the
   timeline's bottom padding (min 18px) without ever overlapping the last row. */
#o-alesovi .about-timeline::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 2px;
  width: 24px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='%23ed0000'><polyline points='4 0 12 6 20 0' stroke-width='2' stroke-opacity='0.85'/><polyline points='6 10 12 15 18 10' stroke-width='1.5' stroke-opacity='0.35'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}
#o-alesovi .at-item {
  position: relative;
  display: flex;
  align-items: center;        /* labels vertically centered to bullet midpoint */
  gap: 14px;
  padding: 4px 0 4px 40px;
  margin: 0;
  flex: 1 1 0;                /* equal share → evenly spaced rows */
  min-height: 0;
  cursor: default;
  line-height: 1.34;
  /* overflow: visible so hovered bullet ring is never clipped on the left */
  overflow: visible;
}
#o-alesovi .at-item::before {
  content: "";
  position: absolute;
  left: 14px;                 /* 14 + half-12 = 20, matches spine center x */
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(237, 0, 0, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
#o-alesovi .at-item:hover::before,
#o-alesovi .at-item:focus-within::before {
  transform: translateY(-50%) scale(1.22);
  box-shadow: 0 0 0 5px rgba(237, 0, 0, 0.28);
}
/* Horizontal tick on each row at the bullet's y — turns the spine into a
   measuring rule. 20px wide centered on x=20 → 4px stub visible on each side
   of the bullet (the middle 12px is hidden behind the dot's solid red fill). */
#o-alesovi .at-item::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 20px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(237, 0, 0, 0.55);
  pointer-events: none;
}
/* Uniform bullet style — no milestone differentiation */
#o-alesovi .at-item--milestone::before {
  box-shadow: 0 0 0 3px rgba(237, 0, 0, 0.14);
}
#o-alesovi .at-year {
  flex: 0 0 auto;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  white-space: nowrap;
}
#o-alesovi .at-label,
#o-alesovi .at-full {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 700;            /* uniform bold for all labels */
  color: var(--ink, #12152f);
  opacity: 1;
}
#o-alesovi .at-full { display: none; }
#o-alesovi .at-item:hover .at-label,
#o-alesovi .at-item:focus-within .at-label {
  display: none;
}
#o-alesovi .at-item:hover .at-full,
#o-alesovi .at-item:focus-within .at-full {
  display: block;
}
/* Uniform — drop the milestone label weight override (already 700) */
#o-alesovi .at-item--milestone .at-label,
#o-alesovi .at-item--milestone .at-full {
  font-weight: 700;
}
/* Inline <strong> in the milestone copy — keep it normal so all rows match */
#o-alesovi .at-full strong { font-weight: inherit; }

@media (max-width: 1100px) {
  #o-alesovi .split {
    grid-template-columns: clamp(240px, 30vw, 340px) minmax(0, 1fr);
  }
  #o-alesovi .about-timeline { display: none; }
}
@media (max-width: 900px) {
  #o-alesovi .split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  #o-alesovi .split__media {
    aspect-ratio: 4 / 5;
    height: auto;
  }
  #o-alesovi .split__content {
    padding: clamp(48px, 8vw, 80px) 24px;
  }
  #o-alesovi .about-timeline { display: none; }
}

/* V2 reduced-motion overrides */
@media (prefers-reduced-motion: reduce) {
  .hero__tagline[data-typewriter] .role,
  .hero__tagline[data-typewriter] .dot { opacity: 1; }
  .hero__tagline[data-typewriter] .role.is-glitching { animation: none; text-shadow: none; }
  .briefing__dot { animation: none; }
  .briefing__cursor { animation: none; opacity: 1; }
  .carousel__slide { transition: opacity 0.05s linear; }
}

/* =====================================================================
   V3 — cockpit video loop, reticle cursor, form scan-line
   ===================================================================== */

/* --- Hero cockpit video layer ---
   Sits at z-index 0 (true background). Existing hero layers already
   define their own z-indexes (grid/scan = 1, pilot = 2, content = 3,
   hud-corner = 4) and are absolute-positioned, so they naturally
   stack above the video without any override needed. */
.hero__video {
  position: absolute;
  /* Locked to viewport dimensions so cropping the hero (via min-height
     reduction) clips the video bottom with overflow:hidden instead of
     rescaling it. Top 5% of source is still pushed above the viewport. */
  left: 0;
  right: 0;
  top: -5.263vh;
  height: 105.263vh;
  width: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease-out;
  pointer-events: none;
  filter: saturate(0.7) brightness(0.55) contrast(1.05);
}
.hero__video.is-ready { opacity: 0.4; }
.hero__video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 6, 13, 0.45) 0%, rgba(5, 6, 13, 0.7) 55%, rgba(5, 6, 13, 0.88) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(237, 0, 0, 0.1), transparent 55%);
  pointer-events: none;
}

/* --- Custom reticle cursor (hero only) --- */
.reticle {
  position: fixed;
  top: 0; left: 0;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 9998;
  color: var(--red);
  transform: translate3d(-200px, -200px, 0);
  opacity: 0;
  transition: opacity 0.2s ease-out;
  mix-blend-mode: screen;
}
.reticle svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(237, 0, 0, 0.7));
  transform-origin: 50% 50%;
  transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1),
              filter 0.18s ease-out;
}
.reticle[data-active="true"] { opacity: 1; }
.reticle[data-locked="true"] svg {
  transform: scale(0.78);
  filter: drop-shadow(0 0 12px rgba(237, 0, 0, 1))
          drop-shadow(0 0 4px rgba(255, 200, 200, 0.9));
}

/* Hide the native cursor over the hero when reticle is active */
[data-reticle-zone][data-reticle-on="true"],
[data-reticle-zone][data-reticle-on="true"] * {
  cursor: none !important;
}

/* Hide reticle entirely on touch devices / small screens */
@media (hover: none), (max-width: 820px) {
  .reticle { display: none !important; }
  [data-reticle-zone][data-reticle-on="true"],
  [data-reticle-zone][data-reticle-on="true"] * { cursor: auto !important; }
}

/* --- Form field red scan-line on focus --- */
.field { position: relative; }
.field::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
  box-shadow: 0 0 6px var(--red), 0 0 12px rgba(237, 0, 0, 0.4);
  transition: width 0.55s cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
  opacity: 0;
}
.field:focus-within::after {
  width: 100%;
  opacity: 1;
  animation: scanLineSweep 2.8s ease-in-out infinite;
  animation-delay: 0.55s;
}
@keyframes scanLineSweep {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(-100%); opacity: 0.55; }
}
/* Per-input subtle red glow on focus, complementing the scan line */
.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 0 0 0 1px var(--red), 0 0 18px rgba(237, 0, 0, 0.18);
}
/* Also apply scan-line to the newsletter input */
.newsletter { position: relative; }
.newsletter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
  box-shadow: 0 0 6px var(--red), 0 0 12px rgba(237, 0, 0, 0.4);
  transition: width 0.55s cubic-bezier(0.2, 0.9, 0.3, 1);
  pointer-events: none;
  opacity: 0;
}
.newsletter:focus-within::after {
  width: 100%;
  opacity: 1;
  animation: scanLineSweep 2.8s ease-in-out infinite;
  animation-delay: 0.55s;
}

/* V3 reduced-motion overrides */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .reticle svg { animation: none; transition: none; }
  .field:focus-within::after,
  .newsletter:focus-within::after { animation: none; }
}

/* ==========================================================================
   V7 — Mission timeline: chunky phase cards (replaces dot SVG nodes)
   ========================================================================== */

.mission__panel--timeline {
  padding: 24px 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.timeline-chunks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Chunk — chunky rectangular phase card, HUD-style */
.timeline-chunk {
  position: relative;
  display: grid;
  grid-template-columns: 3px 90px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 14px 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 6, 13, 0.55);
  margin-top: -1px;
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, z-index 0s;
  outline: none;
  overflow: hidden;
}
.timeline-chunk:first-child { margin-top: 0; }

/* Left red rail — grows on hover/current */
.timeline-chunk__marker {
  display: block;
  align-self: stretch;
  width: 3px;
  background: rgba(237, 0, 0, 0.35);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.timeline-chunk__year {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  transition: color 0.22s ease;
}

.timeline-chunk__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
}

.timeline-chunk__badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  background: var(--red);
  color: #ffffff;
  padding: 3px 8px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(237, 0, 0, 0.65);
}

/* Hover / focus / active (pointer-driven) */
.timeline-chunk:hover,
.timeline-chunk:focus-visible,
.timeline-chunk.is-active {
  border-color: rgba(237, 0, 0, 0.85);
  background: rgba(237, 0, 0, 0.09);
  transform: translateX(4px);
  z-index: 2;
}
.timeline-chunk:hover .timeline-chunk__marker,
.timeline-chunk:focus-visible .timeline-chunk__marker,
.timeline-chunk.is-active .timeline-chunk__marker {
  background: var(--red);
  box-shadow: 0 0 10px rgba(237, 0, 0, 0.85), 0 0 2px rgba(237, 0, 0, 0.85);
}
.timeline-chunk:hover .timeline-chunk__year,
.timeline-chunk:focus-visible .timeline-chunk__year,
.timeline-chunk.is-active .timeline-chunk__year {
  color: var(--red);
}

/* Current phase — always highlighted, red rail, subtle glow */
.timeline-chunk.is-current {
  border-color: rgba(237, 0, 0, 0.85);
  background: linear-gradient(90deg, rgba(237, 0, 0, 0.16) 0%, rgba(237, 0, 0, 0.02) 100%);
  z-index: 1;
}
.timeline-chunk.is-current .timeline-chunk__marker {
  background: var(--red);
  box-shadow: 0 0 10px rgba(237, 0, 0, 0.9), 0 0 2px rgba(237, 0, 0, 0.9);
}
.timeline-chunk.is-current .timeline-chunk__year { color: var(--red); }

/* Info readout — the focal copy below the chunks */
.timeline-info {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  min-height: 120px;
}
.timeline-info__tag {
  display: none;
}
.timeline-info__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.timeline-info__text {
  margin: 0;
  font-size: 0.96rem;
  opacity: 0.88;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .mission__panel--timeline { padding: 20px 18px 16px; margin-top: 32px; }
  .timeline-chunk { grid-template-columns: 3px 78px 1fr auto; gap: 10px; padding: 13px 12px 13px 0; }
  .timeline-chunk__title { font-size: 0.92rem; }
  .timeline-info { min-height: 110px; }
  .timeline-info__title { font-size: 1.18rem; }
}

/* ==========================================================================
   V7 — ISS live strip moved to the bottom of the mission section
   (sits below the orbital trajectory on the background map)
   ========================================================================== */

.mission__iss-live {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  z-index: 3;
  display: flex;
  width: 100%;
  margin: 0;
  padding: 12px 28px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 255, 255, 0.38);
  pointer-events: none;
}
.mission__iss-live .iss-live__label {
  color: rgba(237, 0, 0, 0.7);
}
.iss-live__head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mission__iss-live .iss-live__coords,
.mission__iss-live .iss-live__alt,
.mission__iss-live .iss-live__speed {
  opacity: 1;
  color: inherit;
}
@media (max-width: 900px) {
  .mission__iss-live {
    position: static;
    margin-top: 20px;
    padding: 12px 16px;
    gap: 12px;
    font-size: 0.78rem;
    justify-content: flex-start;
    pointer-events: auto;
  }
}

/* ==========================================================================
   V6 — Newsletter strip (separated from mission panel)
   ========================================================================== */

.newsletter-strip {
  background: #05060d;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-top: -55px;
  position: relative;
  z-index: 2;
}
.newsletter-strip__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter-strip__lede .eyebrow { margin-bottom: 10px; }
.newsletter-strip__lede h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--white);
}
.newsletter-strip__lede p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.75;
  max-width: 42ch;
}
.newsletter--strip {
  margin-top: 0;
}
@media (max-width: 900px) {
  .newsletter-strip { padding: 28px 0; margin-top: -20px; }
  .newsletter-strip__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   V6 — Nav: CZ/EN language toggle + scroll progress bar + section tracker
   ========================================================================== */

/* Make the nav a positioning context for the progress bar */
.nav { position: fixed; }

/* Progress bar — grows as the page scrolls. Sits on the TOP edge of the
   nav so it reads as a heads-up status line rather than a section divider. */
.nav__progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  box-shadow: 0 0 8px var(--red), 0 0 16px rgba(237, 0, 0, 0.55);
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Active section link — bold + underline */
.nav__links a {
  position: relative;
  transition: opacity 0.2s, color 0.2s;
}
.nav__links a.is-active {
  opacity: 1;
  font-weight: 700;
  color: var(--white);
}

/* Right-side action group: lang toggle + COMM + CTA, kept tight together
   so the nav reads as two clusters (brand+links / actions) rather than
   five evenly-spaced items spread across the bar. */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language toggle */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}
.nav__lang button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  padding: 5px 9px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.nav__lang button:hover { opacity: 1; border-color: var(--red); }
.nav__lang button.is-active {
  opacity: 1;
  border-color: var(--red);
  background: var(--red);
  color: #ffffff;
}
.nav__lang span {
  opacity: 0.3;
  user-select: none;
}
@media (max-width: 900px) {
  .nav__lang {
    font-size: 0.78rem;
  }
  .nav__lang button { padding: 4px 7px; }
}

/* COMM audio toggle — quiet radio static + occasional chatter */
.nav__comm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}
.nav__comm:hover,
.nav__comm:focus-visible {
  opacity: 1;
  border-color: var(--red);
  color: var(--red);
  outline: none;
}
.nav__comm-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  transition: background 0.2s, box-shadow 0.2s;
}
.nav__comm.is-on {
  opacity: 1;
  border-color: var(--red);
  color: var(--red);
  background: rgba(237, 0, 0, 0.08);
}
.nav__comm.is-on .nav__comm-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.nav__comm.is-keying .nav__comm-dot {
  background: #ffb8b8;
  box-shadow: 0 0 0 4px rgba(237, 0, 0, 0.35);
}
@media (max-width: 900px) {
  .nav__comm { display: none; }
}

/* ==========================================================================
   V19 — Training video cards + shared video lightbox
   (sits between .mission__iss-live and .newsletter-strip)
   ========================================================================== */

.training-videos {
  background: #05060d;
  position: relative;
  z-index: 2;
  padding: 88px 0 88px;
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.training-videos__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  max-width: 68ch;
}
.training-videos__header .eyebrow { margin-bottom: 22px; }
.training-videos__header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  margin: 0;
  color: var(--white);
  letter-spacing: 0.01em;
}

.training-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 28px);
}

.training-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #0a0d1f;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.training-card:hover,
.training-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(237, 0, 0, 0.55);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(237,0,0,0.28);
  outline: none;
}

.training-card__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease, filter 260ms ease;
  filter: saturate(0.92) contrast(1.02);
}
.training-card:hover .training-card__thumb,
.training-card:focus-visible .training-card__thumb {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.05);
}

.training-card__gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5,6,13,0) 38%, rgba(5,6,13,0.78) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.25) 100%);
}

.training-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(237, 0, 0, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(237, 0, 0, 0.18), 0 10px 30px rgba(0,0,0,0.55);
  transition: transform 260ms ease, box-shadow 260ms ease, background 260ms ease;
  pointer-events: none;
}
.training-card__play svg { margin-left: 3px; display: block; }
.training-card:hover .training-card__play,
.training-card:focus-visible .training-card__play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 8px rgba(237, 0, 0, 0.24), 0 14px 40px rgba(0,0,0,0.6);
  background: #ed0000;
}

.training-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  pointer-events: none;
}
.training-card__tag {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
}
.training-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.18;
}
.training-card__sub {
  font-size: 0.88rem;
  opacity: 0.78;
}

@media (max-width: 760px) {
  .training-cards { grid-template-columns: 1fr; }
  .training-card__play { width: 60px; height: 60px; }
  .training-videos { padding: 48px 0 56px; margin-top: 0; }
}

/* ---- Shared lightbox (used by training-card clicks) ---- */

body.no-scroll { overflow: hidden; }

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.video-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 0;
}
.video-lightbox__frame {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.video-lightbox__video {
  width: 100%;
  max-height: 82vh;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  display: block;
}
.video-lightbox__caption {
  color: #d9dbe4;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.video-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(8, 10, 31, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.video-lightbox__close:hover,
.video-lightbox__close:focus-visible {
  border-color: var(--red);
  color: var(--red);
  background: rgba(237, 0, 0, 0.1);
  outline: none;
}
