.collection-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.collection-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 12px 32px;
  padding: 32px 0 24px;
}

.collection-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 4.7vw, 62px);
}

.collection-intro .launch-lede {
  max-width: 58ch;
  margin: 0;
  color: var(--launch-muted);
  font-size: 16px;
}

.collection-browse {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #a5b4a5;
  border-radius: 6px;
  background: #e8ece0;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.collection-starts {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  gap: 14px;
}

.collection-start {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  min-width: 0;
  border: 1px solid #c0cbbd;
  border-radius: 12px;
  overflow: hidden;
  background: #eaf0e5;
  color: var(--launch-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 10px #1a35380d;
}

.collection-start[data-collection-start="sound-studio"] {
  border-color: #d6c3ba;
  background: #f0e6df;
}

.collection-start:first-child {
  grid-row: span 2;
  display: flex;
  align-items: end;
  min-height: 400px;
  isolation: isolate;
  border-color: #293e47;
  background: #0b1720;
  color: #fff4df !important;
}

.collection-start-media {
  position: relative;
  min-width: 0;
  min-height: 138px;
  background: #0e323a;
  overflow: hidden;
}

.collection-start-media :is(img, svg) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-start-media svg {
  background: linear-gradient(135deg, #123b42, #09252d);
}

.collection-start:first-child .collection-start-media {
  position: absolute;
  inset: 0;
  background: inherit;
}

/* Frame the planet and star within the existing simulator preview. */
.collection-start:first-child img {
  inset: 0 -8% auto auto;
  width: 164%;
  height: auto;
  transform: translateY(-28%);
}

.collection-start:first-child .collection-start-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, #0b17204d 56%, #0b1720 99%);
}

.collection-start-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
  padding: 16px 18px 9px;
}

.collection-start:first-child .collection-start-copy {
  max-width: 29rem;
  margin: clamp(12px, 2vw, 24px);
  padding: clamp(14px, 2vw, 22px);
  background: #0b1822eb;
  border: 1px solid #a6bdc96b;
  border-radius: 8px;
}

.collection-start h3 {
  margin: 0;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -.038em;
  line-height: 1.07;
}

.collection-start:first-child h3 {
  font-size: clamp(27px, 3.1vw, 44px);
}

.collection-start-copy > p { margin: 0; }
.collection-start-kind { font-size: 12px; font-weight: 650; color: var(--launch-muted); }
.collection-start-step { font-size: 13px; line-height: 1.45; }
.collection-start-scope { font-size: 11px; line-height: 1.5; color: var(--launch-muted); }
.collection-start:first-child .collection-start-kind { color: #f6cf97; }
.collection-start:first-child .collection-start-step { font-size: 14px; color: #f1eadc; }
.collection-start:first-child .collection-start-scope { color: #c5d6db; }

.collection-start-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  border-top: 1px solid #a8b6a6;
  color: #19423f;
  font-size: 13px;
  font-weight: 650;
}

.collection-start:first-child .collection-start-action {
  align-self: flex-start;
  gap: 14px;
  margin-top: 4px;
  padding-inline: 12px;
  border: 0;
  border-radius: 4px;
  background: #f3d5a5;
  color: #182e34;
}

.collection-start:hover .collection-start-action {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.collection-index {
  margin: 38px 0 0;
  padding: 25px 0 54px;
  border-top: 1px solid var(--launch-line);
}

.collection-index > h2 {
  width: fit-content;
  margin: 0 0 13px;
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 43px);
  line-height: 1.14;
  letter-spacing: -.04em;
}

.collection-directory {
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid #bbc8b9;
  border-radius: 7px;
  background: #e9ede2;
}

.collection-directory > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}

.collection-directory > summary::-webkit-details-marker { display: none; }
.collection-directory > summary b { display: inline-block; font-size: 20px; font-weight: 500; }
.collection-directory[open] > summary b { transform: rotate(45deg); }

.collection-paths {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.collection-path {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 14px;
  padding: 12px 14px;
  border: 1px solid var(--launch-line);
  border-radius: 6px;
  background: #fcfbf3;
}

.collection-path h3 {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--launch-line);
  font-size: 17px;
  font-weight: 600;
}

.collection-path a,
.collection-next {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: #185b68;
  text-decoration: none;
}

.collection-path a > span,
.collection-next > span { color: var(--launch-muted); font-size: 12px; }
.collection-path a > strong,
.collection-next > strong { font-size: 14px; font-weight: 650; line-height: 1.4; }
.collection-path a > p { margin: 2px 0 0; color: var(--launch-muted); font-size: 13px; line-height: 1.5; }

.collection-gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.collection-exhibit {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #c5cec0;
  border-radius: 10px;
  background: #fbfaf2;
  box-shadow: 0 2px 8px #26393608;
}

.collection-exhibit-media {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 9px 9px 0 0;
  border-bottom: 1px solid #cbd3c6;
  background: #e7ece4;
}

.collection-exhibit-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-exhibit:is([data-collection-module="factory"], [data-collection-module="plant-conservatory"]) img {
  object-fit: cover;
}

.collection-exhibit[data-collection-module="shadow-observatory"] .collection-exhibit-media {
  background: #0b1720;
}

.collection-exhibit[data-collection-module="shadow-observatory"] img {
  object-fit: cover;
}

.collection-exhibit-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 12px 16px 3px;
}

.collection-exhibit-name {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  color: #31554e;
  font-size: 13px;
  font-weight: 650;
}

.collection-exhibit-category { color: var(--launch-muted); font-size: 11px; font-weight: 600; }

.collection-exhibit h3 {
  margin: 7px 0;
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -.036em;
  font-weight: 500;
}

.collection-exhibit-first {
  margin: 0 0 12px;
  color: #384a4d;
  font-size: 14px;
  line-height: 1.45;
}

.collection-exhibit-actions {
  display: grid;
  gap: 7px;
  margin-top: auto;
}

.collection-exhibit-actions .launch-primary {
  justify-content: space-between;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.3;
}

.collection-next {
  box-sizing: border-box;
  min-height: 50px;
  padding: 4px 0 7px 10px;
  border-inline-start: 2px solid #b3bda4;
}

.collection-exhibit-details {
  margin-top: 9px;
  border-top: 1px solid var(--launch-line);
  color: var(--launch-muted);
  font-size: 13px;
}

.collection-exhibit-details > summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: 11px 0 8px;
  cursor: pointer;
}

.collection-exhibit-details > p { margin: 0 0 10px; }
.collection-exhibit-scope { font-size: 12px; font-weight: 600; }

.launch-collection-page :is(details > summary, #all-modules, .collection-exhibit h3):focus-visible {
  outline: 3px solid #9b3516;
  outline-offset: 4px;
}

@media (min-width: 1021px) {
  .collection-gallery { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .collection-exhibit { grid-column: span 2; }

  /* Use two paired rows when the last card would otherwise sit alone. */
  .collection-gallery:has(> :last-child:nth-child(3n + 1):nth-child(n + 4)) > :nth-last-child(-n + 4) {
    grid-column: span 3;
  }
}

@media (max-width: 850px) {
  .collection-start { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .collection-start-copy { padding-inline: 13px; }
  .collection-paths { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .launch-collection-page .launch-main { padding-inline: clamp(14px, 4.7vw, 28px); }
  .collection-intro { padding: 19px 0 14px; gap: 10px; }
  .collection-intro h1 { margin-bottom: 6px; }
  .collection-intro .launch-lede { font-size: 14px; line-height: 1.45; }
  .collection-starts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .collection-start { display: flex; flex-direction: column; }
  .collection-start:first-child {
    grid-area: auto / 1 / auto / -1;
    justify-content: flex-end;
    align-items: stretch;
    box-sizing: border-box;
    min-height: 300px;
    padding-top: 87px;
  }
  .collection-start:not(:first-child) .collection-start-media { aspect-ratio: 16 / 8; min-height: 0; }
  .collection-start-copy { flex: 1; gap: 5px; padding: 10px 11px 0; }
  .collection-start:first-child .collection-start-copy { flex: 0 1 auto; padding-block: 12px; }
  .collection-start:not(:first-child) h3 { font-size: clamp(18px, 4.8vw, 25px); }
  .collection-start-kind { font-size: 11px; }
  .collection-start-step { font-size: 12px; }
  .collection-start-scope { font-size: 11px; }
  .collection-start-action { font-size: 12px; }
  .collection-index { margin-top: 25px; padding-top: 18px; }
  .collection-gallery { gap: 14px; }
}

@media (max-width: 550px) {
  .collection-gallery { grid-template-columns: 1fr; }
  .collection-path { grid-template-columns: 1fr; }
  .collection-path a + a { padding-top: 7px; border-top: 1px solid var(--launch-line); }
}
