/* ClaimClout, version 6: the story, with more to do.
   The look is version 4's (one ruled sheet, one typeface, one accent). What is new here:
   - a menu that floats over the page, marks the section being read and shows how far down it is;
   - a first screen with something to type into (the product's link carries into the form);
   - what you get, said once and large, its words coming up as the page scrolls;
   - how it works as ONE band of the brand's colour that stays in place: all five steps stand in
     a list, the one being read is lit, and the picture beside them changes with it;
   - an end where the visitor chooses (kind of videos, how to pay, how much) and sees the price.
   script.js sets a few numbers as the page scrolls (--a and --b on the story, --p on the page);
   everything that moves is drawn from them here. */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* One handwritten face, for two small notes only. */
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15133f;
  --ink-2: rgba(21, 19, 63, .62);
  --line: rgba(21, 19, 63, .1);
  --edge: rgba(21, 19, 63, .24);
  --wash: #f5f6ff;
  --tint: #ecebff;
  --paper: #fff;
  --accent: #3d38f5;
  --accent-deep: #2c27d6;
  /* The one warm colour. On the blue it marks what is the customer's; on white it is only a
     stroke under words, never the colour of words. */
  --sun: #ffd84a;
  --green: #0f9d52;
  --night: #08071a;

  --r: 10px;
  --r-l: 14px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --t1: 160ms;
  --t2: 320ms;

  --pad: 40px;
  /* How wide the sheet is: as it always was on smaller windows, a little wider where there is room. */
  --sheet: clamp(1202px, calc(100vw - 160px), 1360px);
  --display: 560;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body { overflow-x: clip; }

/* The smooth wheel (vendor/lenis.min.js) asks for these. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
/* While a video is open the page cannot scroll, and its scrollbar goes. The room the scrollbar
   took (--bar, measured by script.js; 0 where scrollbars lie over the page) is kept free, or
   the whole page would jump sideways by half of it. */
.lenis.lenis-stopped { overflow: clip; padding-right: var(--bar, 0px); }
.lenis.lenis-stopped .nav { margin-left: calc(var(--bar, 0px) / -2); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
img, video, svg { display: block; }
i { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 60;
  padding: 10px 14px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  transform: translateY(-300%);
}

.skip:focus { transform: none; }

/* A part of the page that the skip link or a menu link went to takes the keyboard without a ring around the whole part. */
section[tabindex="-1"]:focus { outline: 0; }

/* ---------- the sheet: one column between two hairlines, sections ruled off ---------- */

.wrap {
  width: 100%;
  max-width: var(--sheet);
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}

main > section + section { border-top: 1px solid var(--line); }

h1, h2 {
  font-weight: var(--display);
  letter-spacing: -.038em;
  line-height: 1.02;
  text-wrap: balance;
}

h2 { font-size: clamp(30px, 3.5vw, 46px); }

/* No text ends with one word left alone on its last line: every short text breaks into lines of
   about the same length. (The first screen's headline sets its own breaks and is not touched.) */
p, li, h3, dd, label, .step__t, .snt, .qa button { text-wrap: balance; }

.head { padding: 88px var(--pad) 36px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r);
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: var(--display);
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color var(--t1) var(--ease), scale var(--t1) var(--ease);
}

.btn:hover { background: var(--accent-deep); }
.btn:active { scale: .97; }
.btn:focus-visible { outline-color: var(--accent); }
.btn--small { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; }
.btn--wide { width: 100%; }

/* ---------- the menu: three pieces at the top of the page, one once it scrolls ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  translate: -50% 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  width: var(--nav-w, max-content);
  max-width: calc(100vw - 24px);
  white-space: nowrap;
  pointer-events: none;
  transition: width 620ms var(--ease);
}

/* As wide as the page's text while it stands apart (script.js gives the exact widths). */
.nav.is-top { width: var(--nav-w, min(calc(var(--sheet) - 80px), calc(100% - 80px))); }

/* The one pill the pieces join into. It comes up once they have met. */
.nav__bg,
.nav__part::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 2px rgba(21, 19, 63, .05), 0 14px 34px -20px rgba(21, 19, 63, .4);
}

.nav__bg { overflow: hidden; transition: opacity 220ms var(--ease) 300ms; }
.nav.is-top .nav__bg { opacity: 0; transition: opacity 160ms var(--ease); }

/* A piece: its own pill while the menu stands apart. */
.nav__part {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: 54px;
  pointer-events: auto;
}

/* Joining: a piece keeps its own pill until the pieces have met. Parting: it has it back at once. */
.nav__part::before { content: ""; opacity: 0; transition: opacity 220ms var(--ease) 340ms; }
.nav.is-top .nav__part::before { opacity: 1; transition: opacity 160ms var(--ease); }

.nav__part--mark { padding: 0 22px 0 18px; }
/* While apart, the links stand on the page's middle (the two outer pieces differ in width). */
.nav__part--links { padding: 0 8px; transition: translate 620ms var(--ease); }
.nav.is-top .nav__part--links { translate: var(--nav-mid, 0px) 0; }
.nav__part--cta { padding: 0 7px; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: var(--display);
  letter-spacing: -.02em;
}

.mark--small { font-size: 16px; gap: 8px; }
.mark__icon { flex: none; }

/* The name. Its "o" is a play button: a round the height of the small letters, standing on
   their line. "Clout" stands on the stroke that is under "views" on the first screen. */
.wm { letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.wm__u { position: relative; display: inline-block; }
.wm__o { display: inline-block; width: .575em; height: .575em; margin: 0 .034em 0 .036em; vertical-align: -.014em; }
.wm__o svg { display: block; width: 100%; height: 100%; }
.wm__o circle { fill: var(--accent); }
.wm__o path { fill: #fff; stroke: #fff; stroke-width: 5; stroke-linejoin: round; }

.wm__swash {
  position: absolute;
  left: -4%;
  bottom: -.3em;
  width: 109%;
  height: .38em;
  overflow: visible;
  fill: var(--accent);
  pointer-events: none;
}

.nav__links { position: relative; display: flex; gap: 2px; }

.nav__links a {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-2);
  transition: color var(--t1) var(--ease);
}

.nav__links a:hover,
.nav__links a.is-on { color: var(--ink); }

/* The mark behind the section being read: it slides from one link to the next. */
.nav__glide {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: var(--w, 0px);
  translate: var(--x, 0px) 0;
  border-radius: 999px;
  background: var(--tint);
  opacity: 0;
  transition: translate var(--t2) var(--ease), width var(--t2) var(--ease), opacity var(--t1) var(--ease);
}

.nav.has-on .nav__glide { opacity: 1; }

/* How far down the page the reader is. */
.nav__line {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

/* ---------- a video tile ---------- */

.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--r-l);
  background: #e7e8f5;
}

.tile img,
.tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile video { opacity: 0; transition: opacity var(--t2) var(--ease); }
.tile.is-live video { opacity: 1; }

/* The videos are for watching here: a long press on a phone opens no sheet to save a still or a
   video, and neither can be dragged out of the page. (script.js closes the right-click menu.) */
.tile,
.viewer__frame {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.tile img,
.viewer__frame video { -webkit-user-drag: none; }

.tile__play {
  position: absolute;
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(8, 7, 26, .62);
  transition: background-color var(--t1) var(--ease), scale var(--t1) var(--ease);
}

.tile__play::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}

.tile:hover .tile__play,
.tile:focus-visible .tile__play { background: var(--accent); scale: 1.1; }

/* ---------- the two handwritten notes ---------- */

.hand {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  font: 600 25px/1 "Caveat", "Segoe Print", cursive;
  color: var(--accent);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- 1. the first screen ---------- */

.hero__in { display: grid; grid-template-columns: minmax(0, 1fr); }

.hero__text { min-width: 0; padding: 112px 18px 26px; }

h1 {
  font-size: clamp(27px, 8.6vw, 66px);
  line-height: 1;
  letter-spacing: -.042em;
  text-wrap: wrap;
}

h1 > span { display: block; color: var(--ink-2); }

/* The one word the page is about: in the accent, on a stroke drawn a little uphill. */
h1 em { font-style: normal; color: var(--accent); }
h1 b { position: relative; display: inline-block; font-weight: inherit; }

.swash {
  position: absolute;
  left: -4%;
  bottom: -.29em;
  width: 110%;
  height: .38em;
  overflow: visible;
  fill: currentColor;
  pointer-events: none;
}

/* The product's link and the action, as one control. */
.send {
  display: flex;
  gap: 6px;
  max-width: 480px;
  margin-top: 30px;
  padding: 6px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
}

.send:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 56, 245, .14); }

.send input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 0;
  background: none;
  font-size: 17px;
  outline: none;
}

.send input::placeholder { color: var(--ink-2); }
.send .btn { flex: none; min-height: 48px; padding: 0 20px; }

/* The way into the story. */
.cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 500;
}

.cue i {
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  rotate: 45deg;
}

/* Three videos held like a hand of cards: the middle one upright and in front, the two beside it
   a little smaller, turned a few degrees and tucked behind. They drift against each other as the
   page scrolls (--y) and come up one after another at load. */
.hero__reel {
  --y: 0;
  position: relative;
  /* No wider than 444px. The videos' height follows this box's width, and in a wider box they
     stand out of its 300px: over the field above them and over the names below. */
  width: min(100%, 444px);
  height: 300px;
  margin: 8px auto 62px;
}

.hero__reel .tile {
  position: absolute;
  top: 50%;
  width: 31%;
  box-shadow: 0 22px 44px -24px rgba(21, 19, 63, .5);
  transform: translate3d(0, calc(-50% + var(--off) + var(--y) * var(--k) * 1px), 0);
  transition: rotate var(--t2) var(--ease), scale var(--t2) var(--ease);
}

.hero__reel .tile:nth-child(1) { left: 5%; rotate: -5deg; --off: 10px; --k: -.03; }
.hero__reel .tile:nth-child(3) { right: 5%; rotate: 5deg; --off: 16px; --k: -.05; }

.hero__reel .tile:nth-child(2) {
  left: 31%;
  z-index: 1;
  width: 38%;
  --off: -4px;
  --k: -.1;
  box-shadow: 0 30px 60px -28px rgba(21, 19, 63, .6);
}

/* A card under the pointer (or the keyboard) straightens and comes forward. */
.hero__reel .tile:hover,
.hero__reel .tile:focus-visible { z-index: 2; rotate: 0deg; scale: 1.04; }

.hero__reel .tile:nth-child(3) .tile__play { left: auto; right: 10px; }

.hand--reel {
  position: absolute;
  left: 7%;
  bottom: -44px;
  flex-direction: row-reverse;
  rotate: -3deg;
}

/* ---------- the companies we posted videos for: a band of its own, their names large ---------- */

.names { position: relative; isolation: isolate; background: var(--wash); }

/* The same squares as the band further down, drawn faintly and clearest in the middle. */
.names::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(61, 56, 245, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(61, 56, 245, .075) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 58% 130% at 50% 50%, #000 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 130% at 50% 50%, #000 10%, transparent 100%);
  pointer-events: none;
}

.names__in {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 26px 18px 34px;
}

/* "We've worked with": a handwritten line on a gentle curve in the band's top left corner,
   above the companies. Nothing else: no arrow. */
.names__label { line-height: 0; color: var(--accent); }

.names__note {
  display: block;
  width: 197px;
  height: auto;
  overflow: visible;
  rotate: -2deg;
}

/* The typeface's own letter spacing (the title around it is set tight, which these words must
   not take), and the length written in the picture is their true length at this size, so no
   letter is stretched or squeezed. */
.names__note text { font: 600 34px "Caveat", "Segoe Print", cursive; letter-spacing: 0; fill: currentColor; }

.names__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.names__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: var(--display);
  letter-spacing: -.035em;
  line-height: 1.2;
  color: var(--ink);
}

/* Each company's own sign, set in the same small tile, so five different signs read as one row. */
.names__list img {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), 0 7px 14px -9px rgba(21, 19, 63, .5);
}

/* ---------- 2. what you get, said once and large ---------- */

.say .wrap { padding: 52px 18px 58px; }

.say__text {
  max-width: 17.5em;
  font-size: clamp(31px, 4.9vw, 68px);
  font-weight: var(--display);
  letter-spacing: -.042em;
  line-height: 1.07;
}

.say__text strong { font-weight: inherit; color: var(--accent); }
/* "get": the one green word on the page. */
.say__text em { font-style: normal; color: var(--green); }

/* A sentence never starts at the end of a line: one that does not fit after the sentence before
   it moves to the next line whole. In the large statement each sentence has a line of its own. */
.snt { display: inline-block; }
.say__text .snt { display: block; }

/* Each word waits pale and comes up as the page scrolls (script.js sets --o). */
.say__text .w { opacity: var(--o, 1); transition: opacity 180ms linear; }

/* "get." does not wait pale: it is not there, so the sentence seems to end before it. When the
   page reaches it, it pops up into its place; scrolled back above it, it goes again. */
.say__text .w--pop {
  display: inline-block;
  opacity: 0;
  transform: translateY(.2em) scale(.72);
  transform-origin: 50% 90%;
  transition: opacity 120ms linear, transform 160ms ease-in;
}

.say__text .w--pop.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 140ms linear, transform 340ms cubic-bezier(.3, 1.5, .5, 1);
}

/* ---------- 3. how it works: one tall band, what it holds stays in place ---------- */

/* The band is one tall block in the brand's colour, as tall as the scroll its steps take. It
   scrolls with the page like any other part, so its ground of fine squares moves up the screen
   as the wheel turns; what it holds (.story__pin) stays in place meanwhile. It fills the window
   and runs on under the menu. */
.story {
  position: relative;
  --steps: 3;
  /* How far shut the band still is as it comes up the screen (see its ground, below). */
  --shut: calc(1 - var(--open, 1));
  height: calc(100vh + var(--steps) * 44vh);
  height: calc(100svh + var(--steps) * 44svh);
  /* No rule along its top: the band's own edge is the divider. */
  border-top: 0;
}

/* The band's ground: the brand's colour and fine squares, a few of them lit, clearest in the
   middle of its width. It opens as it comes up the screen (--open, set by script.js: 0 when its
   top is at the foot of the screen, 1 once it has arrived): it starts narrower, with rounder
   corners, and widens to its full size. Its foot is square: the fade hangs from it. */
.story::before {
  content: "";
  position: absolute;
  inset: 0 8px;
  background:
    linear-gradient(to right, rgba(61, 56, 245, .5), rgba(61, 56, 245, 0) 28%, rgba(61, 56, 245, 0) 72%, rgba(61, 56, 245, .5)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='896' height='672'%3E%3Cdefs%3E%3Cpattern id='g' width='56' height='56' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 .5H56M.5 0V56' stroke='%23fff' stroke-opacity='.11' fill='none'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23g)'/%3E%3Crect x='113' y='57' width='55' height='55' fill='%23fff' fill-opacity='0.04'/%3E%3Crect x='505' y='1' width='55' height='55' fill='%23fff' fill-opacity='0.06'/%3E%3Crect x='729' y='169' width='55' height='55' fill='%23fff' fill-opacity='0.04'/%3E%3Crect x='281' y='281' width='55' height='55' fill='%23fff' fill-opacity='0.06'/%3E%3Crect x='57' y='449' width='55' height='55' fill='%23fff' fill-opacity='0.04'/%3E%3Crect x='617' y='393' width='55' height='55' fill='%23fff' fill-opacity='0.04'/%3E%3Crect x='393' y='561' width='55' height='55' fill='%23fff' fill-opacity='0.06'/%3E%3Crect x='841' y='505' width='55' height='55' fill='%23fff' fill-opacity='0.04'/%3E%3Crect x='225' y='169' width='55' height='55' fill='%23fff' fill-opacity='0.028'/%3E%3Crect x='561' y='225' width='55' height='55' fill='%23fff' fill-opacity='0.028'/%3E%3C/svg%3E") 50% 100% / 896px 672px,
    var(--accent);
  clip-path: inset(0 calc(var(--shut) * 14%) 0 calc(var(--shut) * 14%) round calc(var(--band-r, 24px) + var(--shut) * 34px) calc(var(--band-r, 24px) + var(--shut) * 34px) 0 0);
  pointer-events: none;
}

/* The band's foot fades out into the page: under its edge a strip of the band's own colour and
   squares runs on and thins to nothing. It hangs from the band's foot and comes up the screen
   with it, over the next part's rules. */
.story__tail {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 100%;
  height: 160px;
  background:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px) calc(50% + 28px) 0 / 56px 56px,
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--accent);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .86) 12%, rgba(0, 0, 0, .66) 25%, rgba(0, 0, 0, .45) 39%, rgba(0, 0, 0, .27) 53%, rgba(0, 0, 0, .13) 66%, rgba(0, 0, 0, .045) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .86) 12%, rgba(0, 0, 0, .66) 25%, rgba(0, 0, 0, .45) 39%, rgba(0, 0, 0, .27) 53%, rgba(0, 0, 0, .13) 66%, rgba(0, 0, 0, .045) 78%, transparent 100%);
  pointer-events: none;
}

/* Room for the fade before the next part's title; the fade is the divider, so no rule there. */
.choose { border-top: 0; }
.choose .head { padding-top: 132px; }

/* What stays in place while the band scrolls: a frame as tall as the window, with room for the
   menu above what it holds. */
.story__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  padding: 76px 8px 8px;
}

/* What the band holds, laid out in that frame: on a phone the picture over the step being read. */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  position: relative;
  color: #fff;
}

/* The steps and the picture come up once the band is half open. */
.band__text,
.stage {
  opacity: clamp(0, calc((var(--open, 1) - .5) * 2.5), 1);
  translate: 0 calc(var(--shut) * 64px);
}

.band :focus-visible { outline-color: #fff; }

.band__label { display: none; }

/* On a phone only the step being read shows, under the picture; five marks say where it is. */
.band__text { padding: 16px 20px 18px; }

.steps { display: grid; grid-template-columns: minmax(0, 1fr); }

.step {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t2) var(--ease);
}

.step.is-on { opacity: 1; pointer-events: auto; }

.step button {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  text-align: left;
  cursor: default;
}

/* The step's number is the large thing in its row: about twice the size of its words, and
   lighter, like the numbers of a list set in print. */
.step__n {
  flex: none;
  font-size: clamp(38px, 11vw, 46px);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .7);
}

.step__t {
  font-size: clamp(20px, 5.6vw, 24px);
  font-weight: var(--display);
  letter-spacing: -.032em;
  line-height: 1.14;
}

.step__more > p:not(.vh) {
  margin-top: 8px;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .82);
}

.dots { display: flex; gap: 6px; margin-top: 16px; }

.dots i {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .28);
  transition: background-color var(--t2) var(--ease);
}

.dots i.is-on { background: var(--sun); }

/* The stage: a white card in the band. Its picture changes with the step. */
.stage {
  order: -1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 0;
  padding: 10px 10px 0;
}

.stage__card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(8, 7, 26, .14), 0 44px 70px -44px rgba(8, 7, 26, .7);
  color: var(--ink);
  container-type: inline-size;
}

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

.stage__cap {
  min-height: 20px;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  color: rgba(255, 255, 255, .8);
}

/* The screen is a window on a wall of fifteen videos. At first the camera is so close that the
   middle one fills it; at step three it pulls back and the others come in around it. */
.screen {
  position: absolute;
  inset: 14px;
  overflow: hidden;
  border-radius: 12px;
}

.world {
  --zoom: calc(1 + 2.09375 * (1 - var(--b, 0)));
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 48 / 49.5;
  translate: -50% 0;
  transform: scale(var(--zoom));
  will-change: transform;
}

.cell {
  position: absolute;
  left: calc(var(--col) * 20.3125%);
  top: calc(var(--row) * 33.8384%);
  width: 18.75%;
  height: 32.3232%;
  aspect-ratio: auto;
  border-radius: 5px;
}

.cell:not(.film) { opacity: clamp(0, calc(var(--b, 0) * 2.4 - .35), 1); }

/* The middle video. At step one only its lower half shows: the product's own screen. */
.film {
  clip-path: inset(calc(52.6% * (1 - var(--a, 0))) 0 0 0 round 5px);
  will-change: clip-path;
}

/* A video in the picture that has the keyboard: a ring drawn inside it, over the video. (The
   band's white ring does not show on the white card, and a ring outside the video is cut by the
   frame.) Its width is divided by the camera's zoom, so it is 3px on screen at every step. */
.cell:focus-visible { outline: 0; }

.cell:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: calc(3px / var(--zoom, 1)) solid var(--accent);
  border-radius: inherit;
  box-shadow: inset 0 0 0 calc(2px / var(--zoom, 1)) #fff;
  pointer-events: none;
}

.film:focus-visible::after { top: calc(52.6% * (1 - var(--a, 0))); }

/* Step two: the one video, drawn as a post on a short-video app. It stands exactly over the
   video while that fills the screen, shows once the whole video is in view (--a) and goes as soon
   as the camera pulls back to the wall (--b). Its sizes are shares of its own box (cqw, cqh), so
   it fits the video at any size. It takes no presses: the video under it still opens. */
.post {
  --seen: calc(clamp(0, calc((var(--a, 0) - .72) * 4), 1) * clamp(0, calc(1 - var(--b, 0) * 6), 1));
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  aspect-ratio: 9 / 16;
  translate: -50% 0;
  /* It shrinks with the video as the camera starts to pull back, so it never stands wider
     than the video under it. (The same sum as the wall's own zoom, as a share of its start.) */
  scale: calc((1 + 2.09375 * (1 - var(--b, 0))) / 3.09375);
  container-type: size;
  overflow: hidden;
  border-radius: 15px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .56), rgba(0, 0, 0, 0) 32%),
    linear-gradient(to bottom, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0) 15%);
  color: #fff;
  opacity: var(--seen);
  pointer-events: none;
}

.post svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.post__top {
  position: absolute;
  left: 5.4cqw;
  right: 5.4cqw;
  top: 3.3cqh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 6.4cqw;
  letter-spacing: -.02em;
  line-height: 1;
}

.post__top b { font-weight: 600; }
.post__top svg { width: 7.8cqw; height: 7.8cqw; }

.post__rail { position: absolute; right: 4.6cqw; bottom: 5.2cqh; display: grid; justify-items: center; gap: 3.2cqh; }
/* Like, comment, share: each sign with the small mark under it where a count stands. The marks
   are blank on purpose, like the name: no figure of ours is written that is not a real one. */
.post__rail span { display: grid; justify-items: center; gap: 1.2cqw; }
.post__rail i { width: 6.4cqw; height: 1.9cqw; border-radius: 99px; background: rgba(255, 255, 255, .86); }
.post__rail svg { width: 8.8cqw; height: 8.8cqw; }
.post__dots circle { fill: currentColor; stroke: none; }

.post__foot { position: absolute; left: 5.4cqw; right: 21cqw; bottom: 4.6cqh; display: grid; gap: 2.6cqw; }
.post__who { display: flex; align-items: center; gap: 2.8cqw; font-size: 4.2cqw; line-height: 1; }
.post__who b { padding: 1.5cqw 3cqw; border: 1px solid rgba(255, 255, 255, .9); border-radius: 2.2cqw; font-weight: 600; }
/* The profile picture: the person in the video, cut from the video's own first frame. */
.post__face { width: 10.4cqw; height: 10.4cqw; flex: none; border: .7cqw solid #fff; border-radius: 50%; background: #2a2a33 url("media/poster/v02.webp") 57.8% 17.5% / 280% auto no-repeat; }
.post__name { width: 20cqw; height: 2.7cqw; border-radius: 99px; background: rgba(255, 255, 255, .94); }
.post__line { height: 2.4cqw; border-radius: 99px; background: rgba(255, 255, 255, .6); }
.post__line--short { width: 56%; }

/* Step one: the link that was sent, over the product it leads to. */
.link {
  position: absolute;
  left: 50%;
  top: 27%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 12px 28px -18px rgba(21, 19, 63, .55);
  font-size: clamp(16px, 3.7cqw, 21px);
  font-weight: 500;
  letter-spacing: -.015em;
  white-space: nowrap;
  opacity: clamp(0, calc(1 - var(--a, 0) * 3.2), 1);
}

.link i { width: 2px; height: 1.15em; background: var(--accent); }
/* The product's own sign beside its address. */
.link__sign { flex: none; width: 1.3em; height: 1.3em; margin: 0 .45em 0 -.3em; border-radius: .32em; }

/* A line from the link down to the product it leads to. */
.screen::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(27% + 31px);
  bottom: calc(47.4% + 10px);
  width: 1.5px;
  margin-left: -.75px;
  background: var(--edge);
  opacity: clamp(0, calc(1 - var(--a, 0) * 3.2), 1);
}

/* ---------- 4. choose, and the price ---------- */

.q { padding: 30px 18px 34px; border-top: 1px solid var(--line); }

.q h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 22px;
  font-weight: var(--display);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.q__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

/* What to expect where the bar stands: the least on the left, the most on the right, and the
   likely figure large in the middle (script.js works the three out and rolls their digits).
   Here, for a narrow screen: the likely figure on top, the other two side by side under it.
   Type sizes are shares of the block's own width (cqw), so each line always fits whole and the
   bar under it never moves. */
.q { container-type: inline-size; }

.views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "mid mid" "unit unit" "min max";
  margin-top: 20px;
  font-variant-numeric: tabular-nums;
}

/* A cell: its label, and right under it its figure. */
.views__cell { display: grid; gap: 3px; }
.views__k { font-size: 15px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; }
.views__n { font-weight: var(--display); letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.views__u { grid-area: unit; justify-self: center; display: flex; align-items: center; gap: .36em; margin-top: 3px; font-size: 17px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
/* The eye: the sign for views, before the words. */
.views__eye { flex: none; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.views__cell--mid { grid-area: mid; justify-items: center; }
.views__cell--mid .views__n { font-size: clamp(32px, 13cqw, 60px); }

.views__cell--min { grid-area: min; margin-top: 16px; }
.views__cell--max { grid-area: max; margin-top: 16px; justify-items: end; }
.views__cell--min .views__n, .views__cell--max .views__n { font-size: clamp(18px, 6.4cqw, 28px); color: rgba(21, 19, 63, .76); }

/* A figure whose characters change one by one (script.js): each stands in its own column, and a
   column shows only what is inside its own line. */
.roll { display: inline-flex; align-items: baseline; }
.roll__c { display: inline-grid; clip-path: inset(-.08em -1px); }
.roll__c > span { grid-area: 1 / 1; }
/* A column that is opening or closing shows nothing beyond its own width. */
.roll__c.is-moving { clip-path: inset(-.08em 0); }

.slide { position: relative; }

/* The handle moves with the pointer and rests on the nearest stop when let go (script.js).
   --fill is how far along it is, 0 to 1; the colour ends under the handle's middle. */
.range {
  --fill: .2857;
  --thumb: 28px;
  display: block;
  width: 100%;
  height: 34px;
  margin: 14px 0 0;
  padding: 0;
  background: none;
  cursor: grab;
  touch-action: pan-y;
  -webkit-appearance: none;
  appearance: none;
}

.range:active { cursor: grabbing; }

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0 calc(var(--thumb) / 2 + var(--fill) * (100% - var(--thumb))), #e1e2ee 0);
}

.range::-moz-range-track { height: 6px; border-radius: 99px; background: #e1e2ee; }
.range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }

.range::-webkit-slider-thumb {
  width: var(--thumb);
  height: var(--thumb);
  margin-top: -11px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(61, 56, 245, .28);
  -webkit-appearance: none;
  appearance: none;
  transition: scale var(--t1) var(--ease);
}

.range:hover::-webkit-slider-thumb,
.range:active::-webkit-slider-thumb { scale: 1.12; }

.range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fff;
}

.range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 99px; }

/* "drag it", until it has been dragged. */
.hand--slide {
  position: absolute;
  right: 9%;
  top: calc(100% - 2px);
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 6px;
  rotate: -2deg;
  transition: opacity var(--t2) var(--ease);
}

/* It stands under the bar now (the figures stand above it), so its arrow points up. */
.hand--slide svg { scale: 1 -1; }

.slide.is-used .hand--slide { opacity: 0; }

/* The campaign as chosen and its price: the one card in the brand's colour, on the wash. It is
   what this part of the page is for, so it is the largest and loudest thing in it. */
.quote {
  padding: 22px 18px 34px;
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.quote__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(21, 19, 63, .12), 0 34px 56px -38px rgba(61, 56, 245, .62);
  color: #fff;
  container-type: inline-size;
}

/* The card has two parts, so the price and the next step read apart: the price on the brand's
   colour, and under a line the button on a deeper shade of it. */
.quote__top { padding: 28px 24px 24px; }

.quote__act {
  padding: 22px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: rgba(8, 7, 26, .17);
}

/* The band's squares again, faint, clearest toward the top corner. */
.quote__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 100% 0;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 100% 0, #000 15%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 85% at 100% 0, #000 15%, transparent 100%);
  pointer-events: none;
}

.quote__label {
  font-size: clamp(19px, 5.4cqw, 24px);
  font-weight: var(--display);
  letter-spacing: -.025em;
  line-height: 1.2;
}

/* What it costs: one range, always on one line. The type is as large as the card's width lets
   the longest range be ("$30,000 to $70,000" is 7.24 times the type size wide, plus the "to" and
   the gaps), so the line never breaks and the card never changes height as the bar moves. */
.quote__price {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0 clamp(8px, 2.6cqw, 12px);
  margin-top: clamp(16px, 5cqw, 24px);
  white-space: nowrap;
}

.quote__price output,
.quote__talk {
  font-size: clamp(24px, calc(13cqw - 10px), 54px);
  font-weight: var(--display);
  letter-spacing: -.05em;
  line-height: 1.12;
  font-variant-numeric: tabular-nums;
}

.quote__price > span { font-size: clamp(16px, 4.6cqw, 20px); color: rgba(255, 255, 255, .76); }

/* What the range is, and where the exact figure comes. */
.quote__rate { margin-top: 12px; font-size: 16px; line-height: 1.45; color: rgba(255, 255, 255, .8); }

/* Under its title the card says one of two things: the price range, or, for a campaign too
   large to price on a page (script.js puts is-talk on the card), to talk to us. The two stand
   in the same place, so the card is as tall with one as with the other. The one that leaves
   is gone before the other shows, so the two are never read through each other; the words
   rise in as the figures do when the bar goes up, and the price comes back down from above
   when the bar goes back. */
.quote__says { display: grid; }
.quote__say { grid-area: 1 / 1; transition: opacity 200ms linear 110ms, translate 300ms var(--ease) 110ms, visibility 0s; }
.quote__say--talk,
.quote__card.is-talk .quote__say--price { opacity: 0; visibility: hidden; transition: opacity 120ms linear, translate 200ms var(--ease), visibility 0s linear 120ms; }
.quote__say--talk { translate: 0 7px; }
.quote__card.is-talk .quote__say--price { translate: 0 -7px; }
.quote__card.is-talk .quote__say--talk { opacity: 1; visibility: visible; translate: none; transition: opacity 200ms linear 110ms, translate 300ms var(--ease) 110ms, visibility 0s; }

/* The words that stand where the price stood: its size and its line. */
.quote__talk { margin-top: clamp(16px, 5cqw, 24px); letter-spacing: -.04em; white-space: nowrap; }

/* On the brand's colour the button is white. */
.quote .btn {
  min-height: 56px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 17px;
}

.quote .btn:hover { background: var(--tint); }
.quote .btn:focus-visible { outline-color: #fff; }
.quote__small { margin-top: 14px; font-size: 14px; line-height: 20px; text-align: center; color: rgba(255, 255, 255, .8); }

/* ---------- a little yellow ---------- */

/* "Your" in the card's title. */
.quote__label span { color: var(--sun); }

/* "potential customers" in the last step, once that step is the one being read. */
.step__t em { font-style: normal; transition: color var(--t2) var(--ease); }
.step.is-on .step__t em { color: var(--sun); }

/* On white: a stroke under the words (the same stroke as under "views"), behind the letters. */
#pay-h { display: block; position: relative; isolation: isolate; }

.sun { position: relative; display: inline-block; white-space: nowrap; }

.sun::after {
  content: "";
  position: absolute;
  left: -1.5%;
  right: -2.5%;
  bottom: -.2em;
  z-index: -1;
  height: .42em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath fill='%23ffd84a' d='M2 13C40 6 120 1 198 3 130 12 50 20 5 22Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}

/* ---------- 5. questions ---------- */

.faq .head { padding-bottom: 22px; }

.faq__help { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.faq__help a { border-bottom: 1px solid var(--edge); color: var(--ink); transition: border-color var(--t1) var(--ease); }
.faq__help a:hover { border-color: var(--accent); }

.faq__list { margin: 0 18px 56px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font: inherit; }

.qa button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 66px;
  padding: 16px 2px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.3;
  text-align: left;
  transition: color var(--t1) var(--ease);
}

.qa button:hover { color: var(--accent); }

/* A plus that turns into a minus, in a small round. */
.qa button i {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wash);
  transition: background-color var(--t1) var(--ease);
}

.qa.is-open button i { background: var(--tint); }

.qa button i::before,
.qa button i::after {
  content: "";
  position: absolute;
  inset: 14px 9px auto 9px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: rotate var(--t2) var(--ease);
}

.qa button i::after { rotate: 90deg; }
.qa.is-open button i::after { rotate: 0deg; }

.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms var(--ease);
}

.qa__a > p {
  min-height: 0;
  max-width: 34em;
  overflow: hidden;
  padding-inline: 2px 44px;
  color: var(--ink-2);
  visibility: hidden;
  transition: visibility 0s 380ms;
}

.qa__a > p::after { content: ""; display: block; height: 22px; }

/* The platforms we post on, each with its own sign beside its name. */
.plats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 10px; color: var(--ink); }
.plat { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.plat svg { flex: none; width: 21px; height: 21px; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a > p { visibility: visible; transition-delay: 0s; }

/* ---------- 6. the ask ---------- */

.contact { background: var(--wash); }
.contact__text { padding: 56px 18px 8px; }
.contact__text p { margin-top: 14px; font-size: 18px; color: var(--ink-2); }

.contact__mail {
  display: inline-block;
  margin-top: 22px;
  border-bottom: 1px solid var(--edge);
  font-size: 18px;
}

.form { display: grid; gap: 18px; padding: 26px 18px 60px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }

.form label {
  display: block;
  font-size: 15px;
  font-weight: var(--display);
}

.form label input,
.form label textarea { display: block; margin-top: 8px; }

.form label span { font-weight: 400; color: var(--ink-2); }

.form input,
.form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  background: var(--paper);
  font-size: 17px;
  font-weight: 400;
  transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
}

.form textarea { min-height: 116px; resize: vertical; }

.form input:focus-visible,
.form textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(61, 56, 245, .14); }

.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__end p { font-size: 14px; color: var(--ink-2); }
.form__end a { border-bottom: 1px solid var(--edge); color: var(--ink); }
.form__error { font-size: 15px; color: #b3261e; }
.form__error a { border-bottom: 1px solid currentColor; }
.form__sent { font-size: 18px; font-weight: var(--display); }

/* ---------- the foot ---------- */

.foot { border-top: 1px solid var(--line); }

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding: 24px 18px 28px;
  font-size: 14px;
  color: var(--ink-2);
}

.foot .mark { color: var(--ink); }
.foot__date { margin-left: auto; }

/* ---------- a video opened large ---------- */

.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: rgba(8, 7, 26, .94);
  color: #fff;
}

.viewer::backdrop { background: none; }
.viewer[open] { display: grid; place-items: center; animation: fade var(--t2) var(--ease); }
.viewer[open] .viewer__frame { animation: rise 420ms var(--ease); }

.viewer__in { display: grid; justify-items: center; gap: 16px; }

.viewer__frame {
  position: relative;
  height: min(80vh, calc((100vw - 40px) * 16 / 9));
  height: min(80svh, calc((100vw - 40px) * 16 / 9));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 50px 90px -50px #000;
}

.viewer__frame video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* A little shade along the top, so the two buttons read on any video. */
.viewer__frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 96px;
  background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.viewer__bar {
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: #fff;
  transform: scaleX(var(--played, 0));
  transform-origin: 0 50%;
}

/* While the opened video waits for more of itself (a slow connection), a ring turns over its
   still picture. It comes up after a moment, so a video that starts at once never shows it. */
.viewer__frame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 3px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  border-radius: 50%;
  background: rgba(18, 18, 24, .52);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t1) linear;
}

.viewer.is-waiting .viewer__frame::after { opacity: 1; transition-delay: 450ms; animation: turn 800ms linear infinite; }

.viewer__tools { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 8px; }

.viewer__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 24, .52);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  transition: background-color var(--t1) var(--ease), scale var(--t1) var(--ease);
}

.viewer__btn:hover { background: rgba(18, 18, 24, .78); }
.viewer__btn:active { scale: .94; }
.viewer__btn .off,
.viewer__btn[aria-pressed="false"] .on { display: none; }
.viewer__btn[aria-pressed="false"] .off { display: inline; }

.viewer__product { font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .66); }
.viewer__product b { font-weight: 500; color: #fff; }

.viewer :focus-visible { outline-color: #fff; }

/* ---------- wide screens ---------- */

@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .hero__text {
    display: grid;
    align-content: center;
    justify-items: start;
    height: 100%;
    padding: 150px var(--pad) 96px;
    border-right: 1px solid var(--line);
  }

  h1 { font-size: clamp(40px, 3.9vw, 56px); }
  .send { width: 100%; margin-top: 36px; }
  .cue { margin-top: 16px; }

  .hero__reel {
    align-self: center;
    aspect-ratio: 5 / 4;
    width: 100%;
    height: auto;
    margin: 104px 0 76px;
  }

  .hero__reel .tile:nth-child(1) { --off: 22px; }
  .hero__reel .tile:nth-child(2) { --off: -22px; }
  .hero__reel .tile:nth-child(3) { --off: 40px; }
  .hand--reel { left: 9%; bottom: -34px; font-size: 27px; }

  /* The handwritten words at the top left, and under them the companies on one line from the
     page's left edge to its right, the room between them shared out evenly. Every size in that
     line is a share of the line's own width (1cqw is a hundredth of it) up to its full size,
     and the companies take three quarters of it at most, so they stay on one line at any window
     width. The px value that comes first is for a browser that does not know cqw. */
  .names__in { container-type: inline-size; gap: 6px; padding: 18px var(--pad) 32px; }
  /* The first letter stands on the line of the first sign's left edge. */
  .names__label { margin-left: -5px; }
  .names__note { width: 240px; width: min(19.5cqw, 240px); }
  .names__list { justify-self: stretch; flex-wrap: nowrap; justify-content: space-between; gap: 0; }
  .names__list li { gap: min(1.167cqw, 14px); font-size: min(2.58cqw, 31px); white-space: nowrap; }
  .names__list img { width: min(3.667cqw, 44px); height: min(3.667cqw, 44px); border-radius: min(1cqw, 12px); }

  .say .wrap { padding: 92px var(--pad) 100px; }

  /* The band fills the window while its steps are read. --band-h is the room its picture has:
     the window less the menu's strip above and the frame's foot. */
  .story { --band-h: calc(100vh - 92px); --band-r: 28px; }
  .story::before { inset: 0 12px; }
  .story__pin { padding: 80px 12px 12px; }
  .story__tail { left: 12px; right: 12px; height: 240px; }
  .choose .head { padding-top: 168px; }

  /* The band runs the window's width. Its picture ends on the page's own column; the steps stand
     a little further out to the left, clear of the picture, so each one fits on a single line. */
  .band {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    column-gap: clamp(40px, 6.6vw, 88px);
    padding-inline: max(40px, calc((100vw - var(--sheet)) / 2 - 36px)) max(40px, calc((100vw - var(--sheet)) / 2 + 28px));
  }

  .band__text { align-self: center; padding: 40px 0; }

  /* The band's title, set like the page's other titles, in white. */
  .band__label {
    display: block;
    margin-bottom: clamp(22px, 2.3vw, 34px);
    font-size: clamp(30px, 3.1vw, 44px);
    color: #fff;
  }

  /* All five steps stand in a list with a rail beside them; the one being read opens. */
  .steps { position: relative; display: block; padding-left: 28px; }

  .steps::before,
  .steps::after {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .24);
  }

  .steps::after { background: var(--sun); transform: scaleY(var(--sp, 0)); transform-origin: 50% 0; }

  .step { opacity: 1; pointer-events: auto; }

  .step button {
    gap: clamp(14px, 1.4vw, 20px);
    padding: 10px 0;
    color: rgba(255, 255, 255, .48);
    cursor: pointer;
    transition: color var(--t2) var(--ease);
  }

  .step button:hover,
  .step.is-on button { color: #fff; }

  /* The numbers stand in a column of their own width, so the steps' words start on one line. */
  .step__n { width: .62em; font-size: clamp(38px, 3.7vw, 54px); color: inherit; transition: color var(--t2) var(--ease); }
  .step.is-on .step__n { color: var(--sun); }
  .step__t { font-size: clamp(20px, 1.85vw, 27px); }

  .step__more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 520ms var(--ease);
  }

  .step__more > p:not(.vh) {
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
    padding-left: calc(1.1em * 15 / 17 + 16px);
    font-size: 17px;
  }

  .step__more > p:not(.vh)::after { content: ""; display: block; height: 12px; }
  .step.is-on .step__more { grid-template-rows: 1fr; }
  .dots { display: none; }

  /* The picture is a card of its own size, not the whole half: it stands at the right edge of
     the page's column, in the middle of the band's height, with the squares around it. */
  .stage { order: 0; grid-template-rows: auto auto; align-content: center; justify-items: end; gap: 14px; padding: 22px 0 16px; }

  .stage__card {
    /* As tall as the band allows, with the small line under it and a little room, and as wide
       as that height makes it (it keeps its shape). */
    width: min(100%, 600px, calc((var(--band-h) - 104px) * 30 / 31));
    aspect-ratio: 30 / 31;
    border-radius: 22px;
  }

  /* The small line under the card is as wide as the card, so it stands centred under it. */
  .stage__cap { width: min(100%, 600px, calc((var(--band-h) - 104px) * 30 / 31)); font-size: 14px; }
  .screen { inset: 20px; }

  .choose__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
  /* The one question stands in the middle of its side, beside the card. */
  .choose__qs { display: grid; align-content: center; }
  /* One line: the least, the likely figure in the exact middle, the most. */
  /* The three figures stand on one line of writing (the last line of each cell), so the two
     small ones sit level with the large one and each keeps its label right above it. */
  .views { grid-template-columns: 1fr auto 1fr; grid-template-areas: "min mid max" ". unit ."; align-items: end; align-items: last baseline; column-gap: 3cqw; margin-top: 22px; }
  .views__cell--min, .views__cell--max { margin-top: 0; }
  .views__cell--mid .views__n { font-size: clamp(34px, 9.4cqw, 60px); }
  .views__cell--min .views__n, .views__cell--max .views__n { font-size: clamp(17px, 4.3cqw, 28px); }
  .q { padding: 40px var(--pad) 46px; }
  .q:first-child { border-top: 0; }

  /* The card stays in view beside the choices while they are made. */
  .quote { padding: 40px 32px 46px; border-top: 0; border-left: 1px solid var(--line); }
  .quote__card { position: sticky; top: 96px; }
  .quote__top { padding: 38px 36px 32px; }
  .quote__act { padding: 28px 36px 28px; }
  /* The card's sides are wider here, so the longest range needs slightly smaller type to fit. */
  .quote__price output, .quote__talk { font-size: clamp(24px, calc(13cqw - 13.5px), 54px); }

  .faq__in { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); align-items: start; }
  /* The title and its note stand together and follow the scroll down the list. Where the list
     ends they let go, with the note's last line level with the last question's rule: the list
     ends 80px above the section's foot, and a line's letters stand 7.5px above the line's foot. */
  .faq .head { position: sticky; top: 104px; margin-top: 68px; padding: 0 var(--pad) 72.5px; }

  /* On a tall window the page would end before the two could meet, so its last part grows just
     enough for the page to scroll that far (--faq-end: what stands above and below it then). */
  .contact { --faq-end: 392px; min-height: calc(100vh - var(--faq-end)); min-height: calc(100svh - var(--faq-end)); }
  .faq__help { margin-top: 16px; font-size: 17px; }
  .faq__list { margin: 76px var(--pad) 80px 0; }

  /* The ruled sheet is as tall as the part itself (script.js may make the part taller), so its
     rules run down to the foot. */
  .contact { display: grid; }
  .contact__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .contact__text { padding: 68px var(--pad); }
  .form { align-content: start; padding: 68px var(--pad); border-left: 1px solid var(--line); }
  .form__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .foot__in { padding: 26px var(--pad); }
}

/* ---------- phones: the sheet stands a little in from the edges ---------- */

@media (max-width: 899.98px) {
  .wrap { width: auto; margin-inline: 12px; }
  .nav__part--links { display: none; }
  .nav__part--mark { padding: 0 18px 0 16px; }
  /* Before script.js has measured: the same width it will set (the two pieces are 272px, and it
     keeps 8px between them), so the pieces do not slide at load. */
  .nav.is-top { width: var(--nav-w, max(calc(100vw - 60px), 280px)); }
  .head { padding: 56px 18px 26px; }
  .hand--slide { display: none; }
}

/* ---------- what moves by itself ---------- */

@media (prefers-reduced-motion: no-preference) {
  .names.will-in:not(.is-in) .names__label,
  .names.will-in:not(.is-in) .names__list li { opacity: 0; translate: 0 14px; }

  .names.is-in .names__label,
  .names.is-in .names__list li {
    transition: opacity 640ms var(--ease), translate 640ms var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .swash { animation: swash 760ms var(--ease) 560ms backwards; }
  .hero__reel .tile { animation: come 900ms var(--ease) both; }
  .hero__reel .tile:nth-child(1) { animation-delay: 80ms; }
  .hero__reel .tile:nth-child(2) { animation-delay: 200ms; }
  .hero__reel .tile:nth-child(3) { animation-delay: 320ms; }
  .hero__text > * { animation: come 800ms var(--ease) both; }
  .hero__text > .send { animation-delay: 100ms; }
  .hero__text > .cue { animation-delay: 180ms; }
  .hand--reel { animation: come 700ms var(--ease) 900ms both; }
  .cue i { animation: nudge 1.8s var(--ease) infinite; }
  .link i { animation: blink 1s steps(2, jump-none) infinite; }
}

@keyframes come { from { opacity: 0; translate: 0 26px; } }
@keyframes nudge { 50% { translate: 0 5px; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes swash { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pane { from { opacity: 0; translate: 0 8px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 24px; scale: .97; } }
@keyframes turn { to { rotate: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .quote__say { transition-delay: 0s !important; }
}
