@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyr-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyr-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-ext-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyr-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC;
}

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-ext-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyr-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyr-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-ext-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyr-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0500-052F;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-ext-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-cyr-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-cyr-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

:root {
  --bg: #101114;
  --bg-2: #17181c;
  --bg-3: #1e2026;
  --ink: #eceae4;
  --muted: #9a9790;
  --faint: #6b6964;
  --line: rgba(236, 234, 228, 0.1);
  --line-strong: rgba(236, 234, 228, 0.22);
  --accent: #c85a28;
  --accent-ink: #1a120e;
  --accent-soft: rgba(200, 90, 40, 0.16);
  --shadow: rgba(8, 8, 10, 0.45);
  --nav-bg: rgba(16, 17, 20, 0.78);
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  --pad: clamp(1.1rem, 3.4vw, 2.4rem);
  --max: 1360px;
  --display: "Onest", "Manrope", sans-serif;
  --body: "Manrope", "Onest", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --z-nav: 10;
  --z-menu: 20;
  --z-grain: 40;
}

[data-theme="light"] {
  --bg: #e6e4de;
  --bg-2: #ddd9d1;
  --bg-3: #d3cfc6;
  --ink: #17181c;
  --muted: #5b5853;
  --faint: #7a766f;
  --line: rgba(23, 24, 28, 0.12);
  --line-strong: rgba(23, 24, 28, 0.24);
  --accent: #c85a28;
  --accent-ink: #f4eee8;
  --accent-soft: rgba(200, 90, 40, 0.12);
  --shadow: rgba(40, 32, 24, 0.16);
  --nav-bg: rgba(230, 228, 222, 0.82);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
}

.skip:focus {
  top: 12px;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

[data-theme="light"] .grain {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  vertical-align: -0.18em;
}

.icon-list { --icon: url("../icons/list.svg"); }
.icon-x { --icon: url("../icons/x.svg"); }
.icon-up { --icon: url("../icons/arrow-up-right.svg"); }
.icon-right { --icon: url("../icons/arrow-right.svg"); }
.icon-sun { --icon: url("../icons/sun.svg"); }
.icon-moon { --icon: url("../icons/moon.svg"); }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: background 0.25s var(--ease), transform 0.15s var(--ease);
}

.icon-btn:hover {
  background: var(--bg-3);
}

.icon-btn:active {
  transform: scale(0.98);
}

.menu-btn {
  display: none;
}

.nav-drawer {
  display: none;
}

.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem var(--pad) 3rem;
  max-width: 44rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 3.15vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 12em;
}

.hero-lead {
  margin-top: 1.15rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 46px;
  padding: 0 1.05rem;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--bg-3);
}

.hero-visual {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 18%);
  pointer-events: none;
}

.caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #eceae4;
  background: rgba(16, 17, 20, 0.55);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.stat {
  padding: 1.5rem var(--pad);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.stat span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 5.5rem 0;
}

.section h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 16ch;
}

.lede {
  margin-top: 0.85rem;
  max-width: 54ch;
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 220px;
  gap: 0.7rem;
  margin-top: 2.2rem;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  color: #eceae4;
  min-height: 180px;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.tile:hover img {
  transform: scale(1.04);
}

.tile-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.05rem 1.05rem;
  background: linear-gradient(transparent, rgba(12, 12, 14, 0.88) 55%);
}

.tile h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
}

.tile p {
  margin-top: 0.2rem;
  color: #c9c6bf;
  font-size: 0.92rem;
}

.tile-xai {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.tile-spacex {
  grid-column: 2 / span 2;
}

.xai {
  background: var(--bg-2);
}

.xai-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.4rem;
  align-items: center;
}

.xai-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
}

.xai-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.metric {
  padding: 1rem 1.05rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric b {
  display: block;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
}

.metric span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.xai-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.1rem;
}

.text-link:hover {
  color: var(--accent);
}

.spacex-visual {
  position: relative;
  min-height: 62vh;
}

.spacex-visual img {
  width: 100%;
  height: 62vh;
  object-fit: cover;
}

.spacex-copy {
  padding: 2.4rem 0 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.pill {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.fleet {
  overflow: hidden;
}

.fleet-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 78vw);
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 1rem;
  margin-top: 1.8rem;
  scrollbar-width: thin;
}

.fleet-card {
  scroll-snap-align: start;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  display: grid;
  grid-template-rows: 1.15fr 0.85fr;
}

.fleet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fleet-card div {
  padding: 1.15rem 1.2rem 1.3rem;
}

.fleet-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
}

.fleet-card p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  margin-top: 2rem;
}

.mosaic article {
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
}

.mosaic img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.mosaic-tesla {
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: 1fr auto;
}

.mosaic-tesla img {
  height: 100%;
  min-height: 340px;
}

.mosaic article > div {
  padding: 1.15rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mosaic h3 {
  font-family: var(--display);
  font-size: 1.3rem;
}

.mosaic p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.mosaic .text-link {
  margin-top: 0.85rem;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  max-width: 46rem;
}

.t-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.t-item:first-child {
  border-top: 1px solid var(--line);
}

.t-item time {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 0.15rem;
}

.t-item h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
}

.t-item p {
  margin-top: 0.25rem;
  color: var(--muted);
}

.closer {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: end start;
}

.closer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, rgba(12, 12, 14, 0.88));
}

.closer-copy {
  position: relative;
  z-index: 1;
  padding: 3rem var(--pad);
  color: #eceae4;
  max-width: 36rem;
}

.closer-copy h2 {
  color: #eceae4;
  max-width: 14ch;
}

.closer-copy p {
  margin-top: 0.8rem;
  color: #c9c6bf;
}

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

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--ink);
}

.footer a:hover {
  color: var(--accent);
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--bg);
    backdrop-filter: none;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tile img,
  .btn,
  .icon-btn {
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 52vh;
    order: -1;
  }

  .hero-visual::after {
    background: linear-gradient(0deg, var(--bg), transparent 28%);
  }

  .hero-copy {
    padding-top: 1.4rem;
    max-width: none;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .nav-drawer {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: var(--z-menu);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 1.2rem;
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav-drawer.is-open {
    display: flex;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 200px 200px;
  }

  .tile-xai {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .tile-spacex {
    grid-column: 1 / span 2;
  }

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

  .xai-photo {
    min-height: 280px;
  }

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

  .mosaic-tesla {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .tile-xai,
  .tile-spacex {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }

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

  .t-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero h1 {
    max-width: 12ch;
  }
}
