:root {
  --bench-ink: #071a29;
  --bench-purple: #2d174d;
  --bench-purple-light: #68408e;
  --bench-blue: #1aa6cf;
  --bench-cyan: #87e4ed;
  --bench-yellow: #ffd348;
  --bench-orange: #ff7a25;
  --bench-pink: #e9488d;
  --bench-paper: #fff1c8;
}

.play-page {
  color: var(--bench-ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(135,228,237,.13), transparent 23rem),
    linear-gradient(180deg, #150d28 0 32rem, #e9d8a7 32rem 100%);
}

.play-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  width: min(1380px, calc(100% - 2rem));
  color: white;
  background: transparent;
}

.play-header .brand,
.play-header .main-nav a {
  color: white;
}

.workbench-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .68fr);
  align-items: center;
  min-height: 92svh;
  padding: clamp(7rem, 12vw, 11rem) clamp(1.2rem, 8vw, 8rem) clamp(5rem, 9vw, 8rem);
  color: white;
  background:
    radial-gradient(circle at 80% 32%, rgba(233,72,141,.22), transparent 26rem),
    linear-gradient(135deg, var(--bench-purple), #100b20 70%);
  border-bottom: 8px solid var(--bench-ink);
}

.bench-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .14;
  background:
    linear-gradient(rgba(135,228,237,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135,228,237,.55) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(450px) rotateX(52deg) scale(1.45);
  transform-origin: bottom;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.bench-label {
  margin: 0 0 .8rem;
  color: var(--bench-yellow);
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.workbench-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 8.2vw, 8.5rem);
  line-height: .8;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.workbench-hero h1 span {
  color: var(--bench-cyan);
}

.workbench-hero .hero-copy > p:not(.bench-label) {
  max-width: 680px;
  margin: 1.8rem 0 2rem;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 750;
  line-height: 1.5;
}

.bench-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: .8rem 1.3rem;
  border: 4px solid var(--bench-ink);
  color: var(--bench-ink);
  background: var(--bench-yellow);
  box-shadow: .45rem .45rem 0 var(--bench-blue);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.bench-button:hover,
.bench-button:focus-visible {
  transform: translate(.15rem, .15rem);
  box-shadow: .3rem .3rem 0 var(--bench-blue);
}

.tool-scatter {
  position: relative;
  width: min(100%, 520px);
  min-height: 480px;
  justify-self: center;
}

.tool-scatter.opened-play {
  overflow: hidden;
  width: min(100%, 660px);
  min-height: 430px;
  border: 6px solid var(--bench-yellow);
  border-radius: 1.5rem;
  background: #100b20;
  box-shadow: .9rem .9rem 0 rgba(26,166,207,.38);
  transform: rotate(1.5deg);
}

.opened-play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.die,
.card,
.pencil,
.token,
.note {
  position: absolute;
  display: grid;
  place-items: center;
  border: 6px solid var(--bench-ink);
  box-shadow: .75rem .75rem 0 rgba(0,0,0,.25);
}

.die {
  top: 5%;
  right: 4%;
  width: 9rem;
  aspect-ratio: 1;
  color: var(--bench-ink);
  background: var(--bench-yellow);
  font-family: "Arial Black", sans-serif;
  font-size: 5rem;
  transform: rotate(12deg);
}

.card {
  top: 22%;
  left: 8%;
  width: 12rem;
  height: 17rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle, var(--bench-pink) 0 18%, transparent 19%),
    repeating-conic-gradient(var(--bench-blue) 0 10deg, #19102e 10deg 20deg);
  transform: rotate(-12deg);
}

.pencil {
  z-index: 3;
  right: 28%;
  bottom: 5%;
  width: 4rem;
  height: 24rem;
  border-radius: 2rem 2rem .4rem .4rem;
  background: linear-gradient(90deg, #147b9d 0 25%, #58c8df 25% 75%, #147b9d 75%);
  transform: rotate(38deg);
}

.pencil::before {
  content: "";
  position: absolute;
  top: -4.7rem;
  border-right: 2rem solid transparent;
  border-bottom: 4.8rem solid #edcf9d;
  border-left: 2rem solid transparent;
}

.token {
  right: 3%;
  bottom: 7%;
  width: 8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bench-orange);
}

.token::after {
  content: "";
  width: 55%;
  aspect-ratio: 1;
  border: 5px dashed var(--bench-ink);
  border-radius: 50%;
}

.note {
  bottom: 0;
  left: 0;
  width: 10rem;
  min-height: 9rem;
  padding: 1rem;
  background: var(--bench-paper);
  color: var(--bench-ink);
  font-family: "Arial Black", sans-serif;
  line-height: .9;
  text-align: center;
  transform: rotate(7deg);
}

.project-bench {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) clamp(1rem, 6vw, 6rem);
  background:
    repeating-linear-gradient(90deg, rgba(77,45,13,.035) 0 1px, transparent 1px 7px),
    #e9d8a7;
}

.project-bench::before {
  content: "";
  position: absolute;
  inset: 1.3rem;
  border: 3px dashed rgba(7,26,41,.22);
  pointer-events: none;
}

.bench-heading {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto 3rem;
}

.project-bench .bench-label {
  color: var(--bench-purple);
}

.bench-heading h2,
.bench-manifesto h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
  line-height: .87;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.bench-heading .abandoned-quote {
  max-width: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.7vw, 2.65rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.025em;
  text-transform: none;
}

.project-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 1280px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 530px;
  border: 6px solid var(--bench-ink);
  background: var(--bench-paper);
  box-shadow: .8rem .8rem 0 rgba(7,26,41,.18);
  transform: rotate(var(--card-turn, 0deg));
}

.project-card:nth-child(2) { --card-turn: -.65deg; }
.project-card:nth-child(3) { --card-turn: .55deg; }
.project-card:nth-child(4) { --card-turn: .45deg; }
.project-card:nth-child(5) { --card-turn: -.5deg; }

.project-featured {
  grid-column: span 8;
  min-height: 570px;
  color: white;
}

.project-featured > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,26,41,.95), rgba(7,26,41,.58) 55%, rgba(7,26,41,.1));
}

.project-image {
  overflow: hidden;
  height: 285px;
  border-bottom: 6px solid var(--bench-ink);
  background: var(--bench-purple);
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.project-card:hover .project-image img,
.project-card:focus-within .project-image img {
  transform: scale(1.045);
}

.project-wave .project-image {
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 50% 80%, rgba(255,255,255,.8), transparent 35%),
    var(--bench-cyan);
}

.project-wave .project-image img {
  width: auto;
  max-width: 75%;
  min-height: 0;
  max-height: 300px;
  object-fit: contain;
  border: 4px solid var(--bench-ink);
  box-shadow: .55rem .55rem 0 var(--bench-orange);
  transform: rotate(2deg);
}

.project-six .project-image img { object-position: center 25%; }
.project-toy .project-image img { object-position: top; }

.project-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.project-featured .project-copy {
  justify-content: flex-end;
  width: min(620px, 80%);
  min-height: 570px;
}

.project-featured .project-copy p {
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 4px rgba(0,0,0,.75);
}

.project-status {
  align-self: flex-start;
  margin-bottom: .8rem;
  padding: .35rem .55rem;
  color: var(--bench-ink);
  background: var(--bench-yellow);
  font-size: .65rem;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.project-copy h3 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.project-toy .project-copy h3 {
  font-size: clamp(1.85rem, 2.8vw, 3.15rem);
}

.project-copy p {
  max-width: 570px;
  margin: 1rem 0 1.4rem;
  font-weight: 700;
  line-height: 1.45;
}

.project-copy a,
.coming-soon {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: .25rem;
  border-bottom: 4px solid currentColor;
  color: var(--bench-purple);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.project-featured .project-copy a { color: var(--bench-yellow); }

.artifact-tag {
  position: absolute;
  z-index: 4;
  top: 1.2rem;
  right: -3rem;
  width: 13rem;
  padding: .6rem;
  color: var(--bench-ink);
  background: var(--bench-yellow);
  font-size: .65rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(35deg);
}

.project-future {
  justify-content: center;
  color: white;
  background:
    radial-gradient(circle at 50% 32%, rgba(233,72,141,.28), transparent 14rem),
    var(--bench-purple);
}

.future-machine {
  position: relative;
  width: 66%;
  aspect-ratio: 1;
  margin: 2rem auto 0;
  border: 7px solid var(--bench-ink);
  border-radius: 1.2rem;
  background: #1a1130;
  box-shadow: .65rem .65rem 0 var(--bench-pink);
}

.future-machine strong {
  position: absolute;
  inset: 18% 20%;
  display: grid;
  place-items: center;
  border: 4px solid var(--bench-cyan);
  color: var(--bench-cyan);
  font: 5rem "Arial Black", sans-serif;
}

.future-light {
  position: absolute;
  top: 8%;
  left: 8%;
  width: 1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bench-orange);
  box-shadow: 0 0 1rem var(--bench-orange);
}

.future-slot {
  position: absolute;
  right: 8%;
  bottom: 11%;
  width: 35%;
  height: 8%;
  background: var(--bench-ink);
}

.future-dial {
  position: absolute;
  bottom: 6%;
  left: 8%;
  width: 17%;
  aspect-ratio: 1;
  border: 4px solid var(--bench-ink);
  border-radius: 50%;
  background: var(--bench-yellow);
}

.project-future .project-copy a,
.project-future .coming-soon { color: var(--bench-cyan); }
.coming-soon { opacity: .7; }

.bench-manifesto {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 8vw, 8rem);
  color: white;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(26,166,207,.13) 48% 52%, transparent 52%),
    var(--bench-ink);
}

.bench-manifesto h2 { max-width: 17ch; }

.bench-button-light {
  margin-top: 2rem;
  background: var(--bench-cyan);
}

.play-footer {
  color: white;
  background: #040d14;
}

@media (max-width: 980px) {
  .workbench-hero,
  .bench-heading {
    grid-template-columns: 1fr;
  }

  .tool-scatter {
    min-height: 390px;
    margin-top: 2rem;
  }

  .tool-scatter.opened-play {
    width: min(100%, 760px);
  }

  .project-card,
  .project-featured {
    grid-column: span 6;
  }

  .project-featured .project-copy {
    width: 90%;
  }
}

@media (max-width: 650px) {
  .play-header {
    width: calc(100% - 1rem);
  }

  .play-header .main-nav {
    gap: .65rem;
    font-size: .7rem;
  }

  .workbench-hero h1 {
    font-size: clamp(3.6rem, 17vw, 5.5rem);
  }

  .tool-scatter {
    min-height: 320px;
    transform: scale(.82);
    transform-origin: top center;
    margin-bottom: -4rem;
  }

  .tool-scatter.opened-play {
    min-height: 290px;
    margin-bottom: -2rem;
    transform: rotate(1deg);
  }

  .project-bench {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .project-bench::before { display: none; }

  .project-card,
  .project-featured {
    grid-column: 1 / -1;
    min-height: 0;
    transform: none;
  }

  .project-featured {
    min-height: 520px;
  }

  .project-featured .project-copy {
    width: 100%;
    min-height: 520px;
  }

  .project-shade {
    background: linear-gradient(0deg, rgba(7,26,41,.97), rgba(7,26,41,.2) 75%);
  }

  .project-image,
  .project-image img {
    height: 240px;
  }

  .project-copy h3 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-image img { transition: none; }
}
