.bench-intro {
  padding-bottom: clamp(30px, 5vw, 64px);
}

.bench-intro h1 {
  font-size: clamp(42px, 7vw, 86px);
}

.bench-figure {
  margin-block: 0 clamp(50px, 8vw, 114px);
}

.bench-preface {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px clamp(20px, 5vw, 76px);
  margin-block-end: clamp(16px, 3vw, 33px);
}

.bench-preface h2 {
  max-width: 26ch;
  font-size: clamp(25px, 3.5vw, 45px);
}

.bench-preface p {
  max-width: 35ch;
  margin: 0;
  color: var(--blue);
}

.bench-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-block-size: clamp(295px, 44vw, 530px);
  border-radius: clamp(17px, 3vw, 36px);
  background: var(--ink);
}

.bench-scene .pfa-scene-base,
.bench-scene .pfa-scene-reveal {
  --surface: var(--ink);
  --ink-on-surface: var(--peach);
  --action: var(--coral);
  --art-accent: var(--coral);
  --work-surface: var(--blue);
  --work-photo: url("/assets/colour-motion/workbench-dark.svg");
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--surface);
}

.bench-scene .pfa-scene-reveal {
  --surface: var(--peach);
  --ink-on-surface: var(--ink);
  --action: var(--crimson);
  --art-accent: var(--crimson);
  --work-surface: var(--white);
  --work-photo: url("/assets/colour-motion/workbench-light.svg");
  clip-path: var(--pfa-mask, polygon(0 0, 0 0, 0 100%, 0 100%));
}

.bench-world {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bench-mat {
  position: absolute;
  inset: 13% 6%;
  border: 1px solid color-mix(in srgb, var(--ink-on-surface) 52%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 49.8%, color-mix(in srgb, var(--ink-on-surface) 66%, transparent) 50%, transparent 50.2%),
    repeating-linear-gradient(90deg, transparent 0 29px, color-mix(in srgb, var(--ink-on-surface) 17%, transparent) 30px 31px),
    repeating-linear-gradient(0deg, transparent 0 29px, color-mix(in srgb, var(--ink-on-surface) 17%, transparent) 30px 31px),
    color-mix(in srgb, var(--work-surface) 77%, transparent);
  box-shadow: 0 13px 0 -6px color-mix(in srgb, var(--ink-on-surface) 12%, transparent);
  transform: translate3d(0, calc((.5 - var(--pfa-back)) * 49px), 0);
}

.bench-art-grid {
  position: absolute;
  inset: 13% 8%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 9%;
  place-items: center;
}

.bench-ready,
.bench-model {
  position: relative;
  width: 100%;
  aspect-ratio: 1.3;
}

.bench-ready {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  place-items: center;
  gap: 0;
  width: min(100%, 480px);
  transform: translate3d(0, calc((.5 - var(--pfa-middle)) * -55px), 0);
}

.bench-ready::before {
  position: absolute;
  inset: 19% -4% 5%;
  border: 1px solid color-mix(in srgb, var(--ink-on-surface) 45%, transparent);
  border-radius: clamp(7px, 1.7vw, 21px);
  background: color-mix(in srgb, var(--work-surface) 82%, transparent);
  box-shadow: 0 9px 0 -4px color-mix(in srgb, var(--ink-on-surface) 34%, transparent);
  content: "";
}

.bench-ready::after {
  position: absolute;
  inset-inline: 13%;
  inset-block-end: 13%;
  width: 74%;
  height: 4px;
  background: var(--action);
  content: "";
}

.bench-item {
  position: relative;
  z-index: 2;
  width: 127%;
  aspect-ratio: 1024 / 680;
  overflow: hidden;
  border: clamp(3px, .55vw, 8px) solid var(--ink);
  border-radius: clamp(5px, 1.5vw, 18px);
  background: var(--white);
  box-shadow: 0 11px 19px color-mix(in srgb, var(--ink) 33%, transparent);
}

.bench-item.webiiiio {
  background: var(--ink);
  transform: translate3d(6%, calc(-12% + (.5 - var(--pfa-front)) * 24px), 0) rotate(-7deg);
}

.bench-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bench-item.qaura {
  transform: translate3d(-5%, calc(3% + (.5 - var(--pfa-middle)) * -16px), 0) rotate(7deg);
}

.bench-model {
  isolation: isolate;
  transform: translate3d(0, calc((.5 - var(--pfa-middle)) * 26px), 0);
}

.bench-model::before {
  position: absolute;
  inset: 3% 7%;
  border-radius: 8%;
  border: 1px solid color-mix(in srgb, var(--ink-on-surface) 48%, transparent);
  background: color-mix(in srgb, var(--work-surface) 90%, transparent);
  content: "";
}

.bench-blueprint {
  position: absolute;
  inset: 37% 52% -10% 3%;
  background: var(--work-photo) center / contain no-repeat;
  opacity: .55;
  transform: translate3d(-4%, calc((.5 - var(--pfa-front)) * 55px), 0) rotate(-8deg);
}

.bench-parts {
  position: absolute;
  inset: 12% -10% 4% auto;
  width: 82%;
}

.bench-parts i {
  position: absolute;
  width: 68%;
  height: 49%;
  border-radius: 8%;
  background: linear-gradient(145deg, var(--peach) 13%, var(--coral) 100%);
  box-shadow: 0 9px 0 color-mix(in srgb, var(--art-accent) 79%, var(--ink));
  transform: translate3d(calc((.5 - var(--pfa-front)) * 44px), calc((.5 - var(--pfa-front)) * -83px), 0) rotate(29deg) skew(-16deg);
}

.bench-parts i:nth-child(2) {
  inset: 43% 14% auto auto;
  background: linear-gradient(137deg, var(--blue), color-mix(in srgb, var(--blue) 82%, var(--white)));
  box-shadow: 0 9px 0 var(--ink);
  transform: translate3d(calc((.5 - var(--pfa-middle)) * -33px), calc((.5 - var(--pfa-middle)) * -53px), 0) rotate(29deg) skew(-16deg);
}

.bench-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 4.5vw, 60px);
  margin-block-start: clamp(18px, 4vw, 48px);
}

.bench-lane {
  min-width: 0;
  padding-block: clamp(14px, 3vw, 28px);
  border-block-start: 2px solid var(--ink);
}

.bench-lane .status {
  margin-block-end: 13px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.bench-lane.progress .status {
  background: var(--peach);
  color: var(--ink);
}

.bench-lane h2 {
  margin-block-end: 12px;
  font-size: clamp(25px, 4vw, 51px);
}

.bench-lane p {
  max-width: 30ch;
  margin-block-end: 12px;
  color: var(--blue);
}

.bench-lane a {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  line-height: 1.2;
}

.bench-lane a.button {
  margin: 0;
}

.bench-details {
  display: grid;
  gap: clamp(20px, 4vw, 46px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

.bench-detail {
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line);
}

.bench-detail h2 {
  margin-block-end: 13px;
  font-size: clamp(29px, 4vw, 49px);
  scroll-margin-block-start: 14px;
}

.bench-detail h2:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 6px;
}

.bench-detail :is(p, ul) {
  max-width: 62ch;
  color: var(--blue);
}

.bench-detail ul {
  padding-inline-start: 1.35em;
}

.bench-detail li + li {
  margin-block-start: 6px;
}

.bench-detail > :last-child {
  margin-block-end: 0;
}

@media (max-width: 620px) {
  .bench-scene {
    min-block-size: clamp(210px, 59vw, 304px);
  }

  .bench-mat {
    background-size: auto, 16px 16px, 16px 16px;
  }

  .bench-lanes {
    gap: 0 16px;
  }

  .bench-lane h2 {
    font-size: clamp(23px, 6vw, 33px);
  }

  .bench-lane p {
    font-size: 15px;
  }

  .bench-lane .button {
    padding-inline: 10px;
    font-size: 14px;
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .bench-scene {
    min-block-size: clamp(195px, 67svh, 270px);
  }

  .bench-ready,
  .bench-model {
    width: min(83%, 260px);
  }
}

.bench-lane p.bench-category {
  color: var(--ink);
  font-size: .89rem;
  font-weight: 550;
}

.bench-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0 17px;
  align-items: center;
  justify-content: start;
}

.bench-index a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
