.story-system--product .story-system-layout.wrap {
  grid-template-areas: 'intro intro' 'visual steps' 'next next';
}

.story-system--product .story-system-image-frame { background: #fff; }

.story-system--product .story-system-image-frame > img {
  aspect-ratio: 1.3;
  object-fit: contain;
}

.story-system--product[data-focus] .story-system-image-frame > img { transform: scale(1); }
.story-system--product[data-focus='1'] .story-system-image-frame > img,
.story-system--product[data-focus='2'] .story-system-image-frame > img { transform: scale(1.045); }

.story-system--product[data-focus] .story-system-marker {
  top: 78%;
  left: min(91%, calc(100% - 34px));
  width: 48px;
  height: 48px;
  box-shadow: 0 0 0 1px #3954499c, 0 0 0 6px #ffffffe0;
  transform: translate(-50%, -50%);
}

.story-system--product[data-focus='1'] .story-system-marker { top: 22%; left: min(91%, calc(100% - 34px)); }
.story-system--product[data-focus='2'] .story-system-marker { top: 38%; left: max(9%, 34px); }
.story-system--product[data-focus='3'] .story-system-marker { top: 78%; left: max(9%, 38px); width: 58px; height: 58px; }

.story-system--product .story-system-marker:hover { box-shadow: 0 0 0 1px #395449cc, 0 0 0 8px #ffffffed; }

.story-system--product[data-focus] .story-system-marker::after { inset: 6px; }

.story-system--drawing .story-system-image-frame { padding-bottom: 64px; }
.story-system--drawing[data-focus] .story-system-image-frame > img {
  aspect-ratio: auto;
  max-height: 640px;
  transform: none;
}
.story-system--drawing[data-focus] .story-system-marker {
  top: auto;
  right: 18px;
  bottom: 10px;
  left: auto;
  width: 44px;
  height: 44px;
  transform: none;
}
.story-system--drawing .story-system-focus { top: auto; bottom: 10px; min-height: 44px; box-shadow: none; }

.story-system-mobile-stage { display: none; }

.story-system-next {
  grid-area: next;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid #bacbc1;
}

.story-system-next p { margin: 0; color: #293b35; font-size: 16px; font-weight: 600; }
.story-system-next > div { display: flex; flex-wrap: wrap; gap: 24px; }
.story-system-next a { color: #263e35; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.story-system-next a:focus-visible { outline: 2px solid #134f44; outline-offset: 4px; }

@media (max-width: 760px) {
  .story-system--product .story-system-layout.wrap { grid-template-areas: 'intro' 'visual' 'steps' 'next'; }
  .story-system--drawing .story-system-image-frame { padding-bottom: 0; }
  .story-system--drawing[data-focus] .story-system-image-frame > img { max-height: none; }
  .story-system--product .story-system-image-frame > img { aspect-ratio: 1; }
  .story-system--product .story-system-focus { display: none; }
  .story-system--product .story-system-mobile-stage {
    display: block;
    min-height: 164px;
    padding: 16px 72px 16px 18px;
    border-top: 1px solid #cad9cf;
    background: #f3f7f3;
  }
  .story-system--product .story-system-mobile-copy > span {
    display: block;
    margin-bottom: 6px;
    color: #60766a;
    font-size: 10px;
    font-weight: 700;
  }
  .story-system--product .story-system-mobile-copy strong {
    display: block;
    color: #203c32;
    font-size: 19px;
    line-height: 1.25;
  }
  .story-system--product .story-system-mobile-copy p {
    min-height: 33px;
    margin: 5px 0 0;
    color: #53665b;
    font-size: 12px;
    line-height: 1.4;
  }
  .story-system--product .story-system-mobile-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 10px;
  }
  .story-system--product .story-system-mobile-controls button {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 38px;
    padding: 0;
    border: 1px solid #bccdc2;
    background: #fff;
    color: #536b5c;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
  }
  .story-system--product .story-system-mobile-controls button[aria-pressed='true'] {
    border-color: #205344;
    background: #205344;
    color: #fff;
  }
  .story-system--product .story-system-mobile-controls button:focus-visible {
    outline: 2px solid #134f44;
    outline-offset: 2px;
  }
  .story-system--product[data-focus] .story-system-marker {
    z-index: 1;
    top: auto;
    right: 16px;
    bottom: 16px;
    left: auto;
    width: 44px;
    height: 44px;
    border-color: #2e6958;
    background: #fff;
    box-shadow: 0 0 0 1px #d1ded4;
    transform: none;
  }
  .story-system--product .story-system-marker:hover { box-shadow: 0 0 0 4px #d4e4d9; }
  .story-system--product .story-system-marker:focus-visible { outline-offset: 4px; }
  .story-system-next { flex-direction: column; align-items: flex-start; gap: 13px; }
}

@media (max-width: 360px) {
  .story-system--product .story-system-mobile-stage { min-height: 204px; }
  .story-system--product .story-system-mobile-copy strong { min-height: 48px; }
  .story-system--product .story-system-mobile-copy p { min-height: 51px; }
}
