:root {
  --rating: #ff9f0a;
  --bg: #000;
  --text: #f5f5f7;
  --text-muted: #86868b;
  --text-soft: #a1a1a6;
  --surface-light: #fcfcfc;
  --ink: #111;
  --primary: #0071e3;
  --primary-soft: #2997ff;
  --text-dim: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.07);
  --glass-edge: rgba(255, 255, 255, 0.2);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* For wide fonts: phones narrow the hero title by this much so
     it keeps its two lines. */
  --title-fit: 1;

  /* Design px: the layout is drawn for a 1470x936 screen and grows with
     larger ones (1.15 at 1920x1080); shorter laptops shrink it a little so
     every scene still fits one screen. */
  --u: clamp(0.8px, min(100vw / 1470, 100vh / 936), 1.4px);
  --gutter-start: calc(173 * var(--u));
  --gutter-end: calc(161 * var(--u));
  /* The hero column sits 3px right of the viewport centre. */
  --hero-shift: 3px;
  /* One size for every pill button, in the nav and in the hero. */
  --btn-h: 44px;
  --btn-font: 14.5px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Nav ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Fixed at the top. Scrolling down dissolves it into particles and
   scrolling back up gathers it again (js/nav-dust.js). */
.nav {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 10;
  transition: opacity 140ms ease;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter-end) 0 var(--gutter-start);
}

.nav--gone {
  opacity: 0;
  pointer-events: none;
}

/* The dust the navbar turns into; drawn over it while it comes and goes. */
.nav-dust {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  pointer-events: none;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* One dark pill holding the links and the app CTA. */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.92), rgba(16, 16, 18, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 14px 36px -14px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0 0 0 6px;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.66);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav__link:hover,
.nav__link[aria-expanded="true"] {
  color: var(--text);
}

.nav__link[aria-current] {
  color: var(--text);
}

.nav__lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: var(--btn-h);
  padding: 0 18px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: var(--btn-font);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.nav__lang-toggle:hover,
.nav__lang-toggle[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav__globe {
  opacity: 0.85;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  /* Nearly opaque: backdrop-filter does not work inside .nav__menu, which
     already has one, so the page would show through. */
  background: rgba(16, 16, 18, 0.97);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s 180ms;
}

[aria-expanded="true"] + .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.nav__option {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.nav__option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav__option[aria-checked="true"] {
  color: var(--primary-soft);
}

.nav__option-text {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.nav__login {
  padding: 0 22px;
}

.nav__burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav__burger span,
.nav__burger span::before,
.nav__burger span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav__burger span {
  position: relative;
}

.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__burger span::before {
  top: -5px;
}

.nav__burger span::after {
  top: 5px;
}

.nav--open .nav__burger span {
  background: transparent;
}

.nav--open .nav__burger span::before {
  transform: translateY(5px) rotate(45deg);
}

.nav--open .nav__burger span::after {
  transform: translateY(-5px) rotate(-45deg);
}

.nav a:focus-visible,
.nav button:focus-visible,
.btn:focus-visible,
.hero__scroll:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 26px;
  border-radius: 999px;
  font-size: var(--btn-font);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 160ms ease;
}

.btn:active {
  transform: scale(0.98);
}

/* Secondary: hairline outline on black. */
.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

/* Primary: lit white pill with a soft halo and a black arrow disc. */
.btn--glow {
  gap: 14px;
  padding: 0 5px 0 24px;
  border: 1px solid #fff;
  background: linear-gradient(180deg, #ffffff 0%, #ececec 55%, #d6d6d6 100%);
  color: #1b1b1b;
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 #fff;
}

.btn--glow:hover {
  box-shadow:
    0 0 26px 2px rgba(255, 255, 255, 0.42),
    inset 0 -3px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 #fff;
}

.btn__icon {
  display: grid;
  place-items: center;
  width: calc(var(--btn-h) - 10px);
  height: calc(var(--btn-h) - 10px);
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn__icon svg {
  transition: transform 200ms ease;
}

.btn--glow:hover .btn__icon svg {
  transform: translateX(2px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* At least one full screen, so the next scene starts below the fold. */
  min-height: max(890 * var(--u), 100vh);
  min-height: max(890 * var(--u), 100svh);
  /* The eyebrow takes the top of this space, so the title keeps its place. */
  padding: calc(250 * var(--u) - 31 * var(--u)) 0 0 calc(var(--hero-shift) * 2);
  text-align: center;
}

.hero__title {
  margin: 0;
  font-size: calc(41 * var(--u));
  font-weight: 700;
  line-height: calc(44 * var(--u));
  letter-spacing: -0.03em;
}

.hero__title span {
  display: block;
}

/* A light lead-in and a bold close, both white. */
.hero__title-muted {
  font-weight: 400;
}

.hero__lead {
  margin: calc(13 * var(--u)) 0 0;
  font-size: calc(16 * var(--u));
  line-height: calc(25 * var(--u));
  letter-spacing: -0.035em;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  margin-top: calc(22 * var(--u));
}

/* A quiet cue at the foot of the first screen, under the hands: grey,
   wide-tracked capitals, no box. It glides to the next scene (js/snap.js). */
.hero__scroll {
  position: absolute;
  bottom: calc(26 * var(--u));
  left: calc(50% + var(--hero-shift));
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: calc(32 * var(--u));
  padding: 0 calc(12 * var(--u)) 0 calc(12 * var(--u) + 0.32em);
  color: var(--text-muted);
  font-size: calc(11 * var(--u));
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: color 200ms ease;
}

.hero__scroll:hover,
.hero__scroll:focus-visible {
  color: var(--text-soft);
}

/* Particle hands: one fixed canvas draws them over the whole page (see
   js/particles.js). The hero and reach boxes only mark where each pose sits. */
.hands {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}

.hands.is-ready {
  opacity: 1;
}

main {
  position: relative;
  z-index: 1;
}

.hero__visual {
  position: absolute;
  top: calc(520 * var(--u));
  left: calc(50% - 539 * var(--u));
  width: calc(1100 * var(--u));
  aspect-ratio: 2200 / 768;
  pointer-events: none;
  user-select: none;
}

/* ---------- Reach scene ---------- */

/* The hero hands open and settle here, reaching in from opposite corners;
   the copy sits in the gap between them and appears once they arrive. */
.reach {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Exactly one screen tall, so the pose rests centred when the section
     fills the screen; the wider artwork is cropped. */
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* js/particles.js levels both hands at the box's vertical middle; --gap
   lifts the left hand and lowers the right one by that share of the box. */
.reach__visual {
  --gap: 0;
  /* Wider than the screen, so both wrists run off its edges (they end at
     the artwork's edges). The levelled hands are about a third of the width
     tall: short screens cap the width so they still fit. */
  --reach-w: min(106vw, 100vh * 2.55);
  position: relative;
  flex: none;
  width: var(--reach-w);
  margin: 0 calc((100% - var(--reach-w)) / 2);
  aspect-ratio: 2400 / 1500;
  pointer-events: none;
  user-select: none;
}

/* Nudged right of centre, into the space between the fingertips. It opens
   out of the hero spark, which js/particles.js carries to its centre. */
.reach__copy {
  position: absolute;
  inset: 0 0 0 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.2);
  transition: opacity 900ms ease, filter 1100ms ease, transform 1100ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Faint blue light behind the copy, as if the hands were lighting it. Wide,
   eased stops and a blur so it has no visible edge. */
.reach__copy::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(900 * var(--u), 120vw);
  height: calc(560 * var(--u));
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(0, 113, 227, 0.075),
    rgba(0, 113, 227, 0.05) 25%,
    rgba(0, 113, 227, 0.024) 50%,
    rgba(0, 113, 227, 0.007) 75%,
    transparent
  );
  filter: blur(32px);
  transform: translate(-50%, -50%);
}

.reach__visual.is-formed ~ .reach__copy {
  opacity: 1;
  filter: none;
  transform: none;
}

.hero__eyebrow,
.reach__eyebrow,
.hold__eyebrow {
  margin: 0 0 calc(14 * var(--u));
  color: var(--primary-soft);
  font-size: calc(12.5 * var(--u));
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reach__title,
.hold__title {
  margin: 0;
  font-size: calc(46 * var(--u));
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.reach__title span,
.hold__title span {
  display: block;
}

.reach__title-muted,
.hold__title-muted {
  font-weight: 400;
}

.reach__text,
.hold__text {
  max-width: calc(340 * var(--u));
  margin: calc(16 * var(--u)) 0 0;
  color: var(--text-soft);
  font-size: calc(15.5 * var(--u));
  line-height: 1.5;
  letter-spacing: -0.02em;
}

/* Two lines at most. */
.reach__text {
  max-width: calc(470 * var(--u));
}

/* ---------- Hold scene ---------- */

/* The left hand opens into a palm and the right one becomes the sphere
   floating above it (js/particles.js), centred on the screen. The title
   sits in the upper left corner and the description in the lower right;
   both appear once the hand and sphere have formed. The section is taller
   than the screen: its stage pins while the description steps through
   Learn, Reason and Act (js/steps.js). */
.hold {
  /* Artwork width: as large as the screen height allows, and narrow enough
     to leave the corners free for the copy. */
  --hold-w: min(620 * var(--u), (100vh - 120 * var(--u)) * 620 / 800, (100vw - 600 * var(--u)) * 1.2);
  --steps: 3;
  position: relative;
  /* One screen for the stage, plus most of a screen of scroll per step. */
  height: calc(100vh + (var(--steps) - 1) * 100vh);
  height: calc(100svh + (var(--steps) - 1) * 100svh);
}

/* One grid cell shared by the artwork and both copy blocks, so each can
   pin itself to its own corner of the screen. */
.hold__stage {
  position: sticky;
  top: 0;
  display: grid;
  height: 100vh;
  height: 100svh;
  padding: calc(72 * var(--u)) var(--gutter-end) calc(64 * var(--u)) var(--gutter-start);
}

.hold__stage > * {
  grid-area: 1 / 1;
}

/* The wrist ends at the artwork's bottom edge: anchor it below the screen's
   bottom edge so the arm runs off it. */
.hold__visual {
  align-self: end;
  justify-self: center;
  margin-bottom: calc(-88 * var(--u));
  width: var(--hold-w);
  aspect-ratio: 620 / 800;
  pointer-events: none;
  user-select: none;
}

.hold__reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px) scale(0.98);
  transition: opacity 1100ms ease, filter 1100ms ease, transform 1100ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hold__visual.is-formed ~ .hold__reveal {
  opacity: 1;
  filter: none;
  transform: none;
}

/* The description follows the title by a beat. */
.hold__visual.is-formed ~ .hold__detail {
  transition-delay: 220ms;
}

.hold__intro {
  align-self: start;
  justify-self: start;
}

/* The title's lines stay whole; the screen corner has room for them. */
.hold__title span {
  white-space: nowrap;
}

/* A thin rule down the left side, with a short glowing blue segment on top. */
.hold__detail {
  position: relative;
  align-self: end;
  justify-self: end;
  padding: 2px 0 2px calc(26 * var(--u));
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* The segment slides down the rule as the steps advance. */
.hold__detail::before {
  content: "";
  position: absolute;
  top: calc(var(--step, 0) * (100% - 34 * var(--u)));
  left: -1px;
  width: 1px;
  height: calc(34 * var(--u));
  background: var(--primary-soft);
  box-shadow: 0 0 8px rgba(0, 113, 227, 0.8);
  transition: top 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hold__detail .hold__eyebrow {
  margin-bottom: 0;
}

/* The current step's word lights up; the others wait dimmed. */
.hold__step,
.hold__dot {
  opacity: 0.36;
  transition: opacity 500ms ease, text-shadow 500ms ease;
}

.hold__step.is-active {
  opacity: 1;
  text-shadow: 0 0 12px rgba(0, 113, 227, 0.55);
}

/* All descriptions share one cell, so the block keeps the height of the
   longest and only the current one shows. */
.hold__texts {
  display: grid;
  margin-top: calc(12 * var(--u));
}

.hold__texts .hold__text {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(8px);
  transition: opacity 600ms ease, filter 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hold__texts .hold__text.is-active {
  opacity: 1;
  filter: none;
  transform: none;
  transition-delay: 120ms;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  :root {
    --gutter-start: 32px;
    --gutter-end: 32px;
    --hero-shift: 0px;
  }

  .hero__visual {
    left: 50%;
    width: min(1100px, 120vw);
    transform: translateX(-49%);
  }
}

/* Below 900px the menu moves into a panel opened by the burger button. */
@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav__burger {
    display: grid;
  }

  .nav__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: var(--gutter-start);
    right: var(--gutter-end);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(16, 16, 18, 0.97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s 200ms;
  }

  .nav--open .nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .nav__link {
    width: 100%;
    height: 44px;
    border-radius: 14px;
  }

  .nav__link:hover,
  .nav__link[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav__menu .nav__dropdown {
    position: static;
    display: none;
    width: auto;
    margin-top: 4px;
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }

  .nav__menu [aria-expanded="true"] + .nav__dropdown {
    display: grid;
    transform: none;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: center;
    padding: 72px 20px 0;
  }

  /* Shrinks on narrow phones so the bold close stays on one line. */
  .hero__title {
    font-size: calc(min(32px, 7.2vw) * var(--title-fit, 1));
    line-height: 1.125;
  }

  .hero__lead {
    font-size: 15px;
    line-height: 23px;
  }

  .hero__lead br {
    display: none;
  }

  .hero__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__scroll {
    bottom: 22px;
    left: 50%;
    height: 30px;
    padding: 0 10px 0 calc(10px + 0.3em);
    font-size: 10.5px;
    letter-spacing: 0.3em;
  }

  .hero__visual {
    position: relative;
    top: auto;
    left: auto;
    width: 150vw;
    max-width: none;
    margin: 40px 0 24px;
    transform: none;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .reach__visual {
    --gap: 0.1;
    --reach-w: min(106vw, 100vh * 2400 / 1400);
  }
}

@media (max-width: 760px) {
  /* Wider than the screen so the hands stay large; the sides are cropped.
     The hands stack above and below the text. */
  .reach__visual {
    --gap: 0.5;
    --reach-w: 120vw;
  }

  .reach__copy {
    inset: 0;
  }

  .hero__eyebrow,
  .reach__eyebrow,
  .hold__eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .reach__title,
  .hold__title {
    font-size: 28px;
  }

  .reach__text,
  .hold__text {
    max-width: 250px;
    margin-top: 10px;
    font-size: 13.5px;
  }

  .reach__text {
    max-width: 340px;
  }
}

@media (max-width: 1100px) {
  /* Stacked: the title above the hand and sphere, the description below. */
  .hold {
    --hold-w: min(76vw, 360px, (100svh - 420px) * 620 / 800);
  }

  .hold__stage {
    padding: 56px var(--gutter-end) 56px var(--gutter-start);
    grid-template-rows: auto 1fr auto;
    row-gap: 8px;
  }

  .hold__intro {
    grid-area: 1 / 1;
  }

  .hold__visual {
    grid-area: 2 / 1;
    align-self: center;
    min-width: 220px;
    margin-bottom: 0;
  }

  .hold__detail {
    grid-area: 3 / 1;
  }
}

@media (max-width: 760px) {
  .hold__detail {
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reach__copy,
  .hold__reveal,
  .hold__detail::before,
  .hold__step,
  .hold__dot,
  .hold__texts .hold__text {
    transition: none;
  }
}

@media (max-width: 420px) {
  .nav__end {
    gap: 8px;
  }

  .nav__login {
    padding: 0 16px;
  }

  .nav__lang-toggle {
    justify-content: center;
    width: var(--btn-h);
    padding: 0;
  }

  .nav__lang-label {
    display: none;
  }
}

/* Even line lengths, so no word is left alone on the last line. */
.hero__title,
.hero__lead,
.reach__title,
.reach__text,
.hold__text {
  text-wrap: balance;
}

/* ---------- Scene snapping ---------- */

/* With a mouse, wheel or keyboard, js/snap.js glides one scene at a time.
   Touch screens snap natively: the hero, the reach scene and each step of
   the hold scene. */
.hold__snap {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.hold__snap:nth-of-type(1) {
  top: 100vh;
  top: 100svh;
}

.hold__snap:nth-of-type(2) {
  top: 200vh;
  top: 200svh;
}

@media (hover: none) and (pointer: coarse) {
  html {
    scroll-snap-type: y proximity;
  }

  [data-snap],
  .hold__snap {
    scroll-snap-align: start;
  }
}

/* ---------- Apple-inspired look ---------- */

/* System font: SF Pro on Apple devices, a similar sans-serif elsewhere. */
.hero__title,
.reach__title,
.hold__title {
  font-weight: 600;
  letter-spacing: -0.022em;
}

.hero__title-muted,
.reach__title-muted,
.hold__title-muted {
  font-weight: 600;
  color: var(--text-muted);
}

.hero__lead,
.reach__text,
.hold__text {
  letter-spacing: -0.012em;
}

.hero__eyebrow,
.reach__eyebrow,
.hold__eyebrow {
  font-size: calc(15 * var(--u));
  letter-spacing: -0.01em;
  text-transform: none;
}

.hero__scroll {
  padding-right: calc(12 * var(--u));
  padding-left: calc(12 * var(--u));
  font-size: calc(13 * var(--u));
  letter-spacing: -0.01em;
  text-transform: none;
}

.nav__logo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__link {
  font-weight: 400;
}

.btn {
  font-weight: 400;
}

.btn--glow,
.btn--glow:hover {
  gap: 8px;
  padding: 0 20px 0 24px;
  border-color: transparent;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

.btn--glow:hover {
  background: #0077ed;
}

.btn--glow .btn__icon {
  width: auto;
  height: auto;
  background: none;
  box-shadow: none;
}

.btn--outline,
.btn--outline:hover {
  border-color: var(--primary-soft);
  background: none;
  color: var(--primary-soft);
}

.btn--outline:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

/* Larger headlines where there is room for them. */
@media (min-width: 901px) {
  .hero {
    padding-top: calc(165 * var(--u));
  }

  .hero__title {
    font-size: calc(68 * var(--u));
    line-height: 1.07;
  }

  .hero__lead {
    font-size: calc(20 * var(--u));
    line-height: 1.45;
  }

  .reach__title,
  .hold__title {
    font-size: calc(56 * var(--u));
    line-height: 1.07;
  }

  .reach__text,
  .hold__text {
    font-size: calc(17 * var(--u));
  }
}

.nav__logo img {
  display: block;
  width: 124px;
  height: auto;
}

/* ---------- Apps, contact and footer ---------- */

/* Opaque, so the fixed particle canvas stays behind it. */
.work {
  box-sizing: border-box;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: 88px 24px 24px;
  background: var(--bg);
}

.work__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.work__title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.work__footer a:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

.work__contact p {
  color: var(--text-soft);
  font-size: 17px;
}

.work__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.work__contact p {
  margin: 10px 0 0;
}

.work__contact .btn--glow {
  padding: 0 24px;
}

.work__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #98989d;
  font-size: 13px;
}

.work__footer a:hover {
  color: var(--text);
}


.work {
  overflow: hidden;
}

.work__contact {
  position: relative;
  flex: 1;
  justify-content: center;
}

/* ---------- Liquid Glass ---------- */

/* js/glass.js adds the bent rim where the browser supports it. */
.glass,
.nav__menu.glass,
.btn--outline.glass {
  border: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.1));
  box-shadow:
    inset 1px 1px 0 -0.25px rgba(255, 255, 255, 0.55),
    inset -1px -1px 0 -0.25px rgba(255, 255, 255, 0.28),
    inset 0 0 14px rgba(255, 255, 255, 0.06),
    0 12px 34px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.7);
  backdrop-filter: blur(14px) saturate(1.7);
}

.btn--outline.glass {
  color: #fff;
}

.btn--outline.glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Coloured Liquid Glass */
.btn--glow.glass {
  background: linear-gradient(160deg, rgba(70, 160, 255, 0.62), rgba(0, 100, 225, 0.6) 45%, rgba(0, 125, 255, 0.66));
  color: #fff;
  box-shadow:
    inset 1px 1px 0 -0.25px rgba(215, 236, 255, 0.8),
    inset -1px -1px 0 -0.25px rgba(170, 214, 255, 0.45),
    inset 0 0 16px rgba(120, 190, 255, 0.28),
    0 10px 30px rgba(0, 105, 230, 0.28);
}

.btn--glow.glass:hover {
  background: linear-gradient(160deg, rgba(95, 175, 255, 0.75), rgba(0, 112, 240, 0.72));
}

/* <html data-glass="off"> turns Liquid Glass off everywhere. */
[data-glass="off"] .glass,
[data-glass="off"] .btn--outline.glass {
  background: #2c2c2e;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

[data-glass="off"] .btn--glow.glass {
  background: var(--primary);
  box-shadow: none;
}

@media (prefers-reduced-transparency: reduce) {
  .btn--glow.glass {
    background: var(--primary);
  }

  .glass,
  .nav__menu.glass,
  .btn--outline.glass {
    background: #2c2c2e;
  }
}

/* ---------- App stage ---------- */

.apps {
  position: relative;
  background: var(--bg);
}

.apps.is-live {
  height: 250vh;
  height: 250svh;
}

.apps__snap {
  position: absolute;
  top: 75vh;
  top: 75svh;
  height: 1px;
  width: 1px;
}

.apps__snap + .apps__snap {
  top: 150vh;
  top: 150svh;
}

.apps__stage {
  position: relative;
  overflow: hidden;
}

.apps.is-live .apps__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
}

.apps__title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 76px 24px 0;
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-align: center;
}

.apps__title > span:not(.word) {
  color: var(--text-muted);
}

.app {
  --glow: #008ff4;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 88px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px;
}

.app--hour {
  --glow: #ff6a2b;
}

.app--ringoview {
  --glow: #6d7cff;
}

.apps.is-live .app {
  position: absolute;
  inset: 150px 0 150px;
}

.apps.is-live .app__copy {
  transform: translateY(calc(var(--d, 0) * 110px));
}

/* Light in the app's own colour. */
.app::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -4%;
  z-index: -1;
  width: 820px;
  height: 820px;
  max-width: 100vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: 0.38;
  transform: translateY(-50%);
  pointer-events: none;
}

.app__icon {
  display: block;
  width: 92px;
  height: 92px;
}

.app__name {
  margin: 20px 0 4px;
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.app__claim {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 600;
}

.app__text {
  max-width: 400px;
  margin: 12px 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.45;
}

.app__devices {
  margin: 0 0 22px;
  color: #98989d;
  font-size: 14px;
}

.app .btn--glow,
.sites .btn--glow {
  padding: 0 24px;
}

.app__shots {
  position: relative;
  height: min(100%, 580px);
}

.app__shot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, calc(-50% + var(--d, 0) * 80%));
}

.app--ringoview .app__shot {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}

.app__shot:nth-child(2) {
  z-index: 1;
}

.app__shot:nth-child(1) {
  transform: translate(calc(-50% - var(--open, 1) * 66%), calc(-50% + var(--d, 0) * 80%)) rotate(calc(var(--open, 1) * -9deg)) scale(0.84);
}

.app__shot:nth-child(3) {
  transform: translate(calc(-50% + var(--open, 1) * 66%), calc(-50% + var(--d, 0) * 80%)) rotate(calc(var(--open, 1) * 9deg)) scale(0.84);
}


.dock {
  display: none;
}

.apps.is-live .dock {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 12px;
  padding: 11px;
  border-radius: 30px;
  transform: translateX(-50%);
}

.dock__item {
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: none;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dock__item img {
  display: block;
  width: 56px;
  height: 56px;
}

.dock__item:hover {
  transform: translateY(-5px) scale(1.14);
}

.dock__item:focus-visible,
.site:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

/* ---------- Websites (js/websites.js) ---------- */

.sites {
  position: relative;
  background: #000;
}

.sites.is-live {
  height: 620vh;
  height: 620svh;
}

.sites.is-live.is-still {
  height: auto;
}

.sites__pin {
  position: relative;
  overflow: hidden;
}

.sites.is-live .sites__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  perspective: 1200px;
}

.sites__scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.is-still .sites__scene {
  display: none;
}

.sites__title {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  margin: 0;
  font-size: clamp(38px, 9vw, 170px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-align: center;
  white-space: nowrap;
  transform: translateY(-50%);
}

.sites__title span {
  display: block;
}

.sites__title span:first-child {
  color: var(--text-muted);
}

.strip {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #1d1d1f;
  visibility: hidden;
  will-change: transform;
}

/* Without JavaScript: a plain row to scroll. */
.sites__stage {
  display: flex;
  gap: 20px;
  overflow-x: auto;
}

.sites.is-live .sites__stage {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.site {
  flex: none;
  width: 320px;
}

.sites.is-live .site {
  position: absolute;
  top: 0;
  left: 0;
  perspective: 700px;
}

.sites.is-grid .site {
  pointer-events: auto;
}

.site img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #1d1d1f;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
}

.sites.is-grid .sites__stage:has(.site:hover) .site:not(:hover) img {
  filter: brightness(0.45);
}

.sites.is-grid .site:hover {
  z-index: 2;
}

.sites.is-grid .site:hover img {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.1);
}

.site:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 3px;
}

.sites__info {
  display: none;
}

.sites.is-live .sites__info {
  position: absolute;
  top: 96px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: start;
  gap: 40px;
  min-height: 100px;
}

.sites__info p {
  margin: 0;
}

.sites__name {
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sites__name span {
  display: inline-block;
}

.sites__count {
  color: #98989d;
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: 0.5em;
}

.sites__text {
  max-width: 340px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.4;
}

.sites__info .btn {
  padding: 0 26px;
}

@media (max-width: 760px) {
  .sites.is-live .sites__info {
    top: 84px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }

  .sites__text {
    min-height: 48px;
    font-size: 16px;
  }

  .site img {
    border-radius: 6px;
  }
}

@media (max-width: 760px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 36px;
    padding: 12px 24px;
    text-align: center;
  }

  .apps.is-live .app {
    inset: 124px 0 138px;
  }

  .apps__title {
    padding-top: 64px;
    font-size: min(26px, 5.4vw);
  }

  .app::before {
    right: 0;
    top: 70%;
  }

  .app__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  .app__name {
    margin-top: 8px;
  }

  .app__text {
    margin: 8px auto;
    font-size: 15px;
  }

  .app__devices {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .app__shots {
    height: 100%;
  }

  .app__shot {
    border-radius: 18px;
  }

  .dock__item img {
    width: 48px;
    height: 48px;
  }

}

@media (hover: none) and (pointer: coarse) {
  .apps__snap {
    scroll-snap-align: start;
  }

  .apps__snap {
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock__item {
    transition: none;
  }
}

/* ---------- Finishing touches (js/extras.js) ---------- */

[data-glass="off"] .btn--outline.glass:hover {
  background: #3a3a3c;
}

[data-glass="off"] .btn--glow.glass:hover {
  background: #0077ed;
}

.words .word {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(0.35em);
}

.words.is-in .word {
  opacity: 1;
  filter: none;
  transform: none;
  transition:
    opacity 700ms ease,
    filter 800ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--w) * 80ms);
}

.site-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
  scale: 0.4;
  transition: opacity 200ms ease, scale 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.site-cursor.is-on {
  opacity: 1;
  scale: 1;
}

.sites.is-grid .sites__stage.has-cursor .site {
  cursor: none;
}

.work {
  position: relative;
}

.work__inner {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .site-cursor {
    transition: none;
  }
}

/* ---------- Loading orb and signature ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  place-content: center;
  overflow: hidden;
  background: #000;
  transition: opacity 600ms ease;
}

.loader.is-done {
  opacity: 0;
  pointer-events: none;
}

/* Much larger than the orb, so its particles never reach the edge. */
.spike {
  width: 640px;
  height: 640px;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent);
  mask-image: radial-gradient(closest-side, #000 60%, transparent);
  border: 0;
  pointer-events: none;
}

.spike--site {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 150;
  translate: -50% -50%;
}

.signature {
  width: min(300px, 76vw);
  height: 110px;
  margin-top: 26px;
}

.signature[hidden] {
  display: none;
}

/* ---------- Plain controls, filling buttons ---------- */

.nav__menu,
.nav__burger {
  border: 0;
  background: #2c2c2e;
  box-shadow: none;
}

.btn--outline,
.btn--outline:hover {
  border-color: transparent;
  background: #2c2c2e;
  color: #fff;
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::before {
  content: "";
  position: absolute;
  inset: auto;
  top: var(--my, 50%);
  left: var(--mx, 50%);
  z-index: -1;
  width: 600px;
  height: 600px;
  margin: -300px 0 0 -300px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) {
  .btn:hover,
  .btn--glow:hover,
  .btn--outline:hover {
    color: #000;
  }

  .btn--glow:hover {
    background: var(--primary);
  }

  .btn:hover::before {
    transform: scale(1);
  }
}

.btn:active {
  scale: 0.96;
}

@media (prefers-reduced-motion: reduce) {
  .btn::before {
    transition: none;
  }
}

@media (max-width: 760px) {
  .app__devices {
    display: none;
  }

  .app__text {
    margin-bottom: 18px;
  }
}

/* ---------- Full-screen menu ---------- */

.nav__more {
  display: none;
}

@media (max-width: 900px) {
  html:has(.nav--open) {
    overflow: hidden;
  }

  .nav__logo,
  .nav__end {
    position: relative;
    z-index: 2;
  }

  .nav__burger {
    background: #fff;
    color: #000;
  }

  .nav__burger span,
  .nav--open .nav__burger span {
    width: 18px;
    background: transparent;
  }

  .nav__burger span::before,
  .nav__burger span::after {
    width: 18px;
    height: 2px;
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .nav__burger span::before {
    top: -3px;
  }

  .nav__burger span::after {
    top: 4px;
  }

  .nav--open .nav__burger span::before {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav--open .nav__burger span::after {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* Opens as a circle of light growing out of the button. */
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    justify-content: center;
    gap: 5vh;
    box-sizing: border-box;
    padding: 90px 28px 40px;
    border-radius: 0;
    background: radial-gradient(120% 70% at 100% 0, #0a5fd0, #06255a 45%, #000 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    transform: none;
    clip-path: circle(0 at calc(100% - var(--gutter-end) - 22px) 38px);
    transition: clip-path 650ms cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 650ms;
  }

  .nav--open .nav__menu {
    clip-path: circle(150vmax at calc(100% - var(--gutter-end) - 22px) 38px);
    transition-delay: 0s;
  }

  .nav__link,
  .nav__link:hover {
    justify-content: flex-start;
    height: auto;
    padding: 6px 0;
    border-radius: 0;
    background: none;
    color: #fff;
    font-size: min(13vw, 9vh, 76px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }

  .nav__list li {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(50px) rotate(3deg);
    transform-origin: 0 100%;
    transition: opacity 200ms ease, filter 200ms ease, transform 200ms ease;
  }

  .nav--open .nav__list li {
    opacity: 1;
    filter: none;
    transform: none;
    transition-duration: 600ms;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(180ms + var(--n, 0) * 70ms);
  }

  .nav__list li:nth-child(2) { --n: 1; }
  .nav__list li:nth-child(3) { --n: 2; }
  .nav__list li:nth-child(4) { --n: 3; }
  .nav__list li:nth-child(5) { --n: 4; }

  .nav__list:has(.nav__link:hover) .nav__link:not(:hover) {
    color: rgba(255, 255, 255, 0.4);
  }

  .nav__more {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .nav__menu,
  .nav__list li,
  .nav__burger span::before,
  .nav__burger span::after {
    transition: none !important;
  }
}

/* ---------- Sideways scroll in the hold scene ---------- */

.hold__stage {
  overflow: hidden;
}

.hold__stage > .hold__texts {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
}

.hold__panel {
  position: absolute;
  inset: 0;
  transform: translateX(calc(var(--d, 0) * 100%));
}

.hold__panel h3 {
  position: absolute;
  bottom: 9vh;
  left: var(--gutter-start);
  margin: 0;
  font-size: clamp(60px, 9.5vw, 168px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  transform: translateX(calc(var(--d, 0) * 30vw));
}

.hold__panel p {
  position: absolute;
  right: var(--gutter-end);
  bottom: 11vh;
  width: min(300px, 24vw);
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .hold__panel h3 {
    bottom: 150px;
  }

  .hold__panel p {
    right: var(--gutter-end);
    bottom: 48px;
    left: var(--gutter-start);
    width: auto;
    max-width: 420px;
    min-height: 88px;
    font-size: 16px;
  }
}

/* ---------- Numbers and reviews ---------- */

.voices {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 100px 0 60px;
  overflow: hidden;
  background: #000;
}

.voices__title {
  margin: 0;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: clamp(38px, 6.6vw, 112px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.voices__title strong,
.voices__title em {
  font: inherit;
  color: var(--text);
}

.voices__title em {
  color: var(--rating);
}

.voices__note {
  margin: 28px 24px 36px;
  color: var(--text-soft);
  font-size: 17px;
  text-align: center;
}

.voices__view {
  overflow: hidden;
  padding: 34px 0;
}

.voices__row {
  display: flex;
  width: max-content;
  animation: voices 48s linear infinite;
}

.voices__view:hover .voices__row {
  animation-play-state: paused;
}

@keyframes voices {
  to {
    transform: translateX(-50%);
  }
}

.voice {
  box-sizing: border-box;
  display: flex;
  flex: none;
  flex-direction: column;
  width: min(400px, 80vw);
  min-height: 250px;
  margin: 0 24px 0 0;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 0 rgba(255, 255, 255, 0.22),
    0 20px 50px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(5px) saturate(1.8);
  backdrop-filter: blur(5px) saturate(1.8);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.voice:hover {
  transform: scale(1.03);
}

.voice p,
.voice blockquote {
  margin: 0;
}

.voice__stars {
  color: var(--rating);
  letter-spacing: 0.12em;
}

.voice blockquote {
  margin: 12px 0 8px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.voice__text {
  color: var(--text-soft);
  font-size: 16px;
}

.voice figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
}

.voice__flag {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.voice small,
.voice b {
  display: block;
}

.voice small {
  color: #d2d2d7;
  font-size: 14px;
}

.voice b {
  font-size: 17px;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .voices__row {
    animation: none;
  }

  .voices__view {
    overflow-x: auto;
  }

  .voice:hover {
    transform: none;
  }
}

/* ---------- Shader backgrounds and app particles ---------- */

.shader,
.shader iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.shader iframe {
  opacity: 0;
  transition: opacity 900ms ease;
}

.shader iframe.is-on {
  opacity: 1;
}

.voices > :not(.shader) {
  position: relative;
}

.voices .shader {
  opacity: 0.85;
}

.voices .shader {
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}

.nav__menu > .shader {
  display: none;
}

@media (max-width: 900px) {
  .nav__menu > .shader {
    display: block;
    opacity: 0.75;
  }

  .nav__list,
  .nav__more {
    position: relative;
  }
}

.app-dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  visibility: hidden;
  pointer-events: none;
}

.has-dust .app__shot:nth-child(2) {
  transform: translate(-50%, -50%);
}

/* ---------- Larger start page ---------- */

.nav__link {
  font-size: 16px;
}

@media (min-width: 901px) {
  .hero__title {
    font-size: calc(98 * var(--u));
    line-height: 1.04;
    letter-spacing: -0.035em;
  }

  .hero__lead {
    font-size: calc(25 * var(--u));
  }

  .hero__eyebrow {
    font-size: calc(19 * var(--u));
  }

  .hero__scroll {
    font-size: calc(16 * var(--u));
  }
}

.hero__actions .btn {
  height: 52px;
  padding: 0 28px;
  font-size: 18px;
}

@media (max-width: 900px) {
  .nav__link,
  .nav__link:hover {
    font-size: min(13vw, 9vh, 76px);
  }

  .hero__title {
    font-size: min(64px, 10vw);
    line-height: 1.08;
  }

  .hero__lead {
    font-size: 19px;
    line-height: 1.4;
  }

  .hero__eyebrow {
    font-size: 15px;
  }

  .hero__actions .btn {
    padding: 0 20px;
    font-size: 16px;
  }
}

.work__footer [data-year] {
  font-variant-numeric: tabular-nums;
}

.work__inner > .work__footer {
  position: relative;
}

/* Glass buttons keep the fill on hover. */
@media (hover: hover) {
  .btn.btn--outline.glass:hover,
  .btn.btn--glow.glass:hover {
    color: #000;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .voice {
    background: #1d1d1f;
  }
}

/* Particle ring around "Lass uns reden" (js/ring.js) */
.work {
  position: relative;
}

.work__inner {
  position: relative;
  z-index: 1;
}

.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Clear space between the hero buttons and the hands. */
@media (min-width: 901px) {
  .hero {
    padding-top: calc(128 * var(--u));
  }

  .hero__title {
    font-size: calc(90 * var(--u));
  }

  .hero__visual {
    top: calc(566 * var(--u));
  }
}

@media (min-width: 1101px) {
  .hero__visual {
    left: calc(50% - 490 * var(--u));
    width: calc(1000 * var(--u));
  }
}

/* ---------- Apps and reviews on tablets and phones ---------- */

/* Tablet, landscape */
@media (max-width: 1400px) and (min-width: 901px) and (orientation: landscape) {
  .apps__title {
    padding-top: 70px;
  }

  .apps.is-live .app {
    inset: 124px 0 104px;
    gap: 40px;
    padding-top: 0;
    padding-bottom: 12px;
  }

  .app__shots {
    height: min(100%, 720px);
  }
}

/* Phone and upright tablet: text on top, large screenshots below. */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 32px;
    padding: 0 24px;
    text-align: center;
  }

  .apps.is-live .app {
    inset: 160px 0 130px;
  }

  .app::before {
    top: 64%;
    right: 50%;
    transform: translate(50%, -50%);
  }

  .app__copy {
    display: grid;
    grid-template-columns: 1fr max-content max-content 1fr;
    align-items: center;
    column-gap: 16px;
  }

  .app__icon {
    grid-row: 1 / 3;
    grid-column: 2;
    margin: 0;
  }

  .app__name {
    grid-column: 3;
    align-self: end;
    margin: 0;
    text-align: left;
  }

  .app__claim {
    grid-column: 3;
    align-self: start;
    text-align: left;
  }

  .app__text,
  .app__devices {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 14px auto 0;
  }

  .app__devices {
    margin-top: 6px;
  }

  .app .btn {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 16px;
  }

  .app__shots {
    height: 100%;
  }
}

@media (max-width: 760px) {
  .app {
    gap: 22px;
    padding: 0 20px;
  }

  .apps.is-live .app {
    inset: 112px 0 112px;
  }

  .app__name {
    font-size: 34px;
  }

  .app__claim {
    font-size: 16px;
  }

  .app__shot:nth-child(1) {
    transform: translate(calc(-50% - var(--open, 1) * 56%), calc(-50% + var(--d, 0) * 80%)) rotate(calc(var(--open, 1) * -8deg)) scale(0.84);
  }

  .app__shot:nth-child(3) {
    transform: translate(calc(-50% + var(--open, 1) * 56%), calc(-50% + var(--d, 0) * 80%)) rotate(calc(var(--open, 1) * 8deg)) scale(0.84);
  }
}

/* Smaller review cards */
@media (max-width: 1400px) {
  .voice {
    width: 290px;
    min-height: 184px;
    margin-right: 16px;
    padding: 20px;
    border-radius: 24px;
  }

  .voice blockquote {
    margin: 8px 0 6px;
    font-size: 17px;
  }

  .voice__text {
    font-size: 14px;
  }

  .voice figcaption {
    gap: 10px;
    padding-top: 14px;
  }

  .voice__flag {
    width: 34px;
    height: 34px;
  }

  .voice small {
    font-size: 12px;
  }

  .voice b {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .voice {
    width: 232px;
    min-height: 160px;
    margin-right: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .voice blockquote {
    font-size: 15px;
  }
}

/* Dust Vortex behind "Lass uns reden"; dark behind the text. */
.work .shader {
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}

.work__contact {
  isolation: isolate;
}

.work__contact::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(760px, 120vw);
  height: 520px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.7) 55%, transparent);
  transform: translate(-50%, -50%);
}

/* Particle globe (js/globe.js) */
.voices > .globe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1000px, 120vw, 112vh);
  aspect-ratio: 1;
  opacity: 0.62;
  transform: translate(-50%, -52%);
  pointer-events: none;
}

.voices:has(.globe) .shader {
  opacity: 0.3;
}

.voices__title,
.voices__note {
  text-shadow: 0 0 28px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.7);
}







@media (prefers-reduced-transparency: reduce) {
}

/* Icons that move on hover */
.ico {
  flex: none;
  overflow: visible;
}

.btn .ico {
  margin-right: 8px;
}

.ico * {
  transform-box: fill-box;
  transform-origin: center;
}

.work__footer a:has(.ico) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.work__footer .ico {
  width: 16px;
  height: 16px;
}

.ico [pathLength] {
  stroke-dasharray: 1;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ico__move {
    transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  a:hover > .ico--mail {
    animation: ico-hop 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  a:hover > .ico--mail .ico__move {
    transform: scaleY(-0.8);
  }

  a:hover > .ico--play .ico__move {
    transform: scale(1.25);
  }

  a:hover > .ico--web .ico__move {
    animation: ico-turn 900ms ease-in-out;
  }

  a:hover > .ico--insta .ico__move {
    transform: scale(0.7);
  }

  a:hover > .ico [pathLength] {
    animation: ico-draw 800ms ease-out;
  }
}

@keyframes ico-hop {
  40% { transform: translateY(-4px) rotate(-6deg); }
}

@keyframes ico-turn {
  50% { transform: scaleX(0.1); }
}

@keyframes ico-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* App Store mark and star beside the figures (js/extras.js adds is-in) */
.voices__title {
  font-size: clamp(34px, 6vw, 104px);
}

.mark {
  display: inline-block;
  width: 0.86em;
  height: 0.86em;
  margin-right: 0.2em;
  overflow: visible;
  vertical-align: -0.1em;
}

.mark--star {
  fill: var(--rating);
  stroke: var(--rating);
  stroke-width: 3;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .marks .mark {
    transition: transform 1000ms cubic-bezier(0.2, 0.9, 0.25, 1.12), opacity 500ms ease;
  }

  .marks:not(.is-in) .mark--store { opacity: 0; transform: translateY(0.5em) rotate(-30deg) scale(0.3); }
  .marks:not(.is-in) .mark--star { transform: rotate(-216deg) scale(0.5); }

  .marks .mark--star path {
    stroke-dasharray: 1;
    transition: stroke-dashoffset 1000ms ease 200ms, fill-opacity 500ms ease 1000ms;
  }

  .marks:not(.is-in) .mark--star path {
    fill-opacity: 0;
    stroke-dashoffset: 1;
  }
}

/* The icon file has its own clear margin. */
.mark--store {
  width: 1.06em;
  height: 1.06em;
  margin-right: 0.12em;
  vertical-align: -0.2em;
}

@media (max-width: 760px) {
  .voices__title {
    text-wrap: balance;
  }
}

/* The arrow follows the text colour, also on the white hover fill. */
.btn--glow .btn__icon {
  color: inherit;
}

.reach__copy .reach__more {
  margin-top: 26px;
}

/* Smaller reviewer line in the review cards */
.voice figcaption {
  gap: 10px;
}

.voice__flag {
  width: 30px;
  height: 30px;
}

.voice small {
  font-size: 12px;
}

.voice b {
  font-size: 14px;
}

/* Particle vortex (js/vortex.js) */
.vortex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 25%, #000 80%, transparent);
  pointer-events: none;
}

/* Stronger progressive blur */




/* More room between "Meine Apps" and the pictures */
@media (min-width: 901px) and (orientation: landscape) {
  .app__shots {
    height: min(100% - 50px, 500px);
    margin-top: 50px;
  }
}

