.public-site:has(.home-gallery) {
  --bg: #050506;
  --text: var(--ui-text);
  --muted: var(--ui-muted);
  --border: var(--ui-border);
  --home-accent: var(--ui-focus);
  background: var(--bg);
  color: var(--text);
  scrollbar-color: #766b8c var(--bg);
}
.home-gallery h1,
.home-gallery h2 {
  font-family: 'Manrope Display', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.home-gallery h2 {
  font-size: clamp(2rem, 4.3vw, 4.75rem);
  line-height: 1.08;
}
.home-gallery p {
  margin: 0 0 24px;
  line-height: 1.75;
  font-size: 17px;
}
.home-gallery .home-small,
.home-gallery .home-age-note {
  font-size: 14px;
}
.home-gallery .home-small a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-opening {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 5vw;
  align-items: center;
  padding-block: 54px 44px;
}
.home-opening h1 {
  font-size: clamp(2.6rem, 5.6vw, 6rem);
  line-height: 1.07;
  margin: 0;
  text-wrap: initial;
}
.home-opening h1 span,
.home-create-copy h2 span {
  color: var(--home-accent);
}
.home-invitation p {
  max-width: 40ch;
  margin-bottom: 20px;
}
.home-action {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding-block: 12px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--ui-border);
  transition:
    color var(--ui-motion-fast) var(--ui-ease),
    background var(--ui-motion-fast) var(--ui-ease);
}
.home-action svg {
  flex-shrink: 0;
}
.home-action:hover {
  color: var(--home-accent);
}
.home-action-primary {
  color: var(--ui-text);
  background: var(--ui-accent);
  border: 0;
  border-radius: var(--ui-radius);
  padding: 15px 22px;
}
.home-action-primary:hover {
  color: var(--ui-text);
  background: var(--primary-hover);
}
.home-how {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 14px;
}
.home-invitation .home-how {
  margin-left: 22px;
}
.world-stage {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  height: clamp(380px, 37vw, 620px);
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  transition: grid-template-columns var(--ui-motion-scene) var(--ui-ease);
}
.world-stage:has([value='elf']:checked) {
  grid-template-columns: 1fr 2fr 1fr;
}
.world-stage:has([value='mars']:checked) {
  grid-template-columns: 1fr 1fr 2fr;
}
.world-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--ui-surface);
  border-radius: var(--ui-radius);
  isolation: isolate;
}
.home-sr-only,
.world-panel input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.world-panel:has(input:focus-visible) {
  outline: 3px solid var(--home-accent);
  outline-offset: 4px;
}
.world-panel img,
.world-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  display: block;
  filter: saturate(0.6) brightness(0.78);
  transform: scale(1.035);
  transition:
    filter var(--ui-motion-scene) var(--ui-ease),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.world-panel:has(input:checked) img,
.world-panel:has(input:checked) video {
  filter: none;
  transform: scale(1);
}
.world-panel::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(0 0 0 / 85%));
  pointer-events: none;
}
.world-caption {
  position: absolute;
  left: 26px;
  right: 58px;
  bottom: 26px;
  z-index: 1;
  color: #fff;
}
.world-title {
  display: block;
  font-family: 'Manrope Display', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.world-description {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 15px;
  transition:
    max-height var(--ui-motion-scene) var(--ui-ease),
    opacity var(--ui-motion-standard) var(--ui-ease),
    margin var(--ui-motion-scene) var(--ui-ease);
}
.world-panel:has(input:checked) .world-description {
  max-height: 70px;
  opacity: 1;
  margin-top: 10px;
}
.world-expand {
  position: absolute;
  right: 22px;
  bottom: 26px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(0 0 0 / 65%);
  color: #fff;
  transform: rotate(-45deg);
  transition:
    transform var(--ui-motion-scene) var(--ui-ease),
    background var(--ui-motion-scene) var(--ui-ease);
}
.world-panel:has(input:checked) .world-expand {
  background: var(--ui-accent);
  color: var(--ui-text);
  transform: rotate(0);
}
.home-stage-note {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 16px;
  font-size: 13px;
  color: var(--muted);
}
.home-stage-note span:first-child {
  color: var(--text);
}
.home-gallery .home-age-note {
  margin: 0;
  font-size: 13px;
}
.home-intro,
.home-start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  padding-block: 100px;
}
.home-intro {
  align-items: center;
}
.home-intro p {
  max-width: 58ch;
}
.home-create {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 8vw;
  padding-block: 28px 120px;
}
.home-create-art {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}
.home-create-art figure,
.home-media figure {
  margin: 0;
  min-width: 0;
}
.home-create-art figure:last-child {
  margin-top: 32%;
}
.home-create-art img,
.home-create-art video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 0.69;
  object-fit: cover;
  border-radius: var(--ui-radius);
}
.home-create-copy h2 {
  margin-bottom: 30px;
}
.home-create-copy .home-small {
  margin-top: 26px;
}
.home-memory {
  color: var(--ui-text);
  background: var(--tint);
  border-radius: var(--ui-radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  padding: clamp(28px, 5vw, 80px);
}
.home-memory h2 span {
  color: var(--ui-focus);
}
.home-memory p,
.home-memory dd {
  color: #d0c9e2;
}
.home-memory .home-action:hover {
  color: var(--ui-focus);
}
.home-gallery dl {
  margin: 28px 0;
}
.home-gallery dl > div {
  border-top: 1px solid var(--border);
  padding-block: 22px;
}
.home-memory dl > div {
  border-color: #5a4c7b;
}
.home-gallery dt {
  font-size: 20px;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.home-gallery dd {
  font-size: 16px;
  line-height: 1.7;
  max-width: 62ch;
}
.home-memory .home-small {
  margin-bottom: 0;
}
.home-media {
  padding-block: 110px 70px;
}
.home-media-heading,
.home-media-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
}
.home-media-heading {
  margin-bottom: 40px;
}
.home-media-body img,
.home-media-body video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: var(--ui-radius);
}
.home-start {
  border-block: 1px solid var(--border);
  padding-block: 48px;
}
.home-start h2 {
  font-size: clamp(28px, 3vw, 44px);
}
.home-start-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: center;
}
.home-gallery .public-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 8vw;
  max-width: none;
  margin: 0;
  padding-block: 100px;
}
.home-gallery .public-faq h2 {
  grid-column: 1;
  grid-row: 1 / 9;
  max-width: 12ch;
  font-size: clamp(32px, 4vw, 56px);
}
.home-gallery .public-faq details {
  grid-column: 2;
  padding-block: 16px;
}
.home-gallery .public-faq summary {
  min-height: 44px;
  align-content: center;
}
.home-gallery .public-faq p {
  font-size: 16px;
}
.home-closing {
  border-top: 1px solid var(--border);
  padding-block: 70px 44px;
}
.home-closing h2 {
  font-size: clamp(36px, 6vw, 88px);
  margin-bottom: 32px;
}
.home-closing h2 span {
  color: var(--home-accent);
}
.home-closing > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 32px;
}
.home-closing p {
  margin-top: 56px;
  font-size: 14px;
}
@media (min-width: 1800px) {
  .home-opening {
    grid-template-columns: 1.4fr 1fr;
  }
  .home-invitation p {
    max-width: 56ch;
  }
}
@media (max-width: 1000px) {
  .home-opening {
    gap: 32px;
    grid-template-columns: 1.3fr 1fr;
  }
  .home-invitation .home-how {
    margin-left: 0;
    margin-top: 8px;
    display: flex;
  }
  .world-caption {
    left: 18px;
    right: 42px;
    bottom: 20px;
  }
  .world-expand {
    right: 10px;
    bottom: 18px;
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 760px) {
  .home-opening {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 34px 28px;
  }
  .home-opening h1 {
    font-size: clamp(32px, 7.6vw, 56px);
  }
  .home-invitation p {
    font-size: 16px;
    max-width: 55ch;
    margin-bottom: 16px;
  }
  .home-invitation .home-how {
    display: inline-flex;
    margin: 0 0 0 16px;
  }
  .world-stage {
    height: 430px;
    gap: 8px;
    grid-template-columns: 3.6fr 1fr 1fr;
  }
  .world-stage:has([value='elf']:checked) {
    grid-template-columns: 1fr 3.6fr 1fr;
  }
  .world-stage:has([value='mars']:checked) {
    grid-template-columns: 1fr 1fr 3.6fr;
  }
  .world-caption {
    left: 14px;
    right: 14px;
    bottom: 60px;
  }
  .world-title {
    font-size: 22px;
  }
  .world-panel:not(:has(input:checked)) .world-caption {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    left: 50%;
    translate: -50%;
    right: auto;
    bottom: 24px;
  }
  .world-panel:not(:has(input:checked)) .world-title {
    font-size: 16px;
    white-space: nowrap;
  }
  .world-panel:not(:has(input:checked)) .world-expand,
  .world-panel:not(:has(input:checked)) .world-description {
    display: none;
  }
  .world-expand {
    left: 14px;
    right: auto;
    bottom: 16px;
  }
  .home-stage-note {
    font-size: 13px;
  }
  .home-intro,
  .home-create,
  .home-memory,
  .home-media-heading,
  .home-media-body,
  .home-start {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-intro {
    padding-block: 64px;
  }
  .home-gallery h2 {
    font-size: clamp(32px, 7vw, 48px);
  }
  .home-gallery p {
    font-size: 16px;
  }
  .home-create {
    padding-block: 0 64px;
    gap: 40px;
  }
  .home-create-art {
    gap: 12px;
  }
  .home-create-copy h2 {
    margin-bottom: 24px;
  }
  .home-memory {
    padding: 28px 20px;
    gap: 32px;
  }
  .home-media {
    padding-block: 64px;
  }
  .home-media-heading {
    margin-bottom: 16px;
  }
  .home-start {
    padding-block: 36px;
  }
  .home-gallery .public-faq {
    display: block;
    padding-block: 64px;
  }
  .home-gallery .public-faq h2 {
    max-width: none;
    margin-bottom: 28px;
  }
  .home-closing {
    padding-top: 48px;
  }
  .home-gallery .home-small,
  .home-gallery .home-age-note {
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .home-invitation .home-how {
    margin-left: 0;
    display: flex;
  }
  .world-stage {
    height: 390px;
  }
}
.home-gallery video.home-loop {
  display: none;
}
.home-gallery video.home-loop.is-playing {
  display: block;
}
.home-gallery video.home-loop.is-playing + img.home-still {
  display: none;
}
.home-motion-toggle {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  color: var(--ui-text);
  font: inherit;
  cursor: pointer;
}
.home-motion-toggle:hover {
  border-color: var(--ui-focus);
}
.home-motion-toggle:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .home-gallery *,
  .home-gallery *::after {
    transition: none;
    scroll-behavior: auto;
  }
  .home-gallery video.home-loop.is-playing {
    display: none;
  }
  .home-gallery video.home-loop.is-playing + img.home-still {
    display: block;
  }
}
