.nav-short {
  display: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.hero-copy a {
  pointer-events: auto;
}
.hero-footer {
  z-index: 2;
}
.hero-art {
  top: 8%;
}
.lab-stage {
  position: absolute;
  right: 0;
  top: 7%;
  bottom: 9%;
  width: 54%;
  z-index: 0;
}
.lab-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: crosshair;
  border-radius: 12px;
}
.scene-tools {
  position: absolute;
  right: clamp(25px, 3vw, 55px);
  top: 23px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scene-switch {
  display: flex;
  gap: 2px;
  background: #1b1d24e8;
  border: 1px solid #fff3;
  border-radius: 99px;
  padding: 3px;
}
.scene-switch button,
.motion-control {
  color: #bfc4d0;
  font-size: 12px;
  line-height: 1;
  font-weight: 550;
  min-height: 29px;
  min-width: 29px;
  border-radius: 50px;
  padding: 0 11px;
}
.scene-switch button[aria-pressed="true"] {
  background: #e7eafa;
  color: #191b25;
}
.motion-control {
  padding: 0;
  display: grid;
  place-items: center;
  background: #22242c;
  border: 1px solid #ffffff40;
  min-height: 35px;
  min-width: 35px;
  color: white;
}
.scene-tools:has(#mode-lab[hidden]) {
  display: none;
}
.lab-stage::after {
  content: "Move to push · Tap to recolor";
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  font: 11px var(--mono);
  letter-spacing: 0.035em;
  color: #c6cbdc;
  pointer-events: none;
  white-space: nowrap;
  background: #101116cc;
  padding: 6px 10px;
  border-radius: 30px;
}
.reel-wrap {
  margin-top: clamp(24px, 3.3vw, 64px);
  transform: scale(var(--reel-scale, 1));
  transform-origin: center;
}
.reel-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  overflow: hidden;
  background: #172552;
  color: #fff;
  width: 100%;
  min-height: clamp(200px, 22vw, 390px);
  padding: clamp(25px, 4.3vw, 80px);
  border-radius: 15px;
}
.reel-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.65s;
}
.reel-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #111833e8 0%,
    #111833b8 43%,
    #11183308 74%
  );
}
.reel-card:hover > img {
  transform: scale(1.025);
}
.reel-copy .kicker,
.film-top .kicker {
  color: #cbd2ff;
}
.reel-copy .kicker > span,
.film-top .kicker > span {
  background: #a3adff;
}
.reel-copy strong {
  display: block;
  font-size: clamp(32px, 4.8vw, 80px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 1.05;
  margin-top: 16px;
}
.play-pill {
  background: #f5f6ff;
  color: #171923;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  border-radius: 99px;
  padding: 14px 19px;
  font-size: 15px;
  font-weight: 600;
}
.play-pill i {
  display: block;
  width: 0;
  height: 0;
  border-left: 9px solid currentColor;
  border-block: 6px solid transparent;
}
.play-pill small {
  font: 12px var(--mono);
  color: #545967;
  border-left: 1px solid #bec2cb;
  padding-left: 10px;
}
#demo-film {
  width: min(94vw, 1020px);
  padding: 0;
  background: #12141d;
  color: white;
  border: 1px solid #3b4053;
}
.film-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 26px;
}
.film-top h2 {
  font-size: 32px;
  margin-top: 8px;
}
.film-top .icon-btn {
  background: #333848;
  color: white;
}
.film-top .icon-btn:after {
  content: "×";
  font-size: 25px;
}
.film-top .icon-btn {
  font-size: 0;
}
#film-video {
  display: block;
  width: 100%;
  max-height: 65dvh;
  background: #111522;
  object-fit: contain;
}
.film-description {
  padding: 16px 26px;
  color: #c2c5d4;
  line-height: 1.5;
  font-size: 15px;
}
.art-caption {
  min-width: 0;
}
@media (max-width: 900px) {
  .scene-tools {
    right: 20px;
    top: 18px;
  }
  .lab-stage {
    top: 11%;
    bottom: 13%;
    width: 52%;
  }
  .scene-switch button {
    font-size: 11px;
  }
  .lab-stage::after {
    font-size: 10px;
    bottom: -1%;
  }
}
@media (max-width: 680px) {
  .nav-desktop {
    display: none;
  }
  .nav-short {
    display: inline;
  }
  .mast:has(.mobile-menu) {
    z-index: 5;
  }
  .hero {
    grid-template-rows: auto auto auto auto;
  }
  .hero-copy {
    grid-row: 1;
  }
  .hero h1 {
    font-size: clamp(42px, 11.4vw, 70px);
  }
  .scene-tools {
    position: relative;
    inset: auto;
    grid-row: 2;
    justify-self: start;
    margin: 20px 0 0;
  }
  .lab-stage,
  .hero-art {
    position: relative;
    inset: auto;
    grid-row: 3;
    width: 100%;
    height: clamp(212px, 62vw, 320px);
    margin: 5px 0 8px;
  }
  .hero-art {
    height: clamp(208px, 54vw, 294px);
  }
  .hero-footer {
    grid-row: 4;
  }
  .lab-stage::after {
    bottom: 2%;
    font-size: 9px;
  }
  .scene-switch button {
    padding: 0 11px;
    min-height: 27px;
  }
  .motion-control {
    min-width: 33px;
    min-height: 33px;
  }
  .art-caption,
  .inspect {
    font-size: 10px;
  }
  .hero-footer {
    gap: 6px;
  }
  .reel-card {
    align-items: start;
    justify-content: center;
    gap: 18px;
    flex-direction: column;
  }
  .play-pill {
    font-size: 13px;
    padding: 10px 14px;
  }
  .reel-copy strong {
    margin-top: 10px;
  }
  .menu-open {
    overflow: hidden;
  }
  .menu-open .mast {
    position: relative;
    isolation: isolate;
  }
  .menu-open .mast:before {
    content: "";
    position: fixed;
    inset: 0;
    background: #2844dd;
    z-index: -2;
    animation: menu-in 0.28s ease-out;
  }
  .menu-open .mast > .brand {
    color: white;
  }
  .menu-open .nav.open {
    position: absolute;
    z-index: 2;
    top: 70px;
    left: 0;
    right: 0;
    background: #f4f5fb;
    display: grid;
    border: 0;
    min-width: 0;
    padding: 10px 20px;
    border-radius: 15px;
    animation: menu-in 0.28s ease-out;
  }
  .menu-open .nav a {
    font-size: clamp(24px, 7vw, 38px);
    letter-spacing: -0.05em;
    padding: 18px 0;
    border-bottom: 1px solid #d2d5e2;
    border-radius: 0;
  }
  .menu-open .nav a:last-child {
    border-bottom: 0;
  }
  .menu-open .mobile-menu {
    background: white;
    transform: rotate(90deg);
  }
  .menu-open .nav-work {
    background: white;
    color: #181a25;
  }
  .film-description,
  .film-top {
    padding: 14px 17px;
  }
  .film-top h2 {
    font-size: 26px;
  }
  .foot {
    margin-top: 5px;
  }
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 360px) {
  .hero-footer .art-caption .icon {
    display: none;
  }
  .hero-footer .art-caption,
  .hero-footer .inspect {
    font-size: 9px;
  }
  .mast .brand {
    font-size: 26px;
  }
  .nav-work {
    padding: 0 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reel-wrap,
  .reel-card:hover > img {
    transform: none;
  }
}
