:root {
  /* Typography compliance field note: Interface labels and small coordinates: **Space Grotesk** for clean technical contrast without becoming terminal-coded. Grotes Grotesk Grotesk** Grotesk* Optional tiny annotations can use **IBM Plex Mono. Interpret it through duality: Korean and Latin letters. Space Grotesk to create a bilingual personal archive voice while keeping mono usage minimal because mono is highly frequent. */
  --observatory-ink: #10131C;
  --moon-paper: #F2EBDD;
  --meridian-blue: #3E6FA3;
  --dried-persimmon-seal: #C85F3D;
  --jade-shadow: #6F9B8B;
  --graphite-violet: #3A3148;
  --star-rice: #FFF7D6;
  --display: "Instrument Serif", serif;
  --kr: "Noto Serif KR", serif;
  --interface: "Space Grotesk", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--observatory-ink);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--moon-paper);
  font-family: var(--kr);
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 247, 214, .13), transparent 26rem),
    radial-gradient(circle at 18% 68%, rgba(111, 155, 139, .18), transparent 34rem),
    linear-gradient(180deg, #10131C 0%, #151726 42%, #3A3148 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: .22;
  background-image:
    linear-gradient(rgba(242, 235, 221, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 235, 221, .03) 1px, transparent 1px);
  background-size: 5rem 5rem, 5rem 5rem;
  mix-blend-mode: soft-light;
}

.sky-noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 247, 214, .72) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(111, 155, 139, .28) 0 1px, transparent 1.5px);
  background-size: 7.2rem 8.4rem, 11rem 10rem;
  background-position: 1rem 2rem, 4rem 6rem;
  opacity: .2;
}

.meridian-line {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 57vw;
  width: 1px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 19, 28, .2), #3E6FA3 22%, #FFF7D6 62%, rgba(242, 235, 221, .25));
  box-shadow: 0 0 18px rgba(62, 111, 163, .42);
  transform-origin: center;
}

.tick {
  position: absolute;
  left: -1.15rem;
  width: 2.3rem;
  height: 1px;
  background: #FFF7D6;
  opacity: 0;
  animation: tickBrighten 4.8s ease forwards infinite;
}
.t1 { top: 11%; animation-delay: .2s; } .t2 { top: 24%; animation-delay: .8s; }
.t3 { top: 39%; animation-delay: 1.4s; } .t4 { top: 57%; animation-delay: 2s; }
.t5 { top: 73%; animation-delay: 2.6s; } .t6 { top: 88%; animation-delay: 3.2s; }

.observatory-dial {
  position: fixed;
  right: 2rem;
  top: 2rem;
  width: 9.5rem;
  height: 9.5rem;
  border: 1px solid rgba(242, 235, 221, .24);
  border-radius: 50%;
  z-index: 10;
  font-family: var(--interface);
  font-size: .67rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: radial-gradient(circle, rgba(242, 235, 221, .08), rgba(16, 19, 28, .58) 58%, transparent 60%);
  transition: transform .45s ease;
}
.observatory-dial a {
  position: absolute;
  color: rgba(242, 235, 221, .62);
  text-decoration: none;
  transition: color .35s ease, text-shadow .35s ease;
}
.observatory-dial a.is-active { color: #FFF7D6; text-shadow: 0 0 13px #FFF7D6; }
.observatory-dial a:nth-of-type(1) { left: 3.2rem; top: -.55rem; }
.observatory-dial a:nth-of-type(2) { right: -1.1rem; top: 4rem; }
.observatory-dial a:nth-of-type(3) { left: 2.1rem; bottom: -.65rem; }
.observatory-dial a:nth-of-type(4) { left: -1.55rem; top: 4rem; }
.dial-needle {
  position: absolute;
  left: 50%; top: 50%;
  width: 1px; height: 4.05rem;
  background: #C85F3D;
  transform-origin: 50% 0;
  box-shadow: 0 0 12px rgba(200, 95, 61, .65);
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: clamp(5rem, 8vw, 9rem) clamp(1.4rem, 6vw, 7rem);
  isolation: isolate;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 8% 5%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 58% 22%, rgba(242, 235, 221, .08), transparent 23rem);
  filter: blur(1px);
}

.name-rise {
  min-height: 112vh;
  overflow: hidden;
  background: radial-gradient(circle at 63% 35%, rgba(62, 111, 163, .18), transparent 25rem);
}
.moon-sweep {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(106deg, transparent 0%, rgba(255, 247, 214, .05) 35%, rgba(255, 247, 214, .2) 49%, transparent 64%);
  transform: translateX(-35%);
  animation: moonAcrossPaper 6.5s cubic-bezier(.2,.7,.1,1) forwards;
}
.hangul-chambers {
  position: absolute;
  left: 7vw; top: 9rem;
  display: grid;
  grid-template-columns: repeat(2, 5.5rem);
  gap: .8rem;
  color: rgba(242, 235, 221, .08);
  font-family: var(--kr);
  font-size: 3.2rem;
}
.hangul-chambers span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 235, 221, .12);
  box-shadow: inset 0 0 26px rgba(62, 111, 163, .07);
}
.coordinate-label, .note-kicker {
  font-family: var(--interface);
  color: #6F9B8B;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
}
.name-rise .coordinate-label { margin-left: 58vw; margin-top: 7vh; }
.wordmark {
  position: absolute;
  left: -3vw;
  bottom: -5vw;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(6.8rem, 19vw, 22rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .74;
  color: #F2EBDD;
  text-shadow: 0 0 42px rgba(255, 247, 214, .1);
  white-space: nowrap;
  opacity: .98;
}
.name-part { display: inline-block; transform-origin: 57% 57%; animation: nameOrbit 11s ease-in-out infinite alternate; }
.joon { color: rgba(255, 247, 214, .88); animation-delay: -2s; }
.domain-dot { font-size: .45em; color: #C85F3D; letter-spacing: -.02em; }
.opening-note {
  position: absolute;
  right: 8vw;
  bottom: 21vh;
  width: min(31rem, 34vw);
}
.constellation {
  position: absolute;
  left: 17vw;
  top: 29vh;
  width: 58vw;
  height: 44vh;
  fill: #FFF7D6;
  stroke: rgba(255, 247, 214, .34);
  stroke-width: 1.3;
  overflow: visible;
}
.constellation path { fill: none; stroke-dasharray: 980; stroke-dashoffset: 980; animation: drawConstellation 5.5s ease 1.1s forwards; }

.paper-note {
  color: #10131C;
  background:
    linear-gradient(135deg, rgba(255, 247, 214, .52), rgba(242, 235, 221, .88)),
    radial-gradient(circle at 12% 10%, rgba(62, 111, 163, .12), transparent 15rem);
  border: 1px solid rgba(255, 247, 214, .34);
  box-shadow: 0 2rem 5rem rgba(16, 19, 28, .32), inset 0 0 0 1px rgba(255,255,255,.18);
  padding: clamp(1.2rem, 3vw, 2.4rem);
  backdrop-filter: blur(9px);
  transition: transform .5s ease, box-shadow .5s ease, filter .5s ease;
}
.paper-note:hover { transform: translateY(-.55rem) rotate(.35deg); box-shadow: 0 2.5rem 6rem rgba(16, 19, 28, .45); filter: saturate(1.08); }
.paper-note h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 6.4rem);
  line-height: .9;
  margin: .45rem 0 1.3rem;
  color: #3A3148;
}
.paper-note p { font-size: clamp(1rem, 1.45vw, 1.3rem); line-height: 1.75; margin: 0; }

.orbit-desk {
  background: linear-gradient(180deg, rgba(16, 19, 28, .15), rgba(58, 49, 72, .34));
}
.orbit-map {
  position: absolute;
  left: 7vw; top: 6vh;
  width: 72vw; height: 84vh;
  fill: none;
  stroke: rgba(62, 111, 163, .46);
  stroke-width: 1;
  filter: drop-shadow(0 0 16px rgba(62, 111, 163, .22));
  animation: slowDial 38s linear infinite;
}
.note-large { width: min(44rem, 43vw); margin-left: 8vw; transform: rotate(-2deg); }
.note-small { position: absolute; right: 8vw; top: 21vh; width: 19rem; transform: rotate(5deg); }
.note-medium { position: absolute; left: 51vw; bottom: 12vh; width: 29rem; transform: rotate(-4deg); }
.seal-mark {
  display: grid;
  place-items: center;
  width: 4.6rem;
  aspect-ratio: 1;
  border: .28rem solid #C85F3D;
  color: #C85F3D;
  font-family: var(--kr);
  font-size: 2.1rem;
  opacity: .76;
  border-radius: 18% 13% 21% 15%;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
}
.orbit-desk .seal-mark { position: absolute; left: 41vw; bottom: 24vh; }

.margin-weather {
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 28%, rgba(111, 155, 139, .26), transparent 28rem),
    linear-gradient(180deg, rgba(58, 49, 72, .1), rgba(16, 19, 28, .62));
}
.contour-lines {
  position: absolute;
  inset: 7vh -5vw;
  opacity: .23;
  background:
    repeating-radial-gradient(ellipse at 68% 45%, transparent 0 2.1rem, rgba(242, 235, 221, .28) 2.16rem 2.24rem),
    repeating-radial-gradient(ellipse at 22% 62%, transparent 0 1.8rem, rgba(111, 155, 139, .28) 1.86rem 1.94rem);
  animation: weatherPulse 12s ease-in-out infinite alternate;
}
.weather-heading { max-width: 50rem; margin-left: 8vw; }
.weather-heading h2 {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 400;
  line-height: .9;
  margin: 1rem 0 0;
  color: #F2EBDD;
}
.weather-stream { position: relative; min-height: 55vh; margin-top: 2rem; }
.weather-fragment {
  position: absolute;
  max-width: 21rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 1px solid #3E6FA3;
  color: rgba(242, 235, 221, .86);
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.65;
  background: rgba(16, 19, 28, .24);
  box-shadow: 0 0 36px rgba(62, 111, 163, .08);
  animation: indoorAir 8s ease-in-out infinite alternate;
}
.f1 { left: 7vw; top: 12vh; } .f2 { left: 34vw; top: 3vh; animation-delay: -2s; }
.f3 { left: 61vw; top: 19vh; animation-delay: -4s; } .f4 { left: 22vw; top: 38vh; animation-delay: -1s; }
.f5 { left: 55vw; top: 46vh; animation-delay: -5s; color: #FFF7D6; }

.night-index {
  min-height: 105vh;
  background: radial-gradient(circle at 59% 48%, rgba(62, 111, 163, .2), transparent 22rem);
}
.index-chart {
  position: absolute;
  inset: 8vh 5vw 6vh 5vw;
  border: 1px solid rgba(242, 235, 221, .11);
  background: radial-gradient(circle at 57% 49%, rgba(255, 247, 214, .05), transparent 18rem);
}
.star-link {
  position: absolute;
  font-family: var(--interface);
  color: #FFF7D6;
  text-decoration: none;
  letter-spacing: .05em;
  font-size: clamp(.85rem, 1.2vw, 1.05rem);
  transition: color .35s ease, text-shadow .35s ease, transform .35s ease;
}
.star-link::before, .star-point {
  content: "";
  position: absolute;
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: #FFF7D6;
  box-shadow: 0 0 18px #FFF7D6;
}
.star-link::before { left: -1.1rem; top: .36rem; }
.star-link:hover { color: #C85F3D; text-shadow: 0 0 18px rgba(200, 95, 61, .75); transform: translateY(-.3rem); }
.s1 { left: 12%; top: 28%; } .s2 { left: 69%; top: 18%; } .s3 { left: 54%; top: 67%; } .s4 { left: 23%; top: 76%; }
.p1 { left: 44%; top: 31%; } .p2 { left: 81%; top: 57%; } .p3 { left: 17%; top: 55%; } .p4 { left: 62%; top: 41%; }
.star-thread {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.star-thread path { stroke: #C85F3D; stroke-width: .18; fill: none; opacity: 0; transition: opacity .3s ease; }
.index-note { position: absolute; left: 8vw; bottom: 10vh; width: min(36rem, 38vw); }
.final-seal { position: absolute; right: 9vw; bottom: 12vh; animation: sealPress 2.4s ease-in-out infinite alternate; }

.is-aligned { box-shadow: 0 0 0 1px #FFF7D6, 0 2.6rem 7rem rgba(62, 111, 163, .38); }

@keyframes tickBrighten { 0%, 80%, 100% { opacity: .08; transform: scaleX(.35); } 24%, 42% { opacity: .95; transform: scaleX(1); } }
@keyframes moonAcrossPaper { to { transform: translateX(38%); } }
@keyframes nameOrbit { from { transform: rotate(-1.2deg) translateY(.04em); } to { transform: rotate(1.5deg) translateY(-.035em); } }
@keyframes drawConstellation { to { stroke-dashoffset: 0; } }
@keyframes slowDial { to { transform: rotate(360deg); } }
@keyframes weatherPulse { to { transform: translateX(2.5vw) scale(1.04); opacity: .33; } }
@keyframes indoorAir { from { transform: translate3d(-.5rem, .2rem, 0) rotate(-.3deg); } to { transform: translate3d(.9rem, -.7rem, 0) rotate(.45deg); } }
@keyframes sealPress { from { opacity: .54; transform: rotate(6deg) scale(.92); } to { opacity: .9; transform: rotate(1deg) scale(1); } }

@media (max-width: 820px) {
  .meridian-line { left: 62vw; }
  .observatory-dial { transform: scale(.72); right: .2rem; top: .2rem; }
  .wordmark { font-size: 25vw; bottom: 4vh; }
  .opening-note, .note-large, .index-note { width: auto; left: 1.2rem; right: 1.2rem; margin-left: 0; }
  .opening-note { bottom: 27vh; }
  .note-small, .note-medium { position: relative; inset: auto; width: auto; margin: 1.2rem 0; }
  .weather-fragment { position: relative; left: auto; top: auto; margin: 1rem 0 0 6vw; }
  .index-chart { inset: 12vh 1rem 4vh; }
  .index-note { bottom: 7vh; }
}
