.device-story {
  --studio-black: #0a0a0a;
  --header-height: 64px;
  --stage-height: calc(100svh - var(--header-height));
  --travel: clamp(480px, 105svh, 1000px);
  position: relative;
  isolation: isolate;
  overflow-anchor: none;
  background: var(--studio-black);
  color: #eff0ec;
}
.device-pin {
  height: var(--stage-height);
  min-height: 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(24px, 5svh, 64px) max(24px, 4svh);
  overflow: hidden;
}
.device-story h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.6rem, 4.7vw, 5.65rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: 1;
}
.device-story h2 em { color: #f1e6dd; }
.device-optics {
  position: relative;
  width: 100%;
  min-height: 0;
  flex: 1;
  pointer-events: none;
  user-select: none;
}
.device-optics img,
.device-optics canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  display: block;
  object-fit: contain;
}
.device-frames { visibility: hidden; }
.device-story.has-frame .device-poster { visibility: hidden; }
.device-story.has-frame .device-frames { visibility: visible; }
.device-cue {
  display: none;
  align-items: center;
  gap: 12px;
  color: #d0d0c9;
  font-size: .85rem;
  font-weight: 450;
  letter-spacing: .012em;
}
.device-cue span {
  position: relative;
  overflow: hidden;
  width: 32px;
  height: 1px;
  background: #494946;
}
.device-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f1b38e;
  transform-origin: left;
  transform: scaleX(var(--reveal, 0));
}
@media (prefers-reduced-motion: no-preference) {
  .device-story.is-live { height: calc(var(--stage-height) + var(--travel)); }
  .device-story.is-live .device-pin { position: sticky; top: var(--header-height); }
  .device-story.is-live .device-cue { display: flex; }
}
@media (max-width: 660px) {
  .device-story { --header-height: 56px; --travel: clamp(430px, 88svh, 740px); }
  .device-pin { padding-block: clamp(38px, 10svh, 86px) max(45px, 8svh); }
  .device-optics { width: 106%; }
  .device-story h2 { font-size: clamp(2.7rem, 10.8vw, 4.7rem); }
  .device-cue { font-size: .8rem; }
}
@media (max-height: 480px) {
  .device-pin { padding-block: 12px 10px; }
  .device-story h2 { font-size: 1.9rem; }
  .device-cue { font-size: .78rem; }
}
