/* =========================================================================
   VYRA — the narrative
   One composition in fifteen states. Base styles render the whole story
   statically; the .motion class (added only once GSAP is confirmed alive)
   lifts it onto a fixed stage and hands the states to the scroll.
   ========================================================================= */

:root {
  --bg: #0e0e0e;
  --ink: #ffffff;
  --muted: #7d8286;
  --muted-2: #9a9fa3;
  --pos: #34d399;
  --brand: #4a90d9;
  --brand-lift: #5a9fe6;
  --paper: #ffffff;
  --paper-ink: #131313;
  --panel: #1c1c1c;
  --hair: rgba(255, 255, 255, .14);

  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --display: clamp(26px, 3.5vw, 52px);
  --head: clamp(20px, 2.15vw, 33px);
  --sub: clamp(14px, 1.45vw, 22px);
}

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

html,
body {
  margin: 0;
  padding: 0
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* substrate grain: behind everything, never over the type */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.55'/></svg>");
}

/* ---------- the word clip: one typographic mechanic for the whole piece ---------- */
.w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: .2em;
  margin-bottom: -.2em;
  vertical-align: bottom
}

.wi {
  display: inline-block
}

/* The opening line is the one place a word RESTS part-way down its own clip
   box: the reveal holds it 34% low while it resolves. This is the travel plus
   the descenders; the negative margin hands the space back to the layout. */
.line--a .w {
  padding-bottom: .62em;
  margin-bottom: -.62em;
}

.em {
  color: var(--ink);
  font-weight: 600
}

/* Lines are white; the emphasised words are the same white, heavier. Only
   the opening line sets its plain words back, so its one word stands out. */
.line__main {
  color: var(--ink)
}

.line--a .line__main {
  color: var(--ink)
}

.line__sub .em {
  color: var(--muted-2);
  font-weight: 600
}

/* =========================================================================
   THE SERVED DOCUMENT: readable top to bottom, in narrative order
   ========================================================================= */
.stage {
  position: relative;
  z-index: 1
}

.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 8vh, 96px);
  padding: 14vh 5vw 10vh
}

.glow,
.rings,
.links,
.anchor,
.pa,

/* The document reads as the narrative does: each line, then what it is
   about. The headline container is dissolved so its lines can interleave. */
.headlines {
  display: contents
}

.line {
  margin: 0;
  width: 100%;
  text-align: center
}

.line__main,
.line__sub {
  margin: 0
}

.line__main {
  font-size: var(--head);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.18
}

.line__sub {
  margin-top: .45em;
  font-size: var(--sub);
  color: var(--muted);
  line-height: 1.3
}

.line--a .line__main {
  font-size: var(--display);
  letter-spacing: -.02em
}

.plate--night { order: 1 }
.line--a { order: 2 }
.domains { order: 3 }
.line--b { order: 5 }
.line--c { order: 6 }
.plat { order: 7 }
.field { order: 12 }
.line--d { order: 10 }
.core { order: 11 }
.line--e { order: 12 }
.caps { order: 13 }
.line--f { order: 14 }
.acts { order: 15 }
.line--h { order: 16 }
.plate--day { order: 17 }
.decision { order: 18 }
.line--g { order: 19 }
.line--m { order: 20 }
.line--i { order: 21 }
.doings { order: 21 }
.phone { order: 22 }
.line--j { order: 23 }
.plate--morning { order: 24 }
.line--n { order: 25 }
.line--k { order: 26 }
.line--l { order: 27 }
.cta { order: 28 }
.note { order: 29 }

/* the three plates, as the document has them: full-width stills */
.plate {
  display: block;
  width: min(1100px, 100%);
  aspect-ratio: 2000 / 1185;
  object-fit: cover;
  border-radius: 14px
}

.scrim {
  display: none
}

/* the served document is not a film and has nothing to replay */
.replay {
  display: none
}


/* a word that becomes another word: the chip keeps its box, the text swaps
   through it. the second word exists only for the composition. */
.sw {
  position: relative;
  display: inline-block;
  white-space: nowrap
}

/* every word in a swap must be a box, or a transform cannot move it */
.sw__a,
.sw__s {
  display: inline-block
}

.sw__b {
  display: none
}

.note {
  margin: -1.2em 0 0;
  font-size: clamp(11px, .9vw, 14px);
  color: var(--muted);
  letter-spacing: .02em
}

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: center;
  max-width: 900px
}

.domains {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 720px
}

.core {
  margin-bottom: 2.2em
}

.caps,
.acts,
.doings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 760px
}

/* =========================================================================
   THE SIGNALS: real marks, real cards
   ========================================================================= */
/* A mark is two things: a box the scroll places, and a body the ride moves
   along its line. Everything visual is on the body. */
.tool {
  position: relative;
  display: block;
  width: clamp(40px, 3.9vw, 60px);
  height: clamp(40px, 3.9vw, 60px);
}

.tool__body {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
}

.tool svg {
  width: 52%;
  height: 52%;
  display: block
}

/* the supplied calendar is drawn to its own tile; give it the whole circle */
#t-calendar svg {
  width: 72%;
  height: 72%
}

#t-claude svg {
  width: 50%;
  height: 50%
}

.tool img {
  display: block;
  width: 46%;
  height: auto
}

#t-meta .tool__body {
  background: #e4efff
}

#t-linkedin .tool__body {
  background: #fff
}

#t-linkedin svg {
  width: 100%;
  height: 100%
}

.tool--blue .tool__body {
  background: #1f8ded
}

.tool--sage .tool__body {
  background: #e9f3d8
}

.tool--sage svg {
  width: 56%
}

.tool--blue svg {
  width: 56%;
  height: 56%
}

.tool__label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(11px, 1vw, 15px);
  color: var(--ink);
  white-space: nowrap
}

/* ---------- the founder ---------- */
/* He is the person in the photographs. This element is only the point the
   arrows run through, where his head is; it has no size and is never seen. */
.founder {
  display: none
}

/* =========================================================================
   THE OS: the drum, and the seven things it holds
   ========================================================================= */
.plat {
  display: block;
  width: min(760px, 82vw);
  height: auto;
  overflow: visible
}

/* the drum is line and light: one thin blue edge, a top face that is
   barely there, a side that stands in front of the light behind it, and
   one deep-blue disc with the light in its centre */
.plat__beam {
  fill: url(#p-beam)
}

.plat__side {
  fill: rgba(12, 16, 30, .74);
  stroke: rgba(159, 208, 255, .78);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round
}

.plat__top {
  fill: rgba(58, 106, 220, .09);
  stroke: rgba(159, 208, 255, .78);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke
}

.plat__disc {
  fill: url(#p-disc);
  stroke: rgba(159, 208, 255, .55);
  stroke-width: 1;
  vector-effect: non-scaling-stroke
}

.plat__slot {
  fill: url(#p-slot);
  filter: url(#p-soft)
}

.plat__name {
  fill: var(--ink);
  font-family: inherit;
  font-size: 31px;
  font-weight: 600;
  letter-spacing: .01em
}

.dom {
  display: inline-flex
}

/* the visible chip; the timeline positions the .dom wrapper, this inner body
   is what the ambient drift loop nudges, so the two never share a transform */
.dom__body {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  padding: .6em 1.05em;
  font-size: clamp(12px, 1.05vw, 16px);
  font-weight: 500;
  white-space: nowrap
}

.dom__body i {
  width: .62em;
  height: .62em;
  border-radius: 50%;
  background: var(--dot);
  display: inline-block;
  flex: none
}

/* the source of a signal: the brand's own mark, small and quiet. it is
   never the subject; the number is. */
.dom__src {
  width: 1em;
  height: 1em;
  flex: none;
  opacity: .8
}

/* the served document reads the signals; the chip's other words belong to
   the composition */
.dom .sw__a,
.dom .sw__b {
  display: none
}

.dom .sw__s {
  display: inline-block
}

/* A backdrop blur has to read back everything behind the element every
   frame anything behind it moves — and on a transition EVERYTHING behind
   it is moving. Twenty-eight of these were the flicker. It is kept only
   where there is one of them over a photograph and nothing else in
   flight; the many are given an honest solid surface instead. */
.dom .dom__body {
  background: rgba(26, 26, 26, .84);
  color: #e6e8ea;
  font-weight: 400;
  border-radius: .5em
}

.dom .dom__body i {
  display: none
}

/* =========================================================================
   THE OPERATOR
   ========================================================================= */
/* the orb's mount box; every anchor the orb is fitted to was measured
   against this exact footprint */
.ring-mount {
  position: relative;
  width: clamp(104px, 9vw, 144px);
  height: clamp(104px, 9vw, 144px);
  display: block
}

.ring__still {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E0EEFF 0%, #5A8AFF 38%, #00D085 78%, #007A55 100%)
}

.core {
  position: relative;
  display: inline-block
}

.core__name {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin: -8% 0 0;
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 500;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--ink)
}

/* =========================================================================
   PILLS: what it does, what it did, what that is worth
   ========================================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  background: rgba(15, 15, 15, .55);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: .62em 1.25em .62em 1.05em;
  font-size: clamp(12px, 1.05vw, 16px);
  white-space: nowrap;
  color: var(--ink)
}

.pill__tick {
  color: var(--pos);
  flex: none
}

.pill__body {
  display: flex;
  flex-direction: column;
  gap: .12em;
  line-height: 1.2
}

.pill__sub {
  font-size: .72em;
  color: var(--muted-2)
}

.act {
  padding-top: .55em;
  padding-bottom: .55em
}

/* the things she keeps doing: smaller, quieter, ongoing */
.doing-slot {
  display: inline-flex
}

.doing {
  font-size: clamp(11px, .9vw, 14px);
  color: var(--muted-2);
  padding: .5em 1.05em .5em .9em
}

.doing .pill__tick {
  width: 12px;
  height: 12px
}

/* =========================================================================
   THE DECISION
   ========================================================================= */
.decision {
  width: min(460px, 82vw);
  text-align: left;
  background: rgba(14, 14, 14, .6);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  border-radius: 20px;
  padding: clamp(18px, 1.6vw, 28px)
}

.decision__brand {
  margin: 0 0 1.4em;
  font-size: clamp(10px, .8vw, 13px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b9096
}

.decision__acts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.6vw, 28px)
}

.review {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: clamp(12px, 1vw, 16px);
  letter-spacing: .02em;
  color: #7e8890
}

.decision__sub {
  margin: 0 0 .5em;
  font-size: clamp(12px, 1.1vw, 17px);
  color: var(--muted-2)
}

.decision__q {
  margin: 0 0 .9em;
  font-size: clamp(16px, 1.45vw, 23px);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .28em
}

.decision__why {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55em;
  font-family: var(--mono);
  font-size: clamp(10px, 1vw, 15px);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-2)
}

.decision__why li {
  display: flex;
  align-items: center;
  gap: .7em
}

.decision__why svg {
  color: var(--pos);
  flex: none
}

.approve {
  position: relative;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  padding: 14px clamp(28px, 2.6vw, 40px);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 500;
  letter-spacing: .01em;
  font-family: var(--sans);
  transition: background .32s cubic-bezier(.4, 0, .2, 1);
}

.approve:hover {
  background: var(--brand-lift)
}

.approve[disabled] {
  background: #3a3f42;
  color: #93989b;
  cursor: default
}

/* the button's two words share one box; the tap swaps them and the colour */
.approve__t {
  display: block;
  transition: opacity .32s cubic-bezier(.4, 0, .2, 1)
}

.approve__t--b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0
}

.approve.is-approved,
.approve.is-approved:hover {
  background: #1abe90;
  cursor: default
}

.approve.is-approved .approve__t--a {
  opacity: 0
}

.approve.is-approved .approve__t--b {
  opacity: 1
}

.decision .approve {
  min-width: clamp(130px, 9.5vw, 150px)
}

.cta {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 0 34px;
  height: clamp(44px, 5.9vh, 58px);
  line-height: clamp(44px, 5.9vh, 58px);
  min-width: clamp(240px, 24vw, 360px);
  text-align: center;
  white-space: nowrap;
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 600;
  transition: background .24s cubic-bezier(.4, 0, .2, 1)
}

.cta:hover {
  background: var(--brand-lift)
}

/* =========================================================================
   THE PHONE
   ========================================================================= */
.phone {
  position: relative;
  /* the device is 345:700, so on a short landscape frame its HEIGHT is what
     runs out first: size it off whichever of the two is scarcer */
  width: clamp(180px, min(19vw, 33vh), 296px);
  aspect-ratio: 345 / 700;
  color: var(--ink);
  font-size: clamp(10px, .86vw, 13px);
}

/* the real device: bezel, dynamic island and the 9:41 status bar are all
   drawn in the mockup art, so nothing here re-draws the chrome */
.phone__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0
}

/* the phone's own light, on the screen behind the operator */
.phone__glow {
  position: absolute;
  z-index: 1;
  left: 3%;
  top: 5%;
  width: 94%;
  height: 44%;
  background: radial-gradient(closest-side, rgba(22, 60, 150, .5), rgba(12, 30, 80, .2) 55%, transparent 100%);
  pointer-events: none
}

.pa {
  position: absolute;
  z-index: 2;
  left: 11%;
  top: 10.5%;
  width: 19%;
  aspect-ratio: 1
}

.phone__name {
  position: absolute;
  z-index: 2;
  left: 11%;
  top: 19%;
  width: 19%;
  margin: 0;
  text-align: center;
  font-size: .95em;
  letter-spacing: .01em
}

.phone__alert {
  position: absolute;
  z-index: 2;
  left: 8%;
  right: 8%;
  top: 24.5%;
  background: rgba(26, 26, 26, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.35em 1.25em 1.35em
}

.alert__head {
  margin: 0 0 .9em;
  font-size: 1.05em;
  line-height: 1.32
}

.alert__rec {
  margin: 0 0 .7em;
  font-size: .9em;
  color: var(--muted)
}

.alert__card {
  background: #262626;
  border-radius: 8px;
  padding: 1em 1em 1.1em;
  margin-bottom: 1.2em
}

.alert__q {
  margin: 0 0 .8em;
  font-size: 1.02em;
  line-height: 1.3;
  color: #d9dcdf
}

.alert__why {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4em;
  font-family: var(--mono);
  font-size: .62em;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-2)
}

.alert__why li::before {
  content: "";
  display: inline-block;
  width: .7em;
  height: .4em;
  border-left: 1.5px solid var(--pos);
  border-bottom: 1.5px solid var(--pos);
  transform: rotate(-45deg) translateY(-.15em);
  margin-right: .8em
}

.approve--phone {
  width: 100%;
  padding: .9em 0;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 1em;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500
}

.hint {
  display: none
}

/* nothing paints until the first composed frame is ready */
.pre .stage {
  visibility: hidden
}

/* =========================================================================
   THE LEADER

   What is on screen while the plates decode and the composition is measured.
   It is the count itself and the film's own scrubber — a hairline the width
   of the frame — and nothing else: no spinner, no mark, no box. The number
   is right-aligned in a fixed three-digit column so that going from 9 to 10
   to 100 never shifts it.
   ========================================================================= */
.loader {
  display: none
}

.loading .loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  opacity: 1;
  transition: opacity .55s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity
}

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

.loader__count {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: .12em;
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink)
}

/* Three wheels, as an odometer has: each digit is a strip of 0-9 with a
   second 0 at the end, and the strip is moved so the digit due is the one
   in the window. The extra 0 is what makes 9 roll forward into 0 rather
   than spin backwards through eight digits to reach it — at the moment the
   strip passes it, it is put back to the first 0, which is the same glyph
   in the same place, so the wrap cannot be seen. */
.loader__n {
  display: flex
}

.od {
  height: 1em;
  overflow: hidden
}

.od__strip {
  display: block;
  will-change: transform
}

.od__strip span {
  display: block;
  height: 1em;
  line-height: 1em;
  text-align: center
}

.loader__pc {
  align-self: flex-end;
  font-size: .3em;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--muted);
  padding-bottom: .35em
}

.loader__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden
}

.loader__rule i {
  display: block;
  height: 100%;
  background: rgba(159, 208, 255, .85);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform
}

/* =========================================================================
   MOTION: one fixed composition, driven by scroll
   ========================================================================= */
.motion .scroller {
  height: calc(var(--acts) * 100vh)
}

/* THE FILM. The piece carries itself, so there is no transport to scroll:
   the page is exactly one frame tall and the scrollbar with it. */
.motion.auto .scroller {
  height: 100vh
}

@supports (height: 100dvh) {
  .motion.auto .scroller {
    height: 100dvh
  }
}

.motion.auto {
  scrollbar-width: none
}

.motion.auto::-webkit-scrollbar {
  display: none
}

.motion.auto .replay {
  display: inline-block;
  position: fixed;
  left: 50%;
  bottom: 2.6vh;
  transform: translateX(-50%);
  z-index: 6;
  margin: 0;
  padding: .5em .9em;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: clamp(11px, .9vw, 13px);
  letter-spacing: .04em;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: color .22s cubic-bezier(.4, 0, .2, 1)
}

.motion.auto .replay:hover {
  color: var(--ink)
}

/* Sticky, not fixed. Fixed meant the composition was painted over the whole
   viewport for ever, so anything after it in the document could only ever ride
   on top of it. Sticky pins it exactly the same way for the whole of its own
   transport, then lets go at the end of it — so the film holds the frame while
   it has something to say, and the page simply carries on underneath when it
   does not. The release lands on the last composed frame, because the transport
   is the film's own height. */
.motion .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden
}

@supports (height: 100dvh) {
  .motion .stage {
    height: 100dvh
  }
}

/* A phone's browser keeps a bar over the foot of the layout viewport, so a
   caption placed near the bottom of `100vh` is placed underneath it. The
   stage is sized to what is actually VISIBLE instead, and every fraction
   in the build is measured off that. */
@supports (height: 100dvh) {
  .motion .stage {
    bottom: auto;
    height: 100dvh
  }
}

.motion .scene {
  display: block;
  padding: 0;
  position: absolute;
  inset: 0;
  gap: 0;
}

/* Every free node sits on the same true zero — the centre of the frame —
   and is placed from there. One rule, one coordinate system, no drift. */
.motion .tool,
.motion .plat,
.motion .dom,
.motion .core,
.motion .pill,
.motion .decision,
.motion .cta,
.motion .note,
.motion .phone,
.motion .glow,
.motion .line,
.motion .anchor {
  position: absolute;
  left: 50%;
  top: 50%;
}

.motion .founder {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0
}

.motion .field,
.motion .sigs,
.motion .domains,
.motion .caps,
.motion .acts,
.motion .doings,
.motion .headlines {
  display: contents
}

/* the human world: full-bleed stills under everything, faded by the scroll */
.motion .plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0;
  z-index: 0;
  pointer-events: none
}

/* a dark foot for the lines that sit over a plate: fades to the page colour
   over a long run, so it never reads as a band */
.motion .scrim {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 14, 14, 0) 0%, rgba(14, 14, 14, .1) 12%, rgba(14, 14, 14, .28) 26%, rgba(14, 14, 14, .48) 42%, rgba(14, 14, 14, .66) 58%, rgba(14, 14, 14, .8) 74%, rgba(14, 14, 14, .88) 88%, rgba(14, 14, 14, .92) 100%)
}

.motion .sw__b,
.motion .dom .sw__a,
.motion .dom .sw__b {
  display: block;
  position: absolute;
  left: 0;
  top: 0
}

.motion .dom .sw__s {
  display: inline-block;
  position: relative
}

.motion .dom .dom__body i {
  display: inline-block
}

/* A hint on every word is 165 compositor layers, and past the browser's
   budget layers get evicted and re-rastered mid-move — which is not a
   smoother transition, it is the flicker. The hint goes on the handful of
   things that carry moving content instead: a caption block is one stable
   layer whatever its words do inside it, and GSAP promotes an individual
   element for the length of its own tween anyway. */
.motion .line,
.motion .plate,
.motion .scrim {
  will-change: transform
}

.motion .plate,
.motion .scrim {
  will-change: opacity
}

.motion .sw {
  overflow: hidden;
  padding-bottom: .18em;
  margin-bottom: -.18em
}

.motion .note {
  z-index: 4;
  margin: 0;
  white-space: nowrap
}

.motion .glow {
  display: block;
  width: 140vmin;
  height: 140vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 62, 168, .62) 0%, rgba(16, 44, 122, .44) 16%, rgba(12, 30, 84, .26) 32%, rgba(10, 18, 44, .1) 50%, transparent 66%);
  pointer-events: none;
  z-index: 0
}

.motion .rings,
.motion .links {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2
}

.motion .ring {
  fill: none;
  stroke: rgba(255, 255, 255, .4);
  stroke-width: 1;
  stroke-dasharray: 3.5 5.5;
  vector-effect: non-scaling-stroke
}

.motion .arrows path {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke
}

.motion .flow path {
  fill: none;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round
}

.motion .flow .pulse {
  stroke-width: 1.8;
  animation: pulse var(--pace, 3.2s) linear infinite;
  animation-delay: var(--lead, 0s);
  animation-play-state: paused
}

.motion .flow.flowing .pulse {
  animation-play-state: running
}

@keyframes pulse {
  to {
    stroke-dashoffset: var(--cycle, -710)
  }
}

.motion .tool {
  z-index: 3
}


/* the drum sits over the light and under the seven and the operator; the
   lines run into its slot, so they sit over it too */
.motion .plat {
  z-index: 1;
  will-change: transform, opacity
}

.motion .dom {
  z-index: 3
}

.motion .core {
  z-index: 6
}

.motion .pill {
  z-index: 3
}

/* the scroll places the slot; what happens inside it is the frame's own */
.motion .doing-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3
}

.motion .doing-slot .doing {
  position: relative;
  left: auto;
  top: auto;
  will-change: opacity, transform
}

.motion .decision {
  z-index: 4;
  width: clamp(300px, 25.5vw, 460px)
}

.motion .cta {
  z-index: 4
}

.motion .phone {
  z-index: 5
}


.motion .line {
  z-index: 4;
  /* Fourteen of these are stacked on the same layer as the CTA and the decision
     card, and only one is ever the act being read — but a spent one is merely
     animated out of sight, not out of the way. Sharing z-index 4, whichever sits
     later in the document paints on top, so an invisible line was swallowing the
     click on "Join the Founding Circle" at the end of the scroll. They are
     display type and hold nothing interactive, so the pointer passes through to
     whatever is actually meant to receive it. */
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
  text-align: center;
  margin: 0
}

.motion .line__main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0 .3em;
  white-space: nowrap
}

.motion .line--a {
  text-align: left
}

.motion .line--a .line__main,
.motion .line--a .line__sub {
  justify-content: flex-start
}

.motion .line--a .line__main {
  line-height: 1.08
}

.motion .line--a .line__sub {
  margin-top: .8em
}

/* the closing line sits on the photograph, not on a dark field: smaller
   than the other lines, with its own shadow to hold it clear of the room */
.motion .line--l .line__main {
  font-size: clamp(22px, 2.2vw, 36px);
  letter-spacing: -.018em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 18px rgba(0, 0, 0, .5)
}

.motion .line--l .line__sub {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 2px 14px rgba(0, 0, 0, .5)
}

/* on the last frame the way in is a quiet dark glass over the room, not a
   block of brand colour in front of it: the photograph is the point */
.motion .cta {
  background: rgba(14, 14, 14, .42);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  min-width: 0;
  padding: 0 28px;
  height: clamp(42px, 5.2vh, 52px);
  line-height: clamp(40px, 5vh, 50px);
  font-weight: 500;
  transition: background .24s cubic-bezier(.4, 0, .2, 1), border-color .24s cubic-bezier(.4, 0, .2, 1)
}

.motion .cta:hover {
  background: rgba(14, 14, 14, .62);
  border-color: rgba(255, 255, 255, .4)
}

.motion .note {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55)
}

.motion .line__sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0 .28em;
  white-space: nowrap
}

.motion .core__name {
  overflow: hidden;
  padding-bottom: .22em;
  margin-bottom: -.22em
}

.motion .anchor--orb {
  display: block;
  width: clamp(84px, 7.2vw, 116px);
  height: clamp(84px, 7.2vw, 116px);
  visibility: hidden
}

.motion .pa {
  display: block;
  visibility: hidden
}

.motion .hint {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 10
}

/* =========================================================================
   NARROW FRAMES
   ========================================================================= */
@media (max-width: 900px) {
  .motion .line {
    max-width: 88vw
  }

  .motion .line__main,
  .motion .line__sub {
    white-space: normal
  }

  .motion .decision {
    width: min(84vw, 460px)
  }
}

/* =========================================================================
   TALL FRAMES: the same composition, re-set for a portrait phone or tablet

   Nothing here is a different design. The narrative, the nodes and the
   moves are the ones above; what changes is what a tall frame can hold —
   type that is sized off the width it has, cards that are allowed to wrap,
   and the two elements whose fixed widths were drawn for a wide frame.
   Where each thing STANDS is decided in the build, not here.
   ========================================================================= */
html.portrait {
  --display: clamp(26px, 7vw, 46px);
  --head: clamp(19px, 5.2vw, 34px);
  --sub: clamp(13px, 3.4vw, 20px);
}

/* a caption over a photograph has more of the frame to clear, and more of
   it to hold down: in a tall frame the foot of the picture is the room's
   brightest part as often as its darkest */
.motion.portrait .scrim {
  height: 58%;
  background: linear-gradient(to bottom, rgba(14, 14, 14, 0) 0%, rgba(14, 14, 14, .12) 12%, rgba(14, 14, 14, .3) 26%, rgba(14, 14, 14, .5) 40%, rgba(14, 14, 14, .68) 54%, rgba(14, 14, 14, .8) 68%, rgba(14, 14, 14, .88) 84%, rgba(14, 14, 14, .92) 100%)
}

.motion.portrait .cta {
  padding: 0 22px;
  font-size: clamp(13px, 3.6vw, 17px)
}

.motion.portrait .line {
  max-width: 86vw
}

.motion.portrait .line__main,
.motion.portrait .line__sub {
  white-space: normal
}

/* the opening line is centred like every other, because in a tall frame
   the stack it hung beside is above it rather than over to one side */
.motion.portrait .line--a {
  text-align: center
}

.motion.portrait .line--a .line__main,
.motion.portrait .line--a .line__sub {
  justify-content: center
}

.motion.portrait .line--l .line__main {
  font-size: clamp(21px, 5.6vw, 34px)
}

/* a tall frame has no dark right-hand third to set a caption in: every
   line sits over the picture, so every line carries its own shadow */
.motion.portrait .line__main,
.motion.portrait .line__sub,
.motion.portrait .note {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 16px rgba(0, 0, 0, .5)
}

/* the seven cards and the pills carry the same words in a narrower frame:
   sized off the width so a phone and a tablet both hold them on one line */
.motion.portrait .dom__body {
  font-size: calc(clamp(11px, 3vw, 15px) * var(--fit, 1))
}

.motion.portrait .pill {
  font-size: clamp(11px, 2.9vw, 15px);
  padding: .58em 1.1em .58em .95em
}

/* A frame too short for the fourteen rows of the flow (most phones, once the
   browser's bars are in) gets slimmer chips, and if that is still not enough,
   type set down by --fit. Both are decided by the build: see 1b in main.js. */
.motion.portrait .pill.cap {
  font-size: calc(clamp(11px, 2.9vw, 15px) * var(--fit, 1))
}

.motion.portrait.tight .dom__body {
  padding-top: .36em;
  padding-bottom: .36em
}

.motion.portrait.tight .pill.cap {
  padding-top: .36em;
  padding-bottom: .36em
}

.motion.portrait.tight .dom__body,
.motion.portrait.tight .pill.cap {
  line-height: 1.15
}

.motion.portrait.tight .dom__src {
  width: .95em;
  height: .95em
}

.motion.portrait.tight .pill.cap .pill__tick {
  width: 1em;
  height: 1em
}

.motion.portrait.short .anchor--orb {
  width: clamp(54px, 15vw, 64px);
  height: clamp(54px, 15vw, 64px)
}

.motion.portrait .doing {
  font-size: clamp(10px, 2.6vw, 13px)
}

.motion.portrait .decision {
  width: min(86vw, 460px)
}

/* the device keeps its proportions; only its size is the frame's */
.motion.portrait .phone {
  width: min(48vw, 250px);
  font-size: min(2.35vw, 12px)
}

.motion.portrait .anchor--orb {
  width: clamp(76px, 20vw, 124px);
  height: clamp(76px, 20vw, 124px)
}

/* the gesture is the whole scroll here, so nothing else may claim it */
.motion,
.motion body {
  overscroll-behavior: none
}

/* Vertical panning stays the browser's, and the film script cancels it while
   a swipe is driving the film. `none` here took the scroll away for good: once
   the last frame was reached an iPhone still could not scroll on, and the
   footer under the film could never be reached. */
.motion .scroller {
  touch-action: pan-y
}

@media (prefers-reduced-motion: reduce) {
  .motion .flow .pulse {
    animation: none
  }
}

/* HER FOUR STATES, IN THE PRODUCT'S OWN WORDS.
   These four are fixed vocabulary, so this line is set as the labels they
   are rather than as prose: the mono, the tracking and the quieter size are
   what tell a reader these are the product's words and not ours. */
.line__sub--states .wi {
  font-family: var(--mono);
  font-size: .72em;
  letter-spacing: .16em;
  color: var(--muted-2);
}

/* =========================================================================
   THE HEADER

   The film is the page, so this does not sit above it in the flow — it rides
   over the top of the frame, below the leader and above the stage. It is
   held back by `pre` on the same terms as the stage: nothing is shown until
   the first composed frame exists.

   The scrim is for legibility, not decoration. The piece opens almost black
   and later cuts to a bright photographic scene, and white type has to hold
   on both; it fades to fully transparent so it can never draw an edge of its
   own across the frame.
   ========================================================================= */
.site {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 22px clamp(20px, 4vw, 56px) 36px;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(14, 14, 14, .82) 0%,
      rgba(14, 14, 14, .64) 28%,
      rgba(14, 14, 14, .32) 56%,
      rgba(14, 14, 14, .12) 78%,
      rgba(14, 14, 14, 0) 100%);
}

/* past the film, on the way to the footer: the film's frames slide up under
   the bar, so the bar takes a solid ground (see paintPast in main.js) */
.past-film .site {
  background: linear-gradient(180deg,
      rgba(14, 14, 14, 1) 0%,
      rgba(14, 14, 14, 1) 72%,
      rgba(14, 14, 14, 0) 100%);
}

/* held back with the stage, so it never arrives before the composition */
.pre .site {
  visibility: hidden
}

.site__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1584px;
  margin: 0 auto;
}

/* the bar itself is inert; only what you can actually use takes the pointer */
.site a {
  pointer-events: auto
}

/* The film cuts from near-black to a bright exterior, so the type here has
   to hold on both. The colour is set for the dark opening and the shadow is
   what carries it over the bright scene — tight and low, so it separates the
   letters without ever reading as a glow behind them. */
.site__mark,
.site__sign,
.site__links a {
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
}

.site__mark {
  font-size: clamp(18px, 1.5vw, 24px);
  letter-spacing: .02em;
  color: var(--ink);
  text-decoration: none;
}

.site__links {
  display: flex;
  gap: clamp(18px, 2.2vw, 36px);
}

.site__links a {
  font-size: 15px;
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  transition: color .22s cubic-bezier(.4, 0, .2, 1);
}

.site__links a:hover {
  color: var(--ink)
}

/* The way back in, beside the way in. Not an outlined twin of the filled
   button: someone who already has an account needs a door, not a second offer,
   so it keeps the menu's own weight and lets Apply hold all the colour. */
.site__act {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
}

.site__sign {
  font-size: 15px;
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  transition: color .22s cubic-bezier(.4, 0, .2, 1);
}

.site__sign:hover {
  color: var(--ink)
}

.site__cta {
  font-size: 15px;
  line-height: 1;
  padding: 10px 22px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  transition: background-color .22s cubic-bezier(.4, 0, .2, 1);
}

.site__cta:hover {
  background: var(--brand-lift)
}

/* In the hand the film needs the whole frame, so the menu stands down and
   the mark and the way in are all that stay. */
@media (max-width: 760px) {
  .site {
    padding: 16px 20px 28px
  }

  .site__links {
    display: none
  }

  .site__cta {
    font-size: 14px;
    padding: 9px 16px
  }

  .site__sign {
    font-size: 14px
  }
}
/* ---- the way through, in the hand ------------------------------------

   Below 1024 the six links stand down and this takes their place. It is a
   native <details>, so it works with no JavaScript at all; nav.js only adds
   what a disclosure cannot do for itself (Escape, close-on-choose, a lock
   on the page behind it).

   The trigger is deliberately not three equal lines turning into a cross.
   It is the site's own index: six marks for six sections, with the one you
   are on carried at full length in brand. Opening extends every mark to
   that same length, and those marks are the same object that rules each row
   of the panel, so the control reads as a compressed form of what it opens.
   Every bar keeps its rounded caps in both states and travels its whole
   track, so nothing flips or stops half way.
   --------------------------------------------------------------------- */

.mnu {
  /* the component's own palette and measure, so every rule below is identical
     wherever this ships and only this header changes with the page's system */
  --mnu-surface: var(--panel);
  --mnu-mark: var(--muted-2);
  --mnu-here: var(--brand);
  --mnu-link: rgba(255, 255, 255, .76);
  --mnu-lit: var(--ink);
  --mnu-word: var(--muted-2);
  --mnu-gut: clamp(20px, 4vw, 56px);
  --mnu-bleed: clamp(20px, 4vw, 56px);
  --mnu-ring: #8fb4e0;
  --mnu-shade: rgba(0, 0, 0, .55);

  display: none;
  position: static;
  pointer-events: auto;
}

/* the bar is inert by default; the control and its panel have to opt back in */
.mnu__t,
.mnu__p {
  pointer-events: auto;
}

/* The summary keeps its own display: WebKit hangs the disclosure role off
   list-item, and changing it there can cost the control its semantics. The
   marker goes without touching display, and an inner span does the layout. */
.mnu__t {
  position: relative;
  /* the summary stays a list-item for its role, so its line box would otherwise
     add leading around the control and push the mark off centre */
  line-height: 0;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

/* The target is 44px without the bar being 44px tall. The control's own box
   stays the height of its mark and the hit area is cast around it, so adding
   the menu never pushed the header down over the hero behind it. */
.mnu__t::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  min-width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.mnu__tin {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  gap: 10px;
  line-height: 1;
  padding-left: 2px;
}

.mnu__t::-webkit-details-marker {
  display: none;
}

.mnu__t::marker {
  content: "";
}

/* a fixed 18px slot per mark, so a short bar and a full one start on the
   same axis and the row beside them never shifts */
.mnu__i {
  filter: drop-shadow(0 1px 6px var(--mnu-shade));
  display: grid;
  gap: 2px;
  width: 18px;
  flex: none;
}

.mnu__b {
  width: 11px;
  height: 2px;
  border-radius: 1px;
  background: var(--mnu-mark);
  justify-self: start;
  transition: width .26s cubic-bezier(.33, .9, .3, 1), background-color .22s ease;
}

.mnu__b--here {
  width: 18px;
  background: var(--mnu-here);
}

/* only the trigger's own marks extend; the panel's rows keep encoding where
   you are, which is the whole point of them */
.mnu[open] .mnu__i .mnu__b {
  width: 18px;
}

.mnu__w {
  text-shadow: 0 1px 6px var(--mnu-shade);
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--mnu-word);
  transition: color .22s ease;
}

/* Focus and press answer everywhere. Hover is gated behind a device that has
   one, because on a touch screen it latches: tap the control and it stays lit
   until you tap something else. */
.mnu__t:focus-visible .mnu__w,
.mnu__t:active .mnu__w {
  color: var(--mnu-lit);
}

@media (hover: hover) {
  .mnu__t:hover .mnu__w {
    color: var(--mnu-lit);
  }
}

/* one word is in the accessible name at a time, never both */
.mnu[open] .mnu__w--shut,
.mnu:not([open]) .mnu__w--open {
  display: none;
}

/* ---- the panel ---- */

/* A sheet, not a section: it is lifted a step off the page rather than drawn
   with a line, and the bar lifts with it so the two read as one object. A fade
   was tried here first and was wrong, because as soon as the sheet has to
   scroll the fade lands on a live row and the page ghosts through it. */
.mnu__p {
  position: absolute;
  left: calc(-1 * var(--mnu-bleed));
  right: calc(-1 * var(--mnu-bleed));
  top: calc(100% + 16px);
  padding: 6px var(--mnu-gut) 26px;
  background: var(--mnu-surface);
  max-height: calc(100vh - 148px);
  max-height: calc(100dvh - 148px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mnu__l {
  display: grid;
}

.mnu__l a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 56px;
  font-size: 19px;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--mnu-link);
  transition: color .2s ease;
}

.mnu__l a:focus-visible,
.mnu__l a:active {
  color: var(--mnu-lit);
}

@media (hover: hover) {
  .mnu__l a:hover {
    color: var(--mnu-lit);
  }
}

/* Where you are is carried by the type and its own mark, never by a dot tacked
   underneath. Reading it off aria-current means the markup states it once. */
.mnu__l a[aria-current] {
  color: var(--mnu-lit);
}

.mnu__l a[aria-current] .mnu__b {
  width: 18px;
  background: var(--mnu-here);
}

/* an account action, not a seventh section, so it carries no section mark and
   sits off the run of six on its own air */
.mnu__f {
  margin-top: 26px;
}

.mnu__f a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
  color: var(--mnu-word);
  transition: color .2s ease;
}

.mnu__f a:focus-visible,
.mnu__f a:active {
  color: var(--mnu-lit);
}

@media (hover: hover) {
  .mnu__f a:hover {
    color: var(--mnu-lit);
  }
}

/* The six section pages carry a site-wide focus ring; the home page carries
   none, so the component brings its own rather than leaving a new keyboard
   control relying on the browser default over a dark hero. */
.mnu__t:focus-visible,
.mnu__l a:focus-visible,
.mnu__f a:focus-visible {
  outline: 2px solid var(--mnu-ring);
  outline-offset: 3px;
}

/* The entrance moves the sheet only. Opacity stays at 1 the whole way, so a
   transition that never runs still leaves every link fully readable. */
@media (prefers-reduced-motion: no-preference) {
  .mnu__p {
    transition: transform .24s cubic-bezier(.33, .9, .3, 1);
  }

  @starting-style {
    .mnu[open] .mnu__p {
      transform: translateY(-8px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {

  .mnu__b,
  .mnu__w,
  .mnu__l a,
  .mnu__f a {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .site__in {
    position: relative;
  }

  .site__links {
    display: none;
  }

  /* the way back in moves into the panel; the bar keeps only the way in */
  .site__sign {
    display: none;
  }

  .mnu {
    display: block;
  }

  /* Open, the scrim has nothing left to fade into, so it takes the sheet's own
     surface and the two become one object with a single edge at the bottom.
     An opaque sheet must also stop passing clicks through to the page under it.
     The class is set by nav.js; :has covers the no-JavaScript path. */
  .site.is-menu,
  .site:has(.mnu[open]) {
    background: var(--panel);
    pointer-events: auto;
  }

  /* the page behind an open sheet should not travel under it */
  html.is-locked,
  html.is-locked body {
    overflow: hidden;
  }
}

/* Measured, not guessed: the bar needs 377px to hold the wordmark, Apply and a
   worded control on one line, and 329px without the word. Below that the
   wordmark is what breaks, so the word gives up its pixels and keeps its place
   in the accessible name. The hit area is unaffected: it is cast, not measured. */
@media (max-width: 379px) {
  .mnu__w {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
  }
}

/* On paper the control is dead and the sheet is not the page, so neither prints. */
@media print {
  .mnu {
    display: none;
  }
}

/* .site takes a flat 20px gutter below 760, which the bleed token has to follow
   or the sheet hangs off both edges of the viewport. */
@media (max-width: 760px) {
  .mnu {
    --mnu-bleed: 20px;
    --mnu-gut: 20px;
  }
}

/* =========================================================================
   THE FOOT

   The film owns the first screen; this sits under it in ordinary flow. It
   carries the company behind the product and the two documents that govern
   using it, which every other page already carries, so the home page is not
   the one page where they are missing.

   It adds height below the film. main.js measures the film's last composed
   frame against the page minus this, so the ending stays exactly where it
   was composed and the footer is simply what follows it.
   ========================================================================= */

.foot {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: clamp(56px, 7vw, 104px) 0 clamp(32px, 3vw, 56px);
}

.foot__in {
  width: 100%;
  max-width: 1584px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.foot__top {
  display: grid;
  gap: clamp(28px, 3vw, 56px);
  padding-top: clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--hair);
}

@media (min-width: 860px) {
  .foot__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.foot__mark {
  font-size: clamp(18px, 1.5vw, 24px);
  letter-spacing: .02em;
  color: var(--ink);
  margin: 0;
}

.foot__say {
  margin: 10px 0 0;
  max-width: 34ch;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: var(--muted-2);
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(24px, 2.4vw, 40px);
}

.foot__cols div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.foot__cap {
  margin: 0 0 4px;
  font-size: clamp(10px, .78vw, 12px);
  letter-spacing: .12em;
  color: var(--muted);
}

.foot__cols a {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--muted-2);
  text-decoration: none;
  transition: color .22s cubic-bezier(.4, 0, .2, 1);
}

.foot__base {
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 2.6vw, 40px);
  padding-top: clamp(16px, 1.8vw, 26px);
  border-top: 1px solid var(--hair);
}

@media (min-width: 620px) {
  .foot__base {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.foot__c {
  margin: 0;
  font-size: clamp(13px, 1vw, 14px);
  color: var(--muted);
}

.foot__legal {
  display: flex;
  gap: 20px;
  margin: 0;
}

.foot__legal a {
  font-size: clamp(13px, 1vw, 14px);
  color: var(--muted-2);
  text-decoration: none;
  transition: color .22s cubic-bezier(.4, 0, .2, 1);
}

@media (hover: hover) {

  .foot__cols a:hover,
  .foot__legal a:hover {
    color: var(--ink);
  }
}

.foot__cols a:focus-visible,
.foot__legal a:focus-visible {
  color: var(--ink);
}

/* Headings break into lines of even length rather than wherever the line
   runs out, so a narrow screen never strands one word on a line of its own;
   running text avoids a lone last word the same way. */
h1,
h2,
h3 {
  text-wrap: balance
}

p,
li {
  text-wrap: pretty
}

/* SHOPIFY'S APP STORE BADGE. Shopify's own artwork, never restyled: no
   colour, crop, shadow, border or motion of ours on it. It is shown at a
   height Shopify allows, and nothing comes closer to it than half that
   height. In the served document it sits under the opening line; in the
   film it hangs under that line, still, and is switched off when the line
   goes: never faded, moved or scaled. */
.store-badge {
  --badge-h: 44px;
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  display: block;
  height: var(--badge-h);
  width: auto;
}

.store-badge--hero { order: 2 }

.motion .store-badge--hero {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
}

@media (max-width: 759px) {
  .store-badge { --badge-h: 40px }
}

/* The company line and the way to reach it, in the footer's own words: the
   links sit in the sentence, so they are underlined to read as links. */
.foot__say a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.foot__say a:hover,
.foot__say a:focus-visible {
  color: var(--ink);
}

/* ---------- what it is, said plainly (19 Nov) ----------
   The opening line now carries the product's name and job as its heading,
   the slogan under it, and one plain sentence of what VYVO OS does. All three
   are in the served HTML, so a reader, a search engine and an assistant all
   find the same facts the film opens on. */
.line__kick {
  margin: 0 0 .7em;
  font-size: var(--sub);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--ink)
}

.line__def {
  margin: 1em auto 0;
  max-width: 34em;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.5;
  color: var(--muted-2)
}

.line__def .wi {
  white-space: normal
}

.line__def .w {
  display: block;
  vertical-align: top
}

.motion .line--a .line__kick,
.motion .line--a .line__def {
  white-space: normal
}

.motion .line--a .line__def {
  margin-left: 0;
  max-width: 30em;
  font-size: clamp(13px, 1.02vw, 16px)
}

.motion.portrait .line--a .line__def {
  margin-left: auto;
  max-width: 30em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 16px rgba(0, 0, 0, .5)
}

.motion.portrait .line--a .line__kick {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6), 0 2px 16px rgba(0, 0, 0, .5)
}

/* a preview with a person's name in it says it is an example */
.alert__tag {
  display: inline-block;
  margin: 0 0 .8em;
  padding: .15em .55em;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: .72em;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c9cdd0
}

/* and the film says once that its store and numbers are illustrative */
.film-note {
  order: 2;
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted-2);
  text-align: center
}

.motion .film-note {
  position: absolute;
  z-index: 4;
  left: clamp(16px, 2.4vw, 40px);
  bottom: 12px;
  max-width: calc(100% - 32px);
  text-align: left;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7)
}

/* ---------- what it is, below the film ---------- */
.facts {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: clamp(56px, 7vw, 104px) 0 0;
}

.facts__in {
  width: 100%;
  max-width: 1584px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: grid;
  gap: clamp(20px, 3vw, 56px);
}

@media (min-width: 860px) {
  .facts__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: start;
  }
}

.facts__h {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--ink);
}

.facts__body > p {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--muted-2);
}

.facts__go {
  margin: clamp(18px, 1.8vw, 26px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.facts__go a,
.facts__tx summary {
  font-size: clamp(14px, 1vw, 16px);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 4px;
}

.facts__go a:hover,
.facts__go a:focus-visible {
  text-decoration-color: currentColor;
}

.facts__tx {
  margin-top: clamp(22px, 2.2vw, 32px);
}

.facts__tx summary {
  cursor: pointer;
  width: max-content;
  max-width: 100%;
}

.facts__tx p,
.facts__tx ol {
  max-width: 70ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-2);
}

.facts__tx p {
  margin: 14px 0 0;
}

.facts__tx ol {
  margin: 10px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

/* the note keeps its contrast over every plate: a quiet dark backing, and in
   a wide frame it sits in the right third, which the plates keep clear */
.motion .film-note {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(14, 14, 14, .62);
  color: #b9bec2;
  left: auto;
  right: clamp(16px, 2.4vw, 40px)
}

.motion.portrait .film-note {
  left: 16px;
  right: auto
}
