/* The eye portal (home only): dive through the FRISTNOR eye into the hero. Pairs with js/portal.v4.js. */

.portal{
  position: fixed; inset: 0; z-index: 9500;
  overflow: hidden;
  transition: opacity .2s ease-out;
}
.portal.is-leaving{ opacity: 0; pointer-events: none; }
.portal-art{ position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.portal-art{ cursor: pointer; }
.portal-cover{ fill: var(--bg); }

/* the scroll cue: a short line with a light running down it, and what to do, in words */
.portal-hint{
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none;
}
.portal-hint b{
  font-weight: 500; font-size: 11.5px; letter-spacing: 0.26em; text-transform: uppercase; white-space: nowrap;
  color: rgba(236,241,248,.78); padding-left: 0.26em;
  animation: portal-hint 2.6s ease-in-out infinite;
}
@keyframes portal-hint{ 0%, 100%{ opacity: .55; } 50%{ opacity: 1; } }
.portal-cue{
  position: relative; display: block; width: 1px; height: 46px; overflow: hidden;
  background: rgba(255,255,255,.14);
}
.portal-cue i{
  position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: portal-cue 1.8s cubic-bezier(.65,0,.35,1) infinite;
}
@media (prefers-reduced-motion: reduce){ .portal-hint b, .portal-cue i{ animation: none; } .portal-hint b{ opacity: 1; } }
@keyframes portal-cue{ to{ transform: translateY(350%); } }
.portal-skip:focus-visible{ outline: 2px solid rgba(186,208,255,.8); outline-offset: 3px; }
.portal-skip{
  position: absolute; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 12.5px; color: var(--t3);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
@media (hover: hover){ .portal-skip:hover{ color: #fff; } }

/* while the portal is up, the page waits underneath: no scrolling, no chrome */
html.is-portal, html.is-portal body{ overflow: hidden !important; }
html.is-portal .header, html.is-portal .scroll-progress, html.is-portal .video-control{ opacity: 0; pointer-events: none; }

html.is-portal .hero .hero-copy, html.is-portal .hero .scroll-cue{ will-change: opacity; }
