/* Home: the hero and the chapters under it (index.html only).
 *
 * Built 2026-11-28 to an Apple-product-page brief, round 2:
 *   1. One thing per screen: one headline, one sentence at most, one visual,
 *      one action.
 *   2. Every visual is a "plate": a flat magazine page made from real photos
 *      and real try-on cutouts, with at most one line of type on it. The app's
 *      own UI shows once, in Dress, as proof. No stages, glows or bezels.
 *      Cobalt marks the active caption, labels and links; green is only the
 *      try-on scan line.
 *   3. Finished when still, slow when moving: every rule outside the
 *      reduced-motion gates is the finished frame; scene changes land on
 *      the 2.4s bar grid, and nothing is shorter than 600ms.
 * The motion is js/hero.js. */

.hx, .ch {
  --paper: #f4f2ed;
  --ink: #0e0e12;
  --mute: color-mix(in srgb, var(--fg) 72%, transparent);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --scan-green: #1fbf6b;
}

/* -- The hero ----------------------------------------------------------------- */
.hx {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 20px 112px;
  text-align: center;
  background: var(--bg);
}
.hx__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
}
.hx .hx__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 124px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fg);
  text-wrap: balance;
}
.hx__line { display: block; }
.hx .hx__sub {
  margin: 20px 0 0;
  max-width: 32em;
  font: 400 21px/1.4 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--mute);
}
.hx__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.hx__cta .app-store-badge,
.ch__cta .app-store-badge { display: inline-block; line-height: 0; }
.hx__cta .app-store-badge img { display: block; width: auto; height: 48px; }
.hx .hx__free {
  margin: 0;
  font: 400 13px/1 var(--font-body);
  color: color-mix(in srgb, var(--fg) 55%, transparent);
}

/* The plate: one 4:5 page; each scene is a layer of it. */
.hx__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 56px 0 0;
}
.hx__plate {
  position: relative;
  width: 480px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  container-type: inline-size;
}
.hx__scene {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.hx__scene.is-on { opacity: 1; z-index: 1; }
.pl { position: absolute; inset: 0; overflow: hidden; }
.pl--issue { background: var(--ink); }
.pl--paper { background: var(--paper); color: var(--ink); }

/* Layers show on their step (data-at against the scene's data-step). */
.pl__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  opacity: 0;
}
.hx__scene[data-step="0"] [data-at="0"],
.hx__scene[data-step="1"] [data-at="1"],
.hx__scene[data-step="2"] [data-at="2"] { opacity: 1; }
.pl__swap { display: none; }
.hx__scene[data-step="0"] .pl__swap[data-at="0"],
.hx__scene[data-step="1"] .pl__swap[data-at="1"],
.hx__scene[data-step="2"] .pl__swap[data-at="2"] { display: inline; }

/* Type on a plate: a mono line at the corners, the masthead on the cover. */
.pl__mono {
  position: absolute;
  z-index: 4;
  font: 400 11px/1.3 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}
.pl__mono--tl { top: 20px; left: 20px; }
.pl__mono--tr { top: 24px; right: 20px; }
.pl__mono--bl { bottom: 20px; left: 20px; }
.pl__mono--ink { color: var(--ink); }
.pl__mast {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 20px;
  font: 400 22px/1 var(--font-display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--paper);
}
.pl__scrim {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(14, 14, 18, 0), rgba(14, 14, 18, 0.55));
  pointer-events: none;
}
.pl__scrim--top {
  top: 0;
  bottom: auto;
  height: 22%;
  background: linear-gradient(to top, rgba(14, 14, 18, 0), rgba(14, 14, 18, 0.45));
}

/* Scene 2: her, standing still; only the clothes change. */
.pl__fig {
  inset: 4% 0;
  height: 92%;
  object-fit: contain;
  object-position: 50% 100%;
}
.pl__inset {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 20px;
  width: 22%;
  margin: 0;
}
.pl__inset img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
}
.pl__inset figcaption {
  margin-top: 8px;
  font: 400 9px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink);
}
/* The scan line (try-on's green, the only green in the hero). */
.pl__scan,
.to__scan {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--scan-green);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--scan-green) 60%, transparent);
  opacity: 0;
  pointer-events: none;
}

/* Scene 3: the inputs as type, then the look. */
.pl__weather {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pl__weather b {
  font: 400 30cqw/0.9 var(--font-display);
  letter-spacing: 0;
  color: var(--ink);
}
.pl__weather span {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}
.pl__photo { object-position: 50% 12%; z-index: 2; }
.pl__mono--flip { color: var(--ink); transition: color 600ms var(--ease); }
.hx__scene[data-step="2"] .pl__mono--flip { color: var(--paper); }

/* The captions: three words; the active one is paper, the others recede. */
.hx__caps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 40px;
  margin-top: 28px;
}
.hx__cap {
  position: relative;
  padding: 6px 0 12px;
  border: 0;
  background: none;
  font: 400 20px/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 35%, transparent);
  transition: color 600ms ease 300ms;
}
button.hx__cap { cursor: pointer; }
button.hx__cap:hover { color: color-mix(in srgb, var(--fg) 70%, transparent); }
.hx__cap.is-on { color: var(--fg); }
/* One progress line, under the active word, filling as its scene plays. */
.hx__cap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--fill, 0));
}
.hx__cap:not(.is-on)::after { transform: scaleX(0); }

/* Round pause / play, wherever something plays by itself. */
.hx__pause,
.to__pause {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(244, 242, 237, 0.3);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color 200ms ease;
}
.hx__pause:hover,
.to__pause:hover { border-color: rgba(244, 242, 237, 0.6); }
.hx__pause span,
.to__pause span {
  box-sizing: border-box;
  width: 10px;
  height: 12px;
  border-left: 3px solid var(--fg);
  border-right: 3px solid var(--fg);
}
[data-paused="true"] > span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--fg);
}
.hx :focus-visible,
.ch :focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 4px; }

@media (min-width: 1800px) {
  .hx { padding-top: 96px; }
  .hx .hx__sub { font-size: 24px; }
  .hx__stage { margin-top: 64px; }
  .hx__plate { width: 560px; }
}

/* -- Chapters ------------------------------------------------------------------- */
.ch {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 160px 20px;
  text-align: center;
  background: var(--bg);
}
.ch__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
}
.ch .ch__label {
  margin: 0 0 18px;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.ch .ch__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fg);
  text-wrap: balance;
}
.ch .ch__sentence {
  margin: 22px 0 0;
  max-width: 34em;
  font: 400 21px/1.45 var(--font-body);
  color: var(--mute);
  text-wrap: pretty;
}
.ch .ch__link {
  margin-top: 22px;
  font: 400 17px/1.2 var(--font-body);
  color: var(--accent-text);
  text-decoration: none;
}
.ch .ch__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.ch__visual { margin-top: 64px; }
.ch__cta { margin-top: 48px; }
.ch__cta .app-store-badge img { display: block; width: auto; height: 44px; }
.ch__phone {
  position: relative;
  width: 320px;
  aspect-ratio: 780 / 1688;
  border-radius: 13.5% / 6.2%;
  overflow: hidden;
  background: var(--c-neutral-50);
}
.ch__phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(244, 242, 237, 0.14);
  pointer-events: none;
}
.ch__phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* -- It starts with you: four facets, one row each, sides alternating ---------- */
.you { padding-bottom: 140px; }
.facet {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: center;
  width: min(1200px, 100%);
  padding-top: 140px;
  text-align: left;
}
.facet__visual { grid-column: 1 / span 7; grid-row: 1; display: flex; justify-content: center; }
.facet__text { grid-column: 9 / span 4; grid-row: 1; }
.facet--flip .facet__visual { grid-column: 6 / span 7; }
.facet--flip .facet__text { grid-column: 1 / span 4; }
.facet__text h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--fg);
  text-wrap: balance;
}
.facet__text p {
  margin: 18px 0 0;
  max-width: 24em;
  font: 400 19px/1.45 var(--font-body);
  color: var(--mute);
}

/* Shape: one look, four bodies, chosen by word. */
.shape { width: 520px; max-width: 100%; }
.shape__photo {
  position: relative;
  aspect-ratio: 846 / 1024;
  border-radius: 20px;
  overflow: hidden;
  background: var(--c-neutral-50);
}
.shape__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.shape__photo img.is-on { opacity: 1; }
.shape__names,
.to__names-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 22px 0 0;
}
.shape__names > * {
  position: relative;
  padding: 6px 0 12px;
  border: 0;
  background: none;
  font: 400 20px/1 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 35%, transparent);
  transition: color 300ms ease;
}
.shape__names button { cursor: pointer; }
.shape__names button:hover { color: color-mix(in srgb, var(--fg) 70%, transparent); }
.shape__names .is-on { color: var(--fg); }
.shape__names .is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

/* Taste: two liked, one unlikely, and the tally. */
.facet__visual:has(.taste) { flex-direction: column; align-items: center; }
.taste {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.taste li { width: 220px; margin: 0; }
.taste img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}
.taste span {
  display: block;
  margin-top: 14px;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 60%, transparent);
}
.taste__skip img { opacity: 0.3; }
.taste__tally {
  margin: 36px 0 0;
  font: 400 28px/1 var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg);
}

/* Colouring: type only, chips sampled from the app's colour-type card. */
.colouring { text-align: left; }
.colouring__chips { display: flex; gap: 14px; margin: 0 0 32px; }
.colouring__chips i {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(244, 242, 237, 0.12);
}
.colouring__type {
  margin: 0;
  font: 400 clamp(44px, 5vw, 72px)/0.95 var(--font-display);
  text-transform: uppercase;
  color: var(--fg);
}

/* Wardrobe: the outfit, and its pieces filed beside it (crops of the same
   photo: x0, y0, w, h as fractions of it). */
.wardrobe { display: flex; align-items: center; gap: 40px; }
.wardrobe__look {
  display: block;
  width: 320px;
  height: auto;
  aspect-ratio: 900 / 1600;
  object-fit: cover;
  border-radius: 20px;
}
.wardrobe__pieces {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wardrobe__pieces li { display: flex; align-items: center; gap: 18px; margin: 0; }
.wardrobe__pieces li > span:last-child {
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 70%, transparent);
}
.wardrobe__crop {
  position: relative;
  flex: none;
  overflow: hidden;
  border-radius: 12px;
  background: var(--c-neutral-50);
}
.wardrobe__crop img {
  position: absolute;
  display: block;
  max-width: none;
  width: calc(100% / var(--w));
  height: auto;
  left: calc(-100% * var(--x) / var(--w));
  top: calc(-100% * var(--y) / var(--h));
}
.wardrobe__crop--shirt { --x: 0.2; --y: 0.17; --w: 0.6; --h: 0.26; width: 180px; aspect-ratio: 540 / 416; }
.wardrobe__crop--belt { --x: 0.3; --y: 0.36; --w: 0.4; --h: 0.07; width: 180px; aspect-ratio: 360 / 112; }
.wardrobe__crop--trousers { --x: 0.26; --y: 0.41; --w: 0.48; --h: 0.56; width: 140px; aspect-ratio: 432 / 896; }

.you__week {
  margin: 140px 0 0;
  font: 400 28px/1.1 var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
}

/* -- The issue: nine looks, a strip you scroll -------------------------------- */
.strip {
  display: flex;
  gap: 16px;
  width: 100vw;
  margin: 64px 0 0;
  padding: 0 calc(50vw - 150px) 8px;
  box-sizing: border-box;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: none; width: 300px; margin: 0; scroll-snap-align: center; }
.strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 853 / 1024;
  object-fit: cover;
  border-radius: 16px;
  transition: opacity 600ms var(--ease);
}
.strip li.is-off img { opacity: 0.6; }
.strip span {
  display: block;
  margin-top: 14px;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--fg) 55%, transparent);
}

/* -- Try-on: one woman, twelve looks ------------------------------------------- */
.to { width: min(1120px, 100%); margin-top: 64px; }
.to__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 700px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}
.to__photo { justify-self: center; margin: 0; width: 200px; }
.to__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 12px;
}
.to__photo figcaption,
.to__of,
.to__name {
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.to__photo figcaption { margin-top: 12px; text-align: left; }
.to__figs { position: relative; height: 640px; aspect-ratio: 1100 / 1375; }
.to__fig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  opacity: 0;
}
.to__fig.is-on { opacity: 1; }
.to__count {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  min-width: 180px;
}
.to__ns b { display: none; font: 400 56px/1 var(--font-display); }
.to__ns b.is-on { display: block; }
.to__of { color: color-mix(in srgb, var(--ink) 60%, transparent); }
.to__name { display: none; color: var(--ink); }
.to__name.is-on { display: block; }
.to__rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.to__thumbs {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.to__thumbs li { flex: none; margin: 0; }
.to__thumb {
  position: relative;
  display: block;
  width: 64px;
  height: 84px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
}
.to__thumb img {
  position: absolute;
  left: 50%;
  top: -14%;
  height: 210%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}
.to__thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 300ms var(--ease);
}
.to__thumb.is-on::after { transform: scaleX(1); }
.to__note {
  margin: 18px 0 0;
  font: 400 14px/1.4 var(--font-body);
  color: color-mix(in srgb, var(--fg) 55%, transparent);
}

/* -- Dress: the inputs in type, the app as proof ------------------------------- */
.dress { display: flex; align-items: center; justify-content: center; gap: 96px; }
.dress__temp { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
.dress__temp b { font: 400 clamp(120px, 14vw, 200px)/0.85 var(--font-display); color: var(--fg); }
.dress__temp span {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) 60%, transparent);
}

/* -- Motion (only where it is welcome) ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  /* Scenes and photos cross-fade over 2 beats. */
  .hx__scene { transition: opacity 1200ms var(--ease); }
  .pl__layer:not(.pl__fig) { transition: opacity 1200ms var(--ease); }
  .shape__photo img { transition: opacity 600ms var(--ease); }
  /* Try-on: the new look is drawn on behind a scan line, top to bottom,
     while the old one is wiped off below it (js/hero.js sets .is-in / .is-out). */
  .pl__fig.is-in, .to__fig.is-in { opacity: 1; animation: wipe-in var(--wipe, 1200ms) cubic-bezier(0.65, 0, 0.35, 1) both; }
  .pl__fig.is-out, .to__fig.is-out { opacity: 1; animation: wipe-out var(--wipe, 1200ms) cubic-bezier(0.65, 0, 0.35, 1) both; }
  .pl__scan.is-on, .to__scan.is-on { animation: scan-down var(--wipe, 1200ms) cubic-bezier(0.65, 0, 0.35, 1) both; }
  .to { --wipe: 900ms; }
  /* Chapters and facets fade up once as they arrive (js/hero.js adds .is-waiting). */
  .ch > *, .facet { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .ch > :not(.ch__text) { transition-delay: 150ms; }
  .ch.is-waiting > *, .facet.is-waiting { opacity: 0; transform: translateY(16px); }
  /* The wardrobe's pieces are filed one per beat. */
  .wardrobe.is-waiting .wardrobe__pieces li { opacity: 0; transform: translateX(-12px); }
  .wardrobe__pieces li { transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(var(--i) * 600ms + 300ms); }
}
@keyframes wipe-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(100% 0 0 0); } }
@keyframes scan-down { 0% { top: 0; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* -- Tablets: facets stack ---------------------------------------------------------- */
@media (max-width: 991px) {
  .facet { grid-template-columns: minmax(0, 1fr); row-gap: 36px; padding-top: 112px; text-align: center; }
  .facet__visual, .facet--flip .facet__visual { grid-column: 1; grid-row: 1; }
  .facet__text, .facet--flip .facet__text { grid-column: 1; grid-row: 2; }
  .facet__text p { margin-inline: auto; }
  .colouring { text-align: center; }
  .colouring__chips { justify-content: center; }
  .dress { gap: 48px; }
  .to__stage { height: 620px; }
  .to__figs { height: 560px; }
  .to__photo { width: 140px; }
}

/* -- Phones ------------------------------------------------------------------------ */
@media (max-width: 600px) {
  .hx { padding: 40px 20px 80px; }
  .hx .hx__sub { font-size: 17px; line-height: 1.45; }
  .hx__cta .app-store-badge img { height: 44px; }
  .hx__stage { margin-top: 40px; width: 100%; }
  .hx__plate { width: min(350px, 100%); }
  .hx__caps { gap: 14px 16px; }
  .hx__cap { font-size: 16px; }
  .hx__caps::after { content: ""; order: 1; flex-basis: 100%; }
  .hx__pause { order: 2; }

  .ch { padding: 96px 20px; }
  .ch .ch__sentence { font-size: 17px; }
  .ch__visual { margin-top: 48px; }
  .you { padding-bottom: 96px; }
  .facet { padding-top: 88px; }
  .facet__text p { font-size: 17px; }
  .taste { gap: 10px; }
  .taste li { width: calc((100vw - 60px) / 3); }
  .colouring__chips i { width: 48px; height: 48px; }
  .colouring__chips { gap: 10px; }
  .wardrobe { gap: 16px; }
  .wardrobe__look { width: 44vw; }
  .wardrobe__crop--shirt, .wardrobe__crop--belt { width: 26vw; }
  .wardrobe__crop--trousers { width: 20vw; }
  .wardrobe__pieces { gap: 14px; }
  .wardrobe__pieces li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .you__week { margin-top: 96px; font-size: 22px; }
  .strip { padding: 0 calc(50vw - 120px) 8px; }
  .strip li { width: 240px; }
  /* Try-on: a 4:5 panel; the photo in a corner, the count at the foot. */
  .to__stage { display: block; height: auto; aspect-ratio: 4 / 5; }
  .to__figs { position: absolute; left: 50%; bottom: 3%; height: 90%; transform: translateX(-50%); }
  .to__photo { position: absolute; z-index: 2; top: 14px; left: 14px; width: 88px; }
  .to__photo figcaption { margin-top: 6px; font-size: 8px; }
  .to__count { position: absolute; z-index: 2; left: 16px; bottom: 16px; min-width: 0; gap: 6px; }
  .to__ns b { font-size: 28px; }
  .to__rail { justify-content: flex-start; }
  .to__thumbs { scroll-snap-type: x mandatory; }
  .to__thumbs li { scroll-snap-align: start; }
  .dress { flex-direction: column; gap: 40px; }
  .dress__temp { align-items: center; }
  .ch__phone { width: 260px; }
}

/* -- The machine at work: four matrix moments (js/matrix.js, js/hero.js) -----------
 * Only where the app's machine really acts: putting a look on her, digitising
 * a piece, reading you, and the name landing. Every rule outside the gate is
 * the finished frame; nothing here shows under reduced motion. */
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 1. The compile band: code falling inside her silhouette, in a short band
   that rides just above the scan line (the new look's mask; js sets it). */
@property --scan-y { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.mx-band {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-position: 50% 100%;
          mask-position: 50% 100%;
  clip-path: inset(calc(var(--scan-y) - 13%) 0 calc(100% - var(--scan-y)) 0);
}
.pl__band { inset: 4% 0; height: 92%; }
.pl__scan { top: 4%; }

/* 2. Digitised: a piece (or a colour) shown as coarse pixels that sharpen. */
.wardrobe__crop canvas,
.colouring__chips canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: 0;
}
.colouring__chips i { position: relative; overflow: hidden; }
.colouring__chips canvas { border-radius: 50%; }

/* 3. Kicker: the label types on, a block cursor blinks three times and goes. */
.ch .ch__label { position: relative; }

/* 4. The name lands: the header logo is read by its own bar; the end card's
   STYLIN decodes, the FREE pill pops, the bar's glow pulses once. */
.walsh-brand-block { position: relative; }
.scanner { position: absolute; inset: 0; pointer-events: none; }
.scanner canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(var(--ly, 0px) 0 0 0);
}
.scanner__bar {
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(38, 64, 230, 0.8);
}
.scanner__line {
  position: absolute;
  left: -6px;
  right: -6px;
  height: 1px;
  background: rgba(111, 140, 255, 0.7);
  box-shadow: 0 0 8px 1px rgba(111, 140, 255, 0.6);
}
/* While it is read: the paper letters show only above the line, the bar rides it. */
.walsh-brand-block.is-scanning::before { clip-path: inset(0 0 calc(100% - var(--ly, 0px)) 0); }
.walsh-brand-block.is-scanning::after { opacity: 0; }

.end__name {
  position: relative;
  display: inline-block;
  margin: 0 0 28px;
  font: 400 clamp(64px, 8vw, 120px)/0.9 var(--font-display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--fg);
}
/* The bar under LIN, where the logo has it. */
.end__name::after {
  content: "";
  position: absolute;
  right: 0;
  width: 42%;
  bottom: -0.08em;
  height: 0.1em;
  background: var(--accent);
}
.end__free {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 9px 14px 8px;
  border-radius: 999px;
  background: #2640e6;
  color: #f4f2ed;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .mx-band.is-on { opacity: 1; animation: band-down var(--wipe, 1200ms) cubic-bezier(0.65, 0, 0.35, 1) both; }
  .pl__scan.is-on { animation-name: scan-fig; }
  .wardrobe__crop canvas,
  .colouring__chips canvas { opacity: 1; }
  .ch .ch__label.is-typing > .kick { display: inline-block; animation: kick-type 300ms steps(var(--n, 12), end) both; }
  .ch .ch__label.is-typing::after {
    content: "";
    position: absolute;
    left: 100%;
    top: -1px;
    width: 0.6em;
    height: 1.1em;
    margin-left: 6px;
    background: currentColor;
    animation: kick-caret 300ms step-end 300ms 3 both;
  }
  .end.is-waiting .end__free { opacity: 0; }
  .end.is-in .end__free { animation: pill-pop 450ms cubic-bezier(0.34, 1.56, 0.64, 1) 1800ms both; }
  .end.is-in .end__name::after { animation: bar-pulse 1200ms ease-out 2400ms 1 both; }
}
@keyframes band-down { from { --scan-y: 0%; } to { --scan-y: 100%; } }
@keyframes scan-fig { 0% { top: 4%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { top: 96%; opacity: 0; } }
@keyframes kick-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kick-caret { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
@keyframes pill-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes bar-pulse {
  0% { box-shadow: 0 0 0 0 rgba(38, 64, 230, 0); }
  35% { box-shadow: 0 0 28px 6px rgba(111, 140, 255, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(38, 64, 230, 0); }
}
