/* HALO landing. One ground (the LCD's black), one ink, one accent (the avatar's blue).
   System fonts only: nothing is fetched from a CDN. */
:root {
  --bg: #05070a;
  --surface: #0c1118;
  --surface-2: #121924;
  --ink: #eef2f8;
  --muted: #a3adbd;
  --accent: #4a8cff;
  --accent-ink: #05070a;
  --field-blue: #2f6fdc;
  --field-blue-ink: #ffffff;
  --field-drive: #0b1a33;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.125rem, 1.3rem + 3.4vw, 4.5rem);
  --step-sub: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  --step-display: clamp(2.5rem, 0.6rem + 8.4vw, 8.75rem);

  --m: clamp(20px, 2.4vw, 36px);          /* the one pair of outer margins */
  --gap: clamp(112px, 12vw, 200px);       /* between sections */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: var(--m); top: -100px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 650; font-size: var(--step-small); text-decoration: none; white-space: nowrap;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.btn:hover { background: #6ba1ff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-ink { background: var(--bg); color: var(--ink); }
.btn-ink:hover { background: #18202c; }

/* ------------------------------------------------------------ bar */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--m);
}
.wordmark { font-weight: 800; letter-spacing: 0.02em; font-size: var(--step-body); text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 28px; font-size: var(--step-small); }
.bar nav a { text-decoration: none; color: var(--muted); transition: color 160ms; }
.bar nav a:hover { color: var(--ink); }
.btn-bar { min-height: 44px; padding: 0 20px; }

/* ------------------------------------------------------------ hero */
.hero {
  padding: clamp(120px, 15vh, 180px) var(--m) clamp(48px, 6vh, 72px);
}
.hero h1 {
  font-size: var(--step-display);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.h1-line { display: block; white-space: nowrap; }
.slot {
  display: inline-block; vertical-align: -0.1em;
  width: 0.92em; height: 0.92em; margin-right: -0.04em;
  border-radius: 50%; overflow: hidden; background: #000;
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 46rem) auto; align-items: end;
  gap: 32px 48px; margin-top: 40px; justify-content: space-between;
}
.lede { font-size: var(--step-lead); line-height: 1.45; max-width: 40ch; }

/* ------------------------------------------------------------ live */
.live-stage {
  position: relative; height: clamp(360px, 64vh, 720px);
  background: #04050a; overflow: hidden;
}
.live-poster, .live-stage iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  object-fit: cover; object-position: 42% 50%;
}
.live-stage iframe { opacity: 0; transition: opacity 700ms var(--ease); pointer-events: none; }
.live-stage.on iframe { opacity: 1; }

.live-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px;
  padding: 56px var(--m) 0;
}
.live-copy h2 { font-size: var(--step-head); font-weight: 720; letter-spacing: -0.035em; line-height: 1; }
.live-copy p { margin-top: 20px; max-width: 38ch; }
.live-controls { display: grid; gap: 22px; align-content: start; }
html:not(.js) .live-controls { display: none; }
.group h3 { font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); font-size: var(--step-small);
  transition: background-color 160ms, color 160ms, transform 160ms var(--ease);
}
.chips button:hover { background: #1c2533; }
.chips button:active { transform: scale(0.95); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ------------------------------------------------------------ intro */
.intro {
  position: relative; margin-top: var(--gap);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  padding: 0 0 0 var(--m);
}
.intro-text { grid-column: 1 / 7; grid-row: 1; position: relative; z-index: 2; padding-top: 4vh; }
.intro h2 { font-size: var(--step-display); font-weight: 760; letter-spacing: -0.045em; line-height: 0.96; max-width: 9ch; }
.intro p { margin-top: 36px; font-size: var(--step-lead); line-height: 1.45; max-width: 34ch; }
.intro-big { grid-column: 7 / 13; grid-row: 1 / 3; margin-top: 18vh; background: #a0a1a3; }
.intro-big img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
.intro-small { grid-column: 1 / 4; grid-row: 2; margin-top: 64px; align-self: start; width: min(300px, 100%); }

.round { border-radius: 50%; overflow: hidden; background: #000; }
.round img { width: 100%; aspect-ratio: 1; }

/* ------------------------------------------------------------ showcase: one frame, three distances */
.show { position: relative; height: 210vh; margin-top: var(--gap); }
.show-sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: 1fr minmax(0, 34vw) 1fr; grid-template-rows: auto auto;
  align-content: center; justify-items: center; column-gap: 40px; padding: 0 var(--m);
}
.show-h { display: contents; font-weight: 760; letter-spacing: -0.045em; line-height: 0.96; }
.show-a, .show-b { font-size: var(--step-display); grid-column: 1 / 4; white-space: nowrap; position: relative; z-index: 2; }
.show-a { grid-row: 1; margin-bottom: 0.15em; }
.show-b { grid-row: 3; margin-top: 0.12em; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.show-frame {
  grid-column: 2; grid-row: 2; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #2a3440;
}
.show-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 37% 50%;
  transform-origin: 37% 57%; transition: transform 900ms var(--ease);
}
.show-frame[data-stage="1"] img { transform: scale(1.8); }
.show-frame[data-stage="2"] img { transform: scale(3.1); transform-origin: 38.5% 53%; }
.show-p {
  grid-column: 3; grid-row: 2; align-self: start; justify-self: start; max-width: 30ch;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js .show:not([data-at="1"]):not([data-at="2"]) .show-b { opacity: 0; transform: translateY(24px); }
.js .show:not([data-at="2"]) .show-p { opacity: 0; transform: translateY(24px); }
.show-marks { position: absolute; inset: 0; pointer-events: none; }
.show-marks i { position: absolute; left: 0; width: 0; height: 0; }
.show-marks i[data-mark="0"] { top: 20%; }
.show-marks i[data-mark="1"] { top: 45%; }
.show-marks i[data-mark="2"] { top: 70%; }

/* ?shot=1 (full-page screenshots): the pinned section laid out flat */
.shot .show { height: auto; }
.shot .show-sticky { position: relative; height: auto; min-height: 100svh; padding-block: 64px; }

/* ------------------------------------------------------------ features: rows on one axis */
.feat { margin-top: var(--gap); padding: 0 var(--m); }
.feat-h {
  margin-left: calc(35% + 32px); font-size: var(--step-head); font-weight: 720; letter-spacing: -0.035em; line-height: 1;
}
.rows { display: grid; gap: clamp(88px, 9vw, 128px); margin-top: clamp(64px, 7vw, 112px); }
.row { display: grid; grid-template-columns: 35% minmax(0, 1fr) auto; column-gap: 32px; align-items: start; }
.row > div { grid-column: 2; }
.row h3 { font-size: var(--step-sub); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.row p { margin-top: 18px; max-width: 36ch; }
.row figure { grid-column: 3; }
.row figure:hover img { transform: scale(1.04); }
.row figure img { transition: transform 500ms var(--ease); }
.w-l { width: clamp(220px, 22vw, 320px); }
.w-m { width: clamp(180px, 17vw, 250px); }
.w-s { width: clamp(150px, 13vw, 190px); }
.wide { width: clamp(260px, 30vw, 440px); overflow: hidden; background: #a0a1a3; }
.wide img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 40% 60%; }
.phone { width: clamp(170px, 16vw, 230px); border-radius: 28px; overflow: hidden; background: var(--surface); }

/* ------------------------------------------------------------ drive: prints dropped on the headline */
.drive {
  position: relative; margin-top: var(--gap); min-height: min(100svh, 940px); overflow: hidden;
  background: var(--field-drive); display: grid; place-items: center; padding: 96px var(--m);
}
.drive-h {
  display: grid; justify-items: center; text-align: center;
  font-size: clamp(5.5rem, 1rem + 15vw, 13.5rem); font-weight: 820; letter-spacing: -0.055em; line-height: 0.85;
}
.print { position: absolute; z-index: 2; border: 8px solid var(--surface-2); transition: transform 240ms var(--ease); }
.print:hover { z-index: 3; transform: rotate(0deg) scale(1.03); }
.p1 { width: 20vw; max-width: 320px; left: 3%; top: 14%; transform: rotate(-8deg); }
.p2 { width: 20vw; max-width: 320px; right: 3%; top: 34%; transform: rotate(6deg); }
.p3 { width: 13vw; max-width: 210px; left: 12%; bottom: -5%; transform: rotate(-4deg); }
.drive-note { position: absolute; right: var(--m); bottom: 28px; max-width: 34ch; z-index: 4; }

/* ------------------------------------------------------------ ride: statement left, proof right */
.ride {
  margin-top: var(--gap); padding: 0 var(--m);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start;
}
.ride h2 { font-size: var(--step-head); font-weight: 720; letter-spacing: -0.035em; line-height: 1; max-width: 14ch; }
.ride-lede { margin-top: 24px; font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; }
.ride-list { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 40px; max-width: 760px; }
.ride-list dt { font-weight: 700; line-height: 1.3; }
.ride-list dd { margin-top: 8px; }
.ride-phone { justify-self: center; width: min(320px, 100%); border-radius: 36px; overflow: hidden; background: var(--surface); }

/* ------------------------------------------------------------ faq: large questions, answers beside */
.faq { margin-top: var(--gap); padding: 0 var(--m); }
.faq-h { font-size: var(--step-sub); font-weight: 600; color: var(--muted); letter-spacing: -0.02em; }
.faq dl { display: grid; gap: clamp(56px, 6vw, 84px); margin-top: clamp(56px, 6vw, 84px); }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: baseline; }
.qa dt { grid-column: 1 / 7; font-size: var(--step-sub); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.qa dd { grid-column: 8 / 13; max-width: 40ch; }

/* ------------------------------------------------------------ end: the idea again, inverted */
.end {
  margin-top: var(--gap); background: var(--field-blue); color: var(--field-blue-ink);
  display: grid; row-gap: clamp(96px, 14vw, 220px); padding: clamp(88px, 10vw, 140px) var(--m) 48px;
}
.end h2 { font-size: var(--step-display); font-weight: 780; letter-spacing: -0.045em; line-height: 0.92; }
.end h2 span { display: block; white-space: nowrap; }
.end-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.end-foot p { font-size: var(--step-lead); max-width: 30ch; }

/* ------------------------------------------------------------ footer */
.foot { position: relative; overflow: hidden; background: var(--field-blue); color: var(--field-blue-ink); padding: 0 var(--m); }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step-small); padding: 28px 0 8px; }
.foot-row a { text-underline-offset: 3px; }
.foot-mark {
  font-size: 29vw; font-weight: 860; letter-spacing: -0.06em; line-height: 0.8; white-space: nowrap;
  color: var(--bg); margin: 0 0 -0.12em -0.04em; user-select: none;
}

/* ------------------------------------------------------------ motion */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
.js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease); }
.js .shutter .live-poster { transform: scale(1.12); transition: transform 1400ms var(--ease); }
.js .shutter.in { clip-path: inset(0 0 0 0); }
.js .shutter.in .live-poster { transform: none; }
.intro-big img { transition: transform 1600ms var(--ease); }
.js .intro-big:not(.in) img { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .shutter, .js .shutter .live-poster, .js .intro-big:not(.in) img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .show-frame img, .show-b, .show-p { transition: none; }
  }

/* ------------------------------------------------------------ tablet */
@media (max-width: 820px) {
  /* the sim draws its stage into the top 58% of a narrow window */
  .live-stage iframe { height: calc(100% / 0.58); }
}
@media (max-width: 1080px) {
  .bar nav a:not(.lang) { display: none; }
  .intro-text { grid-column: 1 / 8; }
  .feat-h { margin-left: 0; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row > div { grid-column: 1; }
  .row figure { grid-column: 2; }
  .live-panel { grid-template-columns: 1fr; gap: 32px; }
  .ride-list { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ phone: its own composition */
@media (max-width: 700px) {
  :root { --gap: 112px; }
  .bar { gap: 16px; padding-top: 16px; }
  .btn-bar { display: none; }
  .hero { padding-top: 104px; }
  .hero h1, .intro h2, .show-a, .show-b, .end h2 { font-size: 10.6vw; }
  html[lang="en"] .hero h1 { font-size: 9vw; }
  .hero-foot { grid-template-columns: 1fr; margin-top: 28px; }
  .hero-foot .btn { width: 100%; }
  .live-stage { height: 56svh; }
  .live-poster { object-position: 30% 50%; }
  .live-panel { padding-top: 36px; }

  .intro { display: block; padding: 0 var(--m); }
  .intro-big { width: 78%; margin: 40px calc(-1 * var(--m)) 0 auto; }
  .intro-small { width: 52%; margin-top: -18%; position: relative; }

  .show { height: 190vh; }
  .show-sticky { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; column-gap: 0; }
  .show-a, .show-b { grid-column: 1; }
  .show-frame { grid-column: 1; grid-row: 2; width: 72vw; }
  .show-b { grid-row: 3; }
  .show-p { grid-column: 1; grid-row: 4; justify-self: center; text-align: center; margin-top: 16px; }

  .feat-h { margin-left: 0; padding: 0 0 8px; }
  .row { grid-template-columns: 1fr; row-gap: 28px; }
  .row > div, .row figure { grid-column: 1; }
  .rows { gap: 64px; }
  .row:nth-child(3n+1) figure.round { width: 76%; }
  .row:nth-child(3n+2) figure.round { width: 70%; justify-self: end; }
  .row:nth-child(3n) figure.round { width: 55%; }
  .wide { width: 100%; }
  .phone { width: 52%; justify-self: end; }

  .drive-h { font-size: 28vw; }
  .drive { display: block; min-height: 0; padding: 72px var(--m) 40px; }
  .print { position: relative; display: inline-block; }
  .p1, .p2 { width: 44%; left: auto; right: auto; top: auto; margin-top: 32px; }
  .p2 { margin-left: 6%; }
  .drive-note { position: static; margin-top: 32px; }
  .p3 { display: none; }

  .ride { grid-template-columns: 1fr; }
  .ride-phone { width: 58%; }

  .qa { display: block; }
  .qa dd { margin-top: 12px; }

  .end-foot { flex-direction: column; align-items: stretch; }
  .end-foot .btn { width: 100%; }

}
