:root {
  --void: #05060a;
  --panel: #0c1018;
  --panel-2: #121826;
  --line: rgba(92, 225, 255, 0.16);
  --text: #e8eef5;
  --muted: #8a96a8;
  --cyan: #5ce1ff;
  --copper: #e8a06a;
  --ember: #c46b2d;
  --up: #5dffb1;
  --down: #ff6b7a;
  --sans: "Outfit", Arial, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 92rem;
  --header: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--cyan);
  color: #041018;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.starfield {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 28% 72%, rgba(92, 225, 255, 0.55), transparent),
    radial-gradient(1px 1px at 64% 22%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 81% 58%, rgba(232, 160, 106, 0.45), transparent),
    radial-gradient(1px 1px at 44% 40%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1200px 600px at 80% -10%, rgba(92, 225, 255, 0.08), transparent),
    radial-gradient(900px 500px at -10% 110%, rgba(196, 107, 45, 0.12), transparent);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--copper);
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.button {
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--cyan);
  color: #041018;
}

.button-outline {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.button-outline:hover {
  border-color: var(--cyan);
}

.text-link {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.75rem 6vw;
  background: rgba(5, 6, 10, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-seal {
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.brand-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--cyan);
}

.header-quote {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.hq-sym {
  color: var(--copper);
}

.hq-px {
  font-weight: 600;
}

.hq-chg.is-up {
  color: var(--up);
}

.hq-chg.is-down {
  color: var(--down);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 1fr;
  gap: 2rem;
  align-items: end;
  min-height: calc(100vh - var(--header));
  padding: 4rem 6vw 3rem;
}

.hero-scan {
  position: absolute;
  inset: 0 0 auto;
  height: 42vh;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 7px,
    rgba(92, 225, 255, 0.03) 8px
  );
  mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-copy h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(4.2rem, 9vw, 8.5rem);
}

.hero-intro {
  max-width: 36rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

.hero-portrait {
  margin: 0;
  position: relative;
}

.portrait-ring {
  position: absolute;
  inset: -8%;
  border: 1px dashed rgba(92, 225, 255, 0.28);
  border-radius: 50%;
  animation: spin 48s linear infinite;
}

.portrait-frame {
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 4rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.portrait-frame img {
  width: 100%;
  height: min(72vh, 38rem);
  object-fit: cover;
  object-position: 50% 12%;
  filter: saturate(0.92) contrast(1.05);
}

.hero-portrait figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.hero-tape {
  padding: 1.4rem 1.5rem 1.2rem;
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.92), rgba(8, 11, 18, 0.92));
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: 0 0 0 1px rgba(92, 225, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.35);
}

.tape-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(92, 225, 255, 0.1);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.live-pill.is-live {
  color: #041018;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(92, 225, 255, 0.45);
}

.live-pill.is-closed {
  color: var(--muted);
  background: rgba(138, 150, 168, 0.12);
}

.tape-name {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tape-price {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.tape-change {
  display: flex;
  gap: 0.75rem;
  margin: 0.6rem 0 0;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.tape-change.is-up,
.board-change.is-up,
.tsla-change.is-up {
  color: var(--up);
}

.tape-change.is-down,
.board-change.is-down,
.tsla-change.is-down {
  color: var(--down);
}

.spark {
  display: block;
  width: 100%;
  height: 72px;
  margin-top: 0.85rem;
  color: var(--cyan);
}

.spark.is-down {
  color: var(--down);
}

.spark.is-up {
  color: var(--up);
}

.spark-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.spark-fill {
  fill: url(#sparkFill);
}

.spark-lg .spark-fill {
  fill: url(#boardFill);
}

.tape-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.tape-mini dt,
.telemetry dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tape-mini dd,
.telemetry dd {
  margin: 0.15rem 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 0.85rem 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.ticker-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  animation: marquee 24s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker i {
  color: var(--copper);
  font-style: normal;
}

.section {
  padding: 5.5rem 6vw;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.section-heading p:last-child {
  color: var(--muted);
}

.markets {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 1.5rem;
}

.markets .section-heading {
  grid-column: 1 / -1;
}

.board,
.tsla-card,
.company-grid li,
.contact-form,
.x-embed-wrap {
  background: rgba(12, 16, 24, 0.86);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.board {
  padding: 1.5rem;
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.board-sym {
  margin: 0;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.board-ex {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.board-price-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: end;
  margin: 1.25rem 0 1.5rem;
}

.board-price {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.board-change {
  margin: 0.45rem 0 0;
  font-family: var(--mono);
}

.spark-lg {
  height: 110px;
  margin: 0;
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.1rem;
  margin: 0;
}

.telemetry div {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.board-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.tsla-card {
  padding: 1.4rem;
  align-self: start;
}

.tsla-card h3 {
  margin: 0.2rem 0 0.8rem;
  font-size: 2rem;
}

.tsla-price {
  margin: 0;
  font-family: var(--mono);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.tsla-change {
  margin: 0.4rem 0 1rem;
  font-family: var(--mono);
}

.telemetry-compact {
  grid-template-columns: 1fr;
  margin-bottom: 1.2rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}

.profile-grid blockquote {
  margin: 0;
  padding: 1.5rem;
  border-left: 3px solid var(--copper);
  background: rgba(232, 160, 106, 0.06);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.profile-copy p {
  color: var(--muted);
}

.fact-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--line);
}

.fact-strip li {
  padding: 1rem 1.2rem;
  background: var(--panel);
}

.fact-strip span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-grid li {
  padding: 1.3rem;
}

.company-grid span {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.company-grid h3 {
  margin: 0.45rem 0 0.6rem;
  font-size: 1.55rem;
}

.company-grid p {
  margin: 0;
  color: var(--muted);
}

.flight-log {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.flight-log li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.4rem;
  padding: 0 0 2rem 1.5rem;
  position: relative;
}

.flight-log li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 12px var(--copper);
}

.flight-log time {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.flight-log h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.flight-log p {
  margin: 0;
  color: var(--muted);
}

.social-feed {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.social-feed-copy p {
  color: var(--muted);
}

.x-embed-wrap {
  min-height: 32rem;
  overflow: hidden;
}

.x-timeline-frame {
  display: block;
  width: 100%;
  height: 32rem;
  border: 0;
  background: #000;
}

.x-embed-fallback {
  margin: 0;
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.x-embed-fallback a {
  color: var(--cyan);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-copy h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.contact-copy p {
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  margin: 1rem 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 1.05rem;
  text-decoration: none;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.4rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #080b12;
  color: var(--text);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--down);
}

.field-error {
  display: block;
  min-height: 1.1rem;
  color: var(--down);
  font-size: 0.78rem;
}

.form-status {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.form-status.is-success {
  color: var(--up);
}

.form-status.is-error {
  color: var(--down);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 6vw 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-meta {
  flex: 1 1 16rem;
  max-width: 28rem;
}

.footer-meta p {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.footer-meta p:last-child {
  margin-bottom: 0;
}

.footer-meta a {
  color: var(--cyan);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  text-decoration: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

html[data-motion="reduced"] {
  scroll-behavior: auto;
}

html[data-motion="reduced"] .portrait-ring,
html[data-motion="reduced"] [data-reveal] {
  animation: none;
  transition: none;
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .hero,
  .markets,
  .profile-grid,
  .social-feed,
  .contact,
  .company-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    align-items: start;
  }

  .hero-tape,
  .markets .section-heading,
  .fact-strip,
  .social-feed-copy,
  .contact-copy {
    grid-column: 1 / -1;
  }

  .telemetry {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-inline: 1.1rem;
  }

  .header-quote {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(5, 6, 10, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 1.2rem;
  }

  .hero,
  .markets,
  .profile-grid,
  .company-grid,
  .social-feed,
  .contact,
  .contact-form,
  .board-price-row,
  .fact-strip,
  .flight-log li {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .site-footer {
    padding-inline: 1.1rem;
  }

  .portrait-frame img {
    height: 28rem;
  }

  .telemetry {
    grid-template-columns: 1fr 1fr;
  }

  .ticker-track {
    animation-duration: 18s;
  }
}

/* ==========================================================================
   Landing page

   Merged in from the standalone elonmusk.com site. Everything above is
   shared by the marketing page and the signed-in app; the rules below are
   only ever used by the public landing page at /.
   ========================================================================== */

/* ---------------------------------------------- Boot state + Starship launch preloader */

body.is-loading {
  height: 100vh;
  overflow: hidden;
}

/* Starship launch preloader */
.launch-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 78%, rgba(232, 160, 106, 0.14), transparent 28%),
    radial-gradient(circle at 50% 42%, rgba(92, 225, 255, 0.07), transparent 38%),
    #030408;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s var(--ease), visibility 0.75s;
}

.launch-loader.is-cleared {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-stars {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background:
    radial-gradient(circle at 14% 22%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 73% 17%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 31% 61%, rgba(92, 225, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 52%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 57% 32%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 8% 78%, rgba(232, 160, 106, 0.85) 0 1px, transparent 1.5px);
}

.launch-orbit {
  position: absolute;
  width: min(76vw, 52rem);
  aspect-ratio: 1;
  border: 1px solid rgba(92, 225, 255, 0.09);
  border-radius: 50%;
  transform: rotate(64deg) scaleY(0.26);
}

.launch-copy {
  position: absolute;
  top: clamp(2.2rem, 7vh, 5rem);
  left: 50%;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
  text-align: center;
  text-transform: uppercase;
}

.launch-eyebrow,
.launch-sequence,
.loader-mark {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.25em;
}

.launch-status {
  margin-top: 0.5rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

.launch-sequence {
  margin-top: 0.45rem;
  color: var(--cyan);
}

.starship-stack {
  position: absolute;
  bottom: 12vh;
  left: 50%;
  width: 5rem;
  height: 23rem;
  transform: translateX(-50%);
}

.starship {
  position: absolute;
  inset: 0 auto auto 50%;
  width: 3.1rem;
  height: 19rem;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 15px rgba(92, 225, 255, 0.12));
}

.ship-nose,
.ship-body,
.ship-booster {
  position: absolute;
  left: 50%;
  width: 2.55rem;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #78818a, #edf2f5 42%, #a8b0b7 72%, #59616a);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ship-nose {
  top: 0;
  height: 3.4rem;
  border-radius: 55% 55% 12% 12% / 85% 85% 10% 10%;
  clip-path: polygon(50% 0, 79% 28%, 100% 76%, 100% 100%, 0 100%, 0 76%, 21% 28%);
}

.ship-body {
  top: 3.15rem;
  height: 5.3rem;
  border-radius: 0 0 0.25rem 0.25rem;
}

.ship-booster {
  top: 8.35rem;
  height: 9.1rem;
  background: repeating-linear-gradient(0deg, #8d969e 0 3px, #b7c0c7 3px 6px);
  border-radius: 0 0 0.4rem 0.4rem;
}

.ship-window {
  position: absolute;
  top: -1.55rem;
  left: 50%;
  width: 1.45rem;
  height: 0.7rem;
  border-radius: 50% 50% 20% 20%;
  background: #111820;
  transform: translateX(-50%);
}

.ship-flap,
.booster-grid {
  position: absolute;
  display: block;
  background: #606870;
}

.ship-flap {
  bottom: -0.4rem;
  width: 0.75rem;
  height: 2rem;
}

.ship-flap-left,
.booster-grid-left {
  right: 88%;
  clip-path: polygon(100% 0, 100% 100%, 0 84%, 45% 12%);
}

.ship-flap-right,
.booster-grid-right {
  left: 88%;
  clip-path: polygon(0 0, 55% 12%, 100% 84%, 0 100%);
}

.booster-grid {
  top: 0.8rem;
  width: 0.65rem;
  height: 1.25rem;
}

.ship-flame {
  position: absolute;
  top: 17.1rem;
  left: 50%;
  width: 1.35rem;
  height: 5rem;
  opacity: 0;
  border-radius: 50%;
  background: linear-gradient(#fff, var(--cyan) 16%, #ffb15d 48%, transparent 90%);
  filter: blur(2px) drop-shadow(0 0 20px #e8a06a);
  transform: translateX(-50%) scaleY(0.2);
  transform-origin: top;
}

.launch-smoke {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  width: 1rem;
  height: 1rem;
}

.launch-smoke i {
  position: absolute;
  width: 5rem;
  height: 2.2rem;
  opacity: 0;
  border-radius: 50%;
  background: rgba(190, 199, 207, 0.28);
  filter: blur(6px);
}

.launch-smoke i:nth-child(1) { transform: translate(-80%, 0); }
.launch-smoke i:nth-child(2) { transform: translate(-20%, 15%); }
.launch-smoke i:nth-child(3) { transform: translate(-120%, 35%); }
.launch-smoke i:nth-child(4) { transform: translate(20%, 45%); }
.launch-smoke i:nth-child(5) { transform: translate(-55%, 70%); }

.launch-loader.is-launching .starship-stack {
  animation: starship-liftoff 1.75s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.launch-loader.is-launching .starship {
  animation: launch-rumble 0.08s linear 8;
}

.launch-loader.is-launching .ship-flame {
  opacity: 1;
  animation: engine-plume 0.11s ease-in-out infinite alternate;
}

.launch-loader.is-launching .launch-smoke i {
  animation: smoke-bloom 1.15s var(--ease) forwards;
}

.launch-loader.is-launching .launch-smoke i:nth-child(2) { animation-delay: 0.08s; }
.launch-loader.is-launching .launch-smoke i:nth-child(3) { animation-delay: 0.14s; }
.launch-loader.is-launching .launch-smoke i:nth-child(4) { animation-delay: 0.2s; }
.launch-loader.is-launching .launch-smoke i:nth-child(5) { animation-delay: 0.26s; }

.loader-rail {
  position: absolute;
  right: clamp(1.2rem, 4vw, 3.5rem);
  bottom: clamp(2rem, 7vh, 5rem);
  width: min(12rem, 30vw);
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.loader-rail i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: loader-progress 1.05s var(--ease) forwards;
}

.loader-mark {
  position: absolute;
  bottom: clamp(1.4rem, 5vh, 3.5rem);
  left: clamp(1.2rem, 4vw, 3.5rem);
}

@keyframes loader-progress {
  to { width: 100%; }
}

@keyframes launch-rumble {
  0%, 100% { transform: translateX(-50%); }
  50% { transform: translateX(calc(-50% + 1px)); }
}

@keyframes engine-plume {
  from { transform: translateX(-50%) scale(0.82, 0.86); }
  to { transform: translateX(-50%) scale(1.1, 1.18); }
}

@keyframes smoke-bloom {
  0% { opacity: 0; scale: 0.25; }
  25% { opacity: 0.8; }
  100% { opacity: 0; scale: 2.5; translate: 0 3rem; }
}

@keyframes starship-liftoff {
  0% { transform: translateX(-50%); }
  14% { transform: translateX(-50%) translateY(-0.3rem); }
  100% { transform: translateX(-50%) translateY(-125vh); }
}

html[data-motion="reduced"] .launch-loader *,
html[data-motion="reduced"] .launch-loader *::before,
html[data-motion="reduced"] .launch-loader *::after {
  animation-duration: 0.01ms !important;
}

/* ---------------------------------------------- Header call to action */

.site-nav .nav-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cyan);
  color: #041018;
  letter-spacing: 0.1em;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}

.site-nav .nav-cta:hover {
  color: #041018;
  transform: translateY(-1px);
}

/* ---------------------------------------------- Market board header link */

.board-head .text-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ---------------------------------------------- Reduced-motion overrides for the landing sections */

html[data-motion="reduced"] {
  scroll-behavior: auto;
}

html[data-motion="reduced"] .portrait-ring,
html[data-motion="reduced"] .ticker-track,
html[data-motion="reduced"] [data-reveal] {
  animation: none;
  transition: none;
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------- Voices - third-party video coverage */

/* --------------------------------------------------------------- Voices */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

/* The play surface and the iframe that replaces it share one 16:9 box, so
   nothing shifts on the page when a visitor presses play. */
.video-play,
.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 1rem;
  background: rgba(12, 16, 24, 0.86);
}

.video-play {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease, ease), box-shadow 0.35s ease;
}

.video-play img {
  width: 100%;
  height: 100%;
  /* hqdefault.jpg is 4:3 with letterbox bars; cover trims exactly the bars. */
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.35s ease;
}

.video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 7, 12, 0.05) 0%,
    rgba(4, 7, 12, 0.35) 55%,
    rgba(4, 7, 12, 0.72) 100%
  );
  transition: opacity 0.35s ease;
}

.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(232, 160, 106, 0.92);
  color: #0a0d13;
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, background 0.35s ease;
}

.video-icon svg {
  margin-left: 0.15rem;
}

.video-play:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.4);
}

.video-play:hover img {
  transform: scale(1.05);
}

.video-play:hover .video-icon {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--copper);
}

.video-play:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.video-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  background: rgba(6, 9, 14, 0.78);
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
}

.video-meta h3 {
  margin: 0 0 0.35rem;
  font-family: var(--body, inherit);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  /* Titles come straight from YouTube and vary a lot in length; clamping
     keeps the row of cards even without truncating the text in the markup. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.video-channel {
  color: var(--cyan);
}

@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
}

html[data-motion="reduced"] .video-play,
html[data-motion="reduced"] .video-play img,
html[data-motion="reduced"] .video-icon {
  transition: none;
}

html[data-motion="reduced"] .video-play:hover,
html[data-motion="reduced"] .video-play:hover img,
html[data-motion="reduced"] .video-play:hover .video-icon {
  transform: none;
}

html[data-motion="reduced"] .video-play:hover .video-icon {
  transform: translate(-50%, -50%);
}

/* ---------------------------------------------- Landing page, small screens */

@media (max-width: 760px) {
  /* The open drawer dims the page behind it. */
  .site-nav.is-open::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(3, 4, 8, 0.72);
  }

  /* The sliding underline only tracks the horizontal bar. */
  .nav-ink {
    display: none;
  }

  .site-nav .nav-cta {
    margin: 0.75rem 1.2rem 0.25rem;
    padding: 0.9rem 1.2rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 520px) {
  /* Side-by-side pills leave orphaned words on narrow phones, so the two
     hero buttons take a full row each and the text link sits below them. */
  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}
