/* A photographic introduction. The composition remains complete without motion. */
.hero-collage {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: #243b40;
  background: #f7f5f0;
  border-bottom: 1px solid #dde1d766;
}

.hero-collage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 76% 51%, #dce4d957 0, #ecebe444 30%, transparent 65%);
  content: "";
  pointer-events: none;
}

.hero-collage-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
  width: min(1120px, calc(100% - 96px));
  min-height: 650px;
  margin-inline: auto;
  padding-block: 42px;
}

.hero-collage .hero-copy {
  position: relative;
  inset: auto;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding-block: 0;
  transform: none;
}

.hero-collage .hero-copy .eyebrow {
  margin-bottom: 22px;
  font-size: 10.5px;
  letter-spacing: 1.9px;
}

.hero-collage .hero-copy h1 {
  max-width: 500px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: -1.2px;
  text-wrap: balance;
}

.hero-collage .hero-rule {
  width: 44px;
  margin-block: 27px 10px;
}

.hero-collage .hero-link {
  gap: 30px;
  padding-block: 4px;
}

.collage {
  min-width: 0;
  width: 100%;
  padding-top: 4px;
}

.collage-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1;
  perspective: 1100px;
  perspective-origin: 50% 48%;
}

.collage-scene {
  position: absolute;
  inset: 20px 14px 18px;
  transform-style: preserve-3d;
}

.collage-card {
  --turn: 0deg;
  --depth: 0px;
  position: absolute;
  display: block;
  min-width: 44px;
  min-height: 44px;
  color: #3f514e;
  text-decoration: none;
  transform: rotate(var(--turn));
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
}

.collage-motion {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px 5px 27px;
  background: #fffdf6;
  border: 1px solid #dfdfd3;
  border-radius: 2px;
  box-shadow: 0 2px 4px #243b400d, 0 10px 20px -9px #243b402b, 0 22px 34px -23px #243b4024;
  transform: translate3d(var(--motion-x, 0px), var(--motion-y, 0px), calc(var(--depth) + var(--motion-lift, 0px))) rotateX(var(--motion-rx, 0deg)) rotateY(var(--motion-ry, 0deg)) rotateZ(var(--motion-rz, 0deg)) scale(var(--motion-scale, 1));
  backface-visibility: hidden;
}

.collage-motion img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  background: #e5e7dc;
  border-radius: 1px;
  user-select: none;
  -webkit-user-drag: none;
}

.collage-card-label {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  display: block;
  overflow: hidden;
  color: #52615a;
  font: 500 11px/1.25 'Segoe UI', sans-serif;
  letter-spacing: .1px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.collage-card--portrait {
  --turn: -3deg;
  --depth: 34px;
  top: 23%;
  left: 31%;
  z-index: 7;
  width: 38%;
  height: 57%;
}

.collage-card--portrait .collage-motion {
  padding: 6px 6px 30px;
  box-shadow: 0 2px 4px #243b4010, 0 12px 24px -10px #243b4030, 0 28px 40px -25px #243b4029;
}

.collage-card--portrait img { object-position: 50% 42%; }
.collage-card--portrait .collage-card-label { bottom: 7px; font-size: 12px; }

.collage-card--atlas {
  --turn: -7deg;
  --depth: -13px;
  top: 9%;
  left: 0;
  z-index: 2;
  width: 39%;
  height: 30%;
}

.collage-card--atlas img { object-position: 57% 40%; }

.collage-card--dragonvale {
  --turn: 6deg;
  --depth: 7px;
  top: 8%;
  left: 63%;
  z-index: 4;
  width: 35%;
  height: 24%;
}

.collage-card--dragonvale img { object-fit: contain; background: #edf0e4; }

.collage-card--bounce {
  --turn: 4deg;
  --depth: 4px;
  top: 78%;
  left: 7%;
  z-index: 5;
  width: 36%;
  height: 21%;
}

.collage-card--bounce img { object-fit: contain; background: #e9f0e0; }

.collage-card--nibblity {
  --turn: -6deg;
  --depth: 19px;
  top: 73%;
  left: 67%;
  z-index: 6;
  width: 32%;
  height: 25%;
}

.collage-card--nibblity img { object-fit: contain; background: #e6e6df; }

.collage-card--cat-orange {
  --turn: -5deg;
  --depth: 17px;
  top: 44%;
  left: 0;
  z-index: 5;
  width: 30%;
  height: 32%;
}

.collage-card--cat-orange img { object-position: 60% 30%; }

.collage-card--cat-toys {
  --turn: 8deg;
  --depth: -2px;
  top: -5%;
  left: 38%;
  z-index: 3;
  width: 24%;
  height: 23%;
}

.collage-card--forest {
  --turn: 8deg;
  --depth: -20px;
  top: 36%;
  left: 76%;
  z-index: 1;
  width: 23%;
  height: 34%;
}

.collage-card--atlas .collage-card-label,
.collage-card--cat-orange .collage-card-label,
.collage-card--bounce .collage-card-label,
.collage-card--cat-toys .collage-card-label { text-align: left; }

.collage-card--dragonvale .collage-card-label,
.collage-card--forest .collage-card-label,
.collage-card--nibblity .collage-card-label { text-align: right; }

.collage-card--portrait .collage-card-label { text-align: center; }

/* Keyboard focus reveals overlapping cards; pointer hover keeps their natural order. */
.collage-card:focus-visible {
  z-index: 10;
}

.collage-card:focus-visible { outline: none; }
.collage-card:focus-visible .collage-motion { outline: 3px solid #426d75; outline-offset: 5px; }

/* A stable story frame keeps the close and carousel controls outside the scrolling content. */
.collage-dialog {
  width: min(1050px, calc(100vw - 48px));
  max-width: none;
  height: min(740px, calc(100vh - 48px));
  height: min(740px, calc(100dvh - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 18px 22px 24px;
  overflow: hidden;
  overscroll-behavior: contain;
  color: #243b40;
  background: #f7f5f0;
  border: 1px solid #d2d9cc;
  border-radius: 7px;
  box-shadow: 0 25px 90px #08171955;
}

.collage-dialog::backdrop {
  background: #15272bcc;
  backdrop-filter: blur(7px);
  opacity: 1;
  transition: opacity 650ms cubic-bezier(.2, .65, .3, 1);
}

.collage-dialog.collage-backdrop-enter::backdrop,
.collage-dialog.collage-backdrop-exit::backdrop { opacity: 0; }
.collage-dialog.collage-backdrop-exit::backdrop { transition-duration: 500ms; }
.collage-dialog.collage-transitioning { overflow: visible; }

.collage-shared-image {
  position: fixed;
  z-index: 100;
  display: block;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 1px;
  object-fit: cover;
  transform-origin: center;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.collage-dialog[open] {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) auto;
  gap: 12px;
}

.collage-story {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 32px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y pinch-zoom;
}

.collage-dialog-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 32px;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.collage-dialog-copy {
  align-self: safe center;
  min-width: 0;
  padding: 8px 14px 20px 0;
}

.collage-dialog-kicker {
  margin: 0 0 14px;
  color: #647b6d;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.collage-dialog h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 3.5vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.9px;
  text-wrap: balance;
}

.collage-dialog-lead {
  margin: 24px 0 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
}

.collage-dialog-copy [data-collage-description] {
  margin: 0;
  color: #4e625d;
  font-size: 15px;
  line-height: 1.8;
  text-wrap: pretty;
}

.collage-dialog-close {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #243b40;
  background: #fbfaf5;
  border: 1px solid #bcc8ba;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  transition: background-color 440ms ease, border-color 440ms ease;
}

.collage-dialog-close:hover { background: #e2e8dc; border-color: #849b89; }

.collage-dialog-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 14px;
  background: #e8ebe2;
  border: 1px solid #d9dfd2;
  border-radius: 3px;
  touch-action: pan-y pinch-zoom;
}

.collage-dialog-stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
}

.collage-story-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 20px;
  padding-block: 8px;
  color: #365c6b;
  font-size: 13px;
  line-height: 1.5;
}

.collage-story-link::after { content: "→"; }
.collage-credit { margin: 9px 0 0; color: #69776d; font-size: 10.5px; line-height: 1.5; }
.collage-credit a { color: inherit; }

.collage-story-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  min-height: 64px;
  padding-top: 9px;
  border-top: 1px solid #dce1d6;
}

.collage-story-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 54px;
  padding: 5px 9px;
  color: #526a60;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color 440ms ease, background-color 440ms ease, border-color 440ms ease;
}

.collage-story-prev { justify-content: flex-start; text-align: left; }
.collage-story-next { justify-content: flex-end; text-align: right; }
.collage-story-nav button:hover { color: #243b40; background: #e8ece280; border-color: #d4dbce; }
.collage-story-nav button > span:not(.collage-nav-arrow) { display: grid; gap: 2px; min-width: 0; }
.collage-nav-arrow { flex: 0 0 20px; font-size: 20px; font-weight: 400; line-height: 1; }
.collage-nav-direction { color: #697d70; font-size: 9px; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }
.collage-nav-label { color: #344e45; font-size: 13px; font-weight: 500; line-height: 1.35; white-space: normal; }

body.collage-dialog-open,
body:has(.collage-dialog[open]) { overflow: hidden; }

@media (max-width: 1100px) {
  .hero-collage-inner { width: calc(100% - 64px); min-height: 600px; gap: 24px; padding-block: 36px; }
  .hero-collage .hero-copy h1 { font-size: 38px; letter-spacing: -1px; }
}

@media (max-width: 900px) {
  .hero-collage-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; padding-block: 40px 28px; }
  .hero-collage .hero-copy { max-width: 760px; }
  .hero-collage .hero-copy .eyebrow { margin-bottom: 18px; }
  .hero-collage .hero-copy h1 { max-width: 760px; font-size: 43px; }
  .hero-collage .hero-rule { margin-block: 22px 8px; }
  .collage { width: min(100%, 620px); justify-self: center; padding-top: 0; }
  .collage-stage { aspect-ratio: 1.16; }
}

@media (max-width: 760px) {
  .collage-dialog { width: calc(100vw - 24px); height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 14px; border-radius: 5px; }
  .collage-story { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; align-items: start; gap: 20px; }
  .collage-dialog-media { height: clamp(190px, 42vh, 350px); height: clamp(190px, 42dvh, 350px); }
  .collage-dialog-copy { padding: 0 8px 10px; }
  .collage-dialog-stage { padding: 10px; }
  .collage-dialog-kicker { margin-bottom: 10px; font-size: 9px; letter-spacing: 1.3px; }
  .collage-dialog h2 { font-size: 36px; }
  .collage-dialog-lead { margin-top: 19px; font-size: 17px; }
  .collage-dialog-copy [data-collage-description] { font-size: 14px; line-height: 1.75; }
  .collage-story-link { margin-top: 16px; }
  .collage-credit { font-size: 10px; }
  .collage-story-nav { gap: 10px; }
  .collage-story-nav button { gap: 7px; padding-inline: 4px; }
  .collage-nav-arrow { flex-basis: 18px; font-size: 18px; }
  .collage-nav-label { font-size: 12px; }
}

@media (max-width: 600px) {
  .hero-collage-inner { width: calc(100% - 40px); gap: 20px; padding-block: 32px 25px; }
  .hero-collage .hero-copy .eyebrow { margin-bottom: 17px; font-size: 10px; letter-spacing: 1.65px; }
  .hero-collage .hero-copy h1 { max-width: 520px; font-size: clamp(31px, 6.4vw, 38px); line-height: 1.2; letter-spacing: -.8px; }
  .hero-collage .hero-rule { margin-block: 21px 6px; }
  .hero-collage .hero-link { gap: 28px; }
  .collage-stage { aspect-ratio: .92; perspective: 950px; }
  .collage-scene { inset: 15px 10px 19px; }
  .collage-motion { padding: 4px 4px 25px; box-shadow: 0 2px 3px #243b400d, 0 8px 14px -6px #243b4029, 0 18px 28px -18px #243b4022; }
  .collage-card-label { right: 6px; bottom: 6px; left: 6px; font-size: 10.5px; letter-spacing: 0; }
  .collage-card--portrait { --depth: 22px; top: 23%; left: 29%; width: 42%; height: 58%; }
  .collage-card--portrait .collage-motion { padding: 4px 4px 27px; }
  .collage-card--portrait .collage-card-label { bottom: 6px; font-size: 10.5px; }
  .collage-card--atlas { --turn: -6deg; --depth: -8px; top: 6%; left: 0; width: 39%; height: 27%; }
  .collage-card--dragonvale { --turn: 5deg; top: 3%; left: 65%; width: 35%; height: 20%; }
  .collage-card--cat-toys { --turn: 7deg; top: -5%; left: 39%; width: 25%; height: 22%; }
  .collage-card--cat-orange { --turn: -4deg; --depth: 10px; top: 38%; left: 0; width: 30%; height: 32%; }
  .collage-card--forest { --turn: 7deg; --depth: -12px; top: 36%; left: 77%; width: 23%; height: 34%; }
  .collage-card--bounce { --turn: 3deg; top: 77%; left: 0; width: 43%; height: 23%; }
  .collage-card--nibblity { --turn: -5deg; --depth: 12px; top: 76%; left: 65%; width: 35%; height: 24%; }
  .collage-dialog h2 { font-size: 32px; }
}

@media (max-width: 360px) {
  .hero-collage .hero-copy h1 { font-size: 30px; letter-spacing: -.7px; }
  .collage-stage { aspect-ratio: .88; }
  .collage-nav-label { font-size: 11.5px; }
}

/* Keep the small photo labels visible where the portrait overlaps the back row. */
@media (min-width: 901px) {
  .collage-card--cat-toys { top: -5%; }
  .collage-card--dragonvale { left: 66.5%; width: 33.5%; }
}
