/* Page-specific refinements for the Studio editorial pages. */

/* The scenes keep editorial scroll movement, while their content reads as an open spread. */
.company-page .story-scenes {
  gap: clamp(52px, 7vw, 96px);
}

.company-page .story-scene {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  grid-template-areas:
    "meta art"
    "title art"
    "body art";
  column-gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: 0;
  padding: clamp(28px, 4vw, 52px) 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.company-page .story-scene:first-child {
  border-top: 0;
  padding-top: 0;
}

.company-page .scene-meta {
  grid-area: meta;
  align-self: start;
  width: 100%;
}


.company-page .story-scene h3 {
  grid-area: title;
  align-self: end;
  margin-top: clamp(26px, 4vw, 48px);
}

.company-page .story-scene p {
  grid-area: body;
  align-self: start;
}

.company-page .resource-item p {
  max-width: 34ch;
  margin-top: 3px;
}

/* The gallery is a normal editorial grid. Legacy scroll variables may still be set by editorial.js,
   but they cannot collapse the six photos into a waiting stack. */
.hobbies-page .hobby-spread,
.hobbies-page .motion-ready .hobby-spread {
  height: auto;
  min-height: 0;
  padding: clamp(58px, 8vw, 112px) 20px clamp(76px, 9vw, 132px);
}

.hobbies-page .hobby-stage,
.hobbies-page .motion-ready .hobby-stage {
  position: static;
  max-width: 1240px;
}

.hobbies-page .hobby-heading {
  padding-bottom: clamp(34px, 5vw, 62px);
}

.hobbies-page .spread-cards,
.hobbies-page .motion-ready .spread-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.3vw, 48px) clamp(18px, 2.6vw, 36px);
  width: 100%;
  max-width: 1180px;
  height: auto;
  min-height: 0;
  max-height: none;
  margin-inline: auto;
}

.hobbies-page .spread-photo,
.hobbies-page .motion-ready .spread-photo {
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  z-index: auto;
  will-change: auto;
}

.hobbies-page .spread-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(38, 59, 50, .1);
}

.hobbies-page .spread-photo figcaption {
  padding: 16px 0 0;
  font-size: .875rem;
}

.hobbies-page .hobby-back {
  justify-content: flex-start;
  margin-top: clamp(38px, 5vw, 64px);
}

@keyframes studio-photo-in {
  from { opacity: .45; }
  to { opacity: 1; }
}

.hobbies-page .studio-gallery-ready .spread-photo {
  animation: studio-photo-in .65s ease both;
  animation-delay: var(--studio-photo-delay, 0ms);
}

@media (max-width: 900px) {
  .company-page .story-scene {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "art"
      "title"
      "body";
    row-gap: 0;
  }

  .company-page .scene-art {
    min-height: 0;
    margin-top: 22px;
  }

  .company-page .story-scene h3 {
    margin-top: 26px;
  }

  .hobbies-page .spread-cards,
  .hobbies-page .motion-ready .spread-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .company-page .story-scene {
    padding-block: 32px;
  }

  .company-page .story-scene:first-child {
    padding-top: 0;
  }

  .hobbies-page .spread-cards,
  .hobbies-page .motion-ready .spread-cards {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 430px;
  }

  .hobbies-page .spread-photo figcaption {
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hobbies-page .studio-gallery-ready .spread-photo {
    animation: none;
    opacity: 1;
  }
}
