/* A reserved stage keeps the device, heading and controls from overlapping. */
.laptop-story {
  --laptop-height: 100vh;
  --laptop-height: 100svh;
  height: calc(var(--laptop-height) * 3.9);
  position: relative;
  background: #090909;
  scroll-margin-top: 20px;
}
.laptop-story .laptop-pin {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: var(--laptop-height);
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 34px 3% max(18px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 57%, #242629 0%, #111214 46%, #090909 77%);
}
.laptop-story .laptop-heading {
  position: relative;
  inset: auto;
  z-index: 3;
  text-align: center;
  pointer-events: none;
  max-width: 100%;
  margin: 0;
}
.laptop-story .laptop-heading .eyebrow {
  font-size: 11px;
  color: #b8b8b8;
  letter-spacing: 0.16em;
}
.laptop-story .laptop-heading h2 {
  font-size: clamp(32px, 4vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 12px 0 0;
}
.laptop-story .laptop-heading h2 span {
  color: #a7a8ac;
}
.laptop-story .laptop-heading p {
  font-size: 14px;
  color: #b8b8b8;
  margin: 12px 0 0;
  display: block;
}
.laptop-story .laptop-viewport {
  position: relative;
  inset: auto;
  isolation: isolate;
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
  margin: 0 auto;
  overflow: hidden;
  contain: layout paint;
  touch-action: pan-y pinch-zoom;
}
.laptop-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.laptop-viewport.model-ready canvas {
  opacity: 1;
}
.laptop-poster {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.static-laptop .laptop-poster {
  display: block;
}
.model-ready .laptop-poster {
  display: none;
}
/* Hide the entire composited screen until a valid projected pose exists.
   A child iframe must never override its hidden parent's visibility. */
.laptop-live-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  height: 713px;
  transform: scale(0);
  transform-origin: 0 0;
  overflow: hidden;
  contain: layout paint;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #090a0b;
  border-radius: 12px 12px 0 0;
  z-index: 2;
  backface-visibility: hidden;
}
.model-ready .laptop-live-screen.has-page.screen-facing {
  opacity: 1;
  visibility: visible;
}
.laptop-live-screen iframe {
  position: absolute;
  inset: 0;
  width: 1100px;
  height: 713px;
  border: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
  visibility: inherit;
  background: #111;
  transition: none;
}
.laptop-live-screen iframe.is-visible {
  opacity: 1;
}
.laptop-status {
  position: absolute;
  inset: 45% 5% auto;
  text-align: center;
  color: #b8b8b8;
  font-size: 13px;
  line-height: 1.6;
  z-index: 3;
  pointer-events: none;
}
.laptop-status[hidden] {
  display: none;
}
.laptop-screen-notch {
  position: absolute;
  top: 0;
  left: calc(50% - 44px);
  width: 88px;
  height: 21px;
  background: #060708;
  border-radius: 0 0 5px 5px;
  z-index: 3;
}
.laptop-screen-notch:after {
  content: '';
  position: absolute;
  top: 7px;
  left: calc(50% - 2px);
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #171c22;
}
.laptop-story .laptop-controls {
  position: relative;
  width: min(100%, 1100px);
  margin: 0 auto;
  z-index: 4;
}
.laptop-story .laptop-caption {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: #c1c2c5;
  font:
    13px Arial,
    sans-serif;
}
.laptop-step {
  font: 12px monospace;
  color: #b0b1b5;
  min-width: 55px;
}
.laptop-story .laptop-project {
  font-size: 15px;
  color: #eee;
  margin: 0;
}
.laptop-open-project {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}
.laptop-open-project:hover .laptop-project {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.laptop-open-project svg {
  width: 16px;
  height: 16px;
}
.laptop-pages {
  display: flex;
  gap: 6px;
  align-items: center;
}
.laptop-pages button,
.laptop-motion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #55575b;
  border-radius: 999px;
  background: #151618;
  color: #eee;
}
.laptop-pages button {
  width: 44px;
  padding: 0;
}
.laptop-pages svg {
  width: 17px;
  height: 17px;
}
.laptop-motion {
  font-size: 12px;
  padding: 10px 17px;
}
.laptop-pages button:hover,
.laptop-motion:hover {
  background: #2d2f32;
}
.laptop-pages button:disabled,
.laptop-motion:disabled {
  opacity: 0.4;
  cursor: default;
}
.laptop-story :is(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.laptop-story .laptop-timeline {
  position: relative;
  inset: auto;
  height: 1px;
  background: #45464a;
  margin: 15px 0 6px;
}
.laptop-timeline span {
  display: block;
  height: 1px;
  background: #eee;
  transform: scaleX(0);
  transform-origin: left;
}
.laptop-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.laptop-credit {
  font-size: 10px;
  color: #a9abb0;
  line-height: 1.5;
}
.laptop-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.laptop-story .laptop-skip {
  position: relative;
  inset: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  font-size: 12px;
  color: #c3c4c6;
  white-space: nowrap;
}
.laptop-skip svg {
  width: 15px;
  height: 15px;
}
.laptop-story.static-laptop,
.laptop-story.motion-reduced {
  height: var(--laptop-height);
  min-height: 560px;
}
.static-laptop .laptop-pin,
.motion-reduced .laptop-pin {
  position: relative;
  height: 100%;
  min-height: 0;
}
.static-laptop .laptop-timeline,
.static-laptop .laptop-pages,
.static-laptop .laptop-motion {
  display: none;
}
.motion-reduced .laptop-timeline {
  display: none;
}
@media (max-width: 700px) {
  .laptop-story .laptop-pin {
    gap: 8px;
    padding: 26px 2% max(10px, env(safe-area-inset-bottom));
  }
  .laptop-story .laptop-heading {
    padding: 0 4%;
  }
  .laptop-story .laptop-heading h2 {
    font-size: clamp(30px, 8.7vw, 46px);
    line-height: 1.08;
    margin-top: 12px;
  }
  .laptop-heading h2 span {
    display: block;
  }
  .laptop-story .laptop-heading p {
    font-size: 13px;
    margin-top: 10px;
  }
  .laptop-story .laptop-controls {
    width: 91%;
  }
  .laptop-story .laptop-caption {
    gap: 5px 12px;
  }
  .laptop-step {
    font-size: 11px;
    min-width: 46px;
  }
  .laptop-story .laptop-project {
    font-size: 14px;
  }
  .laptop-motion {
    padding: 9px 13px;
  }
  .laptop-bottom {
    align-items: center;
  }
  .laptop-credit {
    max-width: 52%;
    font-size: 10px;
  }
  .laptop-story .laptop-skip {
    font-size: 11px;
    gap: 6px;
  }
}
@media (max-height: 650px) {
  .laptop-story .laptop-pin {
    padding-top: 12px;
    gap: 4px;
  }
  .laptop-story .laptop-heading h2 {
    font-size: 30px;
    margin-top: 6px;
  }
  .laptop-story .laptop-heading p {
    display: none;
  }
  .laptop-story .laptop-heading .eyebrow {
    font-size: 10px;
  }
  .laptop-story .laptop-timeline {
    margin-top: 7px;
  }
}
@media (max-height: 480px) and (min-width: 600px) {
  .laptop-story .laptop-pin {
    grid-template-columns: minmax(170px, 0.65fr) minmax(0, 1.65fr);
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 12px 3% 8px;
    column-gap: 8px;
  }
  .laptop-story .laptop-heading {
    align-self: center;
    text-align: left;
    padding: 0;
  }
  .laptop-story .laptop-heading h2 {
    font-size: clamp(24px, 4vw, 36px);
  }
  .laptop-heading h2 span {
    display: block;
  }
  .laptop-story .laptop-viewport {
    grid-column: 2;
    grid-row: 1;
  }
  .laptop-story .laptop-controls {
    grid-column: 1/-1;
    grid-row: 2;
    width: 100%;
  }
  .laptop-story .laptop-caption {
    gap: 5px 16px;
  }
  .laptop-story .laptop-bottom {
    display: none;
  }
}
