/* Original handwriting is displayed only on the second page. */
body[data-world="universe"] .cosmos { filter: brightness(1.45) saturate(1.12); }
[data-universe-writing] { position: relative; }
.universe-handwriting { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 8px #f5e2c438); }
.universe-writing-ready > .universe-writing-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand .brand-name.universe-writing-ready { width: 170px; margin: 0; }
body[data-world="universe"] .brand { width: 170px; gap: 3px; }
body[data-world="universe"] .brand > img { width: 80px; }
#universe .universe-heading { padding: 124px 24px 0; text-align: center; }
#universe .universe-heading .eyebrow { font-size: .66rem; letter-spacing: .18em; }
#universe #universe-title { width: min(280px, 34svh); margin: 16px auto; line-height: 1; }
#universe .universe-heading > p:last-child { font-size: .86rem; }
#universe .constellation { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; height: auto; min-height: 0; max-width: 1240px; margin: 24px auto 0; padding: 0 22px; }
#universe .galaxy { position: relative; inset: auto; min-width: 0; width: 100%; padding: 12px 6px; }
#universe .galaxy-star { font-size: 42px; }
#universe .galaxy-number { font-size: .62rem; letter-spacing: .12em; }
#universe .galaxy strong { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 230px; height: 152px; margin: 2px 0 4px; }
#universe .galaxy-caption { font-size: .76rem; line-height: 1.5; }
#universe .orbit { opacity: .45; }
#universe .orbit-one { inset: 12% 6% auto; width: 88%; height: 62%; transform: rotate(-5deg); }
#universe .orbit-two { inset: 25% 16% auto; width: 68%; height: 58%; transform: rotate(8deg); }
#universe .universe-bottom { font-size: 1.1rem; padding: 24px 22px 32px; }
.universe-ink { stroke-dashoffset: var(--ink-length); }
.universe-full-ink { opacity: 0; }
.universe-writing-active .universe-ink { animation: universe-ink-write var(--ink-duration) var(--ink-delay) linear both; }
.universe-writing-active .universe-full-ink { animation: universe-ink-complete 1ms var(--artwork-end) linear forwards; }
.universe-writing-active #universe .galaxy-star { animation: universe-star-arrive .8s var(--galaxy-written) ease both; }
.universe-writing-paused .universe-ink, .universe-writing-paused .universe-full-ink,
.universe-writing-paused #universe .galaxy-star { animation-play-state: paused; }
.universe-writing-still .universe-ink { animation: none; stroke-dashoffset: 0; }
.universe-writing-still .universe-full-ink { animation: none; opacity: 1; }
.universe-writing-still #universe .galaxy-star { animation: none; opacity: 1; }
#universe .galaxy:focus-visible .galaxy-star, #universe .galaxy:hover .galaxy-star { opacity: 1; }
@keyframes universe-ink-write { from { stroke-dashoffset: var(--ink-length); } to { stroke-dashoffset: 0; } }
@keyframes universe-ink-complete { to { opacity: 1; } }
@keyframes universe-star-arrive { from { opacity: .4; } to { opacity: 1; } }
@media (max-width: 1099px) and (min-width: 621px) {
  #universe .constellation { max-width: 800px; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 14px; }
  #universe .galaxy { grid-column: span 2; }
  #universe .galaxy-scent { grid-column: 2 / span 2; }
  #universe .galaxy-illustration { grid-column: 4 / span 2; }
  #universe .galaxy strong { height: 146px; }
}
@media (max-width: 620px) {
  body[data-world="universe"] .brand, .brand .brand-name.universe-writing-ready { width: 110px; }
  body[data-world="universe"] .brand > img { width: 72px; }
  #universe .universe-heading { padding: 140px 18px 0; }
  #universe #universe-title { width: min(270px, 70vw); }
  #universe .universe-heading .eyebrow { font-size: .56rem; letter-spacing: .12em; }
  #universe .constellation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-top: 24px; padding: 0 18px; }
  #universe .galaxy-photo { grid-column: 1 / -1; width: 240px; justify-self: center; }
  #universe .galaxy strong { height: 122px; }
  #universe .galaxy-photo strong { height: 152px; }
  #universe .galaxy-star { font-size: 36px; }
  #universe .galaxy-number { font-size: .56rem; letter-spacing: .06em; }
  #universe .galaxy-caption { font-size: .71rem; }
}
