.portal-section {
  --portal-travel: 720px;
  height: calc(100vh + var(--portal-travel));
  height: calc(100svh + var(--portal-travel));
  min-height: 0;
}
.portal-stage { min-height: 0; height: 100vh; height: 100svh; isolation: isolate; }
.portal-world, .mirror-surface, .mirror-shards, .mirror-shard,
.mirror-cracks, .portal-vignette, .portal-flash { position: absolute; inset: 0; }
.portal-world { z-index: 0; opacity: 0; }
.portal-world img { width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.portal-world video {
  position: absolute; top: 0; left: 35%; width: 44%; height: 100%;
  object-fit: cover; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.mirror-surface { z-index: 1; background: var(--ink); transform-origin: 44% 54%; will-change: transform; }
.mirror-source, .mirror-shard-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 44% 54%;
}
.mirror-shards { z-index: 2; opacity: 0; visibility: hidden; pointer-events: none; }
.mirror-shard { will-change: transform, opacity; }
.mirror-shard-image { transform: scale(5.2); transform-origin: 44% 54%; }
.mirror-cracks { z-index: 3; width: 100%; height: 100%; opacity: 0; color: #e8fff3; pointer-events: none; }
.portal-flash { z-index: 4; background: #e8fff3; opacity: 0; pointer-events: none; }
.portal-vignette {
  z-index: 5; pointer-events: none;
  background: linear-gradient(0deg, #080909dd, transparent 45%), linear-gradient(90deg, #0809099c, transparent 65%);
}
.portal-copy { z-index: 6; top: 8%; left: 6%; right: 6%; width: auto; }
.portal-copy h2 { font-size: 86px; margin: 28px 0; }
.portal-copy h2 span { font-size: 66px; }
.portal-description { color: var(--paper); text-shadow: 0 2px 6px #080909; }
.portal-open { min-height: 48px; margin-top: 20px; gap: 18px; }
.portal-open svg { width: 38px; height: 38px; padding: 8px; border: 1px solid var(--pink); border-radius: 50%; color: var(--pink); }
.portal-reveal { z-index: 6; right: auto; left: 6%; bottom: 14%; text-align: left; }
.portal-reveal .text-link { min-height: 48px; gap: 16px; }
.portal-progress { position: absolute; z-index: 6; right: 4%; bottom: 7%; width: 1px; height: 110px; background: #ffffff40; }
.portal-progress span { display: block; height: 100%; background: var(--pink); transform: scaleY(0); transform-origin: top; }
.portal-progress svg { position: absolute; bottom: -30px; left: -10px; color: var(--pink); }
.motion-paused .portal-section { height: auto; }
.motion-paused .portal-stage { height: 780px; }
.motion-paused .portal-copy { top: 12%; }
.motion-paused .portal-world, .motion-paused .mirror-shards,
.motion-paused .mirror-cracks, .motion-paused .portal-progress { display: none; }
.motion-paused .portal-open { display: inline-flex; }
.motion-paused .mirror-surface { transform: none !important; opacity: 1 !important; }
@media (min-width: 701px) {
  .mirror-source, .mirror-shard-image { object-fit: contain; }
}
@media (max-width: 700px) {
  .portal-section { --portal-travel: 560px; }
  .portal-copy { top: 6%; }
  .portal-copy h2 { font-size: 52px; margin: 22px 0; }
  .portal-copy h2 span { font-size: 50px; }
  .portal-description { font-size: 13px; }
  .portal-open { font-size: 12px; margin-top: 14px; }
  .portal-world video { left: 0; width: 100%; mask-image: none; }
  .portal-vignette { background: linear-gradient(0deg, #080909ed, transparent 58%), linear-gradient(180deg, #080909a8, transparent 34%); }
  .portal-reveal { bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
  .reveal-title { font-size: 64px; }
  .reveal-title span { font-size: 56px; }
  .portal-progress { right: 6%; bottom: 110px; height: 70px; }
  .motion-paused .portal-stage { height: 740px; }
}
@media (max-width: 370px) {
  .portal-copy h2 { font-size: 44px; }
  .portal-copy h2 span { font-size: 43px; }
}
