:root {
  color-scheme: dark;
  --sky: #081019;
  --light: #f7edf5;
  --mist: #b8b1c2;
  --pink: #edbfd7;
  --serif: Georgia, "Times New Roman", serif;
  --sans:
    "Segoe UI Variable", "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--sky);
}
body.portal {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--light);
  font: 14px/1.7 var(--sans);
  isolation: isolate;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #efbedb;
  outline-offset: 7px;
}
::selection {
  color: #152332;
  background: #eed2e4;
}
[hidden] {
  display: none !important;
}
.portal-skip {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 20px;
  padding: 10px 20px;
  border-radius: 999px;
  color: #152332;
  background: #f0d0e2;
  clip-path: inset(100%);
}
.portal-skip:focus {
  clip-path: none;
}
.sky-photo,
.sky-shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  pointer-events: none;
}
.sky-photo {
  filter: brightness(0.62) saturate(0.65);
}
.sky-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, #090c17c9, #0b102033 48%, #11101b33 70%, #040a12cc),
    radial-gradient(ellipse at 50% 42%, #28162635, transparent 60%);
}
.night-sky,
.sky-atmosphere,
.lake-shimmer {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sky-atmosphere {
  background:
    radial-gradient(ellipse at 16% 37%, #a886be12, transparent 48%),
    radial-gradient(ellipse at 83% 20%, #9dc6e012, transparent 48%);
  animation: sky-breathe 24s ease-in-out infinite alternate;
}
.lake-shimmer {
  top: auto;
  height: 20svh;
  opacity: 0.2;
  background: radial-gradient(ellipse at 49% 100%, #aeb0d61f, transparent 49%);
  filter: blur(8px);
  animation: lake-light 14s ease-in-out infinite alternate;
}
.portal-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 20px clamp(24px, 5vw, 88px);
  position: relative;
  z-index: 10;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 500 23px/1.1 var(--sans);
  letter-spacing: -0.05em;
}
.intro-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  flex: none;
}
.brand-period {
  color: #edbfd7;
}
.portal-brand small {
  display: block;
  font: 10px/1.5 var(--sans);
  color: #c1aebe;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.portal-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.portfolio-shortcut {
  font-size: 12px;
  color: #d2c3d3;
  margin-right: 16px;
  padding: 10px 0;
}
.portfolio-shortcut span {
  margin-left: 14px;
  color: #edbfd7;
}
.portfolio-shortcut:hover {
  color: #fff;
}
.sky-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 8px 14px;
  background: #1c203166;
  border: 1px solid #c3cde82e;
  border-radius: 999px;
  color: #c9c3d2;
  font-size: 10px;
  backdrop-filter: blur(16px);
  transition:
    background 0.25s,
    border-color 0.25s;
}
.sky-button:hover {
  background: #c3cde818;
  border-color: #f2dfef77;
}
.sky-button > span:first-child {
  font-size: 19px;
  line-height: 1;
}
.motion-icon {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
  border: 1px solid #d8c1d4;
  position: relative;
}
.motion-icon:before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #dec3d8;
}
.sky-button[aria-pressed="false"] .motion-icon:before {
  background: none;
}
.sky-button:disabled {
  opacity: 0.4;
}
.portal-main {
  position: relative;
  flex: 1;
  min-height: calc(100svh - 166px);
  outline: none;
  width: 100%;
  margin: auto;
}
.portal-intro {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  pointer-events: none;
}
.small-label {
  font-size: 9px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.2em;
  color: #c5b3c8;
  margin: 0;
}
.portal-intro h1 {
  font: 440 clamp(30px, 3.05vw, 45px) / 1.38 var(--sans);
  letter-spacing: -0.065em;
  margin: 16px 0 13px;
  color: #fff3fb;
  word-break: keep-all;
  text-wrap: balance;
}
.portal-intro h1 em {
  font-style: normal;
  color: #e6bbd6;
}
.intro-description {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: #b6a8bc;
  margin: 0;
}
.orbit-stage {
  position: absolute;
  inset: 0;
  isolation: isolate;
}
.orbit-drawing {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}
.orbit-track {
  fill: none;
  stroke: url(#orbit-light);
  stroke-width: 0.7;
  stroke-opacity: 0.5;
  vector-effect: non-scaling-stroke;
}
.orbit-trace {
  fill: none;
  stroke: #ecc2dc;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: none;
  opacity: 0.28;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.5s;
}
.is-orbiting .orbit-trace {
  opacity: 0.6;
}
.portal-copy {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 270px;
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.85;
}
.copy-star {
  display: block;
  margin: 0 auto 12px;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 20px #e2b7dc35);
}
.copy-star img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
}
.core-script {
  font: italic 25px/1.4 var(--serif);
  color: #e7c8dd;
  letter-spacing: -0.03em;
  margin: 0 0 9px;
}
.portal-copy .small-label {
  font-size: 6px;
  letter-spacing: 0.16em;
  color: #ad9fb7;
}
.orbit-slot {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  will-change: transform;
  pointer-events: none;
  z-index: 3;
}
.profile-link {
  --glow: #d9acc9;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  border: 1px solid #efd8e277;
  border-radius: 50%;
  pointer-events: auto;
  isolation: isolate;
  box-shadow:
    0 0 0 6px #e3ccdf06,
    0 0 0 7px #e5d1e91f,
    0 0 50px #d39db51c,
    0 18px 50px #02071388;
  transition:
    box-shadow 0.35s,
    border-color 0.35s;
}
.profile-link::before {
  content: "";
  position: absolute;
  inset: -21px;
  border: 1px solid #f2d4ed17;
  border-radius: 50%;
  z-index: -1;
  transition:
    transform 0.5s,
    opacity 0.5s;
}
.profile-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.8);
  transition:
    filter 0.4s,
    transform 0.4s;
}
.profile-link:hover,
.profile-link:focus-visible {
  border-color: #ffebf8;
  box-shadow:
    0 0 0 6px #e3ccdf0e,
    0 0 0 7px #f0d6eb66,
    0 0 70px #e2b7dc40;
}
.profile-link:hover::before {
  transform: scale(1.12);
  opacity: 0.8;
}
.profile-link:hover img {
  filter: saturate(1);
  transform: scale(0.97);
}
.profile-label {
  position: absolute;
  top: calc(100% + 24px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 122px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  padding: 0 6px;
  color: #f6ebf4;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 3px 16px #000;
}
.profile-label strong {
  display: block;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.profile-label small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.18em;
  color: #baacc5;
  margin-top: 5px;
  line-height: 1.6;
}
.profile-label > span:last-child {
  font-size: 17px;
  color: #d4acc9;
  opacity: 0;
  width: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.profile-link:hover .profile-label > span:last-child,
.profile-link:focus-visible .profile-label > span:last-child {
  opacity: 1;
  transform: translateX(0);
}
.profile-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #293549;
  border-radius: 50%;
  font: italic 40px var(--serif);
  color: #e0c5dc;
  z-index: -1;
}
.sky-points {
  display: none;
}
.portal-guide {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  pointer-events: none;
}
.portal-guide p {
  margin: 0;
  font-size: 11px;
  color: #c8bacd;
  text-align: center;
  line-height: 1.8;
}
.guide-line {
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, #e3ccdf66);
}
.guide-line:last-child {
  rotate: 180deg;
}
.portal-footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 5%;
  border-top: 1px solid #d6cbdf18;
  color: #a8a0b3;
  background: #06101a22;
}
.footer-worlds {
  font-size: 10px;
  color: #cdb6cb;
  white-space: nowrap;
}
.footer-worlds i {
  font-style: normal;
  color: #e5b7d2;
  font-size: 16px;
  margin-right: 8px;
}
.portal-footer p {
  font-size: 9px;
  margin: 0;
  color: #aba1b6;
}
.portal-footer > span:last-child {
  font-size: 7px;
  letter-spacing: 0.16em;
}
.static-profiles {
  position: absolute;
  left: 50%;
  top: 65%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  white-space: nowrap;
}
.static-profiles a {
  padding: 10px 15px;
  border: 1px solid #dfc9e788;
  border-radius: 999px;
  background: #142031;
}
.portal-enter .portal-intro {
  animation: heading-arrive 1.2s ease-out both;
}
.portal-enter .portal-header {
  animation: soft-arrive 1s ease-out both;
}
.portal-enter .profile-link {
  animation: portrait-arrive 1.4s ease-out both;
}
.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation: none !important;
  transition: none !important;
}
.motion-off .night-sky,
.motion-off .lake-shimmer {
  display: none;
}
@keyframes heading-arrive {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes soft-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes portrait-arrive {
  from {
    opacity: 0;
    filter: blur(3px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes sky-breathe {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
@keyframes lake-light {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 0.35;
  }
}
@media (min-width: 1700px) {
  .portal-header {
    height: 116px;
  }
  .portal-main {
    min-height: calc(100svh - 186px);
  }
  .profile-link {
    width: 145px;
    height: 145px;
  }
  .portal-intro {
    top: 28px;
  }
  .portal-copy {
    top: 48%;
  }
  .profile-label strong {
    font-size: 17px;
  }
}
@media (max-width: 900px) {
  .portal-header {
    padding-inline: 30px;
  }
  .portfolio-shortcut {
    display: none;
  }
  .profile-link {
    width: 100px;
    height: 100px;
  }
  .portal-intro h1 {
    font-size: 34px;
  }
  .profile-label strong {
    font-size: 13px;
  }
  .portal-footer > span:last-child {
    display: none;
  }
  .portal-copy {
    top: 48%;
    width: 220px;
  }
  .core-script {
    font-size: 23px;
  }
}
@media (max-width: 600px) {
  .portal-header {
    height: 85px;
    padding: 20px 23px;
    gap: 12px;
  }
  .portal-brand {
    font-size: 20px;
    gap: 7px;
  }
  .intro-logo {
    width: 34px;
    height: 34px;
  }
  .portal-brand small {
    font-size: 8px;
    letter-spacing: 0.05em;
    margin-top: 5px;
  }
  .portal-controls {
    gap: 7px;
  }
  .sky-button {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 8px;
    gap: 5px;
  }
  .sky-button > span:first-child {
    font-size: 16px;
  }
  .motion-control {
    width: 34px;
    padding: 8px;
  }
  .motion-control > span:last-child {
    display: none;
  }
  .portal-main {
    min-height: calc(100svh - 143px);
  }
  .portal-intro {
    top: 20px;
  }
  .portal-intro .small-label {
    font-size: 7px;
    letter-spacing: 0.14em;
  }
  .portal-intro h1 {
    font-size: 28px;
    margin: 13px 0 10px;
    line-height: 1.42;
  }
  .intro-description {
    font-size: 10px;
  }
  .portal-copy {
    top: 45%;
    left: 51%;
    width: 180px;
    opacity: 0.8;
  }
  .copy-star,
  .copy-star img {
    width: 38px;
    height: 38px;
  }
  .copy-star {
    margin-bottom: 10px;
  }
  .core-script {
    font-size: 19px;
    margin-bottom: 5px;
  }
  .portal-copy .small-label {
    font-size: 4.5px;
    letter-spacing: 0.07em;
  }
  .profile-link {
    width: 76px;
    height: 76px;
    box-shadow:
      0 0 0 5px #e3ccdf06,
      0 0 0 6px #e5d1e91f,
      0 0 36px #e4b2cd22;
  }
  .profile-link::before {
    inset: -14px;
  }
  .profile-label {
    top: calc(100% + 15px);
    min-width: 90px;
    gap: 6px;
  }
  .profile-label strong {
    font-size: 12px;
  }
  .profile-label small {
    font-size: 6px;
    margin-top: 3px;
  }
  .profile-label > span:last-child {
    display: none;
  }
  .portal-guide {
    bottom: 19px;
    gap: 10px;
  }
  .portal-guide p {
    font-size: 9px;
    max-width: 260px;
  }
  .guide-line {
    width: 18px;
    flex-shrink: 0;
  }
  .portal-footer {
    min-height: 58px;
    padding: 15px 23px;
    gap: 10px;
  }
  .footer-worlds {
    font-size: 9px;
  }
  .footer-worlds i {
    font-size: 13px;
    margin-right: 4px;
  }
  .portal-footer p {
    font-size: 7px;
    max-width: 155px;
    text-align: right;
    line-height: 1.7;
  }
  .sky-photo {
    object-position: 50% center;
    filter: brightness(0.57) saturate(0.65);
  }
  .static-profiles {
    gap: 8px;
    top: 64%;
  }
  .static-profiles a {
    font-size: 10px;
    padding: 8px 10px;
  }
}
@media (max-width: 360px) {
  .portal-header {
    padding-inline: 17px;
  }
  .portal-brand {
    font-size: 18px;
  }
  .portal-intro h1 {
    font-size: 25px;
  }
  .profile-link {
    width: 68px;
    height: 68px;
  }
  .profile-label strong {
    font-size: 11px;
  }
}
@media (max-height: 680px) and (max-width: 600px) {
  .portal-intro {
    top: 7px;
  }
  .portal-intro h1 {
    font-size: 23px;
    margin: 8px 0;
  }
  .intro-description {
    display: none;
  }
  .portal-copy {
    top: 44%;
    left: 54%;
    width: 120px;
  }
  .core-script {
    font-size: 16px;
  }
  .portal-copy .small-label {
    display: none;
  }
  .copy-star,
  .copy-star img {
    width: 29px;
    height: 29px;
  }
  .portal-guide p {
    font-size: 8px;
  }
  .profile-label {
    top: calc(100% + 10px);
  }
  .portal-guide {
    bottom: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .night-sky,
  .lake-shimmer {
    display: none;
  }
  .orbit-trace {
    opacity: 0.25;
  }
}
/* Decorative paths stay outside layout measurements on narrow viewports. */
html,
.portal-main,
.orbit-stage {
  overflow-x: clip;
}
.orbit-drawing {
  contain: strict;
}
.portal-copy .small-label {
  display: none;
}
.portal-copy {
  padding-bottom: 20px;
}

@media (max-height: 680px) and (max-width: 600px) {
  .portal-copy .core-script {
    display: none;
  }
  .portal-copy {
    padding-bottom: 0;
    top: 42%;
    left: 55%;
    width: 60px;
  }
  .copy-star {
    margin-bottom: 0;
  }
}

/* Three stationary portraits, one finite sequential entrance. */
.portal-enter .profile-link {
  animation: none;
}
.sky-atmosphere,
.lake-shimmer {
  animation: none;
}
.night-sky,
.lake-shimmer {
  display: none;
}
.orbit-trace {
  display: none;
}
.orbit-track {
  stroke-opacity: 0.3;
}
.orbit-slot {
  will-change: auto;
}
