/* FINKI LIFE — site styles.

   Layout, type and colour follow the pre-rebuild Flutter site (tag
   pre-jaspr-rebuild). Motion is CSS-first:
   - an opening sequence on the hero (time-based keyframes),
   - scroll-driven "camera moves" everywhere else (animation-timeline),
   - cross-document view transitions between pages.
   Browsers without scroll timelines get the finished, static layout, and
   prefers-reduced-motion turns every animation off. */

@property --on {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  --primary: #2F6BFF;
  --primary-press: #1F56E0;
  --primary-soft: #DDE7FF;
  --paper: #F3F1EB;
  --ink: #111111;
  --muted: #585854;
  --outline: #8C8B86;
  --hairline: #D8D5CE;
  --mist: #CBCBC7;
  --max: 1120px;
  --gutter: 32px;
  --header: 70px;
  /* One easing family: expo-out for things arriving, quart-out (Flutter's
     easeOutQuart) for UI responses, back-out for stickers slapping on. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 649px) {
  :root {
    --gutter: 18px;
  }
}

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

html {
  scroll-behavior: smooth;
  /* In-page anchors land below the sticky header. */
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}

figure {
  margin: 0;
}

::selection {
  background: var(--primary);
  color: #fff;
}

.page {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

/* ---------- Shared bits ---------- */

.section {
  padding: 72px 0;
}

.band {
  padding: 92px 0;
}

.band-dark {
  background: var(--ink);
  color: #fff;
}

.band-blue {
  background: var(--primary);
  color: #fff;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.section-label.dark {
  color: #fff;
}

.section-lead {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--primary);
  border-radius: 99px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tape {
  display: inline-block;
  padding: 9px 13px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.tape.dark {
  background: #fff;
  color: var(--ink);
}

/* ---------- Buttons and badges ---------- */

.btn-install,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-install {
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    background-color 0.18s ease,
    translate 0.3s var(--ease-ui),
    box-shadow 0.3s var(--ease-ui);
}

.btn-install:hover {
  background: var(--primary-press);
  translate: 0 -2px;
  box-shadow: 0 14px 26px -12px rgba(47, 107, 255, 0.8);
}

.btn-install:active {
  translate: 0;
}

.btn-install.inverse {
  background: #fff;
  color: var(--primary);
}

.btn-install.inverse:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.5);
}

.btn-text {
  padding: 0 14px;
  color: var(--primary);
  font-weight: 600;
  transition: background-color 0.18s ease;
}

.btn-text:hover {
  background: rgba(47, 107, 255, 0.08);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.store-badge {
  display: block;
  border-radius: 8px;
  transition: translate 0.25s var(--ease-ui);
}

.store-badge:hover {
  translate: 0 -2px;
}

.store-badge img {
  width: auto;
  height: 54px;
}

/* The Play PNG carries transparent padding (its art is 168 of 250px tall).
   At 80px its art matches the full-bleed App Store badge at 54px; the
   negative margin keeps that padding out of the layout. */
.store-badge.play img {
  height: 80px;
  margin: -13px;
}

/* ---------- Phones ---------- */

.phone {
  width: var(--w, 260px);
  border: 1.5px solid var(--ink);
  border-radius: calc(var(--w, 260px) * 0.055);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.27);
  rotate: var(--rot, 0deg);
}

.phone img {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(243, 241, 235, 0.96);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 18px;
}

.wordmark {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}

.wordmark img {
  width: 34px;
  height: 34px;
}

.wordmark.inverse {
  color: #fff;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 8px;
  margin: 0 auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--outline);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.nav-links a:hover {
  border-color: var(--ink);
  background: rgba(17, 17, 17, 0.04);
}

.nav-toggle,
.nav-big,
.nav-burger,
.nav-scrim,
.drawer-head,
.drawer-badges,
.lang-toggle.compact-only {
  display: none;
}

.coords {
  margin-right: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.lang-toggle {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--outline);
  border-radius: 99px;
}

.lang-toggle a {
  padding: 8px 11px;
  border-radius: 99px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.lang-toggle a.active {
  background: var(--primary);
  color: #fff;
}

.lang-toggle a:not(.active):hover {
  background: rgba(17, 17, 17, 0.06);
}

.lang-toggle.inverse {
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-toggle.inverse a {
  color: #fff;
}

.lang-toggle.inverse a.active {
  background: #fff;
  color: var(--primary);
}

.lang-toggle.inverse a:not(.active):hover {
  background: rgba(255, 255, 255, 0.14);
}

.site-nav .btn-install {
  margin-left: 2px;
}

@media (max-width: 1199px) {
  .coords {
    display: none;
  }
}

/* Below 1080px the links live in a drawer that slides in from the right. */
@media (max-width: 1079px) {
  .header-inner > .wordmark {
    margin-right: auto;
  }

  .lang-toggle.compact-only {
    display: inline-flex;
  }

  /* Hidden but focusable, so the menu opens from the keyboard (Space). */
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }

  .nav-toggle:focus-visible ~ .nav-burger {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-soft);
    cursor: pointer;
    transition: background-color 0.18s ease;
  }

  .nav-burger:hover {
    background: #cbdaff;
  }

  .nav-burger span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: fixed;
    z-index: 60;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px;
    overflow-y: auto;
    background: var(--paper);
    box-shadow: -30px 0 60px -30px rgba(17, 17, 17, 0.45);
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 0.55s var(--ease-out),
      visibility 0s linear 0.55s;
  }

  .nav-toggle:checked ~ .site-nav {
    transform: none;
    visibility: visible;
    transition:
      transform 0.55s var(--ease-out),
      visibility 0s;
  }

  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 34px;
  }

  .nav-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
  }

  .nav-close:hover {
    background: rgba(17, 17, 17, 0.06);
  }

  .nav-close svg {
    width: 24px;
    height: 24px;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    margin: 0;
  }

  .nav-links a {
    min-height: 0;
    padding: 18px 0;
    border: 0;
    border-radius: 0;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: pre;
  }

  .nav-links a:hover {
    background: none;
    color: var(--primary);
  }

  .nav-pill {
    display: none;
  }

  .nav-big {
    display: inline;
  }

  .site-nav .lang-toggle {
    align-self: flex-start;
    margin-top: auto;
  }

  .site-nav .btn-install {
    margin: 18px 0 0;
  }

  .drawer-badges {
    display: block;
    margin-top: 14px;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    z-index: 55;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .nav-toggle:checked ~ .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  html:has(.nav-toggle:checked) {
    overflow: hidden;
  }
}

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

.hero {
  position: relative;
  height: 730px;
  padding: 58px var(--gutter) 28px;
  /* Phones may hang into the next section, but never widen the page. */
  overflow-x: clip;
}

.hero-stage {
  position: relative;
  height: 100%;
}

.hero-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--ink);
  font-size: min(194px, calc(23vw - 15px));
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.072em;
  white-space: nowrap;
  pointer-events: none;
}

/* The clip the letters rise from; padded so glyph edges are never cut. */
.hero-letters {
  display: block;
  overflow: hidden;
  padding: 0.12em 0.1em 0.14em;
}

.hero-letters .l {
  display: inline-block;
}

.hero-tape {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 12px;
}

.hero-phone {
  position: absolute;
  z-index: 1;
}

.hero-phone-left {
  --w: clamp(150px, 15.2vw, 218px);
  left: clamp(24px, 8vw, 115px);
  bottom: 80px;
}

.hero-phone-right {
  --w: clamp(190px, 20.3vw, 292px);
  right: clamp(24px, 8vw, 115px);
  top: 110px;
}

/* Tablets: smaller phones pushed to the edges, so the wordmark still reads. */
@media (min-width: 700px) and (max-width: 1199px) {
  .hero-phone-left {
    --w: 14vw;
    left: 2vw;
  }

  .hero-phone-right {
    --w: 18.5vw;
    right: 2vw;
  }
}

.sticker {
  position: absolute;
  z-index: 2;
}

.sticker-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.13);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  rotate: var(--rot, 0deg);
}

.sticker-card svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.sticker-offline {
  top: 34px;
  right: 55px;
}

.sticker-class {
  top: 250px;
  left: 50px;
}

.sticker-group {
  right: 22px;
  bottom: 88px;
}

.sticker-saved,
.sticker-ai,
.hero-scroll {
  display: none;
}

.hero-cta {
  position: absolute;
  z-index: 3;
  left: 46px;
  right: 0;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-cta .store-badges {
  margin-left: 6px;
}

@media (max-width: 699px) {
  .hero {
    height: auto;
    padding: 26px var(--gutter) 32px;
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
  }

  .hero-mark {
    position: static;
    font-size: min(112px, 29vw);
    letter-spacing: -0.071em;
    white-space: normal;
  }

  .hero-letters {
    text-align: center;
  }

  /* The space becomes the line break of the stacked FINKI / LIFE mark. */
  .hero-letters .sp {
    display: block;
    height: 0;
    overflow: hidden;
  }

  .hero-tape {
    position: static;
    align-self: flex-start;
    margin-top: 18px;
  }

  .hero-phone-left,
  .sticker-offline,
  .sticker-class,
  .sticker-group,
  .hero-cta .store-badges {
    display: none;
  }

  .hero-phone-right {
    --w: min(240px, 68vw);
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    justify-content: center;
    margin-top: 26px;
  }

  .sticker-saved,
  .sticker-ai {
    display: block;
  }

  .sticker-saved {
    top: 180px;
    right: 0;
  }

  .sticker-ai {
    bottom: 56px;
    left: 0;
  }

  .hero-cta {
    position: static;
    margin-top: 30px;
  }

  .hero-scroll {
    display: block;
    align-self: flex-end;
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 0.5px;
  }
}

/* ---------- Product reel ---------- */

.reel .section-head {
  margin-bottom: 18px;
}

.reel-card {
  --pw: clamp(190px, 17vw, 220px);
  position: relative;
  display: grid;
  grid-template-columns: 1fr calc(var(--pw) + 110px);
  align-items: center;
  min-height: 560px;
  padding: 24px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.reel-tape {
  position: absolute;
  z-index: 2;
  top: 40px;
  left: 32px;
}

.reel-title {
  padding-left: 28px;
  font-size: 58px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-align: center;
}

.reel-phone {
  --w: var(--pw);
  justify-self: center;
}

.reel-caption {
  position: absolute;
  left: 32px;
  bottom: 34px;
  margin: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

@media (max-width: 899px) {
  .reel-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .reel-tape,
  .reel-caption {
    position: static;
  }

  .reel-tape {
    align-self: flex-start;
  }

  .reel-title {
    margin-top: 34px;
    padding: 0;
    font-size: 43px;
    line-height: 0.92;
    letter-spacing: -0.056em;
    text-align: left;
  }

  .reel-phone {
    --w: min(188px, 68vw);
    align-self: center;
    margin-top: 34px;
  }

  .reel-caption {
    margin-top: 28px;
    font-size: 11px;
    text-align: right;
  }
}

/* ---------- Brand statement ---------- */

.brand-statement {
  padding: 96px 0;
}

.statement {
  margin: 0;
  padding: 72px 0;
  border-block: 1px solid var(--hairline);
  font-size: 67px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.accent {
  color: var(--primary);
}

@media (max-width: 649px) {
  .statement {
    font-size: 37px;
    letter-spacing: -0.049em;
  }
}

/* ---------- Feature studio ---------- */

.feature-studio {
  padding: 86px 0;
}

.studio {
  display: grid;
  grid-template-columns: 5fr 6fr;
  align-items: start;
  margin-top: 44px;
}

.studio-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.studio-index {
  flex: none;
  width: 36px;
  color: var(--muted);
  font-size: 11px;
  transition: color 0.26s var(--ease-ui);
}

.studio-name {
  flex: 1;
  color: rgba(17, 17, 17, 0.3);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.045em;
  transform-origin: left center;
  transition:
    color 0.26s var(--ease-ui),
    scale 0.26s var(--ease-ui);
}

.studio-arrow {
  display: grid;
  color: var(--outline);
  transition:
    rotate 0.3s var(--ease-ui),
    color 0.3s var(--ease-ui);
}

.studio-arrow svg {
  width: 24px;
  height: 24px;
}

.studio-row:is(.active, :hover) .studio-index,
.studio-row:is(.active, :hover) .studio-arrow {
  color: var(--primary);
}

.studio-row:is(.active, :hover) .studio-name {
  color: var(--ink);
  scale: 1.09;
}

/* Flutter's arrow_outward turns an eighth: ↗ becomes →. */
.studio-row:is(.active, :hover) .studio-arrow {
  rotate: 45deg;
}

.studio-detail {
  padding: 8px 0 0 48px;
}

.studio-icon svg {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--primary);
}

.studio-detail h3 {
  margin-top: 30px;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.043em;
}

.studio-detail p {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.studio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

@media (max-width: 759px) {
  .studio {
    grid-template-columns: 1fr;
  }

  .studio-name,
  .studio-detail h3 {
    font-size: 36px;
  }

  .studio-detail {
    padding: 38px 0 0;
  }
}

/* ---------- App screens ---------- */

.screens-head h2 {
  margin-top: 26px;
  color: #fff;
  font-size: 78px;
  line-height: 0.94;
  letter-spacing: -0.064em;
}

.screens-head p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.5;
}

/* Strips that scroll sideways: swipe on touch, drag with a mouse. */
.screens-track,
.flow-steps {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}

.screens-track::-webkit-scrollbar,
.flow-steps::-webkit-scrollbar {
  display: none;
}

[data-drag-scroll] img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.screens-track {
  margin-top: 54px;
}

.screens-row {
  display: flex;
  gap: 30px;
  width: max-content;
  padding: 0 var(--gutter) 44px;
}

.screen {
  --w: 264px;
  scroll-snap-align: start;
}

.screen figcaption {
  padding: 0 0 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

@media (max-width: 699px) {
  .screens-head h2 {
    font-size: 48px;
    letter-spacing: -0.054em;
  }

  .screens-row {
    gap: 18px;
  }

  .screen {
    --w: 226px;
  }
}

/* ---------- Workflow ---------- */

.workflow {
  padding: 86px 0;
}

.marquee {
  margin-top: 34px;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  color: #fff;
  font-size: clamp(48px, 7vw, 74px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.054em;
  white-space: pre;
}

.flow-steps {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  padding: 12px var(--gutter) 28px;
}

.story {
  flex: 0 0 330px;
  padding: 24px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  scroll-snap-align: start;
  transition:
    transform 0.32s var(--ease-ui),
    box-shadow 0.32s var(--ease-ui),
    --on 0.36s var(--ease-ui);
}

/* --on (0–1) drives every preview below: hover sets it here, and on touch
   screens a scroll timeline plays it instead. */
.story:hover {
  --on: 1;
  transform: translateY(-10px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
}

.story-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 12px;
}

.story-head svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.story-preview {
  height: 126px;
  overflow: hidden;
  border: 1px solid rgba(47, 107, 255, 0.22);
  border-radius: 3px;
  background: rgba(47, 107, 255, 0.055);
  translate: 0 calc(var(--on) * -4px);
  scale: calc(1 + var(--on) * 0.018);
}

.story h3 {
  margin-top: 20px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.047em;
}

.story p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.pv {
  position: relative;
  height: 100%;
  padding: 12px;
  font-size: 10px;
  line-height: 1.25;
}

.pv-title {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.pv-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-row + .pv-row {
  margin-top: 6px;
}

.pv-bar {
  position: relative;
  flex: none;
  width: 4px;
  height: 31px;
  background: rgba(47, 107, 255, 0.28);
}

.pv-row.first .pv-bar::after,
.pv-task.first .pv-check::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  opacity: var(--on);
}

.pv-time {
  flex: none;
  width: 35px;
}

.pv-course {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-weight: 700;
}

.pv-course span,
.pv-notice span,
.pv-task span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-course .pv-room {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.pv-notice {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: #fff;
  font-weight: 700;
}

.pv-notice span {
  flex: 1;
}

.pv-notice svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.pv-notice.back {
  top: 48px;
  left: 24px;
  right: 12px;
  opacity: calc(0.5 + var(--on) * 0.22);
}

.pv-notice.front {
  top: 20px;
  left: 12px;
  right: 24px;
  translate: 0 calc(var(--on) * -6px);
}

.pv-notice .pv-new {
  flex: none;
  color: var(--primary);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.pv-map {
  padding: 0;
}

.pv-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 61%;
}

.pv-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  color: var(--primary);
  scale: calc(1 + var(--on) * 0.18);
}

.pv-pin svg {
  width: 16px;
  height: 16px;
}

.pv-planner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv-task {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.pv-check {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  color: #fff;
}

.pv-check svg {
  position: relative;
  width: 13px;
  height: 13px;
  opacity: 0;
}

.pv-task.first .pv-check svg {
  opacity: var(--on);
}

.pv-task.first > span:last-child {
  text-decoration: line-through rgb(17 17 17 / var(--on));
}

.pv-progress {
  height: 4px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 99px;
  background: #fff;
}

.pv-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  transform-origin: left;
  scale: calc(0.32 + var(--on) * 0.34) 1;
}

/* ---------- Offline ---------- */

.offline {
  padding: 104px 0;
}

.offline-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 28px;
  align-items: center;
}

.offline h2 {
  margin-top: 30px;
  font-size: 72px;
  line-height: 0.96;
  letter-spacing: -0.0625em;
}

.offline h2:lang(mk) {
  font-size: 58px;
  letter-spacing: -0.06em;
}

.offline-stage {
  display: flex;
  justify-content: center;
  padding: 56px 36px;
}

.offline-device {
  width: 272px;
  overflow: hidden;
  padding: 3px;
  border: 3px solid var(--ink);
  border-radius: 25px;
  background: var(--ink);
  box-shadow: 10px 22px 34px rgba(0, 0, 0, 0.22);
  rotate: 1.6deg;
}

.offline-device img {
  border-radius: 20px;
}

@media (max-width: 759px) {
  .offline-inner {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .offline h2 {
    font-size: 46px;
    letter-spacing: -0.054em;
  }

  .offline h2:lang(mk) {
    font-size: 42px;
  }

  .offline-stage {
    padding: 0 8px 40px;
  }

  .offline-device {
    width: min(244px, 100%);
  }
}

/* ---------- Campus ---------- */

.campus {
  padding: 94px 0;
}

.campus-title {
  max-width: 16ch;
  margin-top: 34px;
  color: #fff;
  font-size: 82px;
  line-height: 0.94;
  letter-spacing: -0.061em;
}

.campus-lead {
  max-width: 720px;
  margin: 32px 0 0;
  color: var(--mist);
  font-size: 19px;
  line-height: 1.5;
}

.campus-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-top: 42px;
}

@media (max-width: 719px) {
  .campus-title {
    font-size: 49px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 68px 0;
  background: var(--primary);
  color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 36px;
  align-items: start;
}

.footer-top h2 {
  font-size: 76px;
  line-height: 0.93;
  letter-spacing: -0.059em;
  white-space: pre-line;
}

.footer-action p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.5;
}

.footer-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-rule {
  margin: 72px 0 20px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-rule.faint {
  margin: 28px 0 20px;
  border-top-color: rgba(255, 255, 255, 0.22);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-links > a:not(.wordmark) {
  padding: 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.footer-links > a:not(.wordmark):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  margin: 18px 0 0;
  font-size: 11px;
  letter-spacing: 0.4px;
}

.footer-disclaimer {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 719px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-top h2 {
    font-size: 48px;
    letter-spacing: -0.052em;
  }
}

/* ---------- Content pages: news, posts, documents, 404 ---------- */

.content {
  padding-top: 64px;
  padding-bottom: 96px;
}

.content > .section-label {
  display: block;
}

.content h1 {
  max-width: 820px;
  margin-top: 28px;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.043em;
}

.updates .section-lead {
  max-width: 680px;
  margin-top: 16px;
}

.post-list {
  display: grid;
  gap: 14px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.post-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  transition:
    translate 0.26s var(--ease-ui),
    border-color 0.26s var(--ease-ui),
    box-shadow 0.26s var(--ease-ui);
}

.post-card:hover {
  translate: 0 -4px;
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.post-card time {
  display: flex;
  flex: none;
  align-items: center;
  align-self: stretch;
  width: 114px;
  padding-right: 22px;
  border-right: 1px solid var(--hairline);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.post-card-body {
  flex: 1;
  min-width: 0;
}

.post-card h2 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.post-card p {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card-arrow {
  display: grid;
  color: var(--outline);
  transition:
    color 0.26s var(--ease-ui),
    rotate 0.3s var(--ease-ui);
}

.post-card-arrow svg {
  width: 24px;
  height: 24px;
}

.post-card:hover .post-card-arrow {
  color: var(--primary);
  rotate: 45deg;
}

@media (max-width: 519px) {
  .post-card {
    flex-wrap: wrap;
    gap: 12px;
  }

  .post-card time {
    flex: 1;
    width: auto;
    padding: 0;
    border: 0;
  }

  .post-card-body {
    order: 1;
    flex-basis: 100%;
  }
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post h1 {
  margin-top: 26px;
}

.post .section-lead {
  max-width: 720px;
  margin-top: 14px;
}

.content-rule {
  margin: 26px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.markdown {
  max-width: 820px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.document .markdown {
  margin-top: 28px;
}

.markdown h1 {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 52px;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.markdown h2 {
  margin: 44px 0 14px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.036em;
}

.markdown h3 {
  margin: 30px 0 10px;
  color: var(--primary);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.markdown strong {
  color: var(--ink);
}

.markdown a {
  color: var(--primary);
  text-underline-offset: 2px;
}

.markdown blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  background: rgba(216, 213, 206, 0.45);
  font-style: italic;
}

.markdown blockquote p {
  margin: 0;
}

.markdown table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.markdown th,
.markdown td {
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}

.markdown th {
  color: var(--ink);
  font-weight: 700;
}

.markdown code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #E6E3DB;
  color: var(--ink);
  font-size: 0.9em;
}

.markdown hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

.markdown img {
  margin: 12px 0;
  border-radius: 18px;
}

.not-found h1 {
  font-size: 112px;
  line-height: 0.84;
  letter-spacing: -0.0625em;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

@media (max-width: 649px) {
  .content h1 {
    font-size: 36px;
  }

  .markdown h1 {
    font-size: 38px;
  }

  .markdown table {
    display: block;
    overflow-x: auto;
  }
}

/* ---------- Custom cursor ---------- */

.cursor-ring,
.cursor-dot {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 700px) {
  html.has-cursor,
  html.has-cursor body,
  html.has-cursor a,
  html.has-cursor button,
  html.has-cursor label {
    cursor: none;
  }

  html.has-cursor .cursor-ring {
    display: block;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    transition:
      transform 60ms ease-out,
      scale 0.28s var(--ease-ui),
      background-color 0.28s ease;
  }

  html.has-cursor .cursor-dot {
    display: block;
    width: 8px;
    height: 8px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: var(--primary);
    transition: scale 55ms ease-out;
  }

  html.cursor-hover .cursor-ring {
    scale: 1.55;
    background: rgba(47, 107, 255, 0.1);
  }

  html.cursor-down .cursor-ring {
    scale: 0.84;
  }

  html.cursor-down .cursor-dot {
    scale: 1.25;
  }
}

/* =====================================================================
   Motion
   ===================================================================== */

@keyframes letter-up {
  from {
    translate: 0 112%;
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    translate: 0 160px;
    scale: 0.88;
    filter: blur(14px);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    scale: 1.5;
  }

  55% {
    opacity: 1;
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    translate: -48px 0;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}

@keyframes drop-in {
  from {
    translate: 0 -100%;
  }
}

/* The Flutter site's idle float: a slow orbit, 6.2s per lap. */
@keyframes float {
  0%,
  100% {
    translate: var(--fx, 3px) 0;
  }

  25% {
    translate: 0 var(--fy, 8px);
  }

  50% {
    translate: calc(var(--fx, 3px) * -1) 0;
  }

  75% {
    translate: 0 calc(var(--fy, 8px) * -1);
  }
}

@keyframes marquee {
  to {
    translate: -50% 0;
  }
}

@keyframes studio-in {
  from {
    opacity: 0;
    translate: 0 22px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Opening sequence: the wordmark rises letter by letter, the phones land
     out of a blur, the tape and stickers slap on, then the calls to action. */
  .hero-letters .l {
    animation: letter-up 1.1s var(--ease-out) both;
    animation-delay: calc(0.08s + var(--i) * 0.05s);
  }

  .hero-phone-left {
    animation: phone-in 1.5s var(--ease-out) 0.45s both;
  }

  .hero-phone-right {
    animation: phone-in 1.5s var(--ease-out) 0.6s both;
  }

  .hero-tape {
    animation: slide-in 0.9s var(--ease-out) 1s both;
  }

  .sticker {
    animation: pop-in 0.7s var(--ease-back) 1.1s both;
  }

  .sticker-class,
  .sticker-saved {
    animation-delay: 1.22s;
  }

  .sticker-group,
  .sticker-ai {
    animation-delay: 1.34s;
  }

  .hero-cta {
    animation: rise-in 0.9s var(--ease-out) 1.25s both;
  }

  .hero-scroll {
    animation: rise-in 0.9s var(--ease-out) 1.5s both;
  }

  body:has(.hero) .site-header {
    animation: drop-in 0.9s var(--ease-out) backwards;
  }

  .float {
    animation: float 6.2s ease-in-out infinite;
    animation-delay: calc(var(--phase, 0) * -6.2s);
  }

  .marquee-track {
    animation: marquee 26s linear infinite;
  }

  .studio-detail {
    animation: studio-in 0.46s var(--ease-ui) both;
  }

  .studio-icon {
    display: inline-block;
    animation: pop-in 0.6s var(--ease-back) both;
  }

  .content > * {
    animation: rise-in 0.8s var(--ease-out) both;
  }

  .content > :nth-child(2) {
    animation-delay: 0.06s;
  }

  .content > :nth-child(3) {
    animation-delay: 0.12s;
  }

  .content > :nth-child(n + 4) {
    animation-delay: 0.18s;
  }

  .post-list li {
    animation: rise-in 0.8s var(--ease-out) both;
    animation-delay: calc(0.24s + var(--i) * 0.07s);
  }

  /* Page to page: the content slides up through a cross-fade. */
  @view-transition {
    navigation: auto;
  }

  .content {
    view-transition-name: page;
  }

  ::view-transition-old(page) {
    animation: vt-out 0.3s var(--ease-ui) both;
  }

  ::view-transition-new(page) {
    animation: vt-in 0.6s var(--ease-out) both;
  }
}

@keyframes vt-out {
  to {
    opacity: 0;
    translate: 0 -30px;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    translate: 0 40px;
  }
}

/* ---------- Scroll-driven camera moves ---------- */

@keyframes header-lift {
  to {
    background-color: rgba(243, 241, 235, 0.99);
    border-bottom-color: transparent;
    box-shadow: 0 12px 30px -20px rgba(17, 17, 17, 0.4);
  }
}

@keyframes mark-out {
  to {
    opacity: 0.15;
    transform: scale(1.14);
  }
}

@keyframes drift-left {
  to {
    transform: translate(-60px, -220px) rotate(-6deg);
  }
}

@keyframes drift-right {
  to {
    transform: translate(80px, -340px) rotate(5deg);
  }
}

@keyframes drift-up {
  to {
    transform: translateY(var(--lift, -260px));
  }
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(52px) scale(0.975);
  }
}

@keyframes iris {
  from {
    clip-path: inset(9% 8% round 40px);
  }

  to {
    clip-path: inset(0 round 4px);
  }
}

@keyframes wipe-up {
  from {
    opacity: 0;
    translate: 0 60px;
    clip-path: inset(0 0 100% 0);
  }

  to {
    clip-path: inset(-10% -10% -20%);
  }
}

@keyframes parallax {
  from {
    transform: translateY(54px) scale(0.965);
  }

  50% {
    transform: none;
  }

  to {
    transform: translateY(-54px) scale(0.965);
  }
}

@keyframes word-light {
  from {
    opacity: 0.14;
  }
}

@keyframes pan {
  to {
    translate: min(0px, calc(100cqw - 100%)) 0;
  }
}

@keyframes screen-in {
  from {
    opacity: 0;
    translate: 100cqw 80px;
    rotate: 9deg;
  }

  30% {
    opacity: 1;
  }
}

@keyframes deal-in {
  from {
    opacity: 0;
    translate: 160px 40px;
    rotate: 7deg;
  }
}

@keyframes story-on {
  0%,
  100% {
    --on: 0;
  }

  30%,
  70% {
    --on: 1;
  }
}

@keyframes tilt-in {
  from {
    opacity: 0;
    transform: translate(80px, 140px) rotate(14deg) scale(0.9);
  }

  45% {
    opacity: 1;
  }
}

@keyframes tag-pop {
  from {
    opacity: 0;
    scale: 0.7;
    translate: 0 12px;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* The header gains a shadow once the page moves under it. */
    .site-header {
      animation: header-lift linear both;
      animation-timeline: scroll();
      animation-range: 0px 240px;
    }

    body:has(.hero) .site-header {
      animation:
        drop-in 0.9s var(--ease-out) backwards,
        header-lift linear both;
      animation-timeline: auto, scroll();
      animation-range: normal, 0px 240px;
    }

    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
      transform-origin: top center;
    }

    /* Reel: the card opens like an iris, the headline wipes up, the phone
       moves on its own depth plane. */
    .reel-card {
      animation: iris linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }

    .reel-title {
      animation: wipe-up linear both;
      animation-timeline: view();
      animation-range: entry 25% cover 48%;
    }

    .reel-tape,
    .reel-caption {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 50%;
    }

    .parallax {
      animation: parallax linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    /* Statement: words light up in reading order as it scrolls through. */
    .statement {
      view-timeline: --statement;
    }

    .statement .w {
      animation: word-light linear both;
      animation-timeline: --statement;
      animation-range: cover calc(16% + var(--i) * 1.4%) cover calc(24% + var(--i) * 1.4%);
    }

    .screens-head,
    .campus-lead,
    .campus-action,
    .feature-studio .section-label,
    .studio {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }

    .campus-title,
    .footer-top h2,
    .offline h2 {
      animation: wipe-up linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }

    /* Workflow: the day's cards are dealt in from the right. */
    .flow-steps {
      view-timeline: --flow;
    }

    .story {
      animation: deal-in linear both;
      animation-timeline: --flow;
      animation-range: cover calc(4% + var(--i) * 4%) cover calc(28% + var(--i) * 4%);
    }

    /* Offline: the phone tilts upright out of the corner, the tags pop. */
    .offline-stage {
      animation: tilt-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 48%;
    }

    .offline .tag {
      animation: tag-pop linear both;
      animation-timeline: view();
      animation-range: entry calc(20% + var(--i) * 18%) entry calc(70% + var(--i) * 18%);
    }

    @media (min-width: 700px) {
      /* Hero exit: a dolly in on the wordmark while the phones and stickers
         drift apart at their own depths. */
      .hero {
        view-timeline: --hero;
      }

      .hero-mark {
        animation: mark-out linear both;
        animation-timeline: --hero;
        animation-range: exit 0% exit 100%;
      }

      .hero-phone-left {
        animation:
          phone-in 1.5s var(--ease-out) 0.45s both,
          drift-left linear both;
        animation-timeline: auto, --hero;
        animation-range: normal, exit 0% exit 100%;
      }

      .hero-phone-right {
        animation:
          phone-in 1.5s var(--ease-out) 0.6s both,
          drift-right linear both;
        animation-timeline: auto, --hero;
        animation-range: normal, exit 0% exit 100%;
      }

      .hero-tape {
        --lift: -200px;
        animation:
          slide-in 0.9s var(--ease-out) 1s both,
          drift-up linear both;
        animation-timeline: auto, --hero;
        animation-range: normal, exit 0% exit 100%;
      }

      .sticker {
        animation:
          pop-in 0.7s var(--ease-back) 1.1s both,
          drift-up linear both;
        animation-timeline: auto, --hero;
        animation-range: normal, exit 0% exit 100%;
      }

      .sticker-offline {
        --lift: -380px;
      }

      .sticker-class {
        --lift: -300px;
        animation-delay: 1.22s, 0s;
      }

      .sticker-group {
        --lift: -440px;
        animation-delay: 1.34s, 0s;
      }
    }

    @media (min-width: 900px) {
      /* App screens: the band pins under the header and the scroll deals
         the phones in from the right, one after another; a row wider than
         the screen then pans to its last phone. */
      .screens {
        height: 260vh;
        padding: 0;
        view-timeline: --screens;
        view-timeline-inset: var(--header) 0px;
      }

      .screens-pin {
        position: sticky;
        top: var(--header);
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: calc(100vh - var(--header));
        overflow: hidden;
        container-type: inline-size;
      }

      .screens-head h2 {
        font-size: clamp(48px, 8.4vh, 78px);
      }

      .screens-track {
        margin-top: clamp(24px, 5vh, 54px);
        overflow: visible;
        cursor: auto;
      }

      .screens-row {
        margin-inline: auto;
        padding-bottom: 0;
        animation: pan linear both;
        animation-timeline: --screens;
        animation-range: contain 72% contain 96%;
      }

      .screen {
        --w: clamp(170px, calc((100vh - var(--header) - 350px) / 2.32), 264px);
        animation: screen-in linear both;
        animation-timeline: --screens;
        animation-range: contain calc(var(--i) * 12%) contain calc(var(--i) * 12% + 26%);
      }
    }

    /* Touch screens have no hover: the previews play as the band scrolls. */
    @media (hover: none) {
      .story {
        animation:
          deal-in linear both,
          story-on linear both;
        animation-timeline: --flow, --flow;
        animation-range:
          cover calc(4% + var(--i) * 4%) cover calc(28% + var(--i) * 4%),
          cover 30% cover 80%;
      }
    }
  }
}

/* Belt and braces: anything left moving stops for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.has-cursor,
  html.has-cursor body,
  html.has-cursor a,
  html.has-cursor button,
  html.has-cursor label {
    cursor: auto;
  }

  html.has-cursor .cursor-ring,
  html.has-cursor .cursor-dot {
    display: none;
  }
}
