/* AVÉLIS — plain CSS, no build step.
   Contents: tokens · base · type and links · header · menu · hero · bands · phone and tablet compositions ·
   desktop compositions · film · closing · status · motion.

   Desktop compositions (960 px and up) are the approved concept board, drawn in board pixels:
   --u is one board pixel, so "56 × --u" means 56 px on the 1440 px board at any width up to 1920. */

/* ------------------------------------------------------------------ tokens */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sky: #A9C2CF;
  --sky-floor: #98B4C3;
  --sand: #C9B49B;
  --green: #1A3A2F;
  --ivory: #F4EFE5;
  --cream: #EDE3D4;
  --ink: #1D1917;
  --reveal: #141210;        /* the dark reveal's own backdrop: must match exactly */
  --terracotta: #A2442A;
  --burgundy: #68101D;      /* in the palette; not used, terracotta was chosen for the lipstick band */
  --gold: #B69A61;          /* hairlines only on light colours: 2.35:1 on ivory */
  --violet: #4B2BFF;        /* wordmark and the film's end card */

  --lipstick: var(--terracotta);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Didot, "Bodoni 72", "Bodoni MT", "Hoefler Text", Baskerville, Georgia, "Times New Roman", serif;

  --u: calc(min(100cqw, 1920px) / 1440);
  --gutter: clamp(20px, 5.4vw, 48px);
  --header-h: 72px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--reveal);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html:has(dialog[open]) { overflow: hidden; }
main { display: block; container-type: inline-size; }
img, video, svg { display: block; }
img { max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
a, button, input, summary { scroll-margin-top: calc(var(--header-h) + 12px); }   /* keyboard focus never lands behind the fixed header */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 40;
  padding: 14px 18px;
  background: var(--ivory);
  color: var(--ink);
  font-size: .875rem;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* ------------------------------------------------------------------ type and links */
.d {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.012em;
}
.l {
  margin: 0;
  font-size: clamp(10.5px, calc(11.5 * var(--u)), 14px);
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.t {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 30ch;
}
.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: opacity .2s ease, transform .16s var(--ease-out);
}
.link:active { transform: scale(.98); opacity: .7; }
@media (hover: hover) { .link:hover { opacity: .68; } }

.spec {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.spec span:last-child { opacity: .78; }
.band--lipstick .spec span:last-child { opacity: 1; }   /* terracotta needs full ivory to reach 4.5:1 at this size */
.acts { display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: 6px; }

.disclosure {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ivory);
  opacity: .76;
}

/* Quiet text control: a play or pause button that never sits over the middle of a film. */
.control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.control svg { width: 9px; height: 9px; fill: currentColor; flex: none; }
.control:active { opacity: .6; }
.control[disabled] { cursor: default; opacity: .7; }
@media (hover: hover) { .control:not([disabled]):hover { opacity: .68; } }

/* ------------------------------------------------------------------ header */
.site-header {
  position: absolute;     /* without JavaScript it simply scrolls away with the film */
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding-inline: var(--gutter);
  color: #fff;
}
.js .site-header { position: fixed; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(244, 239, 229, .985);
  box-shadow: 0 1px 0 rgba(29, 25, 23, .08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .35s ease;
}
.site-header.is-solid { color: var(--ink); }
.site-header.is-solid::before { opacity: 1; }

.brand {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  flex: none;
  transition: opacity .25s ease;
}
.brand img { width: auto; height: 19px; transition: opacity .35s ease; }
.brand__violet { position: absolute; left: 0; top: 50%; translate: 0 -50%; opacity: 0; }
.is-solid .brand__white { opacity: 0; }
.is-solid .brand__violet { opacity: 1; }

.site-nav { display: none; gap: 40px; margin-left: auto; }
.site-nav a, .tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.site-nav a:active, .tool:active { opacity: .6; }
@media (hover: hover) { .site-nav a:hover, .tool:hover { opacity: .68; } }
.tool { justify-content: flex-end; }
.tool__count { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.site-tools { display: flex; align-items: center; gap: 20px; }

/* ------------------------------------------------------------------ menu (phones and portrait tablets) */
.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
  border: 0;
  background: var(--ivory);
  color: var(--ink);
  opacity: 0;
  translate: 0 12px;
  transition: opacity .32s var(--ease-out), translate .32s var(--ease-out), overlay .32s allow-discrete, display .32s allow-discrete;
}
.menu[open] {
  display: flex;
  flex-direction: column;
  opacity: 1;
  translate: 0 0;
}
@starting-style { .menu[open] { opacity: 0; translate: 0 12px; } }
.menu::backdrop { background: transparent; }
.menu__close { align-self: flex-end; height: var(--header-h); }
.menu nav { display: flex; flex-direction: column; gap: 8px; margin-block: auto; }
.menu nav a {
  display: flex;
  align-items: center;
  min-height: 64px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 13.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  text-decoration: none;
}
.menu__note { margin: 0; font-size: 12.5px; line-height: 1.5; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: var(--reveal);
  color: var(--ivory);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .35s ease;
}
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 18, 16, .66), rgba(20, 18, 16, .6) 48px, rgba(20, 18, 16, 0) 130px),
    linear-gradient(to top, rgba(20, 18, 16, .84), rgba(20, 18, 16, .68) 250px, rgba(20, 18, 16, 0) 420px);
  transition: opacity .3s ease;
}
.hero__copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: max(28px, env(safe-area-inset-bottom));
}
.hero h1 {
  font-size: clamp(2.5rem, 11.7vw, 4.5rem);
  max-width: 12em;
  margin-bottom: 14px;
  transition: opacity .3s ease;
}
.hero__aside {
  position: absolute;
  right: var(--gutter);
  bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero__label { display: none; font-size: 11.5px; }
@media (max-width: 359.98px) { .hero__cta { letter-spacing: .13em; } }   /* keeps the CTA clear of Pause on the same line */

/* Portrait screens. A full-height crop shows about a quarter of the film's width, which would cut the wordmark, so:
   the film stays cropped until its hard cut to violet (frame 745), then pulls back at that exact moment.
   The page behind turns the same violet, so the whole end card fills the screen and nothing is skipped. */
@media (max-aspect-ratio: 5/6) {
  html:not(.js) .hero__video { object-fit: contain; }
  /* Canvas reads the end card as (76, 43, 255) but Chrome paints the video up to 9 levels lighter on screen, so the page sits between the two. */
  .is-endcard .hero { background: #502FFF; }
  .is-endcard .hero__video {
    object-fit: contain;
    transform: scale(2);    /* the wordmark spans 36 % of the frame: this makes it 72 % of the screen, complete */
    /* Feathers the frame's real edge (half its height is 28.125vw before scaling) into the page, so that a browser
       drawing video colour slightly differently from CSS colour can never show a rectangle. */
    --feather: linear-gradient(to bottom, transparent calc(50% - 28.125vw), #000 calc(50% - 7vw), #000 calc(50% + 7vw), transparent calc(50% + 28.125vw));
    -webkit-mask-image: var(--feather);
    mask-image: var(--feather);
  }
  .is-endcard .hero__shade, .is-endcard .hero h1 { opacity: 0; }
  .is-endcard .site-header:not(.is-solid) .brand { opacity: 0; }
  .is-closing .hero__video { opacity: 0; transition: opacity .25s ease; }
}

/* ------------------------------------------------------------------ bands */
.band { position: relative; overflow: hidden; }
.band--sky { background: var(--sky); }
.band--sky-floor { background: linear-gradient(var(--sky) 0 58%, var(--sky-floor) 84%); }
.band--lipstick { background: var(--lipstick); color: var(--ivory); }
.band--sand { background: var(--sand); }
.band--green { background: var(--green); color: var(--ivory); }
.band--reveal { background: var(--reveal); color: var(--ivory); }
.band--ivory { background: var(--ivory); }

/* ------------------------------------------------------------------ phone and tablet compositions */
@media (max-width: 959.98px) {
  .comp {
    display: flex;
    flex-direction: column;
    padding: 72px var(--gutter);
  }
  .comp__line { font-size: clamp(2.5rem, 12.6vw, 5.5rem); }
  .comp__label { margin-bottom: 20px; font-size: 11px; }
  .buy { margin-top: 28px; }

  /* Hydrating Cream: the tube stands at full height, slightly off centre. */
  .comp--cream .comp__line { font-size: clamp(2.75rem, 13.8vw, 6rem); }
  .comp--cream .comp__product {
    align-self: flex-end;
    width: auto;
    max-width: none;
    height: clamp(500px, 150vw, 780px);
    margin-top: 16px;
    margin-right: -4vw;
  }

  .comp--fan { padding-top: 0; padding-bottom: 72px; }
  .comp--fan .comp__product {
    width: 100vw;
    max-width: none;
    margin-inline: calc(var(--gutter) * -1) 0;
  }
  .comp--fan .comp__line { margin-top: 28px; text-align: right; }

  .comp--cluster .comp__product {
    width: 100vw;
    max-width: none;
    margin: 12px 0 0 calc(var(--gutter) * -1);
  }

  .comp--lift { padding-bottom: 80px; }
  .comp--lift .comp__product {
    align-self: flex-start;
    width: auto;
    height: clamp(420px, 124vw, 760px);
    margin-left: 8vw;
    margin-bottom: 36px;
  }
  .comp--lift .comp__note { margin-top: 22px; }

  /* Nourishing Balm: the stone's flat edge has to sit on the band's boundary, so the jar comes last. */
  .comp--balm { padding-bottom: 0; }
  .comp--balm .buy { order: 2; }
  .comp--balm .comp__product {
    order: 3;
    align-self: center;
    width: min(100vw, 640px);
    max-width: none;
    margin-top: 36px;
  }

  .comp--dark { padding: 0 0 56px; }
  .comp--dark .comp__product {
    width: 160vw;
    max-width: none;
    margin-left: -30vw;
  }
  .comp--dark .disclosure { margin: 8px var(--gutter) 0; }

  .comp--about { padding-block: 88px; }
  .comp--about .comp__line { font-size: clamp(2.125rem, 9.6vw, 3.75rem); }
  .comp--about .comp__note { margin-top: 32px; max-width: 44ch; }
}

/* ------------------------------------------------------------------ desktop compositions: the approved board */
@media (min-width: 960px) {
  .site-header { padding-inline: calc(56 * var(--u)); }
  .site-nav { display: flex; }
  .site-tools { margin-left: 16px; }
  .tool--menu { display: none; }

  .hero__copy { left: calc(56 * var(--u)); right: auto; bottom: calc(44 * var(--u)); }
  .hero__aside { right: calc(56 * var(--u)); bottom: calc(44 * var(--u)); }
  .hero__label { display: inline; }
  .hero h1 { width: calc(420 * var(--u)); max-width: none; font-size: calc(50 * var(--u)); margin-bottom: calc(22 * var(--u)); }
  .hero__shade {
    background:
      linear-gradient(to bottom, rgba(20, 18, 16, .66), rgba(20, 18, 16, .6) 48px, rgba(20, 18, 16, 0) 130px),
      radial-gradient(ellipse 60% 70% at 0% 100%, rgba(20, 18, 16, .8), rgba(20, 18, 16, .56) 60%, rgba(20, 18, 16, 0) 100%);
  }
  /* A gradient's size cannot use max(), so the corner shade under the label is its own box. */
  .hero__shade::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: max(56%, 760px);
    height: max(34%, 270px);
    background: radial-gradient(farthest-side at 100% 100%, rgba(20, 18, 16, .78), rgba(20, 18, 16, .62) 60%, rgba(20, 18, 16, .34) 78%, rgba(20, 18, 16, .1) 92%, rgba(20, 18, 16, 0) 100%);
  }

  .comp {
    position: relative;
    width: calc(1440 * var(--u));
    height: calc(var(--h) * var(--u));
    margin-inline: auto;
  }
  .comp > * { position: absolute; }
  .comp__label { left: calc(56 * var(--u)); top: calc(64 * var(--u)); }
  .comp__product { max-width: none; }
  .buy { width: min-content; min-width: calc(274 * var(--u)); }
  .buy .t { width: max-content; max-width: min(30ch, calc(330 * var(--u))); font-size: clamp(14px, calc(15.5 * var(--u)), 20px); }
  .comp__note { font-size: clamp(14px, calc(15.5 * var(--u)), 20px); }
  .spec { flex-wrap: nowrap; white-space: nowrap; }
  .acts { flex-wrap: nowrap; white-space: nowrap; }

  .comp--cream { --h: 1000; }
  .comp--cream .comp__line { left: calc(56 * var(--u)); top: calc(330 * var(--u)); width: calc(640 * var(--u)); font-size: calc(104 * var(--u)); }
  .comp--cream .buy { left: calc(60 * var(--u)); top: calc(690 * var(--u)); }
  .comp--cream .comp__product { left: calc(760 * var(--u)); top: calc(64 * var(--u)); width: auto; height: calc(892 * var(--u)); }

  .comp--fan { --h: 860; }
  .comp--fan .comp__product { left: calc(24 * var(--u)); top: calc(36 * var(--u)); width: calc(1190 * var(--u)); }
  .comp--fan .comp__line { right: calc(56 * var(--u)); bottom: calc(64 * var(--u)); width: calc(620 * var(--u)); text-align: right; font-size: calc(88 * var(--u)); }

  .comp--cluster { --h: 980; }
  .comp--cluster .comp__line { left: calc(56 * var(--u)); top: calc(112 * var(--u)); width: calc(640 * var(--u)); font-size: calc(92 * var(--u)); }
  .comp--cluster .comp__product { left: calc(360 * var(--u)); top: calc(60 * var(--u)); width: calc(960 * var(--u)); }
  .comp--cluster .buy { left: calc(1110 * var(--u)); bottom: calc(40 * var(--u)); }

  .comp--lift { --h: 980; }
  .comp--lift .comp__product { left: calc(130 * var(--u)); top: calc(60 * var(--u)); width: auto; height: calc(860 * var(--u)); }
  .comp--lift .comp__line { left: calc(640 * var(--u)); top: calc(330 * var(--u)); width: calc(740 * var(--u)); font-size: calc(104 * var(--u)); }
  .comp--lift .comp__note { left: calc(644 * var(--u)); top: calc(600 * var(--u)); }

  .comp--balm { --h: 1060; }
  .comp--balm .comp__line { position: static; font-size: calc(92 * var(--u)); }
  .comp--balm .comp__line span { position: absolute; width: calc(400 * var(--u)); }
  .comp--balm .comp__line span:first-child { left: calc(56 * var(--u)); top: calc(300 * var(--u)); }
  .comp--balm .comp__line span:last-child { left: calc(986 * var(--u)); top: calc(560 * var(--u)); }
  .comp--balm .comp__product { left: calc(400 * var(--u)); bottom: 0; width: auto; height: calc(1000 * var(--u)); }
  .comp--balm .buy { left: calc(1110 * var(--u)); top: calc(800 * var(--u)); }
  .comp--balm .buy .t { max-width: min(24ch, calc(290 * var(--u))); }

  .comp--dark { --h: 810; }
  .comp--dark .comp__product { left: 0; top: 0; width: 100%; }
  .comp--dark .disclosure { left: calc(56 * var(--u)); bottom: calc(40 * var(--u)); }

  .comp--about { --h: 640; }
  .comp--about .comp__line { left: calc(56 * var(--u)); top: calc(120 * var(--u)); width: calc(800 * var(--u)); font-size: calc(58 * var(--u)); }
  .comp--about .comp__note { left: calc(60 * var(--u)); top: calc(452 * var(--u)); max-width: 44ch; }

  /* The header covers the top of a section after an anchor jump: keep the small label clear of it. */
  #collection, #satin-lipstick, #nourishing-balm { scroll-margin-top: max(0px, calc(var(--header-h) + 12px - 64 * var(--u))); }
}

/* Very wide or short landscape windows keep the hero copy clear of the header. */
@media (min-width: 960px) and (max-height: 560px) {
  .hero h1 { font-size: 2.25rem; width: 22rem; }
}

/* Phones held sideways: the hero fits the screen and its copy shrinks, so that it stays below the header and in view. */
@media (max-height: 560px) { .hero { min-height: 320px; } }
@media (max-width: 959.98px) and (max-height: 560px) {
  .hero h1 { font-size: 2rem; max-width: 22rem; margin-bottom: 4px; }
}

/* ------------------------------------------------------------------ film */
.film { position: relative; background: var(--reveal); color: var(--ivory); }
.film__video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.film__frame { position: relative; }
.film__shade, .film__corner { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s ease; }
.film__shade { background: linear-gradient(to bottom, rgba(20, 18, 16, 0) 52%, rgba(20, 18, 16, .62) 100%); }
.film__corner {
  inset: auto 0 0 auto;
  width: max(36%, 440px);
  height: max(30%, 210px);
  opacity: 0;
  background: radial-gradient(farthest-side at 100% 100%, rgba(20, 18, 16, .78), rgba(20, 18, 16, .62) 60%, rgba(20, 18, 16, .34) 78%, rgba(20, 18, 16, .1) 92%, rgba(20, 18, 16, 0) 100%);
}
.film__title { transition: opacity .6s ease; }
.is-playing .film__shade, .is-playing .film__title { opacity: 0; }
.is-playing .film__corner { opacity: 1; }
.film__controls { display: flex; gap: 28px; }

@media (max-width: 959.98px) {
  /* On phones and tablets the film is shown whole and edge to edge, with the title above it. */
  .film { display: flex; flex-direction: column; padding-top: 16px; }
  .film__title { order: -1; padding: 0 var(--gutter) 28px; font-size: clamp(2.75rem, 13.8vw, 6rem); }
  .film__frame { aspect-ratio: 16 / 9; }
  .film__shade, .film__corner { display: none; }
  .is-playing .film__title { opacity: 1; }
  .film__controls { justify-content: flex-end; padding: 6px var(--gutter) 28px; }
}

@media (min-width: 960px) {
  .film { height: calc(820 * var(--u)); }
  .film__frame { position: absolute; inset: 0; }
  .film__title { position: absolute; left: calc(56 * var(--u)); bottom: calc(52 * var(--u)); width: calc(440 * var(--u)); font-size: calc(96 * var(--u)); }
  .film__controls { position: absolute; right: calc(56 * var(--u)); bottom: calc(52 * var(--u)); }
}

/* ------------------------------------------------------------------ the creator */
.creator { background: var(--ink); color: var(--ivory); }
.creator__inner { display: flex; flex-direction: column; padding: 96px var(--gutter); }
.creator__title { font-size: clamp(2.125rem, 10vw, 4rem); line-height: 1.06; letter-spacing: .015em; text-transform: uppercase; }
.creator__text .creator__lead { max-width: none; margin: 44px 0 0; font-family: var(--font-display); font-size: clamp(1.625rem, 7vw, 2.5rem); line-height: 1.14; letter-spacing: -.008em; }
.creator__text p { max-width: 46ch; margin: 18px 0 0; font-size: 15.5px; line-height: 1.6; }
.creator__disciplines { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--gold); font-size: 14px; line-height: 2.2; letter-spacing: .02em; }
.creator__credit { margin: 40px 0 0; font-size: 13px; line-height: 1.5; letter-spacing: .01em; opacity: .84; }

@media (min-width: 960px) {
  .creator__inner {
    display: grid;
    grid-template-columns: calc(620 * var(--u)) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: calc(124 * var(--u));
    width: calc(1440 * var(--u));
    margin-inline: auto;
    padding: calc(168 * var(--u)) calc(56 * var(--u)) calc(144 * var(--u));
  }
  .creator__title { grid-column: 1; grid-row: 1; font-size: calc(68 * var(--u)); }
  .creator__credit { grid-column: 1; grid-row: 2; align-self: end; margin: 0; font-size: clamp(12.5px, calc(13 * var(--u)), 17px); }
  .creator__text { grid-column: 2; grid-row: 1; }
  .creator__text .creator__lead { margin: 0 0 calc(32 * var(--u)); font-size: calc(38 * var(--u)); max-width: 17em; }
  .creator__text p { margin-top: calc(24 * var(--u)); max-width: 50ch; font-size: clamp(14px, calc(15.5 * var(--u)), 20px); }
  .creator__disciplines { grid-column: 2; grid-row: 2; margin-top: calc(64 * var(--u)); padding-top: calc(26 * var(--u)); font-size: clamp(13px, calc(14 * var(--u)), 18px); }
}

/* Beyond the board's largest width, the film section keeps the film's own shape, so that it is not cropped. */
@media (min-width: 1921px) { .film { height: auto; aspect-ratio: 16 / 9; } }

/* ------------------------------------------------------------------ closing frame */
.closing {
  position: relative;
  container-type: inline-size;
  background: var(--cream);
  color: var(--ink);
  padding: 96px var(--gutter) 28px;
  overflow: hidden;
}
.closing__mark { text-align: center; }
.closing__mark img { width: min(76%, 1014px); margin-inline: auto; }
.closing__mark p {
  margin: 28px 0 0;
  font-family: Baskerville, "Hoefler Text", Georgia, serif;
  font-size: clamp(1.375rem, 6.6vw, 2.625rem);
}
.closing__disclosure { margin: 72px 0 0; font-size: 12.5px; line-height: 1.5; }
.closing__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gold);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.6;
  text-transform: uppercase;
}
.closing__row nav { display: flex; gap: 24px; }
/* The ownership credit keeps its own sentence case: present, but quieter than the brand. */
.closing__credit { font-size: 12.5px; font-weight: 400; letter-spacing: .01em; text-transform: none; }
.closing__row a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: none; }
@media (hover: hover) { .closing__row a:hover { opacity: .6; } }

@media (min-width: 960px) {
  .closing { height: calc(760 * var(--u)); padding: 0; }
  .closing__mark { position: absolute; left: 0; right: 0; top: calc(240 * var(--u)); }
  .closing__mark img { width: calc(760 * var(--u)); }
  .closing__mark p { margin-top: calc(50 * var(--u)); font-size: calc(42 * var(--u)); }
  .closing__disclosure { position: absolute; left: calc(56 * var(--u)); bottom: calc(28 * var(--u) + 66px); margin: 0; }
  .closing__row {
    position: absolute;
    left: calc(56 * var(--u));
    right: calc(56 * var(--u));
    bottom: calc(28 * var(--u));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding-top: 8px;
  }
}

/* ------------------------------------------------------------------ small shared parts */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html:not(.js) [data-add], html:not(.js) [data-bag-open], html:not(.js) .purchase { display: none; }

/* The one filled control: square corners, the page's darkest ink. */
.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 8px 20px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  transition: opacity .2s ease, transform .16s var(--ease-out);
}
.primary:active { transform: scale(.985); }
@media (hover: hover) { .primary:hover { opacity: .84; } }
.band--green .primary { background: var(--ivory); color: var(--ink); }

.qty {
  display: inline-flex;
  align-items: stretch;
  flex: none;
  border: 1px solid currentColor;
  font-variant-numeric: tabular-nums;
}
.qty button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 50px;
  font-size: 17px;
  line-height: 1;
  transition: opacity .2s ease;
}
.qty button[aria-disabled="true"] { opacity: .32; cursor: default; }
.qty button[aria-disabled="true"]:focus-visible { opacity: 1; }   /* a faded button must not fade its focus ring */
@media (hover: hover) { .qty button:not([aria-disabled="true"]):hover { opacity: .6; } }
.qty output { display: flex; align-items: center; justify-content: center; min-width: 26px; font-size: 14px; }
.qty--small { border-color: rgba(29, 25, 23, .52); }
.qty--small button { width: 44px; min-height: 44px; }

/* ------------------------------------------------------------------ shopping bag */
.bag {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(480px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--ivory);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.32, .72, 0, 1), overlay .42s allow-discrete, display .42s allow-discrete;
}
.bag[open] { transform: none; }
@starting-style { .bag[open] { transform: translateX(100%); } }
.bag::backdrop {
  background: rgba(20, 18, 16, 0);
  transition: background .42s ease, overlay .42s allow-discrete, display .42s allow-discrete;
}
.bag[open]::backdrop { background: rgba(20, 18, 16, .46); }
@starting-style { .bag[open]::backdrop { background: rgba(20, 18, 16, 0); } }

.bag__panel { display: flex; flex-direction: column; height: 100%; }
.bag__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  min-height: var(--header-h);
  padding: 6px clamp(20px, 5vw, 32px);
}
.bag__title { font-size: 2rem; }
.bag__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 5vw, 32px); }
.bag__list { border-top: 1px solid rgba(29, 25, 23, .1); }
.bag__list[hidden] { display: none; }

.line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 0 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(29, 25, 23, .1);
}
/* The approved transparent renders stand directly on the panel, with their own contact shadows. */
.line__image { position: relative; display: block; height: 124px; }
.line__image img { position: absolute; left: 50%; bottom: 0; width: auto; max-width: none; height: 100%; translate: -50% 0; }
/* The jar's cutout includes its stone. The empty gap between them is where this crop falls; the file itself is not changed. */
.line__image--nourishing-balm { height: auto; aspect-ratio: 92 / 124; overflow: hidden; }
.line__image--nourishing-balm img { top: 25%; bottom: auto; width: 118%; height: auto; translate: -50% 0; }
.line__main { min-width: 0; }
.line__name { display: flex; align-items: center; min-height: 44px; margin: -10px 0 0; padding-bottom: 6px; font-size: 1.375rem; line-height: 1.1; text-decoration: none; }
@media (hover: hover) { .line__name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
.line__meta { margin: 0 0 10px; font-size: 12.5px; line-height: 1.4; opacity: .78; font-variant-numeric: tabular-nums; }
.line__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__subtotal { margin: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.line__remove {
  min-width: 44px;
  min-height: 44px;
  font-size: 12.5px;
  text-align: right;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: opacity .2s ease;
}
@media (hover: hover) { .line__remove:hover { opacity: .6; } }

.bag__undo { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 4px 0; font-size: 13.5px; }
.bag__undo[hidden] { display: none; }
.bag__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 18vh; }
.bag__empty[hidden] { display: none; }
.bag__empty-title { font-size: clamp(2.25rem, 9vw, 2.875rem); }

.bag__foot { flex: none; padding: 16px clamp(20px, 5vw, 32px) max(18px, env(safe-area-inset-bottom)); }
.bag__foot [data-summary][hidden] { display: none; }
.bag__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--gold);
  font-size: 13.5px;
}
.bag__total strong { font-size: 1.875rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.bag__total small { margin-left: 10px; font-size: 12px; opacity: .72; }
.bag__total + .primary { margin-top: 12px; }
.bag__note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
.bag__continue { margin-top: 4px; }
.bag__disclosure { margin: 4px 0 0; font-size: 11.5px; line-height: 1.45; opacity: .78; }

@media (max-width: 400px) {
  .bag .primary { letter-spacing: .1em; }
  .line { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 0 14px; }
}

/* ------------------------------------------------------------------ confirmation message */
.status {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 4px 18px;
  min-height: 52px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 13px;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  translate: -50% 8px;
  transition: opacity .25s ease, translate .25s var(--ease-out), visibility .25s;
}
.status.is-on { opacity: 1; visibility: visible; translate: -50% 0; }
.status__action {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  font-size: 13px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.status__action[hidden] { display: none; }

/* ------------------------------------------------------------------ product pages */
.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 44px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.back:active { opacity: .6; }
@media (hover: hover) { .back:hover { opacity: .62; } }

.pdp__index { margin-bottom: 18px; }
.pdp__name { font-size: clamp(3rem, 14.4vw, 6.5rem); }
.pdp__line { margin-top: 14px; font-size: clamp(1.625rem, 6.8vw, 2.75rem); line-height: 1.12; }
.pdp__text { margin-top: 18px; }
.pdp__spec { margin-top: 0; }
.purchase { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.purchase .primary { flex: 1 1 170px; width: auto; }
.pdp__disclosure { margin: 14px 0 0; font-size: 12px; line-height: 1.5; opacity: .82; max-width: 44ch; }

.details__label { margin-bottom: 26px; font-size: 11px; }
.details dl { margin: 0; }
.details dl div {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) minmax(0, 2fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(182, 154, 97, .75);
  font-size: 14px;
  line-height: 1.5;
}
.details dt { opacity: .74; }
.details dd { margin: 0; }
.details__lead { margin-bottom: 26px; font-size: clamp(2.125rem, 9.2vw, 3.625rem); }
.details__notes .t { max-width: 46ch; margin-top: 14px; }
.details__small { max-width: 56ch; margin: 28px 0 0; font-size: 12px; line-height: 1.5; opacity: .78; }

.comp--cluster-feature .comp__line { max-width: 11em; }

.related { background: var(--ivory); }
.related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px var(--gutter);
}
.related__grid { display: grid; }
.related__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 340px;
  padding: 32px var(--gutter);
  overflow: hidden;
  text-decoration: none;
  transition: background-color .3s ease;
}
.related__item--sky { background: var(--sky); }
.related__item--sand { background: var(--sand); }
.related__item--green { background: var(--green); color: var(--ivory); }
.related__index { margin-bottom: 14px; }
.related__name { max-width: 4.7em; font-size: clamp(2.125rem, 9.6vw, 3rem); }
.related__spec { position: relative; z-index: 1; margin-top: 14px; flex-direction: column; gap: 2px; }
.related__item img {
  position: absolute;
  right: 6%;
  bottom: 18px;
  width: auto;
  max-width: none;
  height: 82%;
  transition: transform .6s var(--ease-out);
}
.related__item--green img { right: -2%; bottom: 0; height: 70%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .related__item:hover img { transform: translateY(-6px); }
  .related__item--green:hover img { transform: none; }
}

.closing--compact { padding-top: 40px; }
.closing--compact .closing__disclosure { margin-top: 0; }

/* Phones and tablets: name first, then the object, then the purchase. The balm's stone needs the band's bottom edge, so it comes last. */
@media (max-width: 959.98px) {
  .pdp__inner {
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + 8px) var(--gutter) 56px;
  }
  .pdp__intro { margin-top: 18px; }
  .pdp__product { width: auto; max-width: none; }
  .pdp__buy { margin-top: 30px; width: 100%; max-width: 520px; }

  .pdp--cream .pdp__product { align-self: flex-end; height: clamp(460px, 138vw, 760px); margin: 18px -4vw 0 0; }
  .pdp--lift .pdp__product { align-self: center; height: clamp(420px, 124vw, 760px); margin-top: 26px; }
  .pdp--balm .pdp__inner { padding-bottom: 0; }
  .pdp--balm .pdp__buy { order: 2; }
  .pdp--balm .pdp__product { order: 3; align-self: center; width: min(100vw, 640px); height: auto; margin-top: 30px; }

  .details__inner { display: grid; gap: 56px; padding: 72px var(--gutter); }

  .comp--cluster-feature { padding-bottom: 56px; }

  .related__grid { grid-template-columns: 1fr; }
  .related__head { padding-block: 20px; }
}
@media (max-width: 359.98px) {
  .related__item img { right: 3%; height: 66%; }
  .related__item--green img { right: -4%; height: 56%; }
}
@media (min-width: 640px) and (max-width: 959.98px) {
  .related__grid { grid-template-columns: 1fr 1fr; }
  .related__item { min-height: 420px; }
  .related__name { font-size: 2.25rem; }
  .related__item img { right: 5%; height: 66%; }
  .related__item--green img { right: -4%; height: 52%; }
}

/* Desktop: drawn in board pixels, like the home page. */
@media (min-width: 960px) {
  .pdp__inner {
    position: relative;
    display: grid;
    width: calc(1440 * var(--u));
    min-height: calc(1060 * var(--u));
    margin-inline: auto;
    padding: var(--header-h) calc(56 * var(--u)) calc(48 * var(--u));
    grid-template-rows: auto 1fr auto auto 1.4fr;
    row-gap: 0;
  }
  .back { font-size: 11px; }
  .pdp__inner > .back { grid-row: 1; align-self: start; margin-top: 8px; }
  .pdp__intro { grid-row: 3; }
  .pdp__buy { grid-row: 4; margin-top: calc(24 * var(--u)); }
  .pdp__index { font-size: clamp(10.5px, calc(11.5 * var(--u)), 14px); }
  .pdp__name { font-size: calc(92 * var(--u)); }
  .pdp__line { font-size: calc(36 * var(--u)); margin-top: calc(16 * var(--u)); }
  .pdp__text { font-size: clamp(14px, calc(15.5 * var(--u)), 20px); }
  .pdp__product { width: auto; max-width: none; grid-row: 1 / -1; }

  /* Hydrating Cream: copy left, the tube standing right, as on the home page. */
  .pdp--cream .pdp__inner { grid-template-columns: calc(680 * var(--u)) 1fr; }
  .pdp--cream .pdp__intro, .pdp--cream .pdp__buy, .pdp--cream .pdp__inner > .back { grid-column: 1; }
  .pdp--cream .pdp__buy { width: min(100%, max(calc(440 * var(--u)), 340px)); }
  .pdp--cream .pdp__product { grid-column: 2; align-self: center; height: calc(892 * var(--u)); }

  /* Satin Lipstick: the object left with its cap lifted, copy right, as on the home page. */
  .pdp--lift .pdp__inner { grid-template-columns: calc(528 * var(--u)) 1fr; }
  .pdp--lift .pdp__intro, .pdp--lift .pdp__buy { grid-column: 2; }
  .pdp--lift .pdp__inner > .back { grid-column: 1; }
  .pdp--lift .pdp__buy { width: min(100%, max(calc(440 * var(--u)), 340px)); }
  .pdp--lift .pdp__product { grid-column: 1; justify-self: end; align-self: end; height: calc(820 * var(--u)); margin-right: calc(74 * var(--u)); }

  /* Nourishing Balm: monumental. Jar and stone in the centre, the stone on the band's edge, name left and purchase right. */
  .pdp--balm .pdp__inner { display: block; height: calc(1120 * var(--u)); min-height: 0; padding: 0; }
  .pdp--balm .pdp__inner > .back { position: absolute; left: calc(56 * var(--u)); top: calc(var(--header-h) + 8px); }
  .pdp--balm .pdp__intro { position: absolute; left: calc(56 * var(--u)); top: calc(270 * var(--u)); width: calc(440 * var(--u)); }
  .pdp--balm .pdp__line { font-size: calc(32 * var(--u)); }
  .pdp--balm .pdp__text { max-width: min(30ch, calc(360 * var(--u))); }
  .pdp--balm .pdp__product { position: absolute; left: calc(400 * var(--u)); bottom: 0; height: calc(1000 * var(--u)); }
  .pdp--balm .pdp__buy { position: absolute; left: calc(1080 * var(--u)); top: calc(320 * var(--u)); width: calc(304 * var(--u)); margin: 0; }

  .details__inner {
    display: grid;
    grid-template-columns: calc(480 * var(--u)) minmax(0, 1fr);
    gap: calc(120 * var(--u));
    width: calc(1440 * var(--u));
    margin-inline: auto;
    padding: calc(120 * var(--u)) calc(56 * var(--u));
  }
  .details__lead { font-size: calc(58 * var(--u)); max-width: 13em; }
  .details__notes .t { font-size: clamp(14px, calc(15.5 * var(--u)), 20px); }

  .comp--cluster-feature .comp__line { left: calc(56 * var(--u)); top: calc(96 * var(--u)); width: calc(620 * var(--u)); font-size: calc(92 * var(--u)); max-width: none; }

  .related__head { padding: calc(32 * var(--u)) calc(56 * var(--u)); }
  .related__grid { grid-template-columns: 1fr 1fr; }
  .related__item { min-height: calc(600 * var(--u)); padding: calc(48 * var(--u)) calc(56 * var(--u)); }
  .related__name { font-size: calc(62 * var(--u)); }
  .related__item--green img { height: 80%; }

  .closing.closing--compact { height: auto; padding: calc(40 * var(--u)) calc(56 * var(--u)) calc(20 * var(--u)); }
  .closing--compact .closing__disclosure { position: static; }
  .closing--compact .closing__row { position: static; margin-top: 14px; }
}


/* ------------------------------------------------------------------ demonstration checkout */
.checkout-page { background: var(--ivory); }
.checkout [hidden] { display: none !important; }
a.primary { text-decoration: none; }
.checkout h1:focus { outline: none; }
.site-header .back { align-self: center; }

.checkout {
  width: min(100%, 1680px);
  min-height: 72svh;
  margin-inline: auto;
  padding: calc(var(--header-h) + 20px) var(--gutter) 88px;
  color: var(--ink);
}
.checkout__noscript { font-size: 15.5px; line-height: 1.6; }
.checkout__disclosure { margin: 18px 0 0; max-width: 46ch; font-size: 12.5px; line-height: 1.5; opacity: .82; }

.checkout__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 14vh; }
.checkout__empty h1 { font-size: clamp(2.75rem, 11vw, 6rem); }

.steps { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .2s ease;
}
.steps a::before { content: counter(step); font-variant-numeric: tabular-nums; letter-spacing: 0; opacity: .7; }
.steps a:not([href]) { opacity: .62; }
@media (hover: hover) { .steps a[href]:not([aria-current]):hover { opacity: .62; } }
.steps a[aria-current] { box-shadow: inset 0 -1px 0 var(--gold); }

.step__title { font-size: clamp(2.75rem, 12.4vw, 5.5rem); }
.step__note { max-width: 46ch; margin: 18px 0 0; font-size: 15.5px; line-height: 1.6; }
.step__sample { margin-top: 6px; }
.step__next { margin-top: 32px; }
.step__back { display: flex; width: max-content; margin-top: 10px; }
.step--bag .bag__list { border-top: 1px solid rgba(29, 25, 23, .1); }
.step--bag .bag__list + .bag__total { border-top: 0; padding-top: 22px; }
.step--bag__intro { margin-bottom: 32px; }

.field { margin-top: 22px; min-width: 0; }
.field-row { display: grid; gap: 0 28px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.field__optional { font-weight: 400; opacity: .78; }
.field input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(29, 25, 23, .62);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;      /* below 16 px, iOS zooms the page on focus */
  transition: border-color .2s ease;
}
.field input:focus { outline: none; border-bottom: 2px solid var(--ink); background: rgba(29, 25, 23, .05); }
.field input[aria-invalid="true"] { border-bottom: 2px solid var(--terracotta); }
.field__error { margin: 7px 0 0; color: var(--terracotta); font-size: 13px; line-height: 1.4; }

.review { margin: 28px 0 0; }
.review > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 0 14px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid rgba(182, 154, 97, .75);
  font-size: 14px;
  line-height: 1.55;
}
.review dt { opacity: .74; }
.review dd { margin: 0; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.review__edit .line__remove { display: inline-flex; align-items: center; justify-content: flex-end; color: inherit; }
.checkout__statement { max-width: 24em; margin: 26px 0 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.22; }

.checkout__aside { margin-top: 26px; }
[data-checkout-step="bag"] .checkout__aside { display: none; }
.aside { background: var(--cream); padding: 0 20px; }
.aside summary { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; font-size: 14px; }
.aside summary::-webkit-details-marker { display: none; }
.aside summary strong { margin-left: auto; font-size: 1.375rem; font-weight: 400; }
.aside summary::after { content: "+"; font-size: 17px; line-height: 1; }
.aside[open] summary::after { content: "−"; }
.aside__lines { display: grid; gap: 14px; padding: 6px 0 18px; }
.aside__lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; font-size: 13.5px; }
.aside__lines .line__image { height: 70px; }
.aside__lines .line__image--nourishing-balm { height: auto; }
.aside__name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aside__name .d { font-size: 1.125rem; line-height: 1.15; }
.aside__name small { font-size: 12px; opacity: .78; }
.aside__price { font-variant-numeric: tabular-nums; }
.aside__edit { margin: 0; }
.aside__edit .line__remove { display: inline-flex; align-items: center; color: inherit; }
.aside .checkout__disclosure { padding-bottom: 20px; }

.confirm__objects { display: flex; align-items: flex-end; justify-content: center; gap: 4%; margin: 8px 0 30px; }
.confirm__objects .line__image { flex: 0 1 30%; height: auto; aspect-ratio: 92 / 124; }
.confirm__objects[data-count="1"] .line__image { flex-basis: 46%; }
.confirm__title { font-size: clamp(2.75rem, 12.4vw, 5.5rem); }
.confirm__statement { max-width: 44ch; margin: 22px 0 0; font-size: 16px; line-height: 1.55; }
.confirm__label { margin-top: 34px; font-size: 11px; }
.confirm__ref { margin: 8px 0 26px; font-size: clamp(2rem, 9vw, 3rem); white-space: nowrap; }
.confirm__lines { display: grid; gap: 8px; margin-bottom: 16px; font-size: 14px; }
.confirm__lines li { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.confirm__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 26px; }

@media (max-width: 400px) {
  .steps { gap: 0 14px; }
  .steps a { gap: 6px; font-size: 10.5px; letter-spacing: .08em; }
}
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .step__next { width: min(100%, 380px); }
}
@media (min-width: 960px) {
  .checkout { padding: calc(var(--header-h) + 24px) calc(56 * var(--u)) calc(110 * var(--u)); }
  .steps { margin-bottom: calc(44 * var(--u)); gap: 0 32px; }
  .checkout__columns { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, calc(420 * var(--u)), 540px); gap: calc(120 * var(--u)); align-items: start; }
  [data-checkout-step="bag"] .checkout__columns { display: block; }
  .checkout__main { order: 1; max-width: 720px; }
  [data-checkout-step="bag"] .checkout__main { max-width: none; }
  .checkout__aside { order: 2; position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
  .review > .review__bag { display: none; }
  .aside { padding: 8px 28px; }
  .aside summary { cursor: default; font-family: var(--font-display); font-size: 1.75rem; }
  .aside summary strong, .aside summary::after { display: none; }

  .step--bag { display: grid; grid-template-columns: calc(520 * var(--u)) minmax(0, 1fr); gap: calc(120 * var(--u)); }
  .step--bag__intro { margin: 0; }
  .step__title { font-size: calc(88 * var(--u)); }

  .checkout:has(.confirm:not([hidden])) { padding-top: var(--header-h); padding-bottom: 0; }
  .confirm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, calc(560 * var(--u))); gap: calc(96 * var(--u)); align-items: center; min-height: calc(100svh - var(--header-h)); padding-block: calc(48 * var(--u)); }
  .confirm__objects { margin: 0; align-self: center; }
  .confirm__title { font-size: calc(76 * var(--u)); }
  .confirm__ref { font-size: calc(44 * var(--u)); }
  .confirm__links { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
  .confirm__links .primary { width: auto; padding-inline: 32px; }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
  .js .reveal--fade { transform: none; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .step:not([hidden]), .confirm:not([hidden]) { animation: step-in .5s var(--ease-out); }
  @keyframes step-in { from { opacity: 0; transform: translateY(10px); } }

  /* Page transitions: a short cross-fade, the header stays put, and a product image can travel between pages.
     Browsers without this feature simply navigate. */
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .pdp__product { view-transition-name: product-hero; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
  ::view-transition-group(product-hero) { animation-duration: .55s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
  ::view-transition-group(site-header) { animation-duration: .32s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
