/* Deppo shop: the list of products and the page for the RFID tag. Built on site.css (colours, type, nav, buttons).
   The shop is laid out the way Starlink's is: a plain title, the units, then accessories as cards; a product page
   with the picture on the left, held in view, and the choices on the right. */

.shop-page {
  --ink: #15140f;
  --paper: #f3f1eb;
}

/* ---- the list ---- */
.shop {
  max-width: 96rem;
  margin-inline: auto;
  padding: calc(var(--nav-h) + clamp(1.5rem, 5vh, 3.25rem)) var(--gutter) clamp(4rem, 10vh, 7rem);
}
.shop__title {
  font-size: clamp(2.75rem, 1.6rem + 3.4vw, 4.5rem);
}
.shop__block {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
.shop__heading {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 660;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.unit {
  position: relative;
  isolation: isolate;
  min-height: clamp(17rem, 40vh, 24rem);
  display: flex;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--night-surface);
}
.unit__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% 50%;
  transition: transform 900ms var(--ease);
}
.unit:hover .unit__img {
  transform: scale(1.03);
}
/* the photograph is darkened under the words only */
.unit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(18 17 14 / 0.9) 0%, rgb(18 17 14 / 0.62) 38%, rgb(18 17 14 / 0) 70%);
}
.unit__body {
  align-self: end;
  max-width: 24rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}
.unit__name {
  font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem);
}
.unit__lead {
  margin: 0.6rem 0 1.25rem;
  color: rgb(243 241 235 / 0.86);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
}
.product {
  display: block;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--night-surface);
  transition: background-color 200ms var(--ease);
}
.product:hover {
  background: var(--night-surface-2);
}
.product__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--night);
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.product:hover .product__media img {
  transform: scale(1.04);
}
.product__text {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.125rem 1.125rem;
}
.product__name {
  font-size: 1.0625rem;
}
.product__price {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 1.125rem;
}

/* the footer lines up with the shop, which is wider than the home page's text */
.shop-page .footer .wrap {
  max-width: 96rem;
}

/* ---- the product page ---- */
.pdp {
  --stage-h: calc(100vh - var(--nav-h) - 6.25rem);
  max-width: 112rem;
  margin-inline: auto;
  padding: calc(var(--nav-h) + 0.75rem) var(--gutter) clamp(3rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 25rem);
  grid-template-areas: "back back" "stage config";
  column-gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
@supports (height: 100svh) {
  .pdp {
    --stage-h: calc(100svh - var(--nav-h) - 6.25rem);
  }
}
.pdp__back {
  grid-area: back;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: -0.4rem;
  padding: 0.4rem 0.6rem 0.4rem 0.2rem;
  font-size: 0.9375rem;
  font-weight: 560;
  color: var(--night-ink-2);
  transition: color 160ms var(--ease);
}
.pdp__back:hover {
  color: var(--night-ink);
}
.pdp__back svg {
  width: 1.125rem;
  height: 1.125rem;
}
.pdp__stage {
  grid-area: stage;
  position: sticky;
  top: calc(var(--nav-h) + 0.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0.75rem;
}
/* the picture is 16 by 13 and as large as the column and the window allow; its ground is the page's own colour,
   so the tag hangs on the page with no frame round it */
.stage {
  position: relative;
  width: min(100%, var(--stage-h) * 16 / 13);
  aspect-ratio: 16 / 13;
  overflow: hidden;
}
.stage__canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.print {
  --body: var(--paper);
  position: absolute;
  left: 0;
  top: 0;
  width: 460px;
  height: 745px;
  transform-origin: 0 0;
  color: var(--ink);
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.print.is-ready {
  opacity: 0.93;
}
.print[hidden] {
  display: none;
}
.print__label {
  position: absolute;
  left: 36px;
  font-size: 27px;
  font-weight: 520;
  line-height: 1;
  white-space: nowrap;
}
.print__line {
  position: absolute;
  right: 36px;
  height: 2.4px;
  border-radius: 2px;
  background: currentColor;
}
.print__logo {
  position: absolute;
  left: 44px;
  right: 44px;
  top: 512px;
  height: 138px;
  display: grid;
  place-items: center;
}
.print__logo img {
  max-width: 100%;
  max-height: 138px;
  object-fit: contain;
}
.print__wordmark {
  font-size: 68px;
  color: var(--ink);
}
.print__waves {
  position: absolute;
  left: 165px;
  top: 150px;
  width: 130px;
  max-width: none;
}
.print__rfid {
  position: absolute;
  left: 0;
  right: 0;
  top: 300px;
  text-align: center;
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 720;
  font-size: 92px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.print__wordmark--back {
  position: absolute;
  left: 0;
  right: 0;
  top: 520px;
  justify-content: center;
  font-size: 54px;
}

/* the names of the three parts, each above its part with a short line down to it */
.stage__tags li {
  position: absolute;
  left: 0;
  top: 0;
  padding-bottom: 2.1rem;
  font-size: 0.875rem;
  font-weight: 560;
  white-space: nowrap;
  color: var(--night-ink);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.stage__tags li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 1px;
  height: 1.4rem;
  background: rgb(243 241 235 / 0.5);
}
.stage__tags.is-on li {
  opacity: 1;
}

.views {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.875rem;
  background: var(--night-surface);
}
.views__btn {
  min-height: 2.5rem;
  padding: 0 1.125rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 560;
  color: var(--night-ink-2);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.views__btn:hover {
  color: var(--night-ink);
}
.views__btn.is-on {
  background: var(--night-ink);
  color: var(--night);
}

/* ---- the choices ---- */
.config {
  grid-area: config;
  padding-top: clamp(0.5rem, 5vh, 3.5rem);
}
.config__title {
  font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3.25rem);
}
.config__price {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 1.5rem;
}
.config__per {
  margin-left: 0.35rem;
  font-family: var(--font-text);
  font-weight: 450;
  font-size: 0.9375rem;
  color: var(--night-ink-2);
}
.config__lead {
  margin-top: 0.75rem;
  color: rgb(243 241 235 / 0.86);
}
.config__group {
  margin: 1.75rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.config__group legend,
.config__legend {
  display: block;
  margin-bottom: 0.625rem;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 560;
}
.config__value {
  margin-left: 0.4rem;
  font-weight: 450;
  color: var(--night-ink-2);
}
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}
.choicebox {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 0.875rem 1rem;
  border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px var(--night-line);
  cursor: pointer;
  transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.choicebox input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.choicebox:hover {
  box-shadow: inset 0 0 0 1px rgb(243 241 235 / 0.4);
}
.choicebox:has(input:checked) {
  background: var(--night-surface);
  box-shadow: inset 0 0 0 2px var(--night-ink);
}
.choicebox:has(input:focus-visible) {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.choicebox__name {
  font-weight: 620;
}
.choicebox__price {
  font-size: 0.9375rem;
  color: var(--night-ink-2);
}
.config__custom[hidden] {
  display: none;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.swatch {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(243 241 235 / 0.28);
  transition: box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.swatch:hover {
  transform: scale(1.06);
}
.swatch[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgb(243 241 235 / 0.28), 0 0 0 2px var(--night), 0 0 0 4px var(--night-ink);
}
.upload {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.upload__btn {
  cursor: pointer;
  max-width: 100%;
}
.upload__btn span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload__btn:has(input:focus-visible) {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.upload__clear {
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--night-ink-2);
}
.upload__clear[hidden] {
  display: none;
}
.qty {
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px var(--night-line);
}
.qty__btn {
  width: 2.875rem;
  height: 2.875rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-m);
  color: var(--night-ink-2);
}
.qty__btn:hover {
  color: var(--night-ink);
}
.qty__btn svg {
  width: 1.125rem;
  height: 1.125rem;
}
.qty__input {
  width: 4.5rem;
  height: 2.875rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* a price list: how many, what each costs, what is saved, and the sum. A row is pressed to choose it. */
.tiers {
  display: grid;
  gap: 0.375rem;
}
.qty + .tiers {
  margin-top: 0.75rem;
}
.tier {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto 5.5rem;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.875rem;
  padding: 0 1rem;
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px var(--night-line);
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.tier input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.tier:hover {
  box-shadow: inset 0 0 0 1px rgb(243 241 235 / 0.4);
}
.tier.is-on,
.tier:has(input:checked) {
  background: var(--night-surface);
  box-shadow: inset 0 0 0 2px var(--night-ink);
}
.tier:has(input:focus-visible) {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
.tier__qty,
.tier__total {
  font-weight: 620;
  white-space: nowrap;
}
.tier__total {
  text-align: right;
}
.tier__each,
.tier__save {
  font-size: 0.9375rem;
  color: var(--night-ink-2);
  white-space: nowrap;
}
.config__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--night-line);
}
.config__sum strong {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.config__cta {
  width: 100%;
  margin-top: 1rem;
}
.config__facts {
  margin-top: 2rem;
  font-size: 0.9375rem;
}
.config__facts div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--night-line);
}
.config__facts dt {
  color: var(--night-ink-2);
}

/* ---- above the orange band: what is chosen, what it comes to, and the button ---- */
.buy {
  padding-block: clamp(5rem, 16vh, 10rem);
}
.buy__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2.5rem 4rem;
}
.buy__title {
  max-width: 11ch;
  font-size: clamp(2.5rem, 1rem + 5.4vw, 6.25rem);
}
.buy__side {
  display: grid;
  gap: 1.5rem;
  width: min(100%, 26rem);
}
.buy__sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-ink-2);
}
.buy__sum strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--night-ink);
}
.buy__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.buy__change {
  font-weight: 560;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* ---- further down: what the chip is for ---- */
.story {
  position: relative;
}
.story__title {
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.75rem);
}
.story__text {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.3125rem);
  color: rgb(243 241 235 / 0.86);
}
.story__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* in and out: the key comes to the reader again and again while the page moves, and the day's list grows */
.story--blip {
  height: 440vh;
}
.story__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
/* the picture is darkened under the words only */
.story--blip .story__pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(18 17 14 / 0.88) 0%, rgb(18 17 14 / 0.7) 24%, rgb(18 17 14 / 0) 50%);
}
.story--blip .story__copy {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  top: 50%;
  width: min(30rem, 100% - 2 * var(--gutter));
  transform: translateY(-50%);
}
.log {
  margin-top: 2.25rem;
  display: grid;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.log li {
  display: grid;
  grid-template-columns: 3.5rem 2.75rem 1fr;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}
.log li.is-in {
  opacity: 1;
  transform: none;
}
.log time {
  color: var(--night-ink-2);
}
.log__dir {
  justify-self: start;
  min-width: 2.75rem;
  padding: 0.2rem 0;
  border-radius: 0.5rem;
  background: var(--night-ink);
  color: var(--night);
  font-weight: 640;
  font-size: 0.875rem;
  text-align: center;
}
.log__dir--out {
  background: none;
  color: var(--night-ink);
  box-shadow: inset 0 0 0 1.5px rgb(243 241 235 / 0.6);
}

/* a new place: the same tag goes from one cabinet to another */
.story--move {
  padding-block: clamp(5rem, 16vh, 11rem);
}
.story--move .wrap {
  max-width: 96rem;
}
.move {
  --m: 0;
  position: relative;
  margin-top: clamp(2.5rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 1fr);
  align-items: center;
}
.move__place {
  display: grid;
  gap: 1rem;
  justify-items: center;
}
/* the stills from the tour have the cabinet right of the middle and small, so each is cropped in on it */
.move__media {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.move__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% 50%;
  transform: scale(1.42);
  transform-origin: 50% 46%;
}
/* the floor of a still is a shade lighter than the page, so its edges are faded out */
.move__media {
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 46%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 46%, #000 62%, transparent 100%);
}
.move__media--ute img {
  object-position: 92% 50%;
}
.move__place figcaption {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 660;
  font-size: 1.25rem;
}
.move__way {
  position: relative;
  align-self: center;
  height: 0;
  margin-bottom: 2.75rem;
}
.move__line {
  position: absolute;
  left: -14%;
  right: -14%;
  top: -4px;
  width: 128%;
  height: 8px;
  max-width: none;
  color: rgb(243 241 235 / 0.5);
}
.move__tag {
  position: absolute;
  left: 50%;
  top: 0;
  height: clamp(9rem, 19vw, 17rem);
  width: auto;
  max-width: none;
  /* --m runs from 0 at the first cabinet to 1 at the second */
  transform: translate(calc(-50% + (var(--m) - 0.5) * 185%), -46%) rotate(calc((var(--m) - 0.5) * 10deg));
}

/* the guide: the phone is held to the tag and shows where the car stands */
.story--guide {
  height: 300vh;
  --g: 0;
  --t1: clamp(0, var(--g) / 0.34, 1);
  --t2: clamp(0, (var(--g) - 0.38) / 0.1, 1);
  --t3: clamp(0, (var(--g) - 0.5) / 0.26, 1);
  --t4: clamp(0, (var(--g) - 0.58) / 0.2, 1);
}
.guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding-inline: var(--gutter);
  max-width: 100rem;
  margin-inline: auto;
}
.guide__scene {
  position: relative;
  justify-self: center;
  height: min(78vh, 44rem);
  aspect-ratio: 9 / 18.5;
}
/* the key comes up from the left until the tag is behind the top of the phone, where a phone reads */
.guide__tag {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 3%;
  height: 66%;
  width: auto;
  max-width: none;
  transform: translate(calc(-58% - (1 - var(--t1)) * 85%), calc((1 - var(--t1)) * 42%)) rotate(calc(-18deg + var(--t1) * 12deg));
}
.phone {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0.5rem;
  border-radius: 2.75rem;
  background: #0b0a08;
  box-shadow: inset 0 0 0 1px rgb(243 241 235 / 0.26), 0 1.5rem 3rem rgb(0 0 0 / 0.45);
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 1.1rem;
  width: 27%;
  height: 1.35rem;
  border-radius: 1rem;
  background: #0b0a08;
  transform: translateX(-50%);
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.3rem;
  background: var(--paper);
  color: var(--ink);
}
.phone__hold {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
  font-weight: 620;
  font-size: 1.125rem;
  background: var(--ink);
  color: var(--paper);
  opacity: calc(1 - var(--t2));
}
.phone__hold svg {
  width: 4rem;
  height: 4rem;
}
.phone__map {
  position: absolute;
  inset: 0;
  opacity: var(--t2);
}
.map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
.map__name {
  font: 600 9px var(--font-text);
  fill: #6b675d;
  text-anchor: middle;
}
.map__zone rect {
  fill: none;
  stroke: #8f8b80;
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}
.map__zone text {
  font: 600 9px var(--font-text);
  fill: #6b675d;
}
.map__zone--on rect {
  fill: rgb(255 90 31 / calc(0.24 * var(--t3)));
  stroke: var(--signal);
  stroke-width: 2.6;
  stroke-dasharray: none;
  opacity: var(--t3);
}
.map__car {
  fill: var(--signal);
  opacity: var(--t3);
}
.map__chip {
  opacity: var(--t3);
}
.map__chip rect {
  fill: var(--ink);
}
.map__chip text {
  font: 700 10.5px var(--font-text);
  fill: var(--paper);
  text-anchor: middle;
}
.map__path {
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 * (1 - var(--t4)));
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 1.5rem 1.5rem 0 0;
  background: #fff;
  box-shadow: 0 -0.5rem 1.5rem rgb(21 20 15 / 0.12);
  transform: translateY(calc((1 - var(--t3)) * 105%));
}
.sheet__plate {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}
.sheet__title {
  margin-top: 0.625rem;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.sheet__meta {
  margin-top: 0.15rem;
  font-size: 0.9375rem;
  color: var(--day-ink-2);
}
.sheet__cta {
  display: grid;
  place-items: center;
  height: 2.875rem;
  margin-top: 1rem;
  border-radius: 0.875rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 640;
  font-size: 0.9375rem;
}

/* ---- narrower windows ---- */
@media (max-width: 60rem) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "back" "stage" "config";
  }
  .pdp__stage {
    position: static;
  }
  .stage {
    width: min(100%, 70vh * 16 / 13);
  }
  .config {
    padding-top: 1.5rem;
  }
  .guide {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 1.5rem;
  }
  .guide__scene {
    height: min(58vh, 34rem);
  }
  .guide__copy .story__title {
    font-size: clamp(1.875rem, 1.2rem + 3vw, 3rem);
  }
}
@media (max-width: 44rem) {
  .units {
    grid-template-columns: minmax(0, 1fr);
  }
  .tier {
    grid-template-columns: 5rem minmax(0, 1fr) auto 5rem;
    gap: 0.375rem;
    padding: 0 0.75rem;
  }
  .tier__qty,
  .tier__total {
    font-size: 1rem;
  }
  /* the count on its own line under Summa, so the sum never squeezes it */
  .config__sum .config__value {
    display: block;
    margin-left: 0;
  }
  .tier__each,
  .tier__save {
    font-size: 0.8125rem;
  }
  /* the photograph on top with the whole cabinet in it, the words under it */
  .unit {
    flex-direction: column;
    min-height: 0;
  }
  .unit__img {
    position: relative;
    z-index: auto;
    height: 15rem;
    object-position: 88% 50%;
  }
  .unit::before {
    display: none;
  }
  .unit__body {
    align-self: stretch;
    max-width: none;
  }
  /* the picture is wider than the screen and cut at both sides, so the tag is large enough to read */
  .pdp__stage {
    margin-inline: calc(-1 * var(--gutter));
    overflow: hidden;
  }
  .stage {
    width: 150%;
    max-width: none;
    justify-self: start;
    margin-left: -25%;
    overflow: visible;
  }
  .stage__tags li {
    font-size: 0.75rem;
  }
  .story__canvas {
    object-position: 74% 50%;
  }
  .story--blip .story__copy {
    top: auto;
    bottom: 1.5rem;
    transform: none;
  }
  .story--blip .story__pin::after {
    inset: 30% 0 0;
    background: linear-gradient(180deg, rgb(18 17 14 / 0) 0%, rgb(18 17 14 / 0.9) 42%);
  }
  .log {
    margin-top: 1.25rem;
    gap: 0.35rem;
    font-size: 0.9375rem;
  }
  .move {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr) minmax(0, 1fr);
  }
  .move__place figcaption {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .unit__img,
  .product__media img,
  .log li,
  .stage__tags li {
    transition: none;
  }
  .story--blip,
  .story--guide {
    height: auto;
  }
  .story__pin {
    position: relative;
  }
}
