/* The method moves through a single collage as the phases open. */
.v11-method-heading {
  margin-bottom: clamp(1.8rem, 4vw, 4.25rem);
}

.v11-method .v11-method-heading h2 {
  max-width: 15ch;
  font-size: clamp(2.75rem, 6.2vw, 6.25rem);
  text-wrap: balance;
}

.v11-method-heading > p:last-child {
  max-width: 42ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.5;
}

.v11-method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.v11-method-phases {
  grid-area: 1 / 2;
  min-width: 0;
  border-top: 1px solid var(--line);
}

.v11-phase {
  border-bottom: 1px solid var(--line);
}

.v11-phase > summary {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) 3.4rem;
  gap: .7rem;
  align-items: baseline;
  padding: clamp(.95rem, 2vw, 1.7rem) 0;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.v11-phase > summary::-webkit-details-marker {
  display: none;
}

.v11-phase > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.v11-phase-number,
.v11-phase-action {
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}

.v11-phase-number {
  color: var(--blue);
}

.v11-phase-title {
  font-size: clamp(1.3rem, 2.15vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.v11-phase[open] .v11-phase-title,
.v11-phase > summary:hover .v11-phase-title {
  color: var(--blue);
}

.v11-phase-action {
  justify-self: end;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .24em;
}

.v11-phase-action > span:last-child,
.v11-phase[open] .v11-phase-action > span:first-child {
  display: none;
}

.v11-phase[open] .v11-phase-action > span:last-child {
  display: inline;
}

.v11-phase > p {
  max-width: 43ch;
  padding: 0 1.2rem 1.2rem 5.1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.55;
}

.v11-method-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1.3rem;
  padding: .6rem 0;
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: .25em;
}

.v11-method-gallery {
  position: relative;
  grid-area: 1 / 1;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.2;
  background: #e8e8ff;
}

.v11-method-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--collage-paper, #e8e8ff);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease-out, visibility .28s;
}

.v11-method-art:nth-child(2) { --collage-paper: #d6eaff; }
.v11-method-art:nth-child(3) { --collage-paper: #f8e1ed; }
.v11-method-art:nth-child(4) { --collage-paper: #ecf5c5; }

.v11-method-art::before {
  position: absolute;
  inset: 6%;
  border: 1px solid #13183d2a;
  content: "";
}

.v11-method-art > span {
  position: absolute;
  top: 9%;
  left: 9%;
  color: #18204185;
  font-size: clamp(5.5rem, 16vw, 14rem);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .84;
}

.v11-method-art > img {
  position: relative;
  width: 90%;
  height: 91%;
  object-fit: contain;
  transform: translate(2%, 3%) scale(.94);
  transition: transform .36s cubic-bezier(.22, .68, .3, 1);
}

.v11-method-art:first-child {
  opacity: 1;
  visibility: visible;
}

.v11-method-grid:has(.v11-phase:nth-child(2)[open]) .v11-method-art:nth-child(2),
.v11-method-grid:has(.v11-phase:nth-child(3)[open]) .v11-method-art:nth-child(3),
.v11-method-grid:has(.v11-phase:nth-child(4)[open]) .v11-method-art:nth-child(4) {
  opacity: 1;
  visibility: visible;
}

.v11-method-grid:has(.v11-phase:nth-child(n+2)[open]) .v11-method-art:first-child {
  opacity: 0;
  visibility: hidden;
}

.v11-method-art:first-child > img {
  transform: translate(2%, 3%) scale(1);
}

.v11-method-grid:has(.v11-phase:nth-child(2)[open]) .v11-method-art:nth-child(2) > img,
.v11-method-grid:has(.v11-phase:nth-child(3)[open]) .v11-method-art:nth-child(3) > img,
.v11-method-grid:has(.v11-phase:nth-child(4)[open]) .v11-method-art:nth-child(4) > img {
  transform: translate(2%, 3%) scale(1);
}

@media (max-width: 820px) {
  .v11-method-grid { grid-template-columns: minmax(0, 1fr); }
  .v11-method-phases { grid-area: 2 / 1; }
  .v11-method-gallery { width: min(100%, 32rem); justify-self: center; }
}

@media (max-width: 520px) {
  .v11-phase > summary { grid-template-columns: 3.35rem minmax(0, 1fr) 2.65rem; gap: .5rem; }
  .v11-phase-number, .v11-phase-action { font-size: .75rem; }
  .v11-phase > p { padding-left: 3.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  .v11-method-art, .v11-method-art > img { transition: none; }
}

body.motion-paused .v11-method-art,
body.motion-paused .v11-method-art > img {
  transition: none;
}
