/* The films share a real, open 3D space; all controls remain ordinary HTML. */
.hero {
  grid-template-columns: 40% 60%;
  padding-top: 38px;
}

.hero-copy { padding-bottom: 58px; }
.hero h1 { font-weight: 400; }
.hero h1 em { color: #b3bba1; }
.hero-glow {
  background: radial-gradient(ellipse at 79% 47%, #88926c14, transparent 56%);
}

.hero-art {
  min-width: 0;
  padding: 0 0 38px 20px;
  margin-right: calc(var(--gutter) * -.45);
}

.hero-art > .reel-meta {
  margin: 0;
  padding-inline: 3.5%;
  color: #aeb3a3;
  font-size: 9px;
  letter-spacing: .12em;
}

.hero-art > .reel-caption {
  padding-top: 16px;
  font-size: 8px;
  color: #8f9685;
}

.motion-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.28;
  isolation: isolate;
}

.gallery-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  touch-action: pan-y;
  transition: opacity 500ms ease;
}

.motion-stage.is-webgl .gallery-canvas { opacity: 1; visibility: visible; }

.hero-art .hero-reel {
  position: absolute;
  width: 94%;
  top: 50%;
  left: 50%;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  border: 1px solid #e9eddf30;
  border-radius: 2px;
  box-shadow: 0 30px 65px -20px #000b;
  background: #080b09;
  opacity: 1;
  transition: opacity 350ms ease;
}

.hero-art .hero-reel video { width: 100%; height: 100%; object-fit: cover; }

/* Retain the video's geometry for its existing visibility/playback observer. */
.motion-stage.is-webgl .hero-reel { opacity: 0; pointer-events: none; }

.gallery-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at 52% 47%, transparent 54%, #13141142 84%, #131411 100%);
}

.motion-stage.is-webgl .gallery-vignette { opacity: 1; }

.gallery-coordinate {
  position: absolute;
  z-index: 3;
  left: 3.5%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 135px);
  font: 9px/1.5 var(--mono);
  letter-spacing: .1em;
  color: #aeb6a0;
  pointer-events: none;
  opacity: 0;
}

.gallery-coordinate span:last-child { color: #777f6e; white-space: nowrap; }
.motion-stage.is-webgl .gallery-coordinate { opacity: 1; }

.motion-stage > #heroToggle {
  position: absolute;
  z-index: 4;
  right: 3.5%;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #e8eddb30;
  border-radius: 2px;
  background: #10140dc9;
  color: #f0f1e8;
  font-size: 11px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 200ms ease, border-color 200ms ease;
}

.motion-stage > #heroToggle .icon { width: 15px; height: 15px; }

.gallery-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin-inline: 3.5%;
  border-top: 1px solid #d7dfb51a;
}

.hero-art:not(.has-gallery) .gallery-toolbar { display: none; }

.gallery-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: #929b86;
  font: 10px/1.4 var(--body);
  white-space: nowrap;
}

.gallery-status i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b9c6a1;
  box-shadow: 0 0 8px #c5d1a52b;
}

.gallery-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 44px;
  margin: 0;
  padding: 10px 5px;
  color: #b1b8a4;
  font: 10px/1.4 var(--body);
  white-space: nowrap;
  transition: color 200ms ease;
}

.gallery-toolbar .motion-replay { padding-right: 0; }
.gallery-toolbar .icon { width: 14px; height: 14px; }
.hero-bottom { color: #aeb5a2; }

@media (hover: hover) and (pointer: fine) {
  .gallery-toolbar button:hover { color: #f3f1e7; }
  .motion-stage > #heroToggle:hover { background: #1b2117e8; border-color: #dbe5c66b; }
}

@media (min-width: 1700px) {
  .hero { padding-top: 46px; }
  .hero-art { padding-left: 30px; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .hero { grid-template-columns: 43% 57%; padding-top: 38px; }
  .hero-copy { padding-bottom: 45px; }
  .hero-art { padding-left: 8px; padding-bottom: 30px; margin-right: calc(var(--gutter) * -.4); }
  .motion-stage { aspect-ratio: 1.05; }
  .hero-art > .reel-meta { font-size: 8px; letter-spacing: .07em; }
  .hero-art > .reel-caption { font-size: 7px; letter-spacing: .04em; }
  .gallery-toolbar { gap: 10px; }
  .gallery-status { gap: 6px; }
  .gallery-coordinate { font-size: 8px; gap: 10px; letter-spacing: .06em; }
}

@media (max-width: 760px) {
  .hero { padding-top: 34px; }
  .hero-copy { padding-bottom: 26px; }
  .hero-art { width: 100%; max-width: 580px; padding: 5px 0 30px; margin-right: 0; }
  .motion-stage { aspect-ratio: 1.16; }
  .hero-art > .reel-meta { padding-inline: 1%; font-size: 8px; letter-spacing: .07em; }
  .hero-art > .reel-caption { padding-top: 13px; font-size: 7px; letter-spacing: .04em; }
  .hero-art .hero-reel { width: 98%; }
  .gallery-vignette { background: radial-gradient(ellipse at 52% 47%, transparent 55%, #13141138 86%, #131411 100%); }
  .gallery-coordinate { left: 1%; bottom: 15px; gap: 10px; font-size: 8px; letter-spacing: .06em; }
  .motion-stage > #heroToggle { right: 1%; bottom: 4px; padding: 8px 10px; gap: 8px; }
  .gallery-toolbar { margin-inline: 1%; gap: 9px; }
  .gallery-toolbar button { padding-inline: 3px; }
  .gallery-status { gap: 6px; }
  .hero-bottom { font-size: 7px; letter-spacing: .06em; }
}

@media (max-width: 380px) {
  .hero-copy > .eyebrow { font-size: 8px; }
  .hero-art > .reel-meta { font-size: 7px; }
  .hero-art > .reel-caption { font-size: 6px; }
  .gallery-coordinate span:last-child { display: none; }
  .gallery-toolbar { justify-content: space-between; }
  .gallery-status { display: none; }
  .hero-bottom { font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-canvas, .hero-art .hero-reel { transition: none; }
  .gallery-toolbar .motion-replay { display: none !important; }
  .gallery-status i { box-shadow: none; }
}
