/* Spatial portal: native CSS 3D layers, activated by a deliberate click. */
.opening-main {
  width: 100%;
  isolation: isolate;
  overflow: clip;
}
.page-opening {
  --bg: #0b1118;
  --text: #edf3fa;
  --muted: #a9b8c8;
  --line: #71899d;
  --accent: #d2ef9b;
  --on-accent: #172415;
  --focus: var(--accent);
  background:
    radial-gradient(ellipse at center, #0b1118b8, #0b1118e8),
    url("regional-map.svg") center / contain no-repeat,
    var(--bg);
}
.page-opening .site-footer {
  border-top-color: transparent;
}
@media (max-width: 767px) {
  .page-opening {
    background-size: auto, 100% auto, auto;
    background-position: center, center 58%, center;
  }
}
.entry-shell {
  position: relative;
  min-height: calc(100svh - var(--header) - 86px);
  display: grid;
  place-items: center;
  padding: 48px 24px 64px;
  isolation: isolate;
}
.entry-shell:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse at 50% 39%,
    color-mix(in srgb, var(--accent) 9%, transparent),
    transparent 52%
  );
  pointer-events: none;
}
.entry-coordinates {
  position: absolute;
  inset: 28px 40px auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 600;
}
.entry-content {
  width: min(100%, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.entry-scene {
  width: 360px;
  height: 342px;
  max-width: 100%;
  position: relative;
  perspective: 1000px;
  perspective-origin: 50% 45%;
  transform-style: preserve-3d;
  display: grid;
  place-items: center;
}
.entry-plane {
  position: absolute;
  width: 238px;
  height: 238px;
  left: calc(50% - 119px);
  top: calc(50% - 119px);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 36px;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--accent) 4%, transparent),
    transparent 70%
  );
  transform-style: preserve-3d;
  pointer-events: none;
}
.entry-plane > span {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 16px;
  left: 16px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  border-radius: 4px 0 0 0;
  opacity: 0.6;
}
.plane-back {
  transform: translate3d(-22px, 14px, -112px) rotateX(13deg) rotateY(-18deg)
    rotateZ(-13deg);
  opacity: 0.5;
}
.plane-mid {
  transform: translate3d(18px, -9px, -52px) rotateX(7deg) rotateY(-10deg)
    rotateZ(9deg);
  opacity: 0.7;
}
.entry-orbit {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  transform: rotateX(56deg) rotateZ(-22deg) translateZ(-82px);
  opacity: 0.45;
  pointer-events: none;
}
.entry-logo {
  width: 206px;
  height: 206px;
  display: block;
  position: relative;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0) rotateX(4deg) rotateY(-7deg);
  border-radius: 30px;
  outline-offset: 12px;
  touch-action: manipulation;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.entry-logo-face {
  display: block;
  width: 100%;
  height: 100%;
  padding: 25px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 30px;
  box-shadow:
    0 2px 0 #a9b3b0,
    0 7px 0 #71817a,
    0 28px 55px #0004;
  backface-visibility: hidden;
}
.entry-logo-face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.entry-logo-arrow {
  position: absolute;
  right: -14px;
  bottom: -14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  border: 4px solid var(--bg);
  box-shadow: 0 6px 20px #0002;
  transform: translateZ(24px);
}
.entry-logo:hover,
.entry-logo:focus-visible {
  transform: translate3d(0, -5px, 18px) rotateX(0) rotateY(0);
}
.entry-logo:active {
  transform: translate3d(0, 0, 6px) rotateX(0) rotateY(0);
}
.entry-point {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 8%, transparent);
  pointer-events: none;
}
.point-one {
  left: 38px;
  top: 92px;
  opacity: 0.7;
}
.point-two {
  right: 36px;
  bottom: 73px;
  opacity: 0.5;
}
.entry-copy {
  margin-top: 8px;
  position: relative;
  z-index: 2;
}
.entry-copy h1 {
  font-size: 11px;
  letter-spacing: 0.24em;
  line-height: 1.7;
  font-weight: 600;
  color: var(--accent);
}
.entry-copy h1 > span {
  display: block;
  color: var(--text);
  font-size: clamp(23px, 4.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
  margin-top: 8px;
}
.entry-copy p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.entry-public {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition:
    background 0.18s,
    border-color 0.18s;
}
.entry-public:hover {
  background: var(--surface-2);
  border-color: var(--muted);
}
.entry-public > svg:first-child {
  color: var(--accent);
}
.entry-status {
  position: absolute;
  bottom: -32px;
  font-size: 12px;
  min-height: 20px;
  color: var(--accent);
}
.entry-bottom-note {
  position: absolute;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.entry-entering .entry-logo {
  transition: none;
  will-change: transform, opacity;
}
.entry-entering .entry-plane,
.entry-entering .entry-orbit {
  will-change: transform, opacity;
}
.entry-entering #logo-enter {
  cursor: progress;
}
.entry-arriving .access-card {
  will-change: transform, opacity;
}
@media (max-width: 767px) {
  .entry-shell {
    min-height: calc(100svh - var(--header) - 100px);
    padding: 40px 16px 60px;
  }
  .entry-coordinates {
    inset: 18px 20px auto;
    font-size: 7px;
    letter-spacing: 0.1em;
  }
  .entry-coordinates > span:last-child {
    display: none;
  }
  .entry-scene {
    width: 310px;
    height: 300px;
  }
  .entry-logo {
    width: 180px;
    height: 180px;
    border-radius: 27px;
  }
  .entry-logo-face {
    border-radius: 27px;
    padding: 22px;
  }
  .entry-plane {
    width: 210px;
    height: 210px;
    left: calc(50% - 105px);
    top: calc(50% - 105px);
    border-radius: 30px;
  }
  .entry-orbit {
    width: 280px;
    height: 280px;
  }
  .entry-logo-arrow {
    width: 44px;
    height: 44px;
    right: -12px;
    bottom: -12px;
  }
  .entry-copy {
    margin-top: 12px;
  }
  .entry-copy h1 {
    font-size: 10px;
  }
  .entry-copy h1 > span {
    font-size: clamp(22px, 6.2vw, 34px);
  }
  .entry-copy p {
    font-size: 12px;
    margin-top: 14px;
  }
  .entry-public {
    margin-top: 22px;
    font-size: 11px;
  }
  .entry-bottom-note {
    font-size: 7px;
    bottom: 12px;
  }
}
@media (max-height: 650px) and (min-width: 768px) {
  .entry-shell {
    padding-top: 32px;
    padding-bottom: 52px;
  }
  .entry-scene {
    height: 260px;
  }
  .entry-logo {
    width: 170px;
    height: 170px;
  }
  .entry-plane {
    width: 200px;
    height: 200px;
    left: calc(50% - 100px);
    top: calc(50% - 100px);
  }
  .entry-orbit {
    width: 250px;
    height: 250px;
  }
  .entry-copy h1 > span {
    font-size: 30px;
  }
  .entry-copy p {
    margin-top: 10px;
  }
  .entry-public {
    margin-top: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .entry-logo,
  .entry-logo:hover,
  .entry-logo:focus-visible,
  .entry-logo:active {
    transform: none;
    transition: none;
  }
  .entry-entering .entry-logo,
  .entry-entering .entry-plane,
  .entry-entering .entry-orbit,
  .entry-arriving .access-card {
    will-change: auto;
  }
}
