/* ————————————————————————————————— Stolen Orbit ——
   Type: Clash Display (display) · Switzer (body) · Space Mono (telemetry)
   Self-hosted — this site makes zero third-party requests.
   One accent: ion — the violet of an ion drive. Everything else is
   near-black and starlight.                                              */

@font-face {
  font-family: "Clash Display";
  src: url("assets/fonts/ClashDisplay-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("assets/fonts/ClashDisplay-Medium.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("assets/fonts/Switzer-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("assets/fonts/Switzer-Medium.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/SpaceMono-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
:root {
  --bg: #070510;
  --ink: #edeef6;
  --dim: #8e92bb;                 /* 6.7:1 on --bg — passes AA as real text */
  --faint: rgba(142, 146, 187, 0.45);
  --hair: rgba(231, 227, 255, 0.09);
  --ion: #8a6bff;                 /* 5.4:1 on --bg — safe for text-sized use */
  --ion-deep: #5638d8;            /* decorative only — gradients and glows */
  --disp: "Clash Display", "Avenir Next", sans-serif;
  --body: "Switzer", "Helvetica Neue", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* color-scheme keeps the UA scrollbar/controls dark beside the film */
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--ion); color: #070510; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 2px; }

/* Space Mono is reserved for one job: the small platform tag on a product
   card. Used anywhere else it stops reading as information and starts
   reading as decoration. */
.meta {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* grain — kills flat gradients, added by JS as a tiled data-URI texture */
.grain {
  position: fixed; inset: -50px; z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ——— skip link ——— */
.skip {
  position: fixed; top: -60px; left: 50%; transform: translateX(-50%);
  z-index: 60; padding: 0.7rem 1.2rem;
  background: #0c0e16; border: 1px solid var(--hair); border-radius: 999px;
  color: var(--ink); font-size: 0.875rem;
  transition: top 0.3s var(--ease);
}
.skip:focus-visible { top: 12px; }

/* ——— top bar ——— */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 60px; padding: 0 clamp(1rem, 4vw, 2.5rem);
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
/* the plate runs bright behind the bar (accretion disk, planet limb), so the
   bar carries its own scrim at all times — not only once scrolled */
.bar::before {
  content: ""; position: absolute; inset: 0 0 -32px 0; z-index: -1;
  pointer-events: none;
  background: linear-gradient(rgba(7, 5, 16, 0.82), rgba(7, 5, 16, 0));
}
.bar.scrolled {
  background: rgba(7, 5, 16, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
}
.bar.scrolled::before { opacity: 0; transition: opacity 0.4s; }
.mark {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--disp); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.mark svg { color: var(--ink); overflow: visible; }
.mark .sat {
  animation: orbit 7s linear infinite;
  transform-origin: 32px 32px;
}
.mark:hover .sat { animation-duration: 1.1s; }
@keyframes orbit { to { transform: rotate(360deg); } }

.navlinks {
  display: flex; gap: clamp(1.1rem, 3vw, 2.4rem);
  font-size: 0.875rem;
}
.navlinks a {
  color: var(--dim); padding: 0.3rem 0.1rem;
  transition: color 0.25s;
}
.navlinks a:hover { color: var(--ink); }

/* ——— progress hairline ——— */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 55; height: 2px;
  pointer-events: none;
}
.progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ion-deep), var(--ion));
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ——— the fall (pinned stage) ——— */
/* 500vh over 241 frames is ~1 frame per 15px of scroll — a smooth scrub, and
   the eased playhead (orbit.js) blends across the gaps. */
.track { height: 500vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  overflow: clip; contain: strict;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 55% 45%, transparent 52%, rgba(0, 0, 0, 0.55));
}

/* story beats read like film supers: centered, big, unhurried */
.beat {
  position: absolute; left: 0; right: 0; top: 46%;
  transform: translateY(-50%);
  text-align: center;
  opacity: 0; pointer-events: none;
  will-change: opacity, transform;
}
.beat-hero {
  top: 36%; left: clamp(1.25rem, 6vw, 7rem); right: auto;
  text-align: left; max-width: none;
}
.beat::before {                /* scrim — planets and plasma both get bright */
  content: ""; position: absolute; inset: -3.5rem -12vw; z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(7, 5, 16, 0.88), rgba(7, 5, 16, 0.55) 45%, rgba(7, 5, 16, 0) 75%);
}
/* the plate is now a fast traveling shot, so the wordmark carries its own
   scrim: a soft left-anchored pool of black that reads as vignette, not as a
   panel — the film stays visible through it */
.beat-hero::before {
  display: block; inset: -20vh -30vw -20vh -60vw;
  background: radial-gradient(ellipse at 32% 50%, rgba(7, 5, 16, 0.82), rgba(7, 5, 16, 0.45) 52%, rgba(7, 5, 16, 0) 74%);
}
.title {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: 0.94; letter-spacing: -0.03em;
}
.tline { display: block; overflow: hidden; }
.tline b {
  display: inline-block; font-weight: inherit;
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(0.25s + var(--i) * 0.045s);
}
.tline:last-child b:first-child { color: var(--ion); }
@keyframes rise {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
/* the one sentence that says what the company is, under the wordmark */
.sub {
  margin-top: 1.4rem; max-width: 32ch; text-wrap: balance;
  font-size: clamp(1.0625rem, 1.7vw, 1.375rem);
  line-height: 1.35; color: rgba(226, 231, 243, 0.88);
  text-shadow: 0 2px 22px rgba(7, 5, 16, 0.95);
  animation: fadein 1s var(--ease) 0.95s both;
}
/* needs an explicit `to`: with fill-mode `both` and only a `from` keyframe the
   last keyframe IS the from-state, so the element stays at opacity 0 */
@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .sub { animation: none; }
}

/* ——— the closing line — revealed inside the void ——— */
.beat-motto {
  max-width: none;
  left: 0; right: 0; top: 50%;
  text-align: center;
}
/* the hole's shadow carries the middle of the line, but on wide screens the
   first and last words reach into the lensed disk — a soft pool keeps them */
.beat-motto::before {
  inset: -3rem -6vw;
  background: radial-gradient(ellipse at 50% 50%, rgba(7, 5, 16, 0.72), rgba(7, 5, 16, 0.4) 55%, rgba(7, 5, 16, 0) 78%);
}
.motto {
  font-family: var(--disp); font-weight: 500;
  /* two lines now, so it sizes to the pair rather than to one big word row */
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.14; letter-spacing: -0.02em;
  text-shadow: 0 2px 32px rgba(7, 5, 16, 0.9), 0 0 10px rgba(7, 5, 16, 0.7);
}
.mline { display: block; }
.mw {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  filter: blur(12px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease), filter 0.75s var(--ease);
  transition-delay: calc(var(--i) * 110ms);
}
.beat-motto.on .mw { opacity: 1; transform: none; filter: blur(0); }
.mw.em { color: var(--ion); }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .mw { transition: opacity 0.4s; transform: none; filter: none; }
}

/* ——— film beats: the story told mid-descent ———
   Each one is a link timed to a dark stretch of the plate. They read as
   film supers, not UI — one line, one quiet pointer to the section. */
.beat .line {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.12; letter-spacing: -0.015em;
  color: var(--ink);
  text-shadow: 0 2px 26px rgba(7, 5, 16, 0.9);
}
.beat .go {
  display: inline-block; margin-top: 0.9rem;
  color: var(--ion);
  transition: transform 0.3s var(--ease);
}
a.beat:hover .go { transform: translateX(4px); }
.beat-ship {
  top: 42%; left: clamp(1.25rem, 6vw, 7rem); right: auto;
  text-align: left;
}
/* the closing invitation — arrives one step after "earned." */
.mafter { margin-top: clamp(1.4rem, 3.5vh, 2.2rem); }
.mlink {
  display: inline-block;
  font-size: 1rem; letter-spacing: 0.01em;
  color: var(--ion);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: 1040ms;                  /* after the eight motto words */
}
.beat-motto.on .mlink { opacity: 1; transform: none; }
.mlink:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .mlink { transition: opacity 0.4s; transform: none; }
}

/* app satellites — small bodies orbiting in the disk plane.
   Sized by --chip so JS can read one number for the fit maths. */
.chip {
  --chip: 84px;
  position: absolute; top: 0; left: 0;
  width: var(--chip); height: var(--chip);
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #22262f, #0a0c13 78%);
  border: 1px solid rgba(235, 238, 248, 0.14);
  box-shadow:
    inset -8px -10px 22px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transition: border-color 0.25s;
  will-change: transform, opacity;
}
/* the label sits on the sphere but is not lit by it — flat, legible, level AA */
.chip span {
  font-size: 0.6875rem; line-height: 1.2;
  letter-spacing: 0.01em; text-align: center;
  color: rgba(244, 246, 251, 0.96);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}
.chip:hover { border-color: var(--ion); }
.chip.live { pointer-events: auto; }

.cue {
  position: absolute; left: 50%; bottom: 4.5vh; transform: translateX(-50%);
  color: var(--dim); font-size: 0.8125rem;
  transition: opacity 0.5s;
}
.cue.gone { opacity: 0; }

/* ——— sections ——— */
main { position: relative; z-index: 2; }

section {
  max-width: 1060px; margin: 0 auto;
  padding: clamp(6rem, 16vh, 11rem) clamp(1.25rem, 6vw, 3rem) 0;
}

/* one section header pattern: title, optional standfirst, one rule.
   No kickers — the hierarchy already says where you are. */
.shead {
  border-bottom: 1px solid var(--hair);
  padding-bottom: clamp(1.5rem, 4vh, 2.4rem);
  margin-bottom: clamp(2.4rem, 6vh, 4rem);
}
.shead h2 {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  letter-spacing: -0.02em; line-height: 1.05;
}
.shead p {
  max-width: 52ch; margin-top: 1.1rem;
  color: var(--dim); font-size: clamp(1rem, 1.4vw, 1.0625rem);
}

/* ——— products ——— */
/* Each card is its own grid track, so nothing here can drift row to row the
   way a per-row `auto` column does. */
.grid {
  list-style: none;
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* horizontal card: a modest device shot beside the words, so four products
   read as a line-up rather than four billboards */
/* column-gap only: a shorthand `gap` also spaces the rows, which stretches the
   text block to the image's height and opens holes between the lines */
.card > * {
  display: grid; grid-template-columns: 116px minmax(0, 1fr);
  column-gap: clamp(1.1rem, 2vw, 1.6rem); align-items: center;
}
.card img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 645 / 1398;
  object-fit: cover; border-radius: 10px;
  background: #0d0f16;
  border: 1px solid var(--hair);
}
.card h3 {
  font-family: var(--disp); font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem); letter-spacing: -0.015em;
  align-self: start;
}
.card p { color: var(--dim); margin-top: 0.45rem; font-size: 0.9375rem; }
/* --dim, not --faint: this is real text (incl. the App Store link affordance),
   and --faint on --bg is 2.15:1 — decoration-only territory */
.card .meta { display: block; margin-top: 0.85rem; color: var(--dim); }
/* one hover effect, not three */
.card a:hover .meta { color: var(--ion); }
.card a:hover img { border-color: rgba(235, 238, 248, 0.2); }
.card img { transition: border-color 0.3s; }
.card .meta { transition: color 0.3s; }

.traction {
  list-style: none; display: flex; flex-wrap: wrap;
  gap: clamp(1.75rem, 5vw, 4rem);
  margin: 0 0 clamp(2.75rem, 7vh, 4.5rem);
}
.traction b {
  display: block; font-family: var(--disp); font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.02em;
  line-height: 1;
}
.traction li { color: var(--dim); font-size: 0.9375rem; }
.traction li > b + * { margin-top: 0.4rem; }

/* ——— how we work ——— */
/* Read as sentences, not as a values grid: no rules between them, no hover
   state — they are statements, not controls. */
.work ul { list-style: none; }
.work li {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ink);
  /* the measure has to sit on the li, not the ul: `ch` resolves against the
     element's own font-size, and the ul is still at 1rem */
  max-width: 30ch; text-wrap: pretty;
}
.work li + li { margin-top: clamp(1.5rem, 4vh, 2.4rem); }

/* ——— the bet ——— */
/* Three credos, read as an argument: the bold first sentence is the claim,
   the rest is the reasoning. Same register as prose, not a values grid. */
.betbody { max-width: 56ch; }
.betbody p {
  color: var(--dim);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem); line-height: 1.6;
}
.betbody p + p { margin-top: clamp(1.3rem, 3vh, 1.8rem); }
.betbody strong { color: var(--ink); font-weight: 500; }
.betbody .stake {
  margin-top: clamp(1.8rem, 4vh, 2.6rem);
  color: var(--ink); font-style: italic;
}

/* ——— work with us ——— */
.joinbody { max-width: 54ch; }
.joinbody p {
  color: var(--ink);
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem); line-height: 1.55;
}
.joinbody .warn { margin-top: 1.4rem; color: var(--dim); }
.cta {
  display: inline-block; margin-top: 2.75rem;
  padding: 1rem 1.75rem;
  border: 1px solid var(--ion); border-radius: 999px;
  color: var(--ion); font-size: 1rem;
  transition: background 0.3s, color 0.3s;
}
.cta:hover { background: var(--ion); color: #070510; }

/* footer */
footer {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem;
  justify-content: space-between;
  max-width: 1060px; margin: clamp(6rem, 14vh, 9rem) auto 0;
  padding: 2rem clamp(1.25rem, 6vw, 3rem) 3rem;
  color: var(--dim); font-size: 0.8125rem;
}
/* a border-top would span the padding too and sit 48px wider than every other
   hairline on the page; inset it to the content column instead */
footer::before {
  content: ""; position: absolute; top: 0;
  left: clamp(1.25rem, 6vw, 3rem); right: clamp(1.25rem, 6vw, 3rem);
  height: 1px; background: var(--hair);
}

/* reveals */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ——— small screens ——— */
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 6vw, 3rem); }
}
@media (max-width: 420px) {
  .card > * { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (max-width: 680px) {
  /* four links now — keep them all where they fit, grow the touch targets to
     fill the 60px bar, and shed "The bet" first on the narrowest screens
     (the section stays scroll-discoverable) */
  .navlinks { gap: 1rem; font-size: 0.8125rem; }
  .navlinks a { padding: 1.05rem 0.35rem; }
  .bar { gap: 0.75rem; }
  .mark span { display: none; }
  .beat { max-width: 26ch; top: 26%; }   /* the sky is darkest up there */
  .beat-hero { top: 30%; }
  .beat-motto { top: 45%; max-width: none; }
  /* each half of the offer has to hold its own line, or "Four owners." breaks
     off alone and the two-beat reveal reads as three ragged ones */
  .motto { font-size: clamp(1.45rem, 7.2vw, 2rem); line-height: 1.2; }
  .beat::before {                        /* soft scrim so copy survives the halo */
    content: ""; position: absolute; inset: -2rem -2.6rem; z-index: -1;
    background: radial-gradient(ellipse at 35% 45%, rgba(7, 5, 16, 0.8), rgba(7, 5, 16, 0) 72%);
  }
  .chip { --chip: 72px; }
  .chip span { font-size: 0.625rem; }
}
@media (max-width: 480px) {
  .navlinks { gap: 0.75rem; }
  .navlinks a[href="#bet"] { display: none; }
}

/* ——— reduced motion / no JS: the story degrades to a page ——— */
/* reduced motion: the scroll scrub stays — it only moves when the user
   scrolls — but every self-playing ornament stops */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) .tline b { animation: none; }
  html:not(.force-motion) .mark .sat { animation: none; }
  html:not(.force-motion) .reveal { opacity: 1; transform: none; transition: none; }
}

/* no JS: the story is just a page */
.no-js .cue, .no-js .chip { display: none; }
/* .mw is revealed by the `.on` class the scroll loop adds, so without JS the
   closing line would render at opacity 0 — invisible rather than degraded */
.no-js .mw { opacity: 1; transform: none; filter: none; }
.no-js .beat { position: static; transform: none; opacity: 1; margin-bottom: 3rem; pointer-events: auto; }
.no-js .track { height: auto; }
.no-js .stage { position: relative; height: auto; min-height: 60vh; contain: none; padding: 18vh clamp(1.25rem, 6vw, 7rem) 8vh; }
.no-js .reveal { opacity: 1; transform: none; }
