/* Topi's imagined forms use the page tokens. Glows and the vector's
   character colors are decorative artwork. */
.dream-section { padding-block: 5rem 4.5rem; background: var(--surface); overflow-x: clip; }
.dream-section .section-heading { margin-bottom: 1.7rem; }
.dream-section .eyebrow { color: var(--purple-brand); }
.dream-section h2 { font-family: var(--font-display); font-weight: var(--font-heading-weight); font-size: 3.8rem; line-height: 1.12; letter-spacing: -.08rem; margin: 1rem 0 1.3rem; }
.dream-section h2 em { font-weight: inherit; color: var(--moonlight); }
.dream-choices { text-align: center; }
.dream-choices > p { color: var(--ink-3); font-size: .7rem; margin-bottom: .85rem; }
.dream-tabs { display: flex; justify-content: center; gap: .65rem; }
.dream-tabs button { border: 1px solid var(--line); border-radius: 3rem; min-height: 2.9rem; padding: .75rem 1.35rem; background: var(--surface-raised); font-size: .77rem; line-height: 1.5; color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
.dream-tabs button:hover { border-color: var(--purple-brand); color: var(--ink); }
.dream-tabs button.is-active { background: var(--button-fill); color: var(--ink-on-light); border-color: var(--button-fill); }
.dream-theatre { --dream-art-height: 26rem; --dream-bridge-width: 8rem; --dream-actor-size: 9rem; display: grid; grid-template-columns: minmax(0,1fr) var(--dream-bridge-width) minmax(0,1fr); align-items: start; width: min(100%,66rem); margin: 1.5rem auto 0; }
.dream-origin { display: grid; grid-template-rows: var(--dream-art-height) auto; justify-items: center; width: 100%; min-width: 0; margin: 0; text-align: center; }
.dream-origin > img { width: min(100%,19rem); height: var(--dream-art-height); object-fit: contain; }
.dream-origin figcaption { color: var(--purple-brand); font-family: var(--font-display); font-size: 1.15rem; font-style: italic; margin-top: .5rem; }
.dream-trail { position: relative; display: flex; align-items: center; justify-content: center; gap: .55rem; height: var(--dream-art-height); margin: 0; z-index: 2; pointer-events: none; }
.dream-trail > span { flex: 1; border-top: 1px dashed #c9b8ff66; }
.dream-trail > img { width: 1.5rem; height: 1.5rem; opacity: .85; }
.dream-transition { position: absolute; top: 50%; left: 50%; width: var(--dream-actor-size); height: var(--dream-actor-size); transform: translate(-50%,-50%); }
.dream-traveler { position: absolute; inset: 0; opacity: 0; }
.dream-traveler::after { content: ""; position: absolute; bottom: 13%; left: 35%; width: 30%; height: 4%; border-radius: 50%; background: var(--purple-brand); opacity: .12; filter: blur(2px); z-index: -1; }
.dream-pose { width: 100%; height: 100%; background: url('../Assets/topi-dream-poses.svg') 0 0 / 1600% 100% no-repeat; }
.dream-forms { position: relative; min-width: 0; }
.dream-loading { position: absolute; top: calc(var(--dream-art-height) / 2); left: 50%; width: var(--dream-actor-size); height: var(--dream-actor-size); display: grid; place-items: center; translate: -50% -50%; opacity: 0; pointer-events: none; }
.dream-loading::before { content: ""; position: absolute; inset: -25%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--button-fill) 18%, transparent), transparent 70%); }
.dream-loading-orbit { position: absolute; inset: 12%; border: 1px solid color-mix(in srgb, var(--purple-brand) 24%, transparent); border-radius: 50%; }
.dream-loading-orbit::before, .dream-loading-orbit::after { content: ""; position: absolute; left: 50%; width: .45rem; height: .45rem; border-radius: 50%; translate: -50% -50%; background: var(--purple-brand); }
.dream-loading-orbit::before { top: 0; box-shadow: 0 0 12px var(--purple-brand); }
.dream-loading-orbit::after { top: 100%; width: .3rem; height: .3rem; background: var(--button-fill); }
.dream-loading > img { width: 28%; height: auto; }
.dream-panel { text-align: center; padding: 0 0 1rem; border-radius: 2rem; }
.dream-panel[hidden] { display: none; }
.dream-portrait { display: grid; place-items: center; position: relative; isolation: isolate; height: var(--dream-art-height); }
.dream-theatre[data-dream-motion] .dream-panel .dream-portrait { opacity: 0; }
.dream-outgoing { position: absolute; inset: 0 0 auto; pointer-events: none; }
.dream-portrait::before { content: ""; position: absolute; z-index: -1; inset: 10% 0 4%; border-radius: 50%; background: radial-gradient(ellipse, #b3a1f50a, transparent 71%); }
.dream-portrait img { width: var(--dream-art-height); height: auto; max-width: 100%; max-height: 100%; object-fit: contain; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-composite: intersect; }
.dream-panel h3 { font-family: var(--font-display); font-weight: var(--font-heading-weight); font-size: 1.65rem; margin-top: .4rem; }
.dream-panel > p { font-family: var(--font-display); font-style: italic; font-size: .98rem; line-height: 1.75; color: var(--ink-2); max-width: 23rem; min-height: 3.5rem; margin: .6rem auto 0; }
.dream-afterword { text-align: center; margin-top: 1.7rem; }
.dream-afterword .dream-signature { color: var(--moonlight); font-family: var(--font-display); font-size: 1.45rem; font-style: italic; }
@media (max-width: 70em) {
  .dream-theatre { --dream-art-height: 23rem; --dream-bridge-width: 7rem; --dream-actor-size: 8.5rem; }
}
@media (max-width: 54em) {
  .dream-section { padding-block: 4rem; }
  .dream-section h2 { font-size: 3.3rem; }
  .dream-theatre { --dream-art-height: 18rem; --dream-bridge-width: 6rem; --dream-actor-size: 8rem; }
  .dream-panel h3 { font-size: 1.45rem; }
  .dream-panel > p { font-size: .88rem; }
}
@media (max-width: 37em) {
  .dream-section { padding-block: 3.5rem; }
  .dream-section h2 { font-size: 2.85rem; }
  .dream-section .section-heading { margin-bottom: 1.5rem; }
  .dream-section .section-heading > p:last-child { font-size: .82rem; max-width: 22rem; margin-inline: auto; }
  .dream-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; }
  .dream-tabs button { padding: .6rem .45rem; font-size: .69rem; min-height: 3.15rem; }
  .dream-theatre { --dream-art-height: 13rem; --dream-bridge-width: 3.2rem; --dream-actor-size: 6rem; margin-top: 1rem; }
  .dream-origin > img { width: 80%; }
  .dream-origin figcaption { font-size: .84rem; margin-top: .65rem; }
  .dream-trail { gap: .2rem; }
  .dream-trail > img { width: 1rem; height: 1rem; }
  .dream-panel { padding-inline: 0; }
  .dream-panel h3 { font-size: 1.2rem; margin-top: .2rem; }
  .dream-panel > p { font-size: .78rem; line-height: 1.75; min-height: 4rem; }
  .dream-afterword { margin-top: .7rem; }
  .dream-afterword .dream-signature { font-size: 1.2rem; }
}
@media (max-width: 23em) {
  .dream-section h2 { font-size: 2.55rem; }
  .dream-tabs button { font-size: .63rem; padding-inline: .3rem; }
  .dream-theatre { --dream-art-height: 11rem; --dream-bridge-width: 2.6rem; --dream-actor-size: 5.25rem; }
  .dream-panel h3 { font-size: 1.05rem; }
  .dream-panel > p { font-size: .74rem; }
  .dream-origin figcaption { font-size: .77rem; }
}
@media (prefers-reduced-motion: reduce) { .dream-transition, .dream-loading { display: none; } }
