.engineering-hero {
  background: radial-gradient(ellipse at 80% 44%, #24342d, transparent 62%), #0d1517;
}
.engineering-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.75rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.engineering-hero h1 {
  max-width: 8ch;
  font-size: clamp(4rem, 7.8vw, 9rem);
  line-height: .86;
  letter-spacing: -.083em;
  font-weight: 700;
}
.benefit-selectors {
  display: grid;
  justify-items: start;
  gap: .16rem;
  margin-top: 1.9rem;
}
.benefit-selectors[hidden], .benefit-replay[hidden] { display: none; }
.benefit-selectors button {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: .65rem;
  align-items: center;
  background: transparent;
  border: 0;
  padding: .32em 0;
  text-align: left;
  color: #c5d0c8;
  font: 550 clamp(1.17rem, 1.9vw, 1.7rem)/1.12 var(--sans);
  letter-spacing: -.025em;
  cursor: pointer;
}
.benefit-selectors button::before {
  content: '';
  width: .57rem;
  height: .57rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  justify-self: center;
}
.benefit-selectors button[aria-pressed=true], .benefit-selectors button:hover { color: var(--signal); }
.benefit-selectors button[aria-pressed=true]::before { background: currentColor; }
.benefit-copy {
  display: grid;
  max-width: 44ch;
  margin: .9rem 0 1.45rem;
  font-size: clamp(1rem, 1.23vw, 1.12rem);
  line-height: 1.48;
}
.benefit-copy p { grid-area: 1 / 1; margin: 0; }
.benefit-copy p[hidden] { display: block; visibility: hidden; }
.benefit-stage { container-type: inline-size; min-width: 0; margin: 0; }
.benefit-frame {
  position: relative;
  aspect-ratio: 1.27;
  overflow: hidden;
  isolation: isolate;
  background: #cecbb7;
}
.benefit-scene {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  color: #151c18;
  font: 500 2.65cqw/1.2 var(--mono);
  transition: opacity .38s ease, visibility 0s linear .38s;
}
[data-benefit=expand] .scene-expand,
[data-benefit=speed] .scene-speed,
[data-benefit=connect] .scene-connect {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition-delay: 0s;
}
.benefit-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: .75rem;
  margin-top: .7rem;
  color: #ccd6cc;
  font: 500 .72rem/1.4 var(--mono);
}
.benefit-labels { display: grid; }
.benefit-labels span { grid-area: 1 / 1; }
.benefit-labels span[hidden] { display: inline; visibility: hidden; }
.benefit-replay {
  color: var(--signal);
  background: transparent;
  border: 0;
  padding: .35em 0;
  cursor: pointer;
  font: inherit;
}
.benefit-replay:hover { text-decoration: underline; }

.scene-expand { background: radial-gradient(ellipse at 20% 0, #f6e9ce, #c2bc9f 72%); }
.source-contact {
  position: absolute;
  left: 6%;
  top: 11%;
  width: 30%;
  display: grid;
  padding: 2.1cqw;
  gap: 1cqw;
  background: #eeebda;
  box-shadow: 0 1.4cqw 3cqw #3027083c;
  transform: rotate(-9deg);
}
.source-contact b { font-size: 2.2cqw; }
.source-contact div {
  height: 9cqw;
  background: url('/gallery.webp') center 52% / cover;
}
.source-contact div:nth-of-type(2) { background-size: 165%; background-position: 88% 50%; filter: saturate(.6); }
.source-contact div:nth-of-type(3) { background-size: 190%; background-position: 15% 70%; }
.source-index {
  display: grid;
  gap: 1.1cqw;
  position: absolute;
  inset: auto auto 7% 8%;
  padding: 2cqw;
  width: 32%;
  background: #d5fa8e;
  transform: rotate(-4deg);
  box-shadow: 0 1.2cqw 2cqw #32290448;
}
.source-index span { border-top: 1px solid #31471865; padding-top: .4cqw; }
.tour-window {
  position: absolute;
  width: 65%;
  top: 13%;
  right: 5%;
  overflow: hidden;
  background: #151d19;
  color: #fff;
  border: 1px solid #303917;
  box-shadow: -.5cqw 2cqw 5cqw #261c0c57;
  transform: rotate(4deg);
}
.tour-top, .tour-options { display: flex; justify-content: space-between; gap: .65cqw; padding: 1.8cqw; font-size: 2.15cqw; }
.tour-top span:last-child { color: #ddfcaa; }
.tour-image {
  position: relative;
  height: 35cqw;
  background: linear-gradient(0deg, #121914a8, transparent 55%), url('/gallery.webp') center / cover;
}
.tour-image span {
  position: absolute;
  bottom: 6%;
  left: 4%;
  padding: .7cqw 1.1cqw;
  background: #e1ff9f;
  color: #151d19;
  font: 700 3.6cqw var(--sans);
}
.tour-image i { margin-left: .4em; font-style: normal; }
.tour-options span { flex: 1; border: 1px solid #86a87e; padding: .9cqw; }

.scene-speed {
  display: grid;
  align-content: center;
  gap: 4cqw;
  padding: 5.5cqw 6.8cqw;
  background: #e7e4d7;
}
.production-strip strong { font: 700 4.7cqw/.96 var(--sans); letter-spacing: -.055em; }
.production-tracks {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .55cqw 0;
  margin-top: 1.25cqw;
  padding: 1cqw 0;
  background: repeating-linear-gradient(90deg, #171d1730 0 1px, transparent 1px calc(100% / 12));
  border-right: 1px solid #171d1730;
}
.production-tracks span { padding: .65cqw .8cqw; color: #fff; background: #3b4540; white-space: nowrap; font-size: 2.25cqw; }
.serial-tracks span:nth-child(1) { grid-area: 1 / 1 / 2 / 5; }
.serial-tracks span:nth-child(2) { grid-area: 2 / 5 / 3 / 8; }
.serial-tracks span:nth-child(3) { grid-area: 3 / 8 / 4 / 11; }
.serial-tracks span:nth-child(4) { grid-area: 4 / 11 / 5 / 13; }
.parallel-tracks span { background: #c3ed69; color: #152112; border-inline-end: 1px solid #42542b; }
.parallel-tracks span:nth-child(1) { grid-area: 1 / 1 / 2 / 5; }
.parallel-tracks span:nth-child(2) { grid-area: 2 / 3 / 3 / 6; }
.parallel-tracks span:nth-child(3) { grid-area: 3 / 4 / 4 / 7; }
.parallel-tracks span:nth-child(4) { grid-area: 4 / 6 / 5 / 8; }
.schedule-note { font-size: 2.2cqw; }

.scene-connect {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  align-items: center;
  gap: 5cqw;
  padding: 7cqw;
  background: repeating-linear-gradient(125deg, #c2bc9b 0 1px, transparent 1px 10cqw), #e9e0c4;
}
.tool-sources { display: grid; gap: 2cqw; }
.tool-sources > div {
  display: grid;
  gap: .75cqw;
  padding: 2cqw;
  color: #161a18;
  box-shadow: 0 .9cqw 2cqw #44371138;
  background: #fff9e9;
  transform: rotate(var(--tilt, -5deg));
}
.tool-sources > div:nth-child(2) { --tilt: 5deg; background: #eaedda; }
.tool-sources > div:nth-child(3) { --tilt: -2deg; background: #e8edaa; }
.tool-sources span { font-size: 2.15cqw; }
.release-sheet {
  background: #18211a;
  color: #fff9e8;
  box-shadow: 1.2cqw 2cqw 5cqw #47372248;
  transform: rotate(3deg);
}
.release-title, .release-details { display: grid; gap: 1cqw; padding: 2.25cqw; }
.release-title span { color: #dcff91; font-size: 2.3cqw; }
.release-image { height: 23cqw; background: url('/gallery.webp') center 58% / cover; }
.release-details strong { font: 700 4.6cqw/.97 var(--sans); letter-spacing: -.04em; }
.release-details span { color: #e0ebd8; font-size: 2.15cqw; }

[data-playing=expand] .scene-expand .tour-window { animation: reveal-tour 1.75s .25s both; }
[data-playing=expand] .scene-expand .source-contact { animation: settle-contact 1.05s both; }
[data-playing=expand] .scene-expand .source-index { animation: reveal-index 1.2s .25s both; }
[data-playing=expand] .scene-expand .tour-image span { animation: show-layer .65s 1.55s both; }
[data-playing=speed] .scene-speed .parallel-tracks span { animation: slot-into-place 1.2s .36s cubic-bezier(.2,.8,.25,1) both; }
[data-playing=speed] .scene-speed .parallel-tracks span:nth-child(2) { --offset: 67%; animation-delay: .49s; }
[data-playing=speed] .scene-speed .parallel-tracks span:nth-child(3) { --offset: 133%; animation-delay: .61s; }
[data-playing=speed] .scene-speed .parallel-tracks span:nth-child(4) { --offset: 250%; animation-delay: .73s; }
[data-playing=connect] .scene-connect .tool-sources > div { animation: align-source 1.2s both; }
[data-playing=connect] .scene-connect .tool-sources > div:nth-child(2) { animation-delay: .12s; }
[data-playing=connect] .scene-connect .tool-sources > div:nth-child(3) { animation-delay: .24s; }
[data-playing=connect] .scene-connect .release-sheet { animation: assemble-release 1.5s .32s both; }

@keyframes reveal-tour {
  from { opacity: 0; transform: translate(9%, 12%) scale(.89) rotate(9deg); }
}
@keyframes reveal-index {
  from { opacity: 0; transform: translate(-12%, 10%) rotate(-8deg); }
}
@keyframes settle-contact {
  from { transform: translate(6%, 1%) rotate(-13deg); }
}
@keyframes show-layer { from { opacity: 0; transform: translateY(35%); } }
@keyframes slot-into-place { from { transform: translateX(var(--offset, 0%)); background: #a2ad9b; } }
@keyframes align-source { from { transform: translateX(-20%) rotate(-12deg); opacity: .5; } }
@keyframes assemble-release { from { opacity: 0; transform: translateX(14%) rotate(9deg) scale(.92); } }

@media (max-width: 780px) {
  .engineering-layout { grid-template-columns: minmax(0, 1fr); padding-block: 3.5rem; }
  .engineering-hero h1 { max-width: 11ch; font-size: clamp(3.5rem, 11.8vw, 6rem); }
  .benefit-copy { max-width: 53ch; }
  .benefit-stage { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .benefit-scene { transition: none; }
  .engineering-hero[data-playing] .benefit-scene * { animation: none; }
}
