@charset "UTF-8";
/*
 * home.css : the landing page (pages/index.tsx).
 *
 * Each part is the styles of one component, scoped under its tag (app-header ...) as Angular scoped them :
 * the selectors start with the tag. Plain CSS, edited here.
 */

/* ════════ <app-film> ════════ */

app-film {
  display: block;
}

app-film .film {
  position: relative;
  isolation: isolate;
  height: var(--film-height, 100svh);
  min-height: var(--film-min-height, 640px);
  max-height: var(--film-max-height, 1180px);
  overflow: hidden;
  color: #fff;
  /* what shows until the 3D scene has drawn its first frame */
  background: radial-gradient(60% 50% at 70% 62%, rgba(255, 150, 90, 0.2), transparent 70%), var(--night);
}

app-film .film__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
app-film .is-ready .film__canvas {
  opacity: 1;
}

/* dip to black around a cut between two shots (the stage drives --film-fade) */
app-film .film__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #000;
  opacity: var(--film-fade, 0);
}

/* darkens the side the copy sits on, plus the strips behind header and timeline */
app-film .film__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 11, 10, 0.86) 0%, rgba(15, 11, 10, 0.55) 30%, rgba(15, 11, 10, 0) 58%), linear-gradient(180deg, rgba(15, 11, 10, 0.55) 0%, rgba(15, 11, 10, 0) 22%), linear-gradient(0deg, rgba(15, 11, 10, 0.85) 0%, rgba(15, 11, 10, 0) 26%);
}

/* a little film grain keeps the render from looking too clean */
app-film .film__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

app-film .film__loading {
  position: absolute;
  left: 70%;
  top: 54%;
  translate: -50% -50%;
  transition: opacity 0.4s;
}
app-film .film__loading span {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  animation: app-film--spin 0.9s linear infinite;
}
app-film .is-ready .film__loading, app-film .is-fallback .film__loading {
  opacity: 0;
  visibility: hidden;
}

@keyframes app-film--spin {
  to {
    rotate: 360deg;
  }
}

/* ── copy ──────────────────────────────────────────────────────────────── */
app-film .film__body {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--film-pad-top, 28px);
  padding-bottom: 104px;
  pointer-events: none;
}

app-film .film__copy {
  width: min(520px, 44%);
  pointer-events: auto;
}

/* every chapter's copy sits in the same grid cell, so the block is always as */
/* tall as the longest one and nothing below it jumps when the chapter changes */
app-film .film__slides {
  display: grid;
}

app-film .slide {
  grid-area: 1/1;
  align-self: end;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
  pointer-events: none;
}
app-film .slide.is-active {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
  pointer-events: auto;
}

app-film .slide__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

app-film .slide__num {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  letter-spacing: 0.06em;
}

app-film .slide__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

app-film .slide__text {
  margin-top: 20px;
  max-width: 44ch;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: pretty;
}

app-film .film__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* whatever the page projects under the buttons (e.g. a price line) */
app-film .film__note {
  margin-top: 22px;
}
app-film .film__note:empty {
  display: none;
}

/* ── hotspot labels ────────────────────────────────────────────────────── */
app-film .film__spots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

app-film .spot {
  /* distance from the dot to its label; film-stage.ts reads this too */
  --gap: 40px;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: transform;
}
app-film .spot.is-on {
  opacity: 1;
}

app-film .spot__dot {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(215, 26, 33, 0.9);
}
app-film .spot__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  animation: app-film--ping 2.2s ease-out infinite;
}

@keyframes app-film--ping {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* leader line from the dot to the label. The scene sets --len / --ang / --dy */
/* when it nudges labels apart so they don't overlap. */
app-film .spot__line {
  position: absolute;
  left: 0;
  top: -0.75px;
  width: var(--len, var(--gap));
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.55);
  transform-origin: 0 50%;
  rotate: var(--ang, 0rad);
}

app-film .spot__label {
  position: absolute;
  top: 0;
  left: var(--gap);
  translate: 0 calc(-50% + var(--dy, 0px));
  padding: 0 14px;
  height: 32px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-fixed);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}

app-film .spot--left .spot__label {
  left: auto;
  right: var(--gap);
}

/* a read-out hotspot is a big live number rather than a pill */
app-film .spot--readout .spot__dot {
  display: none;
}
app-film .spot--readout .spot__line {
  display: none;
}
app-film .spot--readout .spot__label {
  left: 0;
  top: -30px;
  translate: none;
  height: auto;
  padding: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

/* ── drag-to-rotate handle ─────────────────────────────────────────────── */
/* the whole picture can be dragged; vertical swipes still scroll the page */
app-film .film--orbit .film__canvas {
  cursor: grab;
  touch-action: pan-y;
}

app-film .film--orbit.is-dragging .film__canvas {
  cursor: grabbing;
}

app-film .film__orbit {
  position: absolute;
  left: 0;
  top: 0;
  /* the stage moves this box's corner onto the ring; the pill is centred on that point */
  display: flex;
  align-items: center;
  gap: 2px;
  height: 38px;
  margin: -19px 0 0 -42px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(18, 14, 13, 0.92);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.55), 0 10px 26px -8px rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: ew-resize;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.6s ease, background-color 0.25s, color 0.25s;
  will-change: transform;
}
app-film .film__orbit svg {
  width: 16px;
  height: 16px;
}
app-film .is-ready .film__orbit {
  opacity: 1;
}
app-film .film__orbit:hover, app-film .is-dragging .film__orbit {
  background: #fff;
  color: var(--ink-fixed);
}

/* ── timeline ──────────────────────────────────────────────────────────── */
app-film .film__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 26px;
}

app-film .film__play {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
app-film .film__play svg {
  width: 18px;
  height: 18px;
}
app-film .film__play:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink-fixed);
}

app-film .timeline {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 0;
}

app-film .timeline__item {
  flex: 1;
  min-width: 0;
}

app-film .timeline__seg {
  display: block;
  width: 100%;
  padding: 12px 0 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}
app-film .timeline__seg:hover, app-film .timeline__seg.is-active {
  color: #fff;
}

app-film .timeline__track {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

app-film .timeline__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}
app-film .is-done .timeline__fill {
  transform: scaleX(1);
}
app-film .is-active .timeline__fill {
  transform: scaleX(var(--progress, 0));
}

app-film .timeline__label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

app-film .film__time {
  flex: none;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

/* narrower bars: a two-word chapter name ("Home Theater") goes onto two lines rather than being cut short */
@media (max-width: 1100px) {
  app-film .timeline__seg {
    height: 100%;
  }
  app-film .timeline__label {
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.3;
    white-space: normal;
  }
}

/* ── no WebGL: the photograph, and only the first chapter's copy ───────── */
app-film .film.is-fallback {
  background: var(--night) var(--film-fallback, none) var(--film-fallback-position, center)/cover no-repeat;
}
app-film .film.is-fallback .film__canvas,
app-film .film.is-fallback .film__spots,
app-film .film.is-fallback .film__orbit,
app-film .film.is-fallback .film__bar {
  display: none;
}

/* ── tablet & phone: chair up top, copy underneath ─────────────────────── */
/* (same query as STACKED_QUERY in film-stage.ts) */
@media (max-aspect-ratio: 5/4) {
  app-film .film {
    min-height: var(--film-min-height-tall, 600px);
  }
  app-film .film__shade {
    background: linear-gradient(180deg, rgba(15, 11, 10, 0.5) 0%, rgba(15, 11, 10, 0) 18%), linear-gradient(0deg, rgba(15, 11, 10, 0.96) 0%, rgba(15, 11, 10, 0.82) 30%, rgba(15, 11, 10, 0) 58%);
  }
  app-film .film__loading {
    left: 50%;
    top: 34%;
  }
  app-film .film__body {
    align-items: flex-end;
    padding-bottom: 96px;
  }
  app-film .film__copy {
    width: min(620px, 100%);
  }
  app-film .slide__kicker {
    margin-bottom: 12px;
  }
  app-film .slide__title {
    font-size: clamp(28px, 5.6vw, 44px);
  }
  app-film .slide__text {
    margin-top: 12px;
  }
  app-film .film__actions {
    margin-top: 20px;
  }
  app-film .film__note {
    margin-top: 14px;
  }
  app-film .film.is-fallback {
    background-image: var(--film-fallback-tall, var(--film-fallback, none));
    background-position: center top;
  }
}

@media (max-width: 600px) {
  app-film {
    /* six labels don't fit under six short bars — the kicker already names the chapter */
  }
  app-film .film__body {
    padding-bottom: 84px;
  }
  app-film .slide__kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
  app-film .film__actions .btn {
    flex: 1;
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }
  app-film .film__bar {
    gap: 12px;
    padding-bottom: 18px;
  }
  app-film .film__play {
    width: 38px;
    height: 38px;
  }
  app-film .film__time {
    display: none;
  }
  app-film .timeline {
    gap: 5px;
  }
  app-film .timeline__label {
    display: none;
  }
  app-film .timeline__seg {
    padding: 14px 0;
  }
  app-film .spot {
    --gap: 22px;
  }
  app-film .spot__label {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }
  app-film .spot__dot {
    left: -5px;
    top: -5px;
    width: 10px;
    height: 10px;
  }
}

/* short landscape phones: there is very little height, so the copy shrinks to */
/* kicker + headline + buttons and the timeline to bare bars */
@media (max-height: 520px) and (min-aspect-ratio: 5/4) {
  app-film .film {
    min-height: 340px;
  }
  app-film .film__body {
    padding-top: var(--film-pad-top-short, 14px);
    padding-bottom: 50px;
  }
  app-film .slide__kicker {
    margin-bottom: 8px;
    font-size: 11px;
  }
  app-film .slide__title {
    font-size: clamp(22px, 3.6vw, 30px);
  }
  app-film .slide__text,
  app-film .film__note,
  app-film .film__time,
  app-film .timeline__label {
    display: none;
  }
  app-film .film__actions {
    margin-top: 14px;
    gap: 8px;
  }
  app-film .film__actions .btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 13px;
  }
  app-film .film__bar {
    gap: 12px;
    padding-bottom: 8px;
  }
  app-film .film__play {
    width: 34px;
    height: 34px;
  }
  app-film .timeline__seg {
    padding: 12px 0;
  }
  app-film .spot {
    --gap: 22px;
  }
  app-film .spot__label {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  app-film .slide {
    transition: opacity 0.3s;
    transform: none;
  }
  app-film .spot__dot::after {
    animation: none;
  }
}

/* the hero is in view as the page opens: its copy is there from the first paint, not revealed */
app-film .film--hero .film__copy.reveal,
app-film .film--hero .film__bar.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ════════ <app-hero> ════════ */

app-hero {
  display: block;
}

/* The hero fills the first screen and sits under the floating header. */
app-hero app-film {
  --film-pad-top: calc(var(--header-h) + 28px);
  --film-pad-top-short: calc(var(--header-h) + 14px);
  --film-fallback: url("../assets/misc/hero-fallback.jpg");
  --film-fallback-position: 70% center;
  --film-fallback-tall: url("../assets/misc/hero-fallback-mobile.jpg");
}

/* ── colour swatches (sofa chapter) ────────────────────────────────────── */
app-hero .swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

app-hero .swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
app-hero .swatch:hover {
  border-color: rgba(255, 255, 255, 0.7);
}
app-hero .swatch.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--ink-fixed);
}

app-hero .swatch__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* ── the model on show: name (links to its page) and price ─────────────── */
app-hero .product {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
app-hero .product strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
}
app-hero .product s {
  color: rgba(255, 255, 255, 0.5);
}

app-hero .product__name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s;
}
app-hero .product__name svg {
  width: 14px;
  height: 14px;
}
app-hero .product__name:hover {
  border-color: #fff;
}

/* tablet & phone portrait */
@media (max-aspect-ratio: 5/4) {
  app-hero .swatches,
  app-hero .product {
    margin-top: 14px;
  }
}

@media (max-width: 600px) {
  app-hero .swatches {
    gap: 6px;
  }
  app-hero .swatch {
    min-height: 34px;
    padding: 0 11px 0 6px;
    gap: 6px;
    font-size: 12px;
  }
  app-hero .swatch__dot {
    width: 20px;
    height: 20px;
  }
  app-hero .product {
    font-size: 13px;
  }
  app-hero .product strong {
    font-size: 19px;
  }
}

/* short landscape phones: no room for the extras */
@media (max-height: 520px) and (min-aspect-ratio: 5/4) {
  app-hero .swatches {
    margin-top: 10px;
    gap: 6px;
  }
  app-hero .swatch {
    min-height: 30px;
    padding: 0 10px 0 5px;
    font-size: 12px;
  }
  app-hero .swatch__dot {
    width: 18px;
    height: 18px;
  }
  app-hero .product {
    display: none;
  }
}

/* ════════ <app-cinema> ════════ */

app-cinema {
  display: block;
}

/* A full-width band between the collection cards, a little shorter than the */
/* hero so the cards above and below stay in sight. */
app-cinema app-film {
  --film-height: min(92svh, 880px);
  --film-min-height: 620px;
  --film-pad-top: 40px;
  --film-pad-top-short: 24px;
  --film-fallback: url("../assets/collections/multiplex.webp");
}

/* ════════ <app-collections> ════════ */

app-collections {
  display: block;
}

/* the head and the tiles sit on the centre line; the cards below them span the full width */
app-collections .collections .section-head {
  justify-items: center;
  text-align: center;
  /* a rule on either side of the eyebrow, so that it is centred as well */
}
app-collections .collections .section-head .eyebrow::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
}

/* ── picture tabs ──────────────────────────────────────────────────────── */
/* each category as a soft tile with the chair in it, its name under it */
app-collections .tabs {
  --tile-bg: var(--well);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
  max-width: 980px;
  margin: 0 auto clamp(26px, 3.4vw, 42px);
}

app-collections .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink-soft);
}
app-collections .tab:focus-visible {
  outline: none;
}
app-collections .tab:focus-visible .tab__pic {
  box-shadow: 0 0 0 2px var(--red);
}
app-collections .tab:hover .tab__pic {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1.5px rgba(215, 26, 33, 0.3), 0 12px 22px -16px rgba(23, 19, 18, 0.3);
}
app-collections .tab:hover img {
  transform: scale(1.06);
}
app-collections .tab:hover .tab__label {
  color: var(--red);
}
app-collections .tab.is-active .tab__pic {
  box-shadow: 0 0 0 1.5px var(--red), 0 10px 20px -14px rgba(215, 26, 33, 0.3);
}
app-collections .tab.is-active .tab__label {
  color: var(--red);
  font-weight: 700;
}

app-collections .tab__pic {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: clamp(16px, 1.8vw, 22px);
  background: var(--tile-bg);
  color: var(--red);
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.3s, transform 0.4s var(--ease);
  /* a cut-out product shot: it sits on the tile in either theme */
}
app-collections .tab__pic img {
  width: 100%;
  height: 100%;
  padding: 12%;
  object-fit: contain;
  transition: transform 0.5s var(--ease);
  /* a photograph with a backdrop of its own fills the tile */
}
app-collections .tab__pic img.is-cover {
  padding: 0;
  object-fit: cover;
  mix-blend-mode: normal;
}

/* the chair as a line drawing, where the photo sits (its padding) : in ink, red once picked ; on hover the photo
   comes in over it and the drawing fades out */
app-collections .tab__sketch {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  color: var(--ink-soft);
  transition: opacity 0.35s, transform 0.5s var(--ease), color 0.25s;
}
app-collections .tab__sketch path {
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}
app-collections .tab__sketch .tab__sketch-faint {
  stroke-opacity: 0.45;
}
app-collections .tab__pic.has-sketch img {
  opacity: 0;
  transition: opacity 0.35s, transform 0.5s var(--ease);
}
app-collections .tab:hover .tab__pic.has-sketch img,
app-collections .tab:focus-visible .tab__pic.has-sketch img {
  opacity: 1;
}
app-collections .tab:hover .tab__sketch,
app-collections .tab:focus-visible .tab__sketch {
  opacity: 0;
  transform: scale(1.06);
}
app-collections .tab.is-active .tab__sketch {
  color: var(--red);
}

app-collections .tab__label {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: color 0.25s;
}

/* ── panels ────────────────────────────────────────────────────────────── */
app-collections .panel:focus-visible {
  outline-offset: 8px;
}

app-collections .panel__more {
  display: flex;
  width: fit-content;
  margin-top: clamp(20px, 2.4vw, 28px);
}

/* ── the chair and its parts: the picture on the left, the list on the right ── */
app-collections .anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 64px);
  align-items: center;
}

/* the picture's backdrop, with room on either side of the chair for the labels */
app-collections {
  /* sized to the picture, so the dots — in percent of it — stay on the parts they point at */
  /* one part: its line from the label across and then up or down to the dot */
  /* ── the list of parts ─────────────────────────────────────────────────── */
  /* a plus in a ring, a minus once open */
}
app-collections .anatomy__stage {
  --stage-h: clamp(400px, 34vw, 460px);
  --pad: 32px;
  --side: 124px;
  --stage-bg: var(--well);
  /* (the light backdrop's labels keep dark ink; the dark theme lifts them below) */
  --ink: var(--ink-fixed);
  --ink-soft: #2b2422;
  --reach: 14px;
  display: grid;
  place-items: center;
  min-height: var(--stage-h);
  padding: var(--pad) var(--side);
  border-radius: clamp(20px, 2vw, 28px);
  background: var(--stage-bg);
}
/* the dark theme: the tiles and the backdrop go dark (the photos are cut out), the labels and lines go light */
:root[data-theme=dark] app-collections .tabs {
  --tile-bg: var(--surface-2);
}
:root[data-theme=dark] app-collections .anatomy__stage {
  --stage-bg: radial-gradient(ellipse at 50% 45%, #2e2622 0%, var(--surface) 72%);
  --ink: #f4ede8;
  --ink-soft: #d9cfc9;
  box-shadow: inset 0 0 0 1px var(--edge);
}
:root[data-theme=dark] app-collections .anatomy__shot {
  background: none;
}
:root[data-theme=dark] app-collections .spot {
  --c: rgba(244, 237, 232, 0.4);
}
:root[data-theme=dark] app-collections .spot.is-on {
  --c: var(--red);
}
:root[data-theme=dark] app-collections .tab:hover .tab__pic {
  box-shadow: 0 0 0 1.5px rgba(232, 38, 45, 0.45), 0 12px 22px -16px rgba(0, 0, 0, 0.6);
}

app-collections .anatomy__shot {
  position: relative;
  width: min(100%, (var(--stage-h) - 2 * var(--pad)) * var(--ratio));
  aspect-ratio: var(--ratio);
  /* the backdrop again: the opening animation isolates the picture, so it blends with this */
  background: var(--stage-bg);
}
app-collections .panel.is-active .anatomy__shot {
  animation: app-collections--shot-in 0.6s var(--ease) both;
}
app-collections .anatomy__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* photographed on white: the white melts into the backdrop */
}
app-collections .anatomy__shot img.is-blended {
  mix-blend-mode: multiply;
}
@keyframes app-collections--shot-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
app-collections .spot {
  --c: rgba(23, 19, 18, 0.38);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
app-collections .spot.is-on {
  --c: var(--red);
  z-index: 1;
}
app-collections .spot__h,
app-collections .spot__v {
  position: absolute;
  background: var(--c);
  transition: background-color 0.3s;
}
app-collections .spot__h {
  top: calc(var(--ly) * 1%);
  height: 1px;
  /* the small dot where the line meets its label */
}
app-collections .spot__h::before {
  content: "";
  position: absolute;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}
app-collections .spot--left .spot__h {
  left: calc(-1 * var(--reach));
  width: calc(var(--x) * 1% + var(--reach));
}
app-collections .spot--left .spot__h::before {
  left: -3px;
}
app-collections .spot--right .spot__h {
  left: calc(var(--x) * 1%);
  right: calc(-1 * var(--reach));
}
app-collections .spot--right .spot__h::before {
  right: -3px;
}
app-collections .spot__v {
  top: calc(var(--top) * 1%);
  left: calc(var(--x) * 1%);
  width: 1px;
  height: calc(var(--len) * 1%);
}
app-collections .spot__label {
  position: absolute;
  top: calc(var(--ly) * 1%);
  width: calc(var(--side) - var(--reach) - 14px);
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.3s;
}
app-collections .spot--left .spot__label {
  right: calc(100% + var(--reach) + 9px);
  text-align: right;
}
app-collections .spot--right .spot__label {
  left: calc(100% + var(--reach) + 9px);
}
app-collections .spot.is-on .spot__label, app-collections .spot__label:hover {
  color: var(--red);
}
app-collections .spot__dot {
  position: absolute;
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--c);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-fixed);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 10px -4px rgba(23, 19, 18, 0.35);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
  /* the part that is open: red, with a ring pulsing out of it */
}
app-collections .spot__dot:hover {
  transform: translate(-50%, -50%) scale(1.12);
}
app-collections .spot.is-on .spot__dot {
  background: var(--red);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.15);
}
app-collections .spot.is-on .spot__dot::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(215, 26, 33, 0.5);
  animation: app-collections--pulse 1.8s ease-out infinite;
}
@keyframes app-collections--pulse {
  to {
    box-shadow: 0 0 0 12px rgba(215, 26, 33, 0);
  }
}
app-collections .anatomy__title {
  margin: 10px 0 clamp(16px, 2vw, 24px);
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.2;
}
app-collections .parts {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
app-collections .parts__item {
  border-bottom: 1px solid var(--line);
}
app-collections .panel.is-active .parts__item {
  animation: app-collections--part-in 0.5s var(--ease) both;
  animation-delay: calc(var(--i) * 60ms + 120ms);
}
@keyframes app-collections--part-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
}
app-collections .parts__head {
  margin: 0;
  font: inherit;
}
app-collections .parts__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: clamp(14px, 1.5vw, 18px) 0;
  color: var(--ink);
  font-size: clamp(15.5px, 1.3vw, 17px);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
app-collections .parts__btn:hover .parts__name, app-collections .is-open .parts__btn .parts__name {
  color: var(--red);
}
app-collections .parts__btn:hover .parts__icon {
  border-color: var(--red);
  color: var(--red);
}
app-collections .parts__num {
  flex: none;
  min-width: 1.6em;
}
app-collections .parts__name {
  flex: 1;
  min-width: 0;
  transition: color 0.25s;
}
app-collections .parts__icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
  /* (and on hover, where the button's red would hide the minus) */
}
app-collections .parts__icon::before, app-collections .parts__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
app-collections .parts__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
app-collections .is-open .parts__icon, app-collections .is-open .parts__btn:hover .parts__icon {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
app-collections .is-open .parts__icon::after, app-collections .is-open .parts__btn:hover .parts__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* the words under a part's name, sliding open */
app-collections .parts__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
app-collections .is-open .parts__body {
  grid-template-rows: 1fr;
}

app-collections .parts__clip {
  min-height: 0;
  overflow: hidden;
}
app-collections .parts__clip p {
  margin: 0;
  padding: 0 38px 18px calc(1.6em + 12px);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── smaller screens ───────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  app-collections {
    /* the picture on top, the list under it */
  }
  app-collections .anatomy {
    grid-template-columns: minmax(0, 1fr);
  }
  app-collections .anatomy__stage {
    --stage-h: clamp(340px, 52vw, 460px);
  }
}

@media (max-width: 700px) {
  app-collections {
    /* phones: two rows of three */
    /* no room beside the chair for the labels: only the numbered dots, which match the list */
  }
  app-collections .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
  }
  app-collections .tab {
    gap: 7px;
  }
  app-collections .tab__label {
    font-size: 13px;
  }
  app-collections .anatomy__stage {
    --stage-h: min(78vw, 340px);
    --pad: 18px;
    --side: 14px;
  }
  app-collections .spot__h,
  app-collections .spot__v,
  app-collections .spot__label {
    display: none;
  }
  app-collections .spot__dot {
    width: 22px;
    height: 22px;
  }
  app-collections .parts__clip p {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  app-collections .panel.is-active .anatomy__shot,
  app-collections .panel.is-active .parts__item,
  app-collections .spot.is-on .spot__dot::after {
    animation: none;
  }
}

/* ════════ <app-products> ════════ */

app-products {
  display: block;
}

/* the home page's Best Sellers sit on white, apart from the sections either side */
app-products .products {
  background: var(--surface);
}

app-products .products__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 30px;
}
app-products .products__head .section-head {
  margin-bottom: 0;
}

app-products .rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 40px) clamp(14px, 1.8vw, 24px);
}

app-products {
  /* The card: soft, the picture inset in it, the name and price under the picture, and the bottom */
  /* right corner cut out for the arrow button. The shadow is drawn round the card's own shape, the */
  /* cut-out corner included. */
  /* The bottom right corner is cut out of the card for the arrow button, so whatever is behind the */
  /* card shows round it. The mask is the card less that corner: a square of --n with its top left */
  /* rounded by --nr, the button's centre as the centre, and its two ends rounded off by --bay-r */
  /* where they meet the card's edges. */
  /* the label on the picture's top left corner */
  /* the words keep to the left of the cut-out corner, however long the name */
  /* two lines at most, and room for two whatever its length (the names and blurbs line up across a row) */
  /* the same: two lines, no more, and room for two */
  /* the price keeps to the left of the cut-out corner, and is as tall as it */
  /* how much is saved, after the struck-out price */
  /* the arrow button, in the corner cut out of the card */
  /* the heart, on the picture's top right corner; it rises with the card */
  /* the price line needs a card about 280px wide: three across below 1280px, two below 1000px */
  /* phones: one card to a row, the width of the page */
}
app-products .product {
  --r: 22px;
  --pad: 8px;
  --go: 42px;
  --bay-gap: 8px;
  --bay-r: 14px;
  position: relative;
  display: flex;
  container-type: inline-size;
}
app-products .product__link {
  position: relative;
  display: flex;
  width: 100%;
  transition: transform 0.4s var(--ease), filter 0.4s;
}
@media (hover: hover) {
  app-products .product__link:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 12px rgba(23, 19, 18, 0.08));
  }
}
app-products .product__front {
  --n: calc(var(--go) + var(--bay-gap));
  --nr: calc(var(--go) / 2 + var(--bay-gap));
  --solid: linear-gradient(#000 0 0);
  --end: radial-gradient(circle at 0 0, #000 calc(var(--bay-r) - 0.5px), transparent var(--bay-r));
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: var(--pad) var(--pad) 0;
  border-radius: var(--r);
  background-color: var(--surface-2);
  mask: var(--solid) 0 0/100% calc(100% - var(--n) - var(--bay-r)) no-repeat, var(--solid) 0 0/calc(100% - var(--n) - var(--bay-r)) 100% no-repeat, var(--solid) right var(--bay-r) bottom var(--n)/var(--n) var(--bay-r) no-repeat, var(--end) right 0 bottom var(--n)/var(--bay-r) var(--bay-r) no-repeat, var(--solid) right var(--n) bottom var(--bay-r)/var(--bay-r) calc(var(--n) - var(--bay-r)) no-repeat, var(--end) right var(--n) bottom 0/var(--bay-r) var(--bay-r) no-repeat, radial-gradient(circle at 100% 100%, transparent calc(var(--nr) - 0.5px), #000 var(--nr)) right calc(var(--go) / 2) bottom calc(var(--go) / 2)/var(--nr) var(--nr) no-repeat;
}
app-products .product__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: calc(var(--r) - var(--pad));
  overflow: hidden;
  background: var(--sand);
}
app-products .product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
app-products .product__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--dark-chip);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px -4px rgba(15, 11, 10, 0.35);
}
app-products .product__tag--bestseller {
  background: #e8692e;
}
app-products .product__tag--new {
  background: #1f8a5b;
}
app-products .product__tag--offer {
  background: var(--red);
}
app-products .product__foot {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 8px 0;
}
app-products .product__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-soft);
  transition: color 0.2s;
}
app-products .product:hover .product__name {
  color: var(--red);
}
app-products .product__blurb {
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
app-products .product__price {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: min(6px, 2cqi);
  white-space: nowrap;
  margin-top: auto;
  min-height: calc(var(--go) + var(--bay-gap));
  padding-right: calc(var(--go) + var(--bay-gap) + 4px);
}
app-products .product__price strong {
  font-size: min(18px, 6.2cqi);
  font-weight: 700;
  letter-spacing: -0.01em;
}
app-products .product__price s {
  font-size: min(12px, 4.2cqi);
  color: var(--muted);
}
app-products .product__save {
  font-size: min(12px, 4.2cqi);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ok);
}
app-products .product__bay {
  position: absolute;
  right: 0;
  bottom: 0;
}
app-products .product > app-like {
  position: absolute;
  top: calc(var(--pad) + 10px);
  right: calc(var(--pad) + 10px);
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) {
  app-products .product:hover > app-like {
    transform: translateY(-4px);
  }
}
app-products .product__go {
  display: grid;
  place-items: center;
  width: var(--go);
  height: var(--go);
  border-radius: 50%;
  background: var(--dark-chip);
  color: #fff;
  transition: background-color 0.3s;
}
app-products .product__go svg {
  width: 17px;
  height: 17px;
  transition: transform 0.4s var(--ease);
}
app-products .product:hover .product__go {
  background: var(--red);
}
app-products .product:hover .product__go svg {
  transform: rotate(45deg);
}
@media (max-width: 1279px) {
  app-products .rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* three across : the fourth would sit alone on a second row */
@media (max-width: 1279px) and (min-width: 1001px) {
  app-products .rail > :nth-child(4) {
    display: none;
  }
}
@media (max-width: 1000px) {
  app-products .rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  app-products .rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

/* ════════ <app-videos> ════════ */

app-videos {
  display: block;
}

/* the backdrop: a warm living room at movie time — lamp light from the top left, a projector beam falling on the
   heading, a red glow on the floor — and, over it, a wallpaper of the things Little Nap makes (recliners, a lounger,
   a theatre row, a sofa) with the moon, a nap's Zz and stars, faint at the edges and gone under the cards */
app-videos .films {
  --gap: clamp(12px, 1.4vw, 20px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(55% 50% at 4% 0%, rgba(255, 212, 166, 0.7), transparent 72%),
    radial-gradient(45% 50% at 100% 8%, rgba(255, 226, 204, 0.6), transparent 70%),
    radial-gradient(60% 42% at 50% 112%, rgba(215, 26, 33, 0.13), transparent 74%),
    radial-gradient(50% 60% at 100% 100%, rgba(236, 184, 152, 0.45), transparent 72%),
    linear-gradient(165deg, #f8f1e9 0%, #f3e8dd 55%, #eddfd2 100%);
  color: var(--ink);
}
app-videos .films::before,
app-videos .films::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
/* (the wallpaper: the pattern cuts the brand red, which fades out towards the middle) */
app-videos .films::before {
  inset: 0;
  background: radial-gradient(75% 70% at 50% 55%, transparent 30%, color-mix(in srgb, var(--red) 60%, transparent) 100%);
  -webkit-mask: url("../assets/misc/nap-pattern.svg") 0 0/300px 300px repeat;
  mask: url("../assets/misc/nap-pattern.svg") 0 0/300px 300px repeat;
  opacity: 0.32;
}
/* (the projector beam, soft-edged) */
app-videos .films::after {
  top: -6%;
  left: 50%;
  width: min(1200px, 140%);
  height: 75%;
  background: conic-gradient(from 158deg at 50% 0%, transparent 0deg, rgba(255, 252, 246, 0.85) 22deg, transparent 44deg);
  filter: blur(28px);
  transform: translateX(-50%);
}
/* (over the backdrop; the player window stays out of it, over the whole page) */
app-videos .films > .container {
  position: relative;
  z-index: 1;
}
:root[data-theme=dark] app-videos .films {
  background:
    radial-gradient(55% 50% at 4% 0%, rgba(232, 150, 80, 0.16), transparent 72%),
    radial-gradient(60% 42% at 50% 112%, rgba(215, 26, 33, 0.2), transparent 74%),
    radial-gradient(50% 60% at 100% 100%, rgba(215, 26, 33, 0.1), transparent 72%),
    linear-gradient(165deg, #1e1815 0%, #181311 60%, #130f0e 100%);
}
:root[data-theme=dark] app-videos .films::before {
  opacity: 0.4;
}
:root[data-theme=dark] app-videos .films::after {
  background: conic-gradient(from 158deg at 50% 0%, transparent 0deg, rgba(255, 236, 214, 0.07) 22deg, transparent 44deg);
}
@media (max-width: 639px) {
  app-videos .films::before {
    -webkit-mask-size: 220px 220px;
    mask-size: 220px 220px;
    background: radial-gradient(90% 60% at 50% 50%, transparent 40%, color-mix(in srgb, var(--red) 60%, transparent) 100%);
  }
}

/* the heading centred, with a rule on either side of the eyebrow */
app-videos .films__head {
  justify-items: center;
  text-align: center;
}
app-videos .films__head .eyebrow::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
}

/* ---- the layout: the featured film, the cards beside it (desktop) or under it ---- */
app-videos .films__grid {
  display: grid;
  gap: var(--gap);
}

/* the cards, a white card each, a little see-through over the backdrop: the cover, then the words under it */
app-videos .feature,
app-videos .film__btn {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 2px rgba(23, 19, 18, 0.04), 0 22px 44px -30px rgba(80, 46, 26, 0.45);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.35s, background-color 0.35s;
}
:root[data-theme=dark] app-videos .feature,
:root[data-theme=dark] app-videos .film__btn {
  border-color: var(--edge);
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.8);
}
/* on hover a card rises, its edge turns red, a red glow under it and a red line grows along its foot */
app-videos .feature::after,
app-videos .film__btn::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}
app-videos .feature:hover,
app-videos .film__btn:hover,
app-videos .film__btn:focus-visible {
  border-color: color-mix(in srgb, var(--red) 32%, #fff);
  background-color: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 12%, transparent), 0 34px 60px -30px rgba(176, 20, 26, 0.5), 0 12px 24px -16px rgba(80, 46, 26, 0.35);
}
app-videos .feature:hover {
  transform: translateY(-5px);
}
app-videos .feature:hover::after,
app-videos .film__btn:hover::after,
app-videos .film__btn:focus-visible::after {
  transform: scaleX(1);
}
:root[data-theme=dark] app-videos .feature:hover,
:root[data-theme=dark] app-videos .film__btn:hover,
:root[data-theme=dark] app-videos .film__btn:focus-visible {
  border-color: color-mix(in srgb, var(--red) 45%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 18%, transparent), 0 34px 60px -28px rgba(215, 26, 33, 0.4), 0 26px 48px -26px rgba(0, 0, 0, 0.9);
}

/* ---- the featured film ---- */
app-videos .feature {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

app-videos .feature__media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--night);
  cursor: pointer;
}
app-videos .feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
app-videos .feature__media:hover img {
  transform: scale(1.03);
}

/* the film playing silently over its picture, fading in once it plays. The player is taller than the frame: the film
   still fills the frame's width (16:9), and YouTube's title bar and logo sit in the bands above and below, cut off. */
app-videos .feature__preview {
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
  height: calc(100% + 160px);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s;
}
app-videos .feature__preview.is-ready {
  opacity: 1;
}

app-videos .feature__body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  padding: clamp(16px, 1.6vw, 22px) clamp(16px, 1.9vw, 26px);
}
app-videos .feature__copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
app-videos .feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 25px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
app-videos .feature__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
app-videos .feature__watch {
  flex: none;
  min-height: 46px;
  padding: 0 22px;
}
app-videos .feature__watch svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

app-videos .feature__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

/* sound on / off for the playing preview, in the film's top corner */
app-videos .sound {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 11, 10, 0.55);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s;
}
app-videos .sound svg {
  width: 17px;
  height: 17px;
}
app-videos .sound:hover {
  background: var(--red);
}

/* ---- the film cards ---- */
app-videos .films__side,
app-videos .films__more {
  display: grid;
  gap: var(--gap);
}

app-videos .film {
  display: flex;
  min-width: 0;
}

/* (the cover inset in the card, its corners rounded) */
app-videos .film__btn {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 7px;
  text-align: left;
  color: var(--ink);
}
app-videos .film__btn:hover {
  transform: translateY(-8px);
}
app-videos .film__btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

app-videos .film__media {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--sand);
}
app-videos .film__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
app-videos .film__btn:hover img,
app-videos .film__btn:focus-visible img {
  transform: scale(1.08);
}
/* (on hover the cover dims a little at its foot, and a streak of light sweeps across it) */
app-videos .film__media::before,
app-videos .film__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
app-videos .film__media::before {
  background: linear-gradient(to top, rgba(15, 11, 10, 0.32), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
}
app-videos .film__media::after {
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.5) 48%, rgba(255, 255, 255, 0.15) 54%, transparent 68%);
  transform: translateX(-130%);
}
app-videos .film__btn:hover .film__media::before,
app-videos .film__btn:focus-visible .film__media::before {
  opacity: 1;
}
app-videos .film__btn:hover .film__media::after,
app-videos .film__btn:focus-visible .film__media::after {
  transform: translateX(130%);
  transition: transform 0.95s var(--ease);
}

/* the words: the category's icon, its name over the film's title, and a round play button */
app-videos .film__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 4px 4px 6px;
}
app-videos .film__icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.45s var(--ease);
}
app-videos .film__btn:hover .film__icon,
app-videos .film__btn:focus-visible .film__icon {
  transform: translateY(-2px) rotate(-8deg) scale(1.1);
}
app-videos .film__btn:hover .film__tag,
app-videos .film__btn:focus-visible .film__tag {
  color: var(--red);
}
app-videos .film__words {
  display: grid;
  gap: 2px;
  min-width: 0;
}
app-videos .film__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s;
}
app-videos .film__title {
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* (the play button: a bead of red-tinted glass, a shine across its top; on hover it fills with red glass) */
app-videos .film__go {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--red) 30%, rgba(255, 255, 255, 0.85));
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--red) 9%, rgba(255, 255, 255, 0.5));
  background-image: radial-gradient(110% 80% at 50% 115%, color-mix(in srgb, var(--red) 24%, transparent), transparent 70%);
  -webkit-backdrop-filter: blur(8px) saturate(1.6);
  backdrop-filter: blur(8px) saturate(1.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 6px color-mix(in srgb, var(--red) 20%, transparent), 0 6px 14px -6px color-mix(in srgb, var(--red) 55%, transparent);
  color: var(--red);
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.35s, transform 0.35s var(--ease);
}
app-videos .film__go::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1px;
  left: 15%;
  right: 15%;
  height: 48%;
  border-radius: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  pointer-events: none;
}
app-videos .film__go svg {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-left: 2px;
  fill: currentColor;
  filter: drop-shadow(0 1px 1px color-mix(in srgb, var(--red) 30%, transparent));
}
app-videos .film__btn:hover .film__go,
app-videos .film__btn:focus-visible .film__go {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: color-mix(in srgb, var(--red) 86%, transparent);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -3px 7px rgba(90, 0, 4, 0.4), 0 10px 22px -6px color-mix(in srgb, var(--red) 75%, transparent);
  transform: scale(1.12);
}
:root[data-theme=dark] app-videos .film__go {
  border-color: color-mix(in srgb, var(--red) 40%, rgba(255, 255, 255, 0.2));
  background-color: color-mix(in srgb, var(--red) 16%, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}
:root[data-theme=dark] app-videos .film__go::after {
  opacity: 0.35;
}
/* a narrow card (two across on a phone, four in a row on a tablet, a smaller desktop): the icon over the words, the
   play button in the cover's corner */
app-videos .film__btn {
  container-type: inline-size;
}
@container (max-width: 200px) {
  app-videos .film__body {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 10px 4px 4px;
  }
  app-videos .film__icon {
    width: 22px;
    height: 22px;
  }
  app-videos .film__tag {
    font-size: 11px;
  }
  app-videos .film__title {
    font-size: 12.5px;
  }
  app-videos .film__go {
    position: absolute;
    top: -42px;
    right: 6px;
  }
}

/* ---- the featured film's play button: frosted glass in a white ring, a ring rippling out of it ---- */
app-videos .play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--red) 34%, rgba(20, 14, 12, 0.3));
  background-image:
    radial-gradient(70% 42% at 50% 8%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 100%),
    radial-gradient(90% 60% at 50% 110%, rgba(255, 120, 110, 0.35), transparent 70%);
  color: #fff;
  -webkit-backdrop-filter: blur(10px) saturate(1.5);
  backdrop-filter: blur(10px) saturate(1.5);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.45), inset 0 -4px 10px rgba(90, 0, 4, 0.35), 0 14px 36px -10px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  transition: background-color 0.3s, border-color 0.25s, box-shadow 0.3s, opacity 0.3s, transform 0.3s var(--ease);
}
app-videos .play::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: app-videos--ripple 2.6s var(--ease) infinite;
  pointer-events: none;
}
app-videos .play svg {
  width: 38%;
  height: 38%;
  margin-left: 7%;
  fill: currentColor;
}
app-videos .feature__media:hover .play--lg {
  border-color: #fff;
  background-color: color-mix(in srgb, var(--red) 82%, transparent);
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.5), inset 0 -4px 10px rgba(90, 0, 4, 0.45), 0 16px 40px -10px color-mix(in srgb, var(--red) 70%, transparent);
  transform: translate(-50%, -50%) scale(1.06);
}
@keyframes app-videos--ripple {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  75%,
  to {
    transform: scale(1.45);
    opacity: 0;
  }
}
/* while the preview plays the button steps aside, and comes back under the pointer (a click plays it with sound) */
app-videos .feature.is-playing .play--lg {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}
app-videos .feature.is-playing .feature__media:hover .play--lg {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---- phones: the cards two across (an odd first card across both) ---- */
app-videos .films__side {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
app-videos .films__grid[data-count="1"] .films__side {
  grid-template-columns: minmax(0, 1fr);
}
app-videos .films__grid[data-count="1"] .film__media,
app-videos .films__grid[data-count="3"] .film:first-child .film__media {
  aspect-ratio: 16/9;
}
app-videos .films__grid[data-count="3"] .film:first-child {
  grid-column: span 2;
}
app-videos .films__more {
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  margin-top: var(--gap);
}

@media (max-width: 639px) {
  app-videos .feature__body {
    flex-direction: column;
    align-items: stretch;
  }
  app-videos .feature__text {
    -webkit-line-clamp: 3;
  }
  app-videos .film__btn {
    padding: 6px;
  }
  app-videos .play--lg {
    width: 62px;
    height: 62px;
  }
}

/* ---- tablets: the cards in one row under the featured film ---- */
@media (min-width: 640px) {
  app-videos .films__side {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  app-videos .films__grid[data-count="3"] .film:first-child {
    grid-column: auto;
  }
  app-videos .films__grid[data-count="3"] .film:first-child .film__media {
    aspect-ratio: 4/3;
  }
  app-videos .films__more {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* ---- desktops: the cards beside the featured film, as tall as it ---- */
@media (min-width: 960px) {
  app-videos .films__grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  }
  app-videos .films__grid[data-count="0"] {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 900px);
    margin-inline: auto;
  }
  app-videos .films__side {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  app-videos .films__grid[data-count="1"] .films__side,
  app-videos .films__grid[data-count="2"] .films__side {
    grid-template-columns: minmax(0, 1fr);
  }
  app-videos .films__grid[data-count="1"] .films__side {
    grid-template-rows: minmax(0, 1fr);
  }
  app-videos .films__grid[data-count="3"] .film:first-child {
    grid-column: span 2;
  }
  /* the cover takes the height the words leave */
  app-videos .films__grid[data-count] .films__side .film:nth-child(n) .film__media {
    flex: 1 1 0;
    min-height: 0;
    aspect-ratio: auto;
  }
  app-videos .films__more {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  app-videos .films__more .film__media {
    aspect-ratio: 16/10;
  }
}

/* ---- the player window ----------------------------------------------------- */
app-videos .modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 5, 5, 0.88);
  backdrop-filter: blur(6px);
  animation: app-videos--fade 0.25s ease-out;
}

app-videos .modal__frame {
  width: min(1100px, 100%, (100vh - 120px) * 16 / 9);
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
}
app-videos .modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

app-videos .modal__close {
  position: absolute;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color 0.2s;
}
app-videos .modal__close svg {
  width: 20px;
  height: 20px;
}
app-videos .modal__close:hover {
  background: var(--red);
}

@keyframes app-videos--fade {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  app-videos .modal {
    animation: none;
  }
  app-videos .film__btn,
  app-videos .film__btn:hover,
  app-videos .feature:hover,
  app-videos .film__btn:hover .film__icon {
    transform: none;
  }
  app-videos .film__media::after {
    display: none;
  }
  app-videos .play::before {
    animation: none;
    opacity: 0;
  }
}

/* ════════ <app-shop-look> ════════ */

app-shop-look {
  display: block;
}

app-shop-look .look {
  background: var(--paper);
}

app-shop-look .look__head {
  justify-items: center;
  text-align: center;
}

/* Desktop: a tall picture on the left with one under it, a wide one along the top */
/* and two side by side below it — the rows are sized so their edges line up. */
app-shop-look .mosaic {
  display: grid;
  grid-template-columns: 370fr 470fr 463fr;
  grid-template-rows: 270fr 83fr 421fr;
  grid-template-areas: "a b b" "a c d" "e c d";
  gap: clamp(8px, 1vw, 12px);
  aspect-ratio: 1324/798;
}

app-shop-look .tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  /* the dots work out where the crop puts them from the tile's own size */
  container-type: size;
}
app-shop-look .tile:hover, app-shop-look .tile:focus-within, app-shop-look .tile:has(.is-open) {
  z-index: 2;
}
app-shop-look .tile--1 {
  grid-area: a;
}
app-shop-look .tile--2 {
  grid-area: b;
}
app-shop-look .tile--3 {
  grid-area: c;
}
app-shop-look .tile--4 {
  grid-area: d;
}
app-shop-look .tile--5 {
  grid-area: e;
}

app-shop-look .tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: calc(var(--fx) * 100%) calc(var(--fy) * 100%);
  border-radius: 6px;
  background: var(--sand);
}

/* A point in the picture, carried through the cover crop: */
/* offset of the crop + the point's share of the picture as drawn. */
app-shop-look .spot {
  position: absolute;
  left: calc(var(--fx) * 100cqw + (var(--x) - var(--fx)) * max(100cqw, 100cqh * var(--ratio)));
  top: calc(var(--fy) * 100cqh + (var(--y) - var(--fy)) * max(100cqh, 100cqw / var(--ratio)));
  width: 0;
  height: 0;
}

app-shop-look .spot__dot {
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease), background-color 0.25s;
  /* the solid centre */
  /* the ring that keeps pulsing outward */
}
app-shop-look .spot__dot::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #fff;
}
app-shop-look .spot__dot::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  animation: app-shop-look--spot-pulse 2s ease-out infinite;
}
app-shop-look .spot__dot:hover, app-shop-look .spot.is-open .spot__dot {
  transform: scale(1.12);
  background: var(--red);
}

@keyframes app-shop-look--spot-pulse {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}

app-shop-look .card {
  position: absolute;
  left: 26px;
  top: -18px;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  max-width: min(270px, 70vw);
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 40px -14px rgba(15, 11, 10, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
app-shop-look .is-left .card {
  left: auto;
  right: 26px;
}
app-shop-look .is-up .card {
  top: auto;
  bottom: -18px;
}
app-shop-look .spot:hover .card, app-shop-look .spot:focus-within .card, app-shop-look .spot.is-open .card {
  opacity: 1;
  visibility: visible;
  transform: none;
}

app-shop-look .card__img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

app-shop-look .card__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

app-shop-look .card__name {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
}

app-shop-look .card__price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
}
app-shop-look .card__price s {
  font-size: 12px;
  color: var(--muted);
}

app-shop-look .card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}
app-shop-look .card__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}
app-shop-look .card:hover .card__cta svg {
  transform: translateX(3px);
}

/* Phones and small tablets: the wide picture first, then two across. */
@media (max-width: 760px) {
  app-shop-look .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-template-areas: "b b" "a e" "c d";
    aspect-ratio: auto;
  }
  app-shop-look .tile {
    aspect-ratio: 4/5;
  }
  app-shop-look .tile--2 {
    aspect-ratio: 16/9;
  }
  app-shop-look .spot__dot {
    left: -14px;
    top: -14px;
    width: 28px;
    height: 28px;
  }
  app-shop-look .spot__dot::before {
    inset: 9px;
  }
  app-shop-look .card {
    left: 20px;
    gap: 10px;
    max-width: min(220px, 60vw);
    padding: 8px 10px 8px 8px;
  }
  app-shop-look .is-left .card {
    right: 20px;
  }
  app-shop-look .card__img {
    width: 56px;
    height: 56px;
  }
  app-shop-look .card__name {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  app-shop-look .spot__dot::after {
    animation: none;
  }
}

/* ════════ <app-testimonials> ════════ */

app-testimonials {
  display: block;
}

app-testimonials {
  /* the two rows, fading out at either edge of the screen */
  /* (each review carries the gap after it, so that one lap is exactly half of the track) */
  /* Touch screens have no pointer to stop a row with, and some visitors ask for */
  /* less motion: the rows stand still and are swiped along instead. */
}
app-testimonials .testimonials {
  --card: clamp(280px, 26vw, 380px);
  --gap: clamp(14px, 1.6vw, 22px);
  background: var(--cream);
  overflow: hidden;
}
app-testimonials .testimonials__head {
  justify-items: center;
  text-align: center;
}
app-testimonials .wall {
  display: grid;
  /* (a row is far wider than the screen: the column must not grow to hold it) */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
app-testimonials .row__track {
  display: flex;
  width: max-content;
  animation: app-testimonials--drift 70s linear infinite;
  /* the pointer or the keyboard is on a review: hold still while it is read */
}
app-testimonials .row:hover .row__track, app-testimonials .row:focus-within .row__track {
  animation-play-state: paused;
}
app-testimonials .row--back .row__track {
  animation-direction: reverse;
}
app-testimonials .row__lap {
  display: flex;
}
@keyframes app-testimonials--drift {
  to {
    transform: translateX(-50%);
  }
}
app-testimonials .quote {
  /* (holds its screen-reader-only rating, which would otherwise escape the row and widen the page) */
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: var(--card);
  margin-right: var(--gap);
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
app-testimonials .stars {
  display: inline-flex;
  gap: 2px;
}
app-testimonials .stars svg {
  width: 17px;
  height: 17px;
  fill: var(--edge-strong);
}
app-testimonials .stars svg.is-on {
  fill: #e9a11b;
}
app-testimonials .quote__text {
  flex: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.4;
  text-wrap: pretty;
}
app-testimonials .quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
app-testimonials .quote__face {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark-chip);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
app-testimonials .quote__who {
  display: grid;
  line-height: 1.35;
}
app-testimonials .quote__name {
  font-weight: 600;
}
app-testimonials .quote__meta {
  font-size: 13px;
  color: var(--muted);
}
app-testimonials .quote__meta a {
  color: var(--red);
  font-weight: 600;
}
app-testimonials .quote__meta a:hover {
  text-decoration: underline;
}
@media (hover: none) {
  app-testimonials .wall {
    -webkit-mask-image: none;
    mask-image: none;
  }
  app-testimonials .row {
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  app-testimonials .row::-webkit-scrollbar {
    display: none;
  }
  app-testimonials .row__track {
    animation: none;
  }
  app-testimonials .row__lap[aria-hidden] {
    display: none;
  }
  app-testimonials .quote {
    scroll-snap-align: start;
  }
  app-testimonials .quote:last-child {
    margin-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  app-testimonials .wall {
    -webkit-mask-image: none;
    mask-image: none;
  }
  app-testimonials .row {
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  app-testimonials .row::-webkit-scrollbar {
    display: none;
  }
  app-testimonials .row__track {
    animation: none;
  }
  app-testimonials .row__lap[aria-hidden] {
    display: none;
  }
  app-testimonials .quote {
    scroll-snap-align: start;
  }
  app-testimonials .quote:last-child {
    margin-right: 0;
  }
}
@media (max-width: 600px) {
  app-testimonials .testimonials {
    --card: 78vw;
  }
}

/* ════════ <app-mobile-app> ════════ */

app-mobile-app {
  display: block;
}

/* a dark card, lit in the brand's red like the AR section: the words on the left, the phone on the right */
app-mobile-app .mobile__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px);
  border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(70% 90% at 100% 100%, rgba(215, 26, 33, 0.42), rgba(215, 26, 33, 0) 62%), radial-gradient(50% 60% at 0% 0%, rgba(215, 26, 33, 0.14), rgba(215, 26, 33, 0) 62%), linear-gradient(180deg, var(--ink-fixed), var(--night));
  color: #fff;
  overflow: hidden;
}

app-mobile-app .mobile__text {
  display: grid;
  gap: 18px;
  justify-items: start;
}
app-mobile-app .mobile__text .eyebrow,
app-mobile-app .mobile__text .title em {
  color: #ff6a6f;
}
app-mobile-app .mobile__text .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* the two store buttons */
app-mobile-app .stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

app-mobile-app .store {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 8px 20px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  background: #000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  transition: border-color 0.25s, transform 0.25s var(--ease);
  /* (only a button that leads somewhere answers the pointer) */
}
app-mobile-app .store svg {
  flex: none;
  width: 26px;
  height: 26px;
}
app-mobile-app .store small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}
app-mobile-app .store[href]:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

app-mobile-app .mobile__soon {
  margin-top: -6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ways to pay */
app-mobile-app .pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  width: 100%;
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

app-mobile-app .pay__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
app-mobile-app .pay__label svg {
  width: 18px;
  height: 18px;
}

app-mobile-app .pay__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
app-mobile-app .pay__list img {
  width: auto;
  height: 40px;
  border-radius: 6px;
}

/* ── the phone: an iPhone, whole, with this page scrolling by on its screen ── */
app-mobile-app .mobile__phone {
  display: flex;
  justify-content: center;
}

app-mobile-app .phone {
  --w: clamp(200px, 19vw, 264px);
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.037);
  border-radius: calc(var(--w) * 0.175);
  background: #171312;
  /* a metal rim round the bezel, and the shadow it stands in */
  box-shadow: inset 0 0 0 1.5px #5a514c, 0 0 0 1px #000, 0 44px 70px -34px rgba(0, 0, 0, 0.95);
  /* the buttons on its sides */
}
app-mobile-app .phone::before, app-mobile-app .phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #3a3330;
}
app-mobile-app .phone::before {
  left: -3px;
  top: 21%;
  height: 7%;
  box-shadow: 0 calc(var(--w) * 0.19) 0 #3a3330;
}
app-mobile-app .phone::after {
  right: -3px;
  top: 27%;
  height: 12%;
}

app-mobile-app .phone__screen {
  display: flex;
  flex-direction: column;
  aspect-ratio: 390/810;
  border-radius: calc(var(--w) * 0.14);
  background: #000;
  overflow: hidden;
}

/* the clock, the island and the battery */
app-mobile-app .phone__status {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.2%;
  padding-inline: 10%;
  font-size: calc(var(--w) * 0.05);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

app-mobile-app .phone__island {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  height: 66%;
  border-radius: 999px;
  background: #1c1917;
  translate: -50% -50%;
}

app-mobile-app .phone__battery {
  position: relative;
  width: calc(var(--w) * 0.085);
  height: calc(var(--w) * 0.042);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--w) * 0.012);
  /* (three-quarters full) */
}
app-mobile-app .phone__battery::before {
  content: "";
  position: absolute;
  inset: 1px 26% 1px 1px;
  border-radius: 1px;
  background: #fff;
}

/* The page, as one tall picture that moves up and back down in steps, like a thumb scrolling: */
/* the hero, the collections, the product cards. (cqh is the height of this window on the page.) */
app-mobile-app .phone__page {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  container-type: size;
}
app-mobile-app .phone__page img {
  width: 100%;
  height: auto;
  animation: app-mobile-app--thumb-scroll 15s infinite alternate;
}

@keyframes app-mobile-app--thumb-scroll {
  0%, 10% {
    translate: 0 0;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  /* the collections */
  30%, 40% {
    translate: 0 calc((100cqh - 100%) * 0.47);
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  /* their small cards */
  58%, 66% {
    translate: 0 calc((100cqh - 100%) * 0.73);
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
  /* the product cards */
  86%, 100% {
    translate: 0 calc(100cqh - 100%);
  }
}

@media (max-width: 860px) {
  app-mobile-app .mobile__card {
    grid-template-columns: 1fr;
  }
  app-mobile-app .phone {
    --w: clamp(190px, 52vw, 240px);
  }
}

@media (max-width: 520px) {
  app-mobile-app .stores {
    width: 100%;
  }
  app-mobile-app .stores li {
    flex: 1 1 150px;
  }
  app-mobile-app .store {
    justify-content: center;
    padding-inline: 12px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  app-mobile-app .phone__page img {
    animation: none;
  }
}

/* ════════ <app-franchise> ════════ */

app-franchise {
  display: block;
}

/* edge to edge, in the brand's red */
app-franchise .franchise {
  position: relative;
  /* (the background layers stay behind the words, and inside the section) */
  isolation: isolate;
  padding-top: clamp(52px, 5.4vw, 84px);
  background: linear-gradient(140deg, #e3272e 0%, var(--red) 36%, #9a0f15 76%, #6c080d 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* ── the moving background ─────────────────────────────────────────────── */
app-franchise .franchise__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* three soft lights that drift slowly, each at its own pace */
app-franchise .glow {
  position: absolute;
  width: 62vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: app-franchise--drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

app-franchise .glow--warm {
  left: -22vmax;
  top: -32vmax;
  background: radial-gradient(circle, rgba(255, 142, 96, 0.6), rgba(255, 142, 96, 0) 62%);
}

app-franchise .glow--deep {
  right: -24vmax;
  bottom: -30vmax;
  background: radial-gradient(circle, rgba(52, 3, 7, 0.8), rgba(52, 3, 7, 0) 62%);
  animation-duration: 29s;
  animation-direction: alternate-reverse;
}

app-franchise .glow--pale {
  left: 46%;
  top: 22%;
  width: 34vmax;
  background: radial-gradient(circle, rgba(255, 205, 165, 0.3), rgba(255, 205, 165, 0) 60%);
  animation-duration: 17s;
}

@keyframes app-franchise--drift {
  to {
    transform: translate3d(9vmax, 6vmax, 0) scale(1.2);
  }
}

/* rings that spread out from behind the headline, one after another */
app-franchise .rings {
  --size: min(150vw, 1700px);
  position: absolute;
  left: 50%;
  top: 38%;
}
app-franchise .rings i {
  position: absolute;
  left: calc(var(--size) / -2);
  top: calc(var(--size) / -2);
  width: var(--size);
  height: var(--size);
  border: 1.5px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  opacity: 0;
  animation: app-franchise--ring 12s linear infinite;
  will-change: transform, opacity;
}
app-franchise .rings i:nth-child(2) {
  animation-delay: -3s;
}
app-franchise .rings i:nth-child(3) {
  animation-delay: -6s;
}
app-franchise .rings i:nth-child(4) {
  animation-delay: -9s;
}

@keyframes app-franchise--ring {
  0% {
    transform: scale(0.06);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* a pool of light under the pointer (Franchise sets --mx and --my, and .is-lit while the pointer is here) */
app-franchise .franchise__light {
  position: absolute;
  inset: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
app-franchise .is-lit .franchise__light {
  opacity: 1;
}

/* ── the words ─────────────────────────────────────────────────────────── */
app-franchise .franchise__inner {
  display: grid;
  justify-items: center;
  gap: 14px;
}
app-franchise .franchise__inner .eyebrow {
  color: #ffe3d6;
}

app-franchise .franchise__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2.9vw, 39px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
app-franchise .franchise__title em {
  font-style: italic;
  color: #ffd9c6;
}

app-franchise .franchise__lead {
  max-width: 70ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}

app-franchise .franchise__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* ── the cities: two rows passing each other, fading out at the edges ──── */
app-franchise .cities {
  display: grid;
  /* (a row is far wider than the screen: the column must not grow to hold it) */
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: clamp(26px, 3vw, 44px);
  padding-bottom: clamp(18px, 2.2vw, 30px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

app-franchise .cities__row {
  display: flex;
  width: max-content;
  animation: app-franchise--pass 52s linear infinite;
}

app-franchise .cities__row--back {
  animation-duration: 64s;
  animation-direction: reverse;
}

/* (each name carries the gap after it, so that one lap is exactly half of the row) */
app-franchise .cities__lap {
  flex: none;
  display: flex;
}

/* the first row in outline, the second filled and fainter */
app-franchise .city {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.14;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.62);
  /* a dot between one name and the next */
}
app-franchise .city::after {
  content: "";
  width: 0.14em;
  height: 0.14em;
  margin-inline: 0.42em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}
app-franchise .cities__row--back .city {
  color: rgba(255, 255, 255, 0.16);
  -webkit-text-stroke: 0;
}

@keyframes app-franchise--pass {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 700px) {
  app-franchise .franchise__actions .btn {
    flex: 1 1 100%;
  }
}

/* less motion: everything holds still, and the rings — which are only motion — go */
@media (prefers-reduced-motion: reduce) {
  app-franchise .glow,
  app-franchise .cities__row {
    animation: none;
  }
  app-franchise .rings {
    display: none;
  }
}

/* ════════ <app-ar> ════════ */

app-ar {
  display: block;
}

/* The section is as tall as the screen plus one "step" per extra chair; its */
/* content sticks to the screen while that height scrolls past, and ar.ts */
/* turns the distance scrolled into the position of the strip. */
app-ar .ar {
  /* how far the page scrolls to move the strip on by one chair */
  --step: 100svh;
  /* space between boxes (plain px: ar.ts reads it) */
  --gap: 16px;
  /* the heading, centred above the big box: the size of its two lines, the height they take, and the space on either side of them */
  --kicker: clamp(14px, 1.15vw, 22px);
  --title: clamp(26px, 2.3vw, 44px);
  --head-h: calc(var(--kicker) * 1.2 + var(--title) * 1.08);
  --head-gap: 18px;
  /* what is kept clear above the big box (the site header and the heading) and below it */
  --clear-top: calc(var(--header-h) + var(--head-h) + 2 * var(--head-gap));
  --clear-bottom: 92px;
  --room: calc(100svh - var(--clear-top) - var(--clear-bottom));
  /* the big box — 31:40, the same shape as the small ones */
  --frame-w: min(var(--room) * 0.775, 46vw, 640px);
  --frame-h: calc(var(--frame-w) / 0.775);
  --thumb-w: calc(var(--frame-w) * 0.345);
  --thumb-h: calc(var(--frame-h) * 0.345);
  /* the line the strip runs along */
  --mid: calc(var(--clear-top) + var(--room) / 2);
  /* from the middle of that line to the near edge of the first box beside the big one */
  --reach: calc(var(--frame-w) / 2 + var(--gap));
  --side: clamp(20px, 3.2vw, 60px);
  /* the picture of the room behind the whole section (public/assets/ar/room.webp, made by `npm run ar:room`): */
  /* its pixel size, and the share of the viewer's own pixels it was drawn at. Its middle is what the big box */
  /* shows, so it is sized to the box — or, on a screen the box does not fill, to cover the screen. */
  --room-w: 2700;
  --room-h: 1560;
  --room-scale: 0.62;
  --bg-w: max(calc(var(--frame-h) * var(--room-w) / (1600 * var(--room-scale))), 100vw, calc(100svh * var(--room-w) / var(--room-h)));
  --bg-h: calc(var(--bg-w) * var(--room-h) / var(--room-w));
  position: relative;
  height: calc(100svh + (var(--count, 1) - 1) * var(--step));
  /* an in-page link lands with the section filling the screen, not below the header like the rest */
  scroll-margin-top: 0;
  background: var(--night);
  color: #fff;
}

app-ar .ar__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  /* the living room, dimmed at the top and the bottom so that the heading and the controls stay readable, */
  /* with a little of the site's red at the bottom left */
  background-image: linear-gradient(180deg, rgba(15, 11, 10, 0.96), rgba(15, 11, 10, 0.82) 15%, rgba(15, 11, 10, 0.45) 30%, rgba(15, 11, 10, 0) 48%), linear-gradient(0deg, rgba(23, 19, 18, 0.82), rgba(23, 19, 18, 0) 32%), radial-gradient(60% 50% at 0% 100%, rgba(215, 26, 33, 0.3), rgba(215, 26, 33, 0)), url("../assets/ar/room.webp");
  background-repeat: no-repeat;
  background-color: var(--night);
  background-size: 100% 100%, 100% 100%, 100% 100%, var(--bg-w) auto;
  /* (the picture's middle on the box's middle — unless that would leave a gap at the top or the bottom) */
  background-position: 0 0, 0 0, 0 0, 50% clamp(100svh - var(--bg-h), var(--mid) - var(--bg-h) / 2, 0px);
}

/* ── heading ───────────────────────────────────────────────────────────── */
/* top centre, between the site header and the big box */
app-ar .ar__head {
  position: absolute;
  left: 50%;
  top: calc(var(--header-h) + var(--head-gap));
  translate: -50% 0;
  width: max-content;
  max-width: calc(100% - 2 * var(--side));
  text-align: center;
}

app-ar .ar__kicker {
  display: block;
  font-size: var(--kicker);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

app-ar .ar__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--title);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* ── the strip of small boxes ──────────────────────────────────────────── */
app-ar .ar__strip {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--mid) - var(--thumb-h) / 2);
  height: var(--thumb-h);
  cursor: grab;
  /* a sideways drag moves the strip; an up-and-down one still scrolls the page */
  touch-action: pan-y;
  user-select: none;
  /* the boxes pass behind the big one: nothing shows between its two neighbours */
  mask-image: linear-gradient(90deg, #000 calc(50% - var(--reach)), transparent calc(50% - var(--reach)), transparent calc(50% + var(--reach)), #000 calc(50% + var(--reach)));
}
app-ar .is-dragging .ar__strip {
  cursor: grabbing;
}

app-ar .thumb {
  position: absolute;
  left: calc(50% - var(--thumb-w) / 2);
  top: 0;
  width: var(--thumb-w);
  height: var(--thumb-h);
  background: var(--backdrop);
  border-radius: 18px;
  overflow: hidden;
  /* where it stands until the script takes over: queued up to the right of the big box */
  transform: translate3d(calc(var(--reach) + var(--thumb-w) / 2 + (var(--i) - 1) * (var(--thumb-w) + var(--gap))), 0, 0);
  will-change: transform, opacity;
}
app-ar .thumb:first-child {
  transform: none;
}
app-ar .thumb img {
  width: 100%;
  height: 100%;
  padding: 12% 8%;
  object-fit: contain;
  pointer-events: none;
  transition: scale 0.5s var(--ease);
}
app-ar .thumb:hover img {
  scale: 1.05;
}
app-ar .thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
app-ar .is-dragging .thumb {
  cursor: grabbing;
}

/* ── the big box ───────────────────────────────────────────────────────── */
app-ar .ar__frame {
  position: absolute;
  left: 50%;
  top: var(--mid);
  translate: -50% -50%;
}

app-ar .ar__window {
  position: relative;
  width: var(--frame-w);
  height: var(--frame-h);
  overflow: hidden;
  /* (no background of its own: the chair stands in the section's living room) */
}

/* one per chair, side by side: they slide through the window in step with the strip */
app-ar .slide {
  position: absolute;
  inset: 0;
  /* (no backdrop of its own: the chair is seen against the room) */
  transform: translate3d(calc(var(--i) * 100%), 0, 0);
  will-change: transform;
}
app-ar .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  /* (the picture comes back quickly when the strip moves on, and gives way gently to the 3D model) */
  transition: opacity 0.14s ease;
}

app-ar .is-live .slide.is-active img {
  opacity: 0;
  transition-duration: 0.5s;
}

app-ar .slide__label {
  position: absolute;
  left: 14px;
  top: 14px;
  max-width: calc(100% - 76px);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  /* (a chip: the wall behind it is light in places) */
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(23, 19, 18, 0.58);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
}
app-ar .slide__label span {
  margin-right: 9px;
  color: #fff;
}

/* the live 3D model, laid over the picture of the chair in the middle */
app-ar .ar__viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  /* (the picture is the loading state: no progress bar) */
  --progress-bar-color: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}
app-ar .is-live .ar__viewer {
  opacity: 1;
  pointer-events: auto;
  transition-duration: 0.5s;
}

app-ar .ar__launch {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.55);
  transition: background-color 0.25s, scale 0.15s;
}
app-ar .ar__launch svg {
  width: 20px;
  height: 20px;
}
app-ar .ar__launch:hover {
  background: var(--red-dark);
}
app-ar .ar__launch:active {
  scale: 0.97;
}

app-ar .ar__hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #2b2422;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  /* only while there is a model to turn, nobody has turned it yet, and the AR button is not in its place */
}
app-ar .is-live:not(.is-touched):not(.has-ar) .ar__hint {
  opacity: 1;
}

/* the price: a box that opens over the room when the chair is tapped */
app-ar .ar__price {
  position: absolute;
  left: 14px;
  top: 44px;
  width: min(176px, 46%);
  padding: 14px 16px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  /* (a white card in either theme: its text keeps the dark ink) */
  --ink: var(--ink-fixed);
  --ink-soft: #2b2422;
  --muted: #6d6460;
  color: var(--ink);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55);
  transform-origin: 0 0;
  opacity: 0;
  visibility: hidden;
  scale: 0.92;
  transition: opacity 0.22s ease, scale 0.28s var(--ease), visibility 0.22s;
}
app-ar .ar__price.is-open {
  opacity: 1;
  visibility: visible;
  scale: 1;
}
app-ar .ar__price p {
  margin: 0;
}

app-ar .ar__price-close {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color 0.2s;
}
app-ar .ar__price-close:hover {
  background: rgba(23, 19, 18, 0.08);
}
app-ar .ar__price-close svg {
  width: 14px;
  height: 14px;
}

app-ar .ar__price-name {
  padding-right: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink-soft);
}

app-ar .ar__price-now {
  margin-top: 6px !important;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

app-ar .ar__price-sub {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px !important;
  font-size: 12px;
}
app-ar .ar__price-sub s {
  color: rgba(23, 19, 18, 0.5);
}
app-ar .ar__price-sub span {
  font-weight: 600;
  color: var(--red);
}

app-ar .ar__price-cta {
  display: block;
  margin-top: 12px;
  padding: 9px 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.25s;
}
app-ar .ar__price-cta:hover {
  background: var(--red-dark);
}

/* ── tablet & phone ── */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  app-ar .ar {
    --step: 85svh;
    --side: var(--gutter);
    --kicker: clamp(14px, 3vw, 20px);
    --title: clamp(25px, 5.6vw, 40px);
    --clear-bottom: 60px;
    --frame-w: min(var(--room) * 0.775, 72vw, 560px);
  }
}

@media (max-width: 600px) {
  app-ar .ar {
    --gap: 10px;
    --head-gap: 14px;
    --frame-w: min(var(--room) * 0.775, 78vw);
  }
  app-ar .slide__label {
    left: 8px;
    top: 8px;
    padding: 4px 9px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  app-ar .ar__price {
    left: 8px;
    top: 40px;
    padding: 12px 13px;
  }
  app-ar .ar__price-now {
    font-size: 22px;
  }
  app-ar .ar__launch {
    bottom: 12px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }
}

/* short landscape phones: room for the strip and little else */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  app-ar .ar {
    --kicker: 12px;
    --title: 19px;
    --head-gap: 6px;
    --clear-bottom: 16px;
    --mid: calc(var(--clear-top) + var(--room) / 2);
  }
  app-ar .slide__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  app-ar .thumb img {
    transition: none;
  }
}
