:root {
  --void: #000000;
  --ink: #F5F5F7;
  --ash: #8A8A93;
  --graphite: #161618;
  --line: #2A2A2E;
  --violet: #7C5CFF;
  --cyan: #22D3EE;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --font: "Onest", system-ui, sans-serif;
  --wordmark: "Montserrat", "Onest", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: rgba(255, 255, 255, .06);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--wordmark); font-weight: 800; font-size: 14px; letter-spacing: .22em; opacity: 0; transition: opacity .5s; }
.nav.is-solid .nav__brand { opacity: 1; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); font-size: 14px; color: var(--ash); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--ink); }

/* Hero */
.hero { height: 340vh; position: relative; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
}
.mark {
  --s: min(44vmin, 380px);
  width: var(--s); height: var(--s);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateY(var(--mark-y, 0px)) scale(var(--mark-scale, 1));
  overflow: visible;
}
.mark__stem { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(var(--stem, 0)); }
.mark__arm { stroke-dasharray: 1; stroke-dashoffset: var(--arm, 1); }
.mark__dot {
  transform-box: fill-box; transform-origin: center;
  transform: translateX(var(--dot-x, -243%)) scale(var(--dot-scale, 1.4));
}
.hero.is-idle .mark__dot { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.wordmark {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + var(--word-y, 40px)));
  display: flex; font-family: var(--wordmark); font-weight: 800;
  font-size: clamp(44px, 10vw, 156px);
  letter-spacing: var(--word-track, .9em);
  margin-right: calc(var(--word-track, .9em) * -1);
  line-height: 1; white-space: nowrap;
  opacity: var(--word-o, 0);
}
.hero__tagline {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(clamp(44px, 10vw, 156px) * .62 + var(--tag-y, 24px)));
  font-size: clamp(18px, 2vw, 26px); font-weight: 300; color: var(--ash);
  opacity: var(--tag-o, 0); white-space: nowrap;
}
.hero__hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--ash); opacity: var(--hint-o, 1);
}

/* Manifesto */
.manifesto { height: 260vh; position: relative; }
.manifesto__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0 var(--gutter); }
.manifesto__text {
  max-width: 22ch; font-size: clamp(34px, 5.6vw, 84px); font-weight: 500;
  line-height: 1.08; letter-spacing: -.03em;
}
.manifesto__text .w { opacity: .14; transition: opacity .25s linear; }
.manifesto__text .w.on { opacity: 1; }

/* Product */
.product { height: 360vh; position: relative; }
.product__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center; gap: 4vw; padding: 80px var(--gutter) 40px;
  overflow: hidden;
}
.product__kicker { font-size: 15px; color: var(--ash); margin-bottom: 14px; }
.product__title { font-size: clamp(44px, 6vw, 96px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.product__lede { margin-top: 20px; max-width: 30ch; font-size: clamp(18px, 1.6vw, 22px); color: var(--ash); font-weight: 300; }
.features { list-style: none; margin-top: clamp(28px, 5vh, 56px); display: grid; gap: 6px; max-width: 44ch; }
.features li { padding: 16px 0 16px 22px; border-left: 2px solid var(--line); transition: border-color .4s, opacity .4s; opacity: .38; }
.features li.is-active { opacity: 1; border-left-color: var(--cyan); }
.features h3 { font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.features p { margin-top: 4px; color: var(--ash); font-size: 15px; font-weight: 300; }

.phones { position: relative; height: min(78vh, 760px); perspective: 1600px; }
.phone {
  position: absolute; left: 50%; top: 50%;
  height: 100%; aspect-ratio: 819 / 1730;
  border-radius: 13% / 6.2%;
  background-image: var(--img);
  background-size: 449.33% auto;
  background-position: 31.84% 34.19%;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

/* Timeline */
.next { padding: 22vh var(--gutter) 18vh; }
.next__title { font-size: clamp(40px, 6vw, 96px); font-weight: 600; letter-spacing: -.04em; line-height: 1; max-width: 14ch; }
.track { margin-top: 12vh; position: relative; }
.track__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.track__fill { height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--grad); }
.track__stops { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4vw; }
.stop__dot { display: block; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--ash); background: var(--void); position: relative; transition: background .4s, border-color .4s, box-shadow .4s; }
.stop.is-lit .stop__dot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 6px rgba(34, 211, 238, .12); }
.stop__when { margin-top: 28px; font-size: 14px; color: var(--ash); }
.stop h3 { margin-top: 6px; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.02em; }
.stop p:last-child { margin-top: 8px; color: var(--ash); font-weight: 300; max-width: 30ch; }

/* Contact */
.contact { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); }
.contact__title { font-size: clamp(64px, 14vw, 220px); font-weight: 600; letter-spacing: -.05em; line-height: .95; display: flex; align-items: baseline; }
.caret { display: inline-block; width: .16em; height: .16em; margin-left: .06em; border-radius: 50%; background: var(--cyan); animation: blink 1.1s steps(1) infinite; }
.contact__lede { margin-top: 28px; max-width: 40ch; color: var(--ash); font-size: clamp(17px, 1.5vw, 20px); font-weight: 300; }
.button {
  margin-top: 40px; display: inline-flex; align-items: center; padding: 16px 30px; border-radius: 999px;
  background: var(--ink); color: var(--void); font-weight: 500; font-size: 16px;
  transition: transform .2s, background .2s;
}
.button:hover { background: #fff; transform: scale(1.03); }
.button:active { transform: scale(.98); }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .06); color: var(--ash); font-size: 13px; }

/* Cursor dot */
.cursor { position: fixed; left: 0; top: 0; z-index: 50; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--cyan); pointer-events: none; opacity: 0; transition: width .25s, height .25s, margin .25s, opacity .3s, background .25s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(34, 211, 238, .18); }
@media (pointer: fine) { body.has-cursor, body.has-cursor a { cursor: none; } }

/* Mobile */
@media (max-width: 860px) {
  .nav__links a:not(:last-child) { display: none; }
  .product { height: auto; }
  .product__sticky { position: relative; height: auto; grid-template-columns: minmax(0, 1fr); padding: 16vh var(--gutter) 10vh; overflow: visible; }
  .features li { opacity: 1; border-left-color: var(--line); }
  .phones { height: auto; perspective: none; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { position: relative; left: auto; top: auto; height: 62vh; flex: none; scroll-snap-align: center; transform: none !important; opacity: 1 !important; }
  .track__line { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .track__fill { width: 100%; height: calc(var(--fill, 0) * 100%); }
  .track__stops { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .stop { display: grid; grid-template-columns: 15px minmax(0, 1fr); column-gap: 22px; }
  .stop__dot { grid-row: 1 / span 3; }
  .stop__when { margin-top: -3px; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .manifesto, .product { height: auto; }
  .hero__stage, .manifesto__sticky { position: relative; }
  .product__sticky { position: relative; height: auto; min-height: 100vh; }
  .manifesto__text .w { opacity: 1; }
  .caret, .hero.is-idle .mark__dot { animation: none; }
}
