/* Rari R2 · orbiteval.com
   The page is the robot's own stage: the same black as the CAD film and the 3D viewer. Frosted glass floats over
   moving light. The only colour is the robot's light: an ice blue (#C2E1FC), used as a glow, never as paint.
   One family, Mona Sans: light and expanded for headlines. Doto only for the elevator's floor numbers.

   On laptops and desktops every section is exactly one screen: it fits the window (sizes follow the window's
   height as well as its width) and the page settles on each one as you scroll, so nothing is ever cut off.
   If a window is too small for that, the page falls back to ordinary scrolling (see the snap check in main.js). */

:root {
  --bg: #030507;        /* the 3D stage's background, so the canvas has no edges */
  --ice: #C2E1FC;
  --ink: #F2F6FA;
  --ink-2: rgba(232, 240, 248, .72);
  --ink-3: rgba(232, 240, 248, .54);
  --line: rgba(255, 255, 255, .08);
  --err: #FF9C9C;

  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .022)), rgba(9, 12, 16, .4);
  --glass-edge: rgba(255, 255, 255, .07);
  --blur: blur(24px) saturate(170%);

  --f: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-dot: "Doto", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(20px, 4vw, 40px);
  --wrap: 1320px;
  --top: clamp(84px, 11.6vh, 92px);   /* room for the floating nav */
  --bottom: 28px;
  --foot-h: 104px;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
::selection { background: rgba(194, 225, 252, .3); color: #fff; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vh, 120px) 0; }
.section--tight { padding-block: clamp(72px, 10vh, 112px) clamp(56px, 8vh, 96px); }

/* ------------------------------------------------------------ glass */
.glass {
  position: relative;
  background: var(--glass-fill); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -48px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
/* a lit rim: light catches the top-left edge, a little ice at the far corner */
.glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .07) 26%, rgba(255, 255, 255, 0) 50%, rgba(194, 225, 252, .18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* the glass catches the pointer like a light */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(194, 225, 252, .09), transparent 62%);
}
.glass:hover::after { opacity: 1; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .nav__bar, .btn--glass { background: rgba(16, 20, 26, .94); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .nav__bar, .btn--glass, .door { background: #10141A; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ------------------------------------------------------------ type (sizes follow the window's height too) */
.display { margin: 0; font-weight: 300; font-stretch: 125%; letter-spacing: -.035em; line-height: 1.02; color: var(--ink); text-wrap: balance; }
.display--1 { font-size: clamp(44px, min(6.2vw, 11.5vh), 96px); line-height: .98; }
.display--1 .line { display: block; }
.display--2 { font-size: clamp(30px, min(3.4vw, 5.6vh), 54px); font-weight: 320; font-stretch: 122%; letter-spacing: -.03em; line-height: 1.04; }
.eyebrow { margin: 0 0 clamp(10px, 1.6vh, 16px); font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--ice); }
.lede { margin: clamp(18px, 3vh, 26px) 0 0; max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); }
.sub { margin: clamp(10px, 1.8vh, 18px) 0 0; max-width: 54ch; font-size: 17px; color: var(--ink-2); }
.fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.head { max-width: 860px; margin-bottom: clamp(16px, 3vh, 44px); }
.head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px 64px; align-items: end; }
.head--split .sub { margin: 0 0 6px; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px; font: 600 15.5px/1 var(--f); letter-spacing: .005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s, border-color .25s, box-shadow .3s, color .25s, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--light { background: #EDF3F9; color: #05080B; box-shadow: 0 12px 36px -14px rgba(194, 225, 252, .5); }
.btn--light:hover { background: #fff; box-shadow: 0 0 0 5px rgba(194, 225, 252, .12), 0 16px 44px -12px rgba(194, 225, 252, .65); }
.btn--glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04)), rgba(9, 12, 16, .35);
  border-color: rgba(255, 255, 255, .14); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.btn--glass:hover { border-color: rgba(194, 225, 252, .4); background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)), rgba(9, 12, 16, .35); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn__play { width: 11px; height: 11px; fill: currentColor; }
.btn__meta { font-weight: 500; color: var(--ink-3); }

.link {
  padding: 0; border: 0; background: none; font: 550 14px/1.4 var(--f); color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(194, 225, 252, .35); text-underline-offset: 4px;
}
.link:hover { text-decoration-color: var(--ice); }

/* ------------------------------------------------------------ arrival: the doors */
.doors { position: fixed; inset: 0; z-index: 80; pointer-events: none; display: none; }
.js .doors { display: block; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  background: linear-gradient(90deg, rgba(16, 21, 27, .74), rgba(22, 28, 35, .62));
  -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%);
  transition: transform 1.3s cubic-bezier(.76, 0, .18, 1) .12s;
}
.door::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 5px); }
.door--l { left: 0; box-shadow: inset -1px 0 0 rgba(194, 225, 252, .45), inset -30px 0 40px -34px rgba(194, 225, 252, .35); }
.door--r { right: 0; box-shadow: inset 1px 0 0 rgba(194, 225, 252, .3); }
.is-loaded .door--l { transform: translateX(-101%); }
.is-loaded .door--r { transform: translateX(101%); }
.doors__lantern { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); padding: 9px 15px 7px; border-radius: 12px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .08); transition: opacity .35s .05s; }
.is-loaded .doors__lantern { opacity: 0; }
.is-loaded .doors { visibility: hidden; transition: visibility 0s 1.6s; }
.dot-num { font: 800 22px/1 var(--f-dot); letter-spacing: .04em; color: var(--ice); text-shadow: 0 0 12px rgba(194, 225, 252, .75); }

/* ------------------------------------------------------------ nav */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding-inline: clamp(10px, 2.4vw, 28px); pointer-events: none; }
.nav__bar {
  position: relative; pointer-events: auto; max-width: calc(var(--wrap) - 40px); height: 58px; margin: 0 auto; padding: 0 9px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 999px;
  background: rgba(10, 13, 17, .4); border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 20px 50px -24px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  transition: background-color .3s;
}
.nav.is-scrolled .nav__bar { background: rgba(10, 13, 17, .62); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 9px 15px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav__links a[aria-current] { color: var(--ink); background: rgba(255, 255, 255, .09); }
.nav__progress { position: absolute; left: 26px; right: 26px; bottom: -1px; height: 1px; background: var(--ice); opacity: .7; transform: scaleX(0); transform-origin: left center; box-shadow: 0 0 10px rgba(194, 225, 252, .9); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; font-stretch: 118%; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand__visor { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 30px; height: 16px; border-radius: 8px; background: #121820; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.brand__visor i { width: 6px; height: 3px; border-radius: 2px; background: var(--ice); box-shadow: 0 0 6px rgba(194, 225, 252, .9); }
.brand--small { font-size: 16px; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; overflow: clip; }
.hero__media { position: absolute; inset: 0; z-index: -1; transform-origin: 70% 50%; }
.hero__video { position: absolute; top: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; opacity: 0; transition: opacity 1s; }
.hero__video.is-ready { opacity: 1; }
/* On windows wider than the film, fit the film to the height so the whole robot stays in view, and let its
   left edge melt into the page instead of cropping the robot's head and wheels. */
@media (min-aspect-ratio: 16 / 9) {
  .hero__video {
    width: auto; max-width: none; aspect-ratio: 16 / 9; object-fit: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%);
  }
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 7, .9) 0%, rgba(3, 5, 7, .55) 32%, rgba(3, 5, 7, 0) 60%),
    linear-gradient(0deg, var(--bg) 0%, rgba(3, 5, 7, 0) 12%),
    linear-gradient(180deg, rgba(3, 5, 7, .55) 0%, rgba(3, 5, 7, 0) 16%);
}
.hero__inner { padding-top: 76px; padding-bottom: 48px; }
.hero__copy { max-width: 680px; }
.tag { display: inline-flex; align-items: center; gap: 10px; height: 34px; margin: 0 0 clamp(20px, 3.4vh, 30px); padding: 0 16px 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 4px rgba(194, 225, 252, .12), 0 0 10px rgba(194, 225, 252, .9); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 38px); }
.hero__label { position: absolute; right: var(--pad); bottom: 28px; margin: 0; }

/* the copy arrives as the doors open */
.js .hero__copy > :not(h1), .js .hero .line { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.is-loaded .hero__copy > :not(h1), .is-loaded .hero .line { opacity: 1; transform: none; }
.is-loaded .hero .tag { transition-delay: .55s; }
.is-loaded .hero .line:nth-child(1) { transition-delay: .65s; }
.is-loaded .hero .line:nth-child(2) { transition-delay: .76s; }
.is-loaded .hero .lede { transition-delay: .9s; }
.is-loaded .hero .cta { transition-delay: 1s; }

/* small frosted labels on footage */
.hud {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 550; line-height: 1; color: rgba(236, 245, 254, .9);
}
.hero__label, .player__label { background: rgba(9, 12, 16, .45); border: 1px solid rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hud--quiet { color: var(--ink-3); font-weight: 500; }

/* ------------------------------------------------------------ how it works: the film in six chapters
   The whole clip is always shown (the frame has the clips' own 16:10 shape) and nothing sits on top of it except
   the small "CAD render" label. The caption and the chapters sit next to and under the film. */
.player {
  width: min(calc(100% - 2 * var(--pad)), 1040px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "cap" "chapters"; gap: 12px;
}
.how__head { grid-area: head; margin: 0 0 12px; }
.player__stage { grid-area: stage; position: relative; aspect-ratio: 16 / 10; }
.player__media { position: absolute; inset: 0; overflow: hidden; border-radius: 22px; background: #000; }
.player__stage::after { content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .12); }
.player__poster, .player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__video { opacity: 0; transition: opacity .45s; }
.player__video.is-on { opacity: 1; }
.player__label { position: absolute; top: 14px; right: 14px; z-index: 1; }

.caption { grid-area: cap; margin: 0; padding: 18px 22px 20px; border-radius: 22px; }
.caption__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.caption__n { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: var(--ice); }
.caption__t { margin: 10px 0 0; font-size: clamp(19px, 2.6vh, 22px); font-weight: 450; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.2; }
.caption__d { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.caption :is(.caption__n, .caption__t, .caption__d) { transition: opacity .25s, transform .35s var(--ease); }
.caption.is-swapping :is(.caption__n, .caption__t, .caption__d) { opacity: 0; transform: translateY(6px); }
/* the car's floor display */
.lantern { flex: none; min-width: 44px; padding: 7px 10px 5px; border-radius: 9px; text-align: center; background: rgba(0, 0, 0, .62); border: 1px solid rgba(255, 255, 255, .1); }
.lantern .dot-num { font-size: 19px; }

.chapters { grid-area: chapters; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 22px; }
.chapter {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 7px; row-gap: 10px;
  padding: 11px 12px 12px; border-radius: 16px; cursor: pointer; transition: background-color .25s;
}
.chapter:hover { background: rgba(255, 255, 255, .05); }
.chapter:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.chapter[aria-selected="true"] { background: rgba(255, 255, 255, .09); }
.chapter__n { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.chapter__t { font-size: 14px; font-weight: 550; line-height: 1.25; color: var(--ink-2); }
.chapter[aria-selected="true"] .chapter__n { color: var(--ice); }
.chapter[aria-selected="true"] .chapter__t { color: var(--ink); }
.chapter__bar { grid-column: 1 / -1; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.chapter__bar i { display: block; height: 100%; background: var(--ice); transform: scaleX(0); transform-origin: left center; box-shadow: 0 0 8px rgba(194, 225, 252, .9); }
.chapter.is-done .chapter__bar i { transform: scaleX(1); opacity: .4; box-shadow: none; }

/* wide screens: heading and caption on the left, the film and its chapters on the right */
@media (min-width: 900px) {
  .player {
    --side: clamp(260px, 25vw, 400px); --gap: clamp(28px, 3vw, 56px);
    --film: min(1040px, calc(100% - var(--side) - var(--gap)));
    width: calc(100% - 2 * var(--pad)); max-width: none;
    grid-template-columns: var(--side) var(--film); grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "head stage" "cap stage" "cap chapters"; column-gap: var(--gap); row-gap: 12px; justify-content: center;
  }
  .how__head { margin: 0; align-self: start; }
  .how__head .display--2 { font-size: clamp(28px, min(2.5vw, 4.8vh), 42px); }
  .caption { align-self: end; }
}

/* ------------------------------------------------------------ the robot: the 3D model in the page's own dark */
.robot__layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "spec"; row-gap: 14px; }
.robot__head { grid-area: head; margin: 0; }
.robot__stage { grid-area: stage; position: relative; height: min(112vw, 600px); margin: 0 calc(-1 * var(--pad)); }
.robot__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: clamp(16px, 2.8vh, 28px); }
.robot__more .fine { flex: 1 1 200px; max-width: 36ch; }
.spec { grid-area: spec; margin: 0; padding: 6px 22px; border-radius: 24px; }
.spec div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.spec dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

@media (min-width: 900px) {
  .robot__layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "head stage" "spec spec"; column-gap: clamp(24px, 3vw, 48px); }
  .robot__head { align-self: center; }
  .robot__stage { height: auto; min-height: 520px; margin: 0 calc(-1 * var(--pad)) 0 0; }
  .spec { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; }
  .spec div { display: block; padding: clamp(14px, 2.2vh, 18px) 20px; }
  .spec div + div { border-top: 0; border-left: 1px solid var(--line); }
  .spec dt { margin-bottom: 6px; }
}

/* the model floats in the page's own dark: only the outer edges of the box soften (the robot fills the middle
   12–88% of the height, so the fades never touch it) */
.viewer { position: absolute; inset: 0; touch-action: pan-y; }
.viewer__canvas, .viewer__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.viewer__canvas { opacity: 0; cursor: grab; transition: opacity 1s; }
.viewer__canvas:active { cursor: grabbing; }
.viewer.is-live .viewer__canvas { opacity: 1; }
.viewer__poster { object-fit: contain; transition: opacity 1s; }
.viewer.is-live .viewer__poster { opacity: 0; pointer-events: none; }
.viewer__hotspots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hotspot {
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; border-radius: 50%;
  pointer-events: auto; cursor: pointer; background: rgba(194, 225, 252, .14); box-shadow: inset 0 0 0 1.5px rgba(194, 225, 252, .9), 0 0 16px rgba(194, 225, 252, .35);
  transition: opacity .3s, background-color .2s;
}
.hotspot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.hotspot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(194, 225, 252, .5); animation: ping 2.8s ease-out infinite; }
.hotspot.is-hidden { opacity: 0; pointer-events: none; }
.hotspot[aria-expanded="true"] { background: var(--ice); }
@keyframes ping { 0% { transform: scale(.7); opacity: .9; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
.viewer__card { position: absolute; right: 8%; bottom: 76px; z-index: 3; width: min(340px, 84%); padding: 15px 18px; border-radius: 18px; }
.viewer__card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.viewer__card .viewer__card-title { margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.viewer__controls { position: absolute; left: 52%; bottom: 12px; z-index: 3; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 999px; white-space: nowrap; }
.viewer__hint { position: absolute; top: 10px; right: 9%; z-index: 3; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.pill { height: 36px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 550 13px/1 var(--f); cursor: pointer; transition: background-color .2s, color .2s; }
.pill:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ice); color: #05080B; }

/* ------------------------------------------------------------ for buildings */
.buildings { position: relative; isolation: isolate; overflow: clip; }
.buildings__backdrop {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1600px, 130vw); aspect-ratio: 16 / 10;
  transform: translate(-50%, -44%); opacity: .6; pointer-events: none;
  -webkit-mask-image: radial-gradient(46% 50% at 50% 46%, #000 30%, transparent 80%); mask-image: radial-gradient(46% 50% at 50% 46%, #000 30%, transparent 80%);
}
.buildings__video { width: 100%; height: 100%; object-fit: cover; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 26px; }
.stat { padding: clamp(14px, 2.3vh, 26px) 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { margin: 0; font-size: clamp(32px, min(3vw, 5.2vh), 46px); font-weight: 300; font-stretch: 125%; letter-spacing: -.03em; line-height: 1; }
.stat__txt { margin: clamp(6px, 1.1vh, 12px) 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.source { display: inline-block; margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
a.source, .source a { color: var(--ink-3); text-decoration: underline; text-decoration-color: rgba(194, 225, 252, .3); text-underline-offset: 3px; }
a.source:hover, .source a:hover { color: var(--ink); }

.deal { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 12px; margin-top: 12px; }
.price-card { padding: clamp(16px, 2.7vh, 30px) 32px; border-radius: 26px; }
.price { margin: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; }
.price__amt { font-size: clamp(42px, min(4.6vw, 7.4vh), 70px); font-weight: 300; font-stretch: 125%; letter-spacing: -.045em; line-height: .95; }
.price__per { padding-bottom: 5px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.price__note { margin: clamp(10px, 1.8vh, 18px) 0 0; max-width: 48ch; font-size: 15.5px; color: var(--ink-2); }
.checks { list-style: none; margin: clamp(10px, 1.8vh, 20px) 0 0; padding: clamp(10px, 1.8vh, 20px) 0 0; display: grid; gap: clamp(4px, .9vh, 10px); border-top: 1px solid var(--line); }
.checks li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 3px; top: .36em; width: 11px; height: 6px; border-left: 1.75px solid var(--ice); border-bottom: 1.75px solid var(--ice); transform: rotate(-45deg); }

.compare { margin: 0; padding: clamp(16px, 2.7vh, 30px) 32px; border-radius: 26px; display: flex; flex-direction: column; justify-content: center; }
.compare figcaption { margin-bottom: 6px; font-size: 15.5px; font-weight: 600; }
.compare__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track"; gap: 10px 16px; padding: clamp(10px, 1.7vh, 14px) 0; border-radius: 10px; outline-offset: 4px; }
.compare__name { grid-area: name; font-size: 14.5px; color: var(--ink-2); }
.compare__val { grid-area: val; font-size: 15.5px; font-weight: 600; }
.compare__track { grid-area: track; height: 12px; border-left: 1px solid rgba(255, 255, 255, .3); }
.compare__bar { display: block; height: 100%; width: calc(var(--v) / 179 * 100%); min-width: 6px; border-radius: 0 4px 4px 0; background: var(--ice); box-shadow: 0 0 18px rgba(194, 225, 252, .55); }
.compare__bar--muted { background: rgba(255, 255, 255, .2); box-shadow: none; }
.tip {
  position: absolute; left: 0; bottom: calc(100% - 6px); z-index: 5; max-width: 320px; padding: 10px 13px; border-radius: 12px;
  background: rgba(14, 18, 24, .96); border: 1px solid rgba(255, 255, 255, .1); color: var(--ink); font-size: 13px; line-height: 1.4;
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.compare__row:hover .tip, .compare__row:focus-visible .tip { opacity: 1; transform: none; }
.compare .source { margin-top: 10px; }

/* ------------------------------------------------------------ where it's going: what it carries, and where we are */
.road__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.road__item { padding: clamp(18px, 2.8vh, 24px) 26px; border-radius: 24px; }
.road__when { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.road__when i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ice); }
.road__item--now .road__when i { background: var(--ice); box-shadow: 0 0 10px rgba(194, 225, 252, .9); }
.road__item--later .road__when i { border-style: dashed; opacity: .7; }
.road__item h3 { margin: clamp(10px, 1.8vh, 16px) 0 0; font-size: 21px; font-weight: 420; font-stretch: 115%; letter-spacing: -.015em; line-height: 1.2; }
.road__item p:not(.road__when) { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.road__item a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(194, 225, 252, .4); }

.where { margin-top: 14px; padding: clamp(18px, 2.8vh, 24px) 26px; border-radius: 24px; }
.where .eyebrow { margin-bottom: 14px; }
/* a progress line runs along the top of the four steps: lit where done, half lit for now */
.where__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.where__list li { padding-top: 12px; border-top: 2px solid rgba(255, 255, 255, .1); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.where__list .is-done { border-top-color: rgba(194, 225, 252, .7); }
.where__list .is-now { border-image: linear-gradient(90deg, rgba(194, 225, 252, .7) 50%, rgba(255, 255, 255, .1) 50%) 1; }
.where__state { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 650; color: var(--ink-3); }
.where__list .is-done .where__state { color: var(--ice); }
.where__list .is-now .where__state { color: var(--ink); }
.where__who { margin: clamp(14px, 2.2vh, 20px) 0 0; padding-top: clamp(12px, 2vh, 16px); border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.where__who b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ reserve */
.reserve { position: relative; isolation: isolate; }
.reserve::before {
  content: ""; position: absolute; z-index: -1; right: 2%; top: 4%; width: min(820px, 80vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(194, 225, 252, .14), rgba(194, 225, 252, .045) 50%, transparent);
}
.reserve__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.perks { list-style: none; margin: clamp(16px, 3vh, 26px) 0 0; padding: 0; display: grid; gap: 9px; }
.perks li { position: relative; padding-left: 20px; font-size: 15.5px; color: var(--ink-2); }
.perks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px rgba(194, 225, 252, .8); }
.perks b { font-weight: 600; color: var(--ink); }

.form-card { padding: clamp(18px, 2.8vh, 24px); border-radius: 30px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: clamp(12px, 2.2vh, 20px); border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.seg button { height: 40px; border: 0; border-radius: 999px; background: transparent; font: 550 14.5px/1 var(--f); color: var(--ink-3); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: rgba(255, 255, 255, .12); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 16px -8px rgba(0, 0, 0, .8); }
.form { display: grid; gap: clamp(10px, 1.7vh, 15px); }
.form label { display: grid; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 550; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; min-width: 0; padding: clamp(9px, 1.4vh, 12px) 14px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  background: rgba(255, 255, 255, .045); font: 400 15.5px/1.35 var(--f); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form textarea { resize: vertical; min-height: 48px; }
.form input::placeholder, .form textarea::placeholder { color: rgba(232, 240, 248, .42); }
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B9C6D3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form select option { background: #10151B; color: var(--ink); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(255, 255, 255, .2); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: rgba(194, 225, 252, .7); background-color: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(194, 225, 252, .14); }
.form [aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255, 156, 156, .14); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.checks-inline { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.checks-inline legend { float: left; width: 100%; margin-bottom: 8px; padding: 0; font-size: 13.5px; font-weight: 550; }
.checks-inline label {
  position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.checks-inline label:hover { border-color: rgba(255, 255, 255, .24); }
.checks-inline input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.checks-inline label:has(input:checked) { background: rgba(194, 225, 252, .14); border-color: rgba(194, 225, 252, .6); color: var(--ink); box-shadow: 0 0 16px -4px rgba(194, 225, 252, .45); }
.checks-inline label:has(input:focus-visible) { outline: 2px solid var(--ice); outline-offset: 2px; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.form .check input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ice); }
.form .btn--block { height: 50px; }
.form__hint, .form__deposit { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.form__status { margin: 0; min-height: 1px; font-size: 14px; line-height: 1.5; }
.form__status:empty { margin-top: calc(-1 * clamp(10px, 1.7vh, 15px)); }
.form__status.is-ok { color: var(--ink); padding: 12px 14px; border-radius: 12px; background: rgba(194, 225, 252, .1); border: 1px solid rgba(194, 225, 252, .25); }
.form__status.is-err { color: var(--err); }

/* ------------------------------------------------------------ questions */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.qa { padding: 4px 26px; border-radius: 26px; }
.qa details + details { border-top: 1px solid var(--line); }
.qa summary { position: relative; padding: clamp(14px, 2.3vh, 19px) 36px clamp(14px, 2.3vh, 19px) 0; list-style: none; cursor: pointer; font-size: 16.5px; font-weight: 550; line-height: 1.4; transition: color .2s; }
.qa summary:hover { color: #fff; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 1.5px; border-radius: 1px; background: var(--ice); transition: transform .3s var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa details[open] summary::after { transform: rotate(0deg); }
.qa summary:focus-visible { outline-offset: 2px; border-radius: 8px; }
.qa details p { margin: -4px 0 18px; max-width: 62ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* ------------------------------------------------------------ footer */
.foot { padding: 0 0 40px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot__honest { flex: 1 1 360px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.foot__links { display: flex; gap: 20px; }

/* ------------------------------------------------------------ dialogs (both always fit the window) */
.modal { width: 100%; max-width: min(1100px, calc(100vw - 32px)); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.modal::backdrop { background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); }
.modal[open] .modal__panel { animation: modal-in .45s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.modal__panel { padding: 10px; border-radius: 28px; }
.film { max-width: min(1100px, calc(100vw - 32px), calc((100svh - 120px) * 16 / 9 + 20px)); }
.film__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 19px; background: #000; }
.modal__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 8px 4px 10px; }
.modal__bar p { flex: 1 1 280px; margin: 0; font-size: 13.5px; color: var(--ink-2); }
.drawings .modal__panel { max-height: calc(100svh - 32px); overflow: auto; padding: 22px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal__head h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 340; font-stretch: 118%; letter-spacing: -.02em; line-height: 1.15; }
.drawings__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drawings__grid figure { margin: 0; overflow: hidden; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.drawings__grid img { width: 100%; height: clamp(140px, calc((100svh - 392px) / 2), 236px); object-fit: contain; background: #E3E5E8; }
.drawings__grid figcaption { padding: 11px 14px 13px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.drawings__grid b { font-weight: 600; color: var(--ink); }
.drawings .fine { margin-top: 12px; }

/* ------------------------------------------------------------ motion */
/* content rises in once when it first comes into view (main.js adds .is-in) */
.js .rise { opacity: 0; transform: translateY(26px); }
.js .rise.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero__media { animation: hero-media linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__inner { animation: hero-copy linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .nav__progress { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@keyframes hero-media { to { transform: scale(1.1); opacity: .2; } }
@keyframes hero-copy { to { transform: translateY(-14vh); } }
@keyframes progress { to { transform: scaleX(1); } }

/* ------------------------------------------------------------ in-between widths (tablets sideways): a little tighter so sections still fit */
@media (min-width: 900px) and (max-width: 1099px) {
  /* the film column is too narrow for six chapter names, so the chapter bar runs under both columns */
  .player { grid-template-areas: "head stage" "cap stage" "chapters chapters"; }
  .stat { padding-inline: 20px; }
  .stat__txt, .checks li, .road__item p:not(.road__when) { font-size: 14.5px; }
  .price-card, .compare, .road__item, .where { padding-inline: 22px; }
  .where__list { gap: 12px 18px; }
}

/* ------------------------------------------------------------ smaller screens: ordinary scrolling */
@media (max-width: 1099px) {
  .drawings__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; padding-bottom: 8px; }
  .hero__media { position: relative; inset: auto; z-index: 0; height: clamp(300px, 54svh, 560px); }
  .hero__video { object-position: 80% 50%; }
  .hero__media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(3, 5, 7, 0) 40%), linear-gradient(180deg, rgba(3, 5, 7, .6) 0%, rgba(3, 5, 7, 0) 24%); }
  .hero__inner { position: relative; margin-top: -96px; padding-top: 0; padding-bottom: 24px; }
  .hero__label { top: 86px; bottom: auto; right: 16px; }
  .head--split, .reserve__grid, .faq__grid, .deal { grid-template-columns: minmax(0, 1fr); }
  .road__list { grid-template-columns: minmax(0, 1fr); }
  .where__list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .buildings__backdrop { top: 340px; width: 190vw; transform: translateX(-50%); opacity: .5; }
}
@media (max-width: 819px) {
  .nav__links { display: none; }
}
@media (max-width: 760px) {
  .player__media, .player__stage::after { border-radius: 18px; }
  .player__label { top: 10px; right: 10px; }
  .hud { height: 26px; padding: 0 10px; font-size: 11.5px; }
  .caption { padding: 16px 18px 18px; }
  .chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chapter { padding: 10px 12px 11px; }
}
@media (max-width: 699px) {
  body { font-size: 16px; }
  .nav { top: 10px; }
  .nav__bar { height: 54px; padding-left: 16px; }
  .tag { margin-bottom: 20px; }
  .cta { margin-top: 26px; }
  .cta .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 22px 22px; }
  .price-card, .compare { padding: 24px 22px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 16px; border-radius: 26px; }
  .qa { padding: 2px 18px; }
  .spec { padding: 4px 18px; }
  .spec div { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
  .viewer__controls { bottom: 12px; }
  .pill { height: 32px; padding: 0 11px; font-size: 12.5px; }
  .viewer__card { right: 16px; left: 16px; width: auto; bottom: 62px; }
  .drawings .modal__panel { padding: 16px; }
  .drawings__grid { grid-template-columns: minmax(0, 1fr); }
  .drawings__grid img { height: auto; aspect-ratio: 16 / 11; }
}
@media (max-width: 380px) {
  .pill { padding: 0 8px; font-size: 12px; }
  .viewer__controls { gap: 2px; }
}

/* ------------------------------------------------------------ laptops and desktops: one screen per section */
@media (min-width: 900px) and (min-height: 680px) {
  .section { min-height: 100svh; padding: var(--top) 0 var(--bottom); display: flex; flex-direction: column; justify-content: center; }
  .player { --film: min(1040px, calc(100% - var(--side) - var(--gap)), calc((100svh - var(--top) - var(--bottom) - 84px) * 1.6)); }
  .robot__layout { height: min(calc(100svh - var(--top) - var(--bottom)), 980px); }
  .robot__stage { min-height: 0; }
  .reserve__grid { align-items: center; }
  .faq { min-height: calc(100svh - var(--foot-h)); }
  .foot { height: var(--foot-h); padding: 0; display: flex; align-items: center; }
  .foot .wrap { flex: 1; }

  /* the page settles on a whole section after every scroll (main.js turns this off if one doesn't fit) */
  html.snap { scroll-snap-type: y mandatory; }
  html.snap :is(.hero, main > section) { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .doors { display: none; }
  .js .hero__copy > :not(h1), .js .hero .line, .js .rise { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .js .rise { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .doors { display: none !important; }
  .chapter[aria-selected="true"] { outline: 2px solid CanvasText; }
}
