/* ==========================================================================
   AndroMach — Global stylesheet
   Sober, industrial deeptech. Dark navy-black, Space Grotesk + Inter.
   One stylesheet for all pages. No framework. No build step.
   ========================================================================== */

/* ----------------------------------------------------------------------
   0. Design tokens
   ---------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg:            #0A0E1A;   /* primary near-black, navy tint */
  --bg-alt:        #0E1320;   /* alternate, slightly lighter */
  --surface:       #131825;   /* cards / surfaces */

  /* Text */
  --text:          #FFFFFF;
  --text-muted:    #8A93A6;
  --text-dim:      #5B6478;

  /* Accents */
  --accent:        #1B84FF;   /* AndroMach blue */
  --accent-warm:   #FF7A45;   /* flame orange, sparingly */

  /* Borders */
  --border:        rgba(255, 255, 255, 0.06);
  --border-hover:  rgba(255, 255, 255, 0.12);

  /* Type */
  --font-display:  'Montserrat', system-ui, sans-serif;   /* general */
  --font-body:     'Montserrat', system-ui, sans-serif;
  --font-tagline:  'Archivo Expanded', 'Archivo', system-ui, sans-serif;       /* taglines / eyebrows / numbers */
  --font-hero:     'Archivo Expanded', 'Archivo', system-ui, sans-serif;  /* big page-hero titles */

  /* Layout */
  --container:     1280px;
  --gutter:        24px;
  --section-pad:   128px;     /* vertical padding between sections */
  --radius:        10px;

  /* Header */
  --header-h:      72px;
}

/* ----------------------------------------------------------------------
   1. Reset & base
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

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

::selection { background: var(--accent); color: #fff; }

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

/* ----------------------------------------------------------------------
   2. Layout helpers
   ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--border);
}
.section--alt { background: var(--bg-alt); }
.section--flush { border-top: 0; }

.eyebrow {
  font-family: var(--font-tagline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.eyebrow--muted { color: var(--text-dim); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }

.lead { color: var(--text-muted); font-weight: 300; font-size: 18px; line-height: 1.7; }

/* Heading scale */
.h1 { font-size: clamp(44px, 7vw, 80px); }
.h2 { font-size: clamp(30px, 4.2vw, 46px); }
.h3 { font-size: clamp(22px, 2.6vw, 28px); }

/* ----------------------------------------------------------------------
   3. Buttons & links
   ---------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.btn::before, .btn::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  border: 1.5px solid var(--accent);
  transition: width .3s cubic-bezier(.4,.8,.3,1), height .3s cubic-bezier(.4,.8,.3,1);
  pointer-events: none;
}
.btn::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.btn::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.btn:hover { background: rgba(27,132,255,0.12); }
.btn:hover::before, .btn:hover::after { width: 100%; height: 100%; }

/* all CTA variants share the targeting-bracket look */
.btn--primary, .btn--white, .btn--outline { background: transparent; color: #fff; border: 0; }

/* Inline arrow link */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
  transition: gap .18s ease, color .18s ease;
}
.link:hover { gap: 11px; color: #6ba4f5; }
.link--muted { color: var(--text); }
.link--muted:hover { color: var(--accent); }

/* ----------------------------------------------------------------------
   4. Header / nav
   ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  border-bottom-color: var(--border);
}
body.nav-open .site-header {
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand__logo {
  height: 30px;
  width: auto;
  display: block;
  transition: opacity .35s ease;
}
.brand__logo--color {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}
.site-header.is-scrolled .brand__logo--white,
body.nav-open .brand__logo--white { opacity: 0; }
.site-header.is-scrolled .brand__logo--color,
body.nav-open .brand__logo--color { opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color .16s ease, background-color .16s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); }

/* Language switcher (EN / FR) */
.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 14px;
  font-family: var(--font-tagline);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nav__lang a { color: var(--text-dim); transition: color .16s ease; }
.nav__lang a:hover { color: var(--text); }
.nav__lang__sep { color: var(--border-hover); }
.nav__lang__on { color: var(--text); }
@media (max-width: 900px) {
  .nav__lang { margin: 16px 0 0; justify-content: center; }
  body.nav-open .nav__lang { display: inline-flex; }
}

/* Contact CTA — targeting-bracket button */
.nav__cta {
  margin-left: 16px;
  position: relative;
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 12px 24px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: none;
  transition: background-color .25s ease, color .25s ease;
}
.nav__cta::before, .nav__cta::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  border: 1.5px solid var(--accent);
  transition: width .3s cubic-bezier(.4,.8,.3,1), height .3s cubic-bezier(.4,.8,.3,1);
  pointer-events: none;
}
.nav__cta::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.nav__cta::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.nav__cta:hover { background: rgba(27,132,255,0.12); }
.nav__cta:hover::before, .nav__cta:hover::after { width: 100%; height: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ----------------------------------------------------------------------
   5. Hero
   ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media video,
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Flame-gradient placeholder standing in for the hot-fire loop */
.hero__placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 118%, rgba(255,122,69,0.55) 0%, rgba(255,122,69,0.12) 35%, transparent 62%),
    radial-gradient(90% 60% at 50% 130%, rgba(255,180,90,0.5) 0%, transparent 55%),
    linear-gradient(180deg, #0A0E1A 0%, #11101a 55%, #1c1410 100%);
}
.hero__placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.018) 0 2px, transparent 2px 7px);
  mix-blend-mode: overlay;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(10,14,26,0.55) 0%,
    rgba(10,14,26,0.25) 38%,
    rgba(10,14,26,0.78) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(40px, 7vw, 74px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.04;
}
.hero__sub {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  color: #c4ccda;
}
.hero__cta { margin-top: 34px; }

/* Envol hero over the bright Earth video — extra center scrim + text shadow */
.hero--earth .hero__overlay {
  background:
    radial-gradient(78% 52% at 50% 50%, rgba(10,14,26,0.58), transparent 72%),
    linear-gradient(180deg, rgba(10,14,26,0.5) 0%, rgba(10,14,26,0.18) 40%, rgba(10,14,26,0.82) 100%);
}
.hero--earth h1,
.hero--earth .hero__sub { text-shadow: 0 2px 30px rgba(5,7,13,0.6); }

/* Lower-left hero treatment (Team) — headline bottom-left over a strong base scrim */
.hero--team { align-items: flex-end; text-align: left; }
.hero--team .hero__inner { padding-bottom: 10vh; }
.hero--team .hero__overlay {
  background:
    linear-gradient(0deg, rgba(10,14,26,0.94) 0%, rgba(10,14,26,0.55) 26%, rgba(10,14,26,0.12) 55%, rgba(10,14,26,0.30) 100%),
    linear-gradient(90deg, rgba(10,14,26,0.55) 0%, transparent 55%);
}
.hero--team .hero__sub { margin: 22px 0 0; max-width: 620px; }
.hero--team h1,
.hero--team .hero__sub { text-shadow: 0 2px 26px rgba(5,7,13,0.55); }

/* Banger hero — headline bottom-left over the firing video (DGA marking kept in frame) */
.hero--banger { align-items: flex-end; text-align: left; }
.hero--banger .hero__inner { padding-bottom: 10vh; }
.hero--banger .hero__overlay {
  background:
    linear-gradient(0deg, rgba(10,14,26,0.94) 0%, rgba(10,14,26,0.55) 26%, rgba(10,14,26,0.12) 55%, rgba(10,14,26,0.30) 100%),
    linear-gradient(90deg, rgba(10,14,26,0.6) 0%, transparent 55%);
}
.hero--banger h1 { font-size: clamp(56px, 10vw, 120px); }
.hero--banger .hero__sub { margin: 22px 0 0; max-width: 620px; }
.hero--banger h1,
.hero--banger .hero__sub { text-shadow: 0 2px 26px rgba(5,7,13,0.55); }
/* keep the DGA marking (top-right of the clip) in frame when cover-cropping */
.hero--banger .hero__media video { object-position: 100% 15%; }

/* Banner-height hero (sub-pages like Newsroom) */
.hero--banner { min-height: 60vh; }

/* scroll cue */
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-family: var(--font-tagline);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .18s ease;
}
.hero__scroll:hover { color: #fff; }
.hero__scroll .arrow { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll .arrow { animation: bobArrow 1.8s ease-in-out infinite; }
}
@keyframes bobArrow { 0%,100% { transform: translateY(0);} 50% { transform: translateY(4px);} }

/* Responsive YouTube embed + click/scroll-lazy facade */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #05070f;
}
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer;
  background-size: cover; background-position: center;
}
.video-facade::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,15,0.25), rgba(5,7,15,0.55));
  transition: background .2s ease;
}
.video-facade:hover::after { background: linear-gradient(180deg, rgba(5,7,15,0.15), rgba(5,7,15,0.45)); }
.video-facade__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(27,132,255,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(27,132,255,0.35);
  transition: transform .18s ease, background-color .18s ease;
}
.video-facade:hover .video-facade__play { transform: translate(-50%,-50%) scale(1.06); background: #1b84ff; }
.video-facade__play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video-caption { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* Captioned gallery */
.gallery--cap { grid-auto-rows: auto; }
.gallery--cap figure { margin: 0; }
.gallery--cap figure .shot { aspect-ratio: 4 / 3; }
.gallery--cap figcaption { margin-top: 10px; font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.01em; }

/* Warm CTA glow (Banger) */
.final-cta--warm::before {
  background: radial-gradient(closest-side, rgba(255,122,69,0.18), transparent 72%);
}

/* ----------------------------------------------------------------------
   6. Placeholder media block (.ph)
   Striped, labeled stand-in for real photos/renders/video.
   ---------------------------------------------------------------------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.022) 0 10px, transparent 10px 20px),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  overflow: hidden;
}
.ph::before {
  content: attr(data-label);
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 12px;
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 6px;
  text-align: center;
  max-width: 80%;
}
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--4x3  { aspect-ratio: 4 / 3; }
.ph--1x1  { aspect-ratio: 1 / 1; }
.ph--tall { aspect-ratio: 3 / 4; }

/* Real-image frame (replaces .ph once assets are in) */
.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.shot--4x3  { aspect-ratio: 4 / 3; }
.shot--16x9 { aspect-ratio: 16 / 9; }
.shot--1x1  { aspect-ratio: 1 / 1; }
.shot--tall { aspect-ratio: 3 / 4; }
.shot--portrait { aspect-ratio: 4 / 5; }
.shot--wide { aspect-ratio: 21 / 9; }
.shot__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #c4ccda;
  background: linear-gradient(180deg, transparent, rgba(8,11,20,0.82));
}
a.shot:hover img, .split__media:hover .shot img { transform: scale(1.03); }

/* Two-tone wordmark (Andro + Mach) */
.brand__mach { color: var(--accent); }

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
.gallery .shot { aspect-ratio: 4 / 3; }
.gallery .shot--span2 { grid-column: span 2; aspect-ratio: 8 / 3; }

/* Full-bleed feature band with image background */
.feature-band {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.feature-band img.bg, .feature-band video.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.feature-band .veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,11,20,0.86) 0%, rgba(8,11,20,0.5) 55%, rgba(8,11,20,0.25) 100%);
}
.feature-band .container { position: relative; z-index: 2; }
/* right-overlay variant: image full-bleed, copy panel on the right */
.feature-band--right { min-height: clamp(520px, 72vh, 780px); }
.feature-band--right .veil {
  background: linear-gradient(270deg, rgba(8,11,20,0.92) 0%, rgba(8,11,20,0.58) 42%, rgba(8,11,20,0.12) 100%);
}
.feature-band__panel { max-width: 520px; }
.feature-band--right .feature-band__panel { margin-left: auto; }
@media (max-width: 700px) {
  .feature-band--right .veil { background: linear-gradient(0deg, rgba(8,11,20,0.92) 0%, rgba(8,11,20,0.5) 55%, rgba(8,11,20,0.3) 100%); }
  .feature-band__panel { max-width: none; }
}

/* ----------------------------------------------------------------------
   7. Split sections (two-column)
   ---------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__body { max-width: 540px; }
.split__body p + p { margin-top: 18px; }
.split__body .lead { margin-top: 22px; }

.closing-line {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 28px;
  color: var(--text);
}

/* ----------------------------------------------------------------------
   8. Stats
   ---------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
  margin: 8px 0 28px;
}
.stat__num {
  font-family: var(--font-tagline);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.01em;
  line-height: 1;
}
.stat__num--warm { color: var(--accent-warm); }
.stat__label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Inline spec callouts (Mach 5 / 200 km / < 6h) */
.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}
.spec {
  flex: 1 1 120px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.spec__num {
  font-family: var(--font-tagline);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0;
}
.spec__label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ----------------------------------------------------------------------
   9. Roadmap timeline
   ---------------------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 64px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 7px;
  height: 1px;
  background: var(--border-hover);
}
.tl-node { position: relative; padding-top: 30px; }
.tl-node::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-dim);
}
.tl-node--done::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(74,139,240,0.15);
}
.tl-year {
  font-family: var(--font-tagline);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0;
}
.tl-node--done .tl-year { color: var(--accent); }
.tl-desc { font-size: 14px; color: var(--text-muted); margin-top: 8px; max-width: 200px; }
.tl-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tl-node--done .tl-tag { color: var(--accent); }

/* ----------------------------------------------------------------------
   10. Card grids (markets, news)
   ---------------------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: #161c2c;
}
.card__icon {
  width: 40px; height: 40px;
  color: var(--accent);
  margin-bottom: 22px;
}
.card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.card__desc { color: var(--text-muted); font-size: 15px; flex: 1; }
.card__cta { margin-top: 22px; }

/* News card */
.news-card { padding: 0; overflow: hidden; }
.news-card .ph { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
.news-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.news-meta__source { color: var(--accent); font-weight: 600; }
.news-meta__dot { color: var(--text-dim); }
.news-meta__date { color: var(--text-dim); }
.news-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}
.news-card__cta { margin-top: 20px; }

/* ----------------------------------------------------------------------
   11. Mission quote
   ---------------------------------------------------------------------- */
.mission {
  text-align: center;
  padding-block: 140px;
}
.mission__quote {
  font-family: var(--font-tagline);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1.32;
  letter-spacing: 0.01em;
  max-width: 960px;
  margin: 0 auto;
}
.mission__quote .hl { color: var(--accent); }

/* ----------------------------------------------------------------------
   12. Partners
   ---------------------------------------------------------------------- */
/* Partners — two groups, monochrome white logo strips */
.partners-group + .partners-group { margin-top: 60px; }
.partners-label {
  font-family: var(--font-tagline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin: 0 0 32px;
}
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 54px;
}
.partner-strip--lg { gap: 34px 64px; }
.partner-logo {
  display: inline-flex;
  align-items: center;
}
.partner-logo img {
  height: 30px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.72;
  transition: opacity .2s ease;
}
.partner-strip--lg .partner-logo img { height: 38px; max-width: 210px; }
/* taller badge-style marks read smaller — give them more height */
.partner-logo--badge img { height: 52px; }
.partner-strip--lg .partner-logo--badge img { height: 60px; }
.partner-logo:hover img { opacity: 1; }
.partner-note {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 720px;
  margin-inline: auto;
}

/* ----------------------------------------------------------------------
   13. Section header with side link (newsroom teaser)
   ---------------------------------------------------------------------- */
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

/* ----------------------------------------------------------------------
   14. Team teaser / portrait grid
   ---------------------------------------------------------------------- */
.portrait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.portrait {
  aspect-ratio: 3 / 4;
}
img.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius);
  display: block;
}
.portrait--join {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-hover);
  background: var(--surface);
  color: var(--text-muted);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.portrait--join:hover { border-color: var(--accent); color: #fff; background: #161c2c; }
.portrait--join .pj-label {
  font-family: var(--font-tagline);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.portrait--join .pj-text { font-size: 14px; line-height: 1.3; }

/* ----------------------------------------------------------------------
   15. Final CTA
   ---------------------------------------------------------------------- */
.final-cta {
  position: relative;
  text-align: center;
  padding-block: 160px 140px;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 760px;
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(74,139,240,0.20), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.final-cta img.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.42;
}
.final-cta .veil {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 90% at 50% 30%, transparent 0%, rgba(10,14,26,0.55) 60%, rgba(10,14,26,0.95) 100%);
}
.final-cta__inner { position: relative; z-index: 1; }
.final-cta h2 {
  font-family: var(--font-tagline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(32px, 5vw, 54px);
}
.final-cta__sub { margin: 22px auto 40px; color: var(--text-muted); font-size: 18px; font-weight: 300; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ----------------------------------------------------------------------
   16. Footer
   ---------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-alt) 0%, #070a14 70%, #04070e 100%);
  padding-block: 72px 40px;
}
.site-footer .container { position: relative; z-index: 2; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tagline { color: var(--text-muted); font-size: 15px; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--text-muted); font-size: 15px; transition: color .16s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-bottom__links { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--text-muted); }

/* ----------------------------------------------------------------------
   17. Sub-page hero (smaller than homepage hero)
   ---------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: 128px 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero__media { margin-top: 48px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.page-hero__sub { margin-top: 20px; max-width: 620px; font-size: 19px; font-weight: 300; color: var(--text-muted); }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 20px 8px;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--text-muted);
  width: 50%;
}
.spec-table td {
  font-family: var(--font-tagline);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0;
}

/* Mission-profile steps */
.profile-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}
.profile-step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.profile-step__n {
  font-family: var(--font-tagline);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 14px;
}
.profile-step h3 { font-size: 18px; margin-bottom: 8px; }
.profile-step p { font-size: 14px; color: var(--text-muted); }

/* Article list (newsroom) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.filter-chip:hover { color: var(--text); border-color: rgba(255,255,255,0.3); }
.filter-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-bar[hidden] { display: none; }   /* override .filter-bar's display:flex so [hidden] works */

.article-list { display: flex; flex-direction: column; gap: 0; }
.article-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.article-row .ph { width: 200px; }
.article-row__title { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; margin: 8px 0 10px; }
.article-row__excerpt { color: var(--text-muted); font-size: 15px; max-width: 560px; }

/* Founders / advisors grid */
.founder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.founder__photo { aspect-ratio: 1 / 1; margin-bottom: 16px; }
img.founder__photo {
  width: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: var(--radius);
  display: block;
  background: var(--surface);
}
.founder__name { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.founder__role { color: var(--accent); font-size: 14px; margin: 6px 0 12px; }
.founder__bio { color: var(--text-muted); font-size: 14px; }

.advisor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.advisor {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.advisor .ph { width: 64px; height: 64px; flex: none; border-radius: 50%; }
.advisor__photo {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  background: var(--surface);
}
.advisor__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.advisor__role { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* Generic prose block */
.prose { max-width: 760px; }
.prose p { color: var(--text-muted); font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 20px; }

/* Long-form legal / policy prose (legal.html, privacy.html) */
.prose h2 {
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 56px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 18px; color: var(--text); margin: 30px 0 10px; }
.prose ul { margin: 16px 0 0; padding-left: 22px; color: var(--text-muted); font-size: 17px; line-height: 1.75; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--text-dim); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); font-weight: 600; }
.prose address { font-style: normal; color: var(--text-muted); font-size: 17px; line-height: 1.75; }
.prose dl { margin: 16px 0 0; }
.prose dt {
  font-family: var(--font-tagline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 18px;
}
.prose dd { margin: 4px 0 0; color: var(--text); font-size: 17px; }
/* highlights an unresolved value the owner must fill in before publishing */
.legal-todo {
  color: var(--accent-warm);
  font-weight: 600;
  border-bottom: 1px dashed rgba(255,122,69,0.5);
}

/* ----------------------------------------------------------------------
   17b. Envol flight sequence (Destinus-style scroll-pinned cinematic)
   ---------------------------------------------------------------------- */
.flight-seq {
  position: relative;
  height: 420vh;                 /* scroll track length — more = slower */
  background: #05070d;
}
.flight-seq__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: #05070d;
}
.flight-seq__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.flight-seq__layer:first-child { opacity: 1; }
.flight-seq__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* keep each subject framed when cover-cropping */
.flight-seq__layer--ascent img  { object-position: 68% 42%; }
.flight-seq__layer--apogee img  { object-position: 50% 46%; }
.flight-seq__layer--landing img { object-position: 42% 40%; }

/* contrast scrims */
.flight-seq__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,13,0.82) 0%, rgba(5,7,13,0.34) 40%, transparent 68%),
    linear-gradient(0deg, rgba(5,7,13,0.88) 0%, transparent 36%),
    linear-gradient(180deg, rgba(5,7,13,0.55) 0%, transparent 22%);
  pointer-events: none;
}

.flight-seq__hud {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.flight-seq__hud > .container {
  position: relative;
  height: 100%;
}

/* top-left label */
.seq-intro {
  position: absolute;
  top: calc(var(--header-h) + 28px);
  left: var(--gutter);
}
.seq-intro__eyebrow {
  font-family: var(--font-tagline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.seq-intro__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.seq-intro__hint span { display: inline-block; animation: seqBob 1.8s ease-in-out infinite; }
@keyframes seqBob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(4px);} }
@media (prefers-reduced-motion: reduce) { .seq-intro__hint span { animation: none; } }

/* live readout, top-right */
.seq-readout {
  position: absolute;
  top: calc(var(--header-h) + 24px);
  right: var(--gutter);
  display: flex;
  gap: 30px;
  text-align: right;
}
.seq-readout__metric { min-width: 92px; }
.seq-readout__val {
  font-family: var(--font-tagline);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 18px rgba(5,7,13,0.7);
}
.seq-readout__val .u {
  font-size: 0.42em;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}
.seq-readout__label {
  font-family: var(--font-tagline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 8px;
  text-shadow: 0 1px 10px rgba(5,7,13,0.6);
}

/* phase panels, bottom-left */
.seq-panels {
  position: absolute;
  left: var(--gutter);
  bottom: 56px;
  max-width: 460px;
}
.seq-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.seq-panel.is-active { opacity: 1; transform: none; }
.seq-panel__n {
  font-family: var(--font-tagline);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 14px;
}
.seq-panel__title {
  font-family: var(--font-tagline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
  margin: 0 0 14px;
  text-shadow: 0 2px 24px rgba(5,7,13,0.6);
}
.seq-panel__desc {
  color: #c4ccda;
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
}

/* progress rail, right-center */
.seq-rail {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
}
.seq-rail__node {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-tagline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .35s ease;
  text-shadow: 0 1px 10px rgba(5,7,13,0.6);
}
.seq-rail__node::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dim);
  background: transparent;
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.seq-rail__node.is-passed::after { background: var(--text-muted); border-color: var(--text-muted); }
.seq-rail__node.is-active {
  color: #fff;
}
.seq-rail__node.is-active::after {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(27,132,255,0.18);
  transform: scale(1.15);
}

@media (max-height: 720px) {
  .seq-intro { display: none; }
}
@media (max-width: 900px) {
  .flight-seq { height: 360vh; }
  .seq-readout { gap: 18px; }
  .seq-readout__metric { min-width: 64px; }
  .seq-rail { display: none; }
  .seq-panels { right: var(--gutter); max-width: none; bottom: 40px; }
  .seq-panel__desc { max-width: 520px; }
}
@media (max-width: 520px) {
  .seq-intro { top: calc(var(--header-h) + 16px); }
  .seq-readout { top: auto; bottom: 210px; right: var(--gutter); text-align: left; }
}

/* ----------------------------------------------------------------------
   17c. Envol turntable showcase (video integrated into the page body)
   ---------------------------------------------------------------------- */
.turntable {
  position: relative;
  width: 100%;
  margin: 48px 0 0;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
}
.turntable__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* zoom + recenter on the platform so Envol fills the frame edge to edge */
  transform: scale(1.5);
  transform-origin: 77% 56%;
}
.turntable__grade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 20%);
}
.turntable__caption {
  text-align: center;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .turntable { aspect-ratio: 4 / 3; }
}

/* Envol ConOps / mission-profile diagram */
.conops {
  margin: 0 0 48px;
}
.conops img {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  margin-inline: auto;
}

/* mission-profile legend: animated walking highlight 1→5 */
@media (prefers-reduced-motion: no-preference) {
  .profile-steps--anim .profile-step {
    animation: stepWalk 7s ease-in-out infinite;
  }
  .profile-steps--anim .profile-step:nth-child(1) { animation-delay: 0s; }
  .profile-steps--anim .profile-step:nth-child(2) { animation-delay: 1.2s; }
  .profile-steps--anim .profile-step:nth-child(3) { animation-delay: 2.4s; }
  .profile-steps--anim .profile-step:nth-child(4) { animation-delay: 3.6s; }
  .profile-steps--anim .profile-step:nth-child(5) { animation-delay: 4.8s; }
}
@keyframes stepWalk {
  0%       { border-color: var(--border); transform: none; box-shadow: none; }
  3%       { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 14px 34px rgba(27,132,255,0.18); }
  11%      { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 14px 34px rgba(27,132,255,0.18); }
  16%, 100%{ border-color: var(--border); transform: none; box-shadow: none; }
}
.profile-steps--anim .profile-step { transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }

/* ----------------------------------------------------------------------
   18. Reveal-on-scroll
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------
   19. Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --section-pad: 88px; }

  .nav, .nav__cta { display: none; }
  body.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px;
  }
  body.nav-open .nav__link { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--border); }
  body.nav-open .nav__cta { display: inline-flex; margin: 16px 0 0; justify-content: center; }
  .nav-toggle { display: inline-flex; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }

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

  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 7px; top: 0; bottom: 0; right: auto; width: 1px; height: auto; }
  .tl-node { padding: 0 0 32px 34px; }
  .tl-node::before { left: 0; top: 4px; }
  .tl-desc { max-width: none; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }

  .profile-steps { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; gap: 16px; }
  .article-row .ph { width: 100%; }
  .founder-grid { grid-template-columns: repeat(3, 1fr); }
  .advisor-grid { grid-template-columns: 1fr; }
}

/* Multi-column grid variants (replace former inline grid-template overrides).
   Scoped to desktop via min-width so the mobile collapse rules above still win. */
.stat-grid--4 { text-align: center; }
@media (min-width: 901px) {
  .stat-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .timeline--3  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  :root { --section-pad: 68px; --gutter: 18px; }
  .stat-grid { gap: 28px 24px; }
  .mission { padding-block: 90px; }
  .final-cta { padding-block: 110px 90px; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
  .founder-grid { grid-template-columns: 1fr 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ----------------------------------------------------------------------
   20. Sanity CMS components (newsroom, home news, events, blog, post)
   ---------------------------------------------------------------------- */

/* Loading skeletons */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: cms-shimmer 1.3s infinite;
}
.skeleton-line { height: 12px; border-radius: 6px; }
@keyframes cms-shimmer { 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* Empty / error messages */
.cms-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  padding: 56px 0;
}
.cms-msg--error { color: var(--accent-warm); }
.cms-msg a { color: var(--accent); }

/* Missing-image fallback */
.cms-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px),
    var(--surface);
  color: var(--text-dim);
}
.cms-noimg svg { width: 40px; height: 40px; opacity: 0.55; }

/* Event cards */
.event-card { padding: 0; overflow: hidden; }
.event-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.event-card__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-block;
  font-family: var(--font-tagline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  color: var(--accent);
}
.event-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--text-muted);
  font-size: 14px;
}
.event-card__meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; opacity: 0.7; }

/* Blog cards */
.blog-card { padding: 0; overflow: hidden; }
.blog-card__media { display: block; }
.blog-card__body { padding: 24px; display: flex; flex-direction: column; }
.blog-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.blog-card__title a:hover { color: var(--accent); }
.blog-card__excerpt { color: var(--text-muted); font-size: 15px; margin-top: 12px; }

/* Single blog post */
.post-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 60vh;
  overflow: hidden;
  background: var(--surface);
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,14,26,0.55) 100%);
}
.post-body { max-width: 760px; margin: 0 auto; padding-block: 56px 96px; }
.post-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.post-meta { margin-bottom: 8px; }

/* Portable Text body */
.pt-content > :first-child { margin-top: 0; }
.pt-content p { color: var(--text-muted); font-size: 18px; line-height: 1.8; margin-top: 24px; }
.pt-content h2 { font-size: 28px; margin: 52px 0 16px; letter-spacing: -0.01em; }
.pt-content h3 { font-size: 22px; margin: 40px 0 12px; }
.pt-content h4 { font-size: 18px; margin: 32px 0 10px; }
.pt-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pt-content strong { color: var(--text); font-weight: 600; }
.pt-content blockquote {
  margin: 32px 0;
  padding: 6px 0 6px 22px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 20px;
  font-style: italic;
}
.pt-content ul, .pt-content ol {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
  margin-top: 20px;
  padding-left: 24px;
}
.pt-content li { margin-top: 8px; }
.pt-content li::marker { color: var(--text-dim); }
.pt-content :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 5px;
}
.pt-figure { margin: 40px 0; }
.pt-figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.pt-figcap { margin-top: 10px; font-size: 13px; color: var(--text-dim); text-align: center; }
.pt-code {
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0f1a;
}
.pt-code__name {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-tagline);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.pt-code pre { margin: 0; padding: 20px; overflow-x: auto; }
.pt-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  background: none;
  padding: 0;
}
