/* Native document scrolling holds the completed chapter while the next rises. */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .mobile-story-enabled #hero.hero-scene {
    height: calc(var(--shell-viewport-height, 100svh) * 5.5);
  }
  .mobile-story-enabled #hero .hero-stage {
    height: var(--shell-viewport-height, 100svh);
    min-height: 0;
  }
  .mobile-story-enabled .hero-scene + .promise-scene {
    margin-top: calc(-1 * var(--shell-viewport-height, 100svh));
  }
  .mobile-story-enabled :is(#work, #services, #plans, #process) {
    height: calc(var(--shell-stage-height, 100svh) + var(--shell-travel, 0px) + var(--shell-viewport-height, 100svh));
  }

  .mobile-story-enabled :is(.work-stage, .services-stage, #plans > .scene-scroll, #process > .scene-scroll) {
    position: sticky;
    top: var(--shell-pin-top, 0px);
    height: auto;
    min-height: var(--shell-viewport-height, 100svh);
    overflow: visible;
    border-radius: inherit;
    background: inherit;
  }

  .mobile-story-enabled :is(#services, #plans, #process, #contact) {
    margin-top: calc(-1 * var(--shell-viewport-height, 100svh));
  }

  .mobile-story-enabled #work .project-viewport { overflow: hidden; }
  .mobile-story-enabled #work .project-track {
    transform: translate3d(var(--work-x), 0, 0) !important;
  }
  .mobile-story-enabled #work .work-direction::before { content: '아래로 스크롤해 보기'; }
  .mobile-story-enabled #work .work-direction b { transform: rotate(90deg); }
  .mobile-story-enabled #work .section-heading > p { font-size: 13px; }
  .mobile-story-enabled #work .section-heading > p br { display: block; }
  .mobile-story-enabled #work .section-heading > p a { margin-top: 6px; }

  .mobile-story-enabled #services .service-panels {
    height: var(--service-panel-height, 550px);
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    isolation: isolate;
  }
  .mobile-story-enabled #services .service-panel {
    position: absolute;
    inset: 0 0 auto;
    min-height: 100%;
    opacity: var(--panel-opacity, 0) !important;
    transform: translate3d(0, var(--panel-y, 100%), 0) !important;
    will-change: transform;
  }
  .mobile-story-enabled #services .service-panel[aria-hidden='true'] { pointer-events: none; }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) and (prefers-reduced-motion: no-preference) {
  .mobile-story-enabled #work .work-stage { padding-top: 85px; padding-bottom: 85px; }
  .mobile-story-enabled #work .project-card { width: 58vw; }
  .mobile-story-enabled #work .project-image img { height: 210px; aspect-ratio: auto; }
  .mobile-story-enabled #services .services-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 22px 28px;
    padding-top: 85px;
    padding-bottom: 85px;
  }
  .mobile-story-enabled #services .services-heading { grid-column: 1 / -1; margin: 0; }
  .mobile-story-enabled #services .services-heading h2 br { display: none; }
  .mobile-story-enabled #services .services-heading h2 { font-size: 34px; }
  .mobile-story-enabled #services .service-tabs { display: flex; margin-bottom: 0; }
  .mobile-story-enabled #services .service-panel > img { height: 130px; }
  .mobile-story-enabled #services .service-panel > div { padding: 18px 22px; }
  .mobile-story-enabled #services .service-panel h3 { font-size: 22px; }
}
