/* Exhibition registration and the public membership journey */
.booth-page { min-height: 100svh; display: flex; flex-direction: column; }
.booth-page .top { position: relative; }
.booth-page .hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; }
.booth {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 6vw, 4rem) max(1rem, env(safe-area-inset-left)) clamp(2rem, 7vw, 5rem);
  background: radial-gradient(ellipse at 110% 0%, #9d6cd92a, transparent 47%), var(--paper);
}
.booth__inner { position: relative; width: min(100%, 35rem); }
.booth .h2 { font-size: clamp(2.05rem, 5vw, 3.85rem); margin-block: .35rem .5rem; }
.booth .lead { margin-block: 0 1.25rem; }
.booth form { display: grid; gap: .65rem; }
.booth .f { display: grid; gap: .2rem; }
.booth .f label { font-weight: 650; }
.booth .f input {
  min-height: 48px;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  border-radius: 10px;
  padding: .5rem .9rem;
  font: inherit;
  font-size: max(16px, 1rem);
  background: color-mix(in srgb, var(--paper) 90%, var(--ink));
  color: var(--ink);
}
.booth .f input[aria-invalid=true] { box-shadow: 0 0 0 2px currentColor; }
.booth .consent { display: flex; min-height: 44px; align-items: flex-start; gap: .6rem; margin-block: .1rem; }
.booth .consent input { flex: none; margin-block: .4rem 0; accent-color: #7130d1; }
.booth .consent a { text-decoration: underline; text-underline-offset: .18em; }
.booth .err, .booth .formerr { margin: 0; }
.booth .err:empty, .booth .formerr:empty { display: none; }
.booth .pill { justify-self: start; min-height: 48px; }
.booth [hidden] { display: none !important; }
.booth .more { min-height: 44px; display: inline-flex; align-items: center; padding-inline: .35rem; }


/* The original full-bleed scene, with a fresh photographic plate and a clear reading column. */
.launch-home {
  --launch-line: color-mix(in srgb, var(--violet) 40%, var(--hair));
  --launch-room: #f1dfc8;
}
html[data-theme=night] .launch-home { --launch-room: #130d29; }
.launch-home .hero > .scene__media,
html[data-theme=night] .launch-home .hero > .scene__media {
  background: var(--launch-room);
}
.launch-home .hero > .scene__media::after {
  background: linear-gradient(to bottom, transparent 77%, var(--paper));
}
.launch-home .hero .col { width: min(47vw, 690px); }
.launch-home .hero .scene__body { padding-block-end: clamp(5rem, 9vh, 9rem); }
.launch-home .hero .h1 { font-size: clamp(2.7rem, 4.3vw, 4.8rem); }
html[lang=en] .launch-home .hero .h1 { font-size: clamp(2.55rem, 3.95vw, 4.45rem); }
.launch-home .hero .lead { color: var(--ink); }
.launch-home .hero .scene__media img { object-position: left center; }
.launch-equation { font-weight: 700; font-size: clamp(1rem, 1.45vw, 1.3rem); margin-block: 1rem 0; }
.launch-home .hero .acts { margin-block-start: 1.3rem; flex-wrap: wrap; gap: .7rem; }
.launch-home .hero .acts .pill { white-space: normal; max-width: 100%; min-height: 48px; }

.launch-services {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .58fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(2.4rem, 6vw, 6.5rem) var(--gut);
  column-gap: clamp(1.25rem, 5vw, 6rem);
  scroll-margin-block-start: 88px;
}
.launch-services::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 75% 68%, #a651f629, transparent 46%),
    radial-gradient(ellipse at 21% 38%, #e7b97830, transparent 59%);
}
html[data-theme=night] .launch-services::before {
  background:
    radial-gradient(ellipse at 65% 50%, #7c36ca52, transparent 61%),
    radial-gradient(ellipse at 7% 40%, #282159a3, transparent 51%);
}
.launch-services__copy { position: relative; z-index: 3; }
.launch-services__copy .h2 { margin: 0 0 .6rem; }
.service-detail { padding-block-start: 1rem; border-block-start: 1px solid var(--launch-line); min-height: 8.5rem; }
.service-detail h3 { margin: 0; font-size: clamp(1.35rem, 2.05vw, 2rem); }
.service-detail p { margin-block-start: .28rem; color: var(--ink); font-size: clamp(1.03rem, 1.5vw, 1.25rem); max-width: 27rem; }

.launch-orbit { position: relative; z-index: 3; width: min(100%, 48rem); height: clamp(29rem, 44vw, 42rem); margin-inline: auto; isolation: isolate; }
.launch-threads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
.launch-threads path, .launch-threads ellipse { fill: none; stroke: url(#service-silk); vector-effect: non-scaling-stroke; }
.launch-threads ellipse { opacity: .26; stroke-width: 1px; }
.launch-threads path { opacity: .36; stroke-width: 1.2px; transition: opacity .36s ease; }
.launch-threads[data-active="0"] [data-strand="0"], .launch-threads[data-active="1"] [data-strand="1"],
.launch-threads[data-active="2"] [data-strand="2"], .launch-threads[data-active="3"] [data-strand="3"],
.launch-threads[data-active="4"] [data-strand="4"], .launch-threads[data-active="5"] [data-strand="5"],
.launch-threads[data-active="6"] [data-strand="6"], .launch-threads[data-active="7"] [data-strand="7"],
.launch-threads[data-active="8"] [data-strand="8"] { opacity: 1; stroke-width: 3px; }

.launch-orbit ul { list-style: none; margin: 0; padding: 0; }
.launch-orbit li, .launch-orbit__brand {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 49%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.launch-orbit__brand {
  display: grid;
  place-content: center;
  justify-items: center;
  width: clamp(5.8rem, 11vw, 10rem);
  aspect-ratio: 1;
  gap: .22rem;
  color: #fff4e0;
  background: radial-gradient(circle at 30% 23%, #6735aa, #321365 62%, #1c0c43);
  box-shadow: inset 0 0 0 1px #e2adf766, 0 0 0 7px #9568d224, 0 19px 34px #53247952;
  font-weight: 700;
  text-align: center;
  font-size: clamp(.82rem, 1.62vw, 1.24rem);
}
.launch-orbit__brand img { width: clamp(1.65rem, 3.8vw, 3.4rem); height: auto; filter: brightness(0) invert(1); opacity: .9; }
.launch-orbit li button {
  display: grid;
  place-items: center;
  width: clamp(4.85rem, 7.4vw, 6.85rem);
  aspect-ratio: 1;
  min-height: 44px;
  padding: 3px;
  border-radius: 50%;
  border: 1px solid var(--launch-line);
  background: radial-gradient(circle at 29% 18%, color-mix(in srgb, var(--paper) 85%, #fff), var(--paper) 67%);
  box-shadow: 0 9px 21px -12px #50304b90, inset 0 0 0 2px color-mix(in srgb, var(--paper) 90%, var(--violet));
  font-size: clamp(.8rem, 1.25vw, 1.03rem);
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
  position: relative;
}
.launch-orbit li button::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  top: 8px;
  left: calc(50% - 3.5px);
  background: radial-gradient(circle at 35% 24%, #fce6ae, #ad7d3d 70%);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .3s ease, transform .3s ease;
}
.launch-orbit li button[aria-pressed=true] { border-color: var(--violet); box-shadow: 0 12px 28px -9px #7c43d48a, inset 0 0 0 2px var(--paper); }
.launch-orbit li button[aria-pressed=true]::after { opacity: 1; transform: scale(1); }
html[data-theme=night] .launch-orbit li button { background: radial-gradient(circle at 29% 18%, #242048, var(--paper) 78%); }
html[data-theme=night] .launch-orbit li button[aria-pressed=true] { border-color: #be96f9; }

.launch-home .who { scroll-margin-block-start: 75px; }
.launch-home .who__body #journey { position: relative; margin-block-start: 1.1rem; max-width: 34rem; }
.launch-home .who__body #journey summary { cursor: pointer; padding-block: .7rem; font-weight: 700; min-height: 44px; list-style: none; }
.launch-home .who__body #journey summary::-webkit-details-marker { display: none; }
.launch-home .who__body #journey summary::after { content: '+'; margin-inline-start: .5em; color: var(--violet); }
.launch-home .who__body #journey[open] summary::after { content: '−'; }
.launch-home .who__body #journey ol { padding-inline-start: 1.4rem; }
.launch-home .who__body #journey li { margin-block: .7rem; }
.launch-home .who__body #journey h3 { font-size: 1rem; }
.launch-home .who__body #journey p { color: var(--ink-soft); }
.launch-home .who__body #journey p, .launch-home .who__body #journey h3 { margin-block: .12rem; }

.launch-numbers {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(30rem, 54vw, 41rem);
  padding: clamp(3rem, 8vw, 8rem) var(--gut) clamp(7rem, 12vw, 12rem);
  color: #fff3e6;
  background: #111027;
  overflow: hidden;
  scroll-margin-block-start: 65px;
}
.launch-numbers::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,#15112b 2%,#15112b 26%,#15112b48 63%,transparent 89%), url('../img/exhibition-skyline.webp') 45% bottom / cover;
}
.launch-numbers .h2, .launch-numbers dt { color: #fff3e6; }
.launch-numbers .h2 { margin: 0 0 1.1rem; }
.launch-numbers__inner { z-index: 3; width: min(100%, 66rem); margin-inline: auto; }
.launch-numbers dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; gap: .9rem 1.6rem; }
.launch-numbers dl div { display: flex; flex-direction: column-reverse; align-items: start; padding-block: .6rem; border-block-start: 1px solid #d5ac9477; }
.launch-numbers dd { margin: 0; font: 700 clamp(1.8rem, 4.7vw, 4.8rem)/1.15 var(--font-en); color: #f4d8a6; }
.launch-numbers dt { font-size: clamp(.94rem, 1.4vw, 1.3rem); }
.membership-kind { margin-block: 1rem; max-width: 28rem; }
.membership-kind select { min-height: 48px; }
.registration-card {
  position: relative;
  width: min(100%, 23rem);
  margin: 0 auto .8rem;
  isolation: isolate;
  overflow: hidden;
  border-radius: .85rem;
  color: #fff4fe;
  box-shadow: 0 16px 32px -25px #381869;
}
.registration-card > img:first-child { display: block; width: 100%; height: auto; }
.registration-card .registration-card__mark {
  position: absolute;
  inset: 20% 13% auto auto;
  width: clamp(1.25rem, 3.75vw, 2.3rem);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}
.registration-card figcaption {
  position: absolute;
  inset: 35% 13% auto auto;
  font-size: clamp(.75rem, 2.4vw, 1.12rem);
  font-weight: 700;
  text-shadow: 0 1px 3px #210d41;
}
.membership-launch .reg.is-done .registration-card { display: none; }
.membership-launch .reg { background: radial-gradient(ellipse at 78% 8%, #9465e21d, transparent 61%); }
.membership-launch .reg .scene__body { padding: clamp(5.8rem, 9vw, 8.5rem) max(1rem, var(--gut)) 4rem; min-height: auto; }
.membership-launch .reg:not(.is-done) .col { width: min(100%, 46rem); margin-inline: auto; }
.membership-launch .reg .col::before { display: none; }
.membership-launch .reg h1 { font-size: clamp(2rem, 4vw, 3.6rem); }

@media (min-width: 1000px) {
  .booth {
    position: relative;
    isolation: isolate;
    justify-items: start;
    padding-inline-start: var(--gut);
  }
  .booth::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('../img/exhibition-portal.webp') left center / auto 100% no-repeat;
    mask-image: linear-gradient(to right, #000 0 32%, transparent 59%);
  }
  html[dir=ltr] .booth::before { transform: scaleX(-1); }
  html[data-theme=night] .booth::before { opacity: .42; }
  .booth__inner { width: min(47vw, 34rem); }
}

@media (max-width: 860px) {
  .launch-home .hero > .scene__media { height: min(106vw, 53svh); }
  .launch-home .hero .scene__media img { transform: none; object-position: center 50%; }
  .launch-home .hero .scene__media img.night { top: 52px; height: calc(100% - 52px); mask-image: linear-gradient(to bottom, transparent, #000 29px); }
  .launch-home .hero > .scene__media::after { background: none; }
  .launch-home .hero .col { width: 100%; }
  .launch-home .hero .scene__body { padding: 0 max(1rem, var(--gut)) 2.8rem; }
  .launch-home .hero .h1 { font-size: clamp(2rem, 8.2vw, 3.8rem); }
  html[lang=en] .launch-home .hero .h1 { font-size: clamp(1.94rem, 7.8vw, 3.4rem); }
  .launch-home .hero .eyebrow { margin-block-end: .7rem; }
  .launch-home .hero .lead { margin-block-start: .85rem; }
  .launch-home .hero .acts .pill { padding-inline: 1rem; font-size: .96rem; }
  .launch-services {
    padding-block: 2.7rem 2rem;
    grid-template-columns: minmax(0, 1fr);
  }
  .launch-services__copy { display: contents; }
  .launch-services__copy .h2 { grid-row: 1; text-align: center; }
  .launch-orbit { grid-row: 2; height: clamp(23rem, 103vw, 42rem); }
  .service-detail { grid-row: 3; min-height: 6.9rem; margin-block-start: .6rem; }
  .launch-orbit li button {
    width: clamp(3.68rem, 17.7vw, 6rem);
    font-size: clamp(.78rem, 3.2vw, 1rem);
  }
  html[lang=en] .launch-orbit li button { font-size: clamp(.67rem, 2.75vw, .97rem); }
  .launch-orbit li button::after { top: 5px; width: 5px; height: 5px; left: calc(50% - 2.5px); }
  .launch-numbers { min-height: 30rem; padding-block: 2.6rem 7.5rem; }
  .launch-numbers dl { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 430px) {
  .launch-home .hero .acts { display: grid; }
  .registration-card { width: min(100%, 17rem); }
}
@media (prefers-reduced-motion: reduce) {
  .launch-threads path, .launch-orbit li button::after { transition: none; }
}
