/* Private visual study. Presentation only; source scene/camera/input untouched.
   Shared grid cell overlays real DOM copy on the actual observed scene stage.
   Only the scene lingers, for one short paper-tail, without a scroll container. */
#slord-portfolio .white-hero {
  --hero-height: min(82svh, 860px);
  --hero-linger: clamp(72px, 16svh, 160px);
  position: relative;
  display: grid;
  isolation: isolate;
  margin-top: 12px;
  background: var(--sl-paper);
}
#slord-portfolio .white-hero .splat-entry {
  grid-area: 1 / 1;
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
  max-width: none;
  height: var(--hero-height);
  margin: 0;
  padding: 0;
  z-index: 0;
}
#slord-portfolio .white-hero .splat-stage {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: var(--sl-paper);
  filter: saturate(.48) brightness(1.18);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 72%, transparent 98%), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 72%, transparent 98%), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
#slord-portfolio .white-hero .splat-stage img,
#slord-portfolio .white-hero .splat-stage iframe {
  /* Both states occupy the same responsive presentation viewport. */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% 46%;
}
#slord-portfolio .white-hero .splat-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Continuous paper blend across the entire live scene and authentic still.
     No text-following paint; the existing perimeter mask provides the feather. */
  background: rgba(247,245,239,.40);
}
#slord-portfolio .white-hero .hero-copy {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  pointer-events: none;
  overflow-x: clip;
  min-width: 0;
  min-height: calc(var(--hero-height) + var(--hero-linger));
  padding-bottom: calc(110px + var(--hero-linger));
}
#slord-portfolio .white-hero .hero-copy a {
  pointer-events: auto;
  min-height: 44px;
}
#slord-portfolio .white-hero .sl-hero {
  padding: clamp(42px, 6svh, 72px) 0 0;
}
#slord-portfolio .white-hero .sl-hero h1 {
  max-width: 1030px;
  width: 84%;
  margin: 30px 0 42px;
  font-size: clamp(54px, 6.7vw, 96px);
  line-height: 1.04;
  letter-spacing: -.062em;
  text-wrap: pretty;
}
#slord-portfolio .white-hero .sl-hero-bottom {
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 90px);
  max-width: 1060px;
}
#slord-portfolio .white-hero .sl-intro {
  font-size: 17px;

}
#slord-portfolio .white-hero .splat-tools {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  width: min(100%, 1536px);
  margin: 0 auto;
  padding: 16px clamp(22px, 5vw, 80px) 10px;
  gap: 4px 24px;
  background: linear-gradient(to top, var(--sl-paper) 45%, rgba(247,245,239,0));
}
#slord-portfolio .white-hero .splat-tools p {
  flex: 1 1 360px;
  color: var(--sl-ink);
}
#slord-portfolio .white-hero .splat-tools a,
#slord-portfolio .white-hero .splat-tools button {
  min-height: 44px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  #slord-portfolio .white-hero {
    --hero-height: 78svh;
    --hero-linger: 100px;
  }
  #slord-portfolio .white-hero .sl-hero h1 {
    width: 95%;
    font-size: clamp(52px, 7.7vw, 70px);
  }
  #slord-portfolio .white-hero .splat-stage img {
    object-position: 58% 46%;
  }
}
@media (max-width: 620px) {
  #slord-portfolio .white-hero {
    --hero-height: max(690px, 80svh);
    --hero-linger: 64px;
    margin-top: 8px;
  }
  #slord-portfolio .white-hero .hero-copy {
    padding-bottom: calc(145px + var(--hero-linger));
  }
  #slord-portfolio .white-hero .sl-hero {
    padding-top: 34px;
  }
  #slord-portfolio .white-hero .sl-hero h1 {
    width: 100%;
    max-width: 500px;
    font-size: clamp(38px, 10.5vw, 62px);
    margin: 24px 0 28px;
    line-height: 1.075;
    letter-spacing: -.058em;
  }
  #slord-portfolio .white-hero .sl-hero-bottom {
    gap: 18px;
  }
  #slord-portfolio .white-hero .sl-intro {
    font-size: 16px;
  }

  #slord-portfolio .white-hero .splat-stage img {
    object-position: 56% 46%;
  }
  #slord-portfolio .white-hero .splat-tools p {
    flex-basis: 100%;
  }
  #slord-portfolio .white-hero .splat-tools a {
    margin-left: auto;
    font-size: 12px;
    gap: 8px;
  }
}

/* Live preference changes remove differential motion immediately. Existing
   entry.js still owns poster-first + explicit Show 3D; no control is hidden. */
@media (prefers-reduced-motion: reduce) {
  #slord-portfolio .white-hero {
    --hero-linger: 0px;
  }
  #slord-portfolio .white-hero .splat-entry {
    position: relative;
    top: auto;
  }
}

/* All coarse layouts: the existing scene and copy share the first grid row.
   Only the scene stays sticky; all controls occupy a naturally sized second
   row, after the introduction. No viewport-height exception or anchor API. */
@media (pointer: coarse) {
  #slord-portfolio .white-hero .splat-entry {
    display: contents;
  }
  #slord-portfolio .white-hero .splat-stage {
    grid-area: 1 / 1;
    position: sticky;
    top: 0;
    align-self: start;
    height: var(--hero-height);
    z-index: 0;
  }
  #slord-portfolio .white-hero .hero-copy {
    padding-bottom: 24px;
  }
  #slord-portfolio .white-hero .splat-tools {
    grid-area: 2 / 1;
    position: relative;
    inset: auto;
    align-self: start;
  }
}
@media (pointer: coarse) and (prefers-reduced-motion: reduce) {
  #slord-portfolio .white-hero .splat-stage {
    position: relative;
    top: auto;
  }
}
