/*
Theme Name: MoonToTop Concept Orbit
Theme URI: https://moontotop.xyz/
Author: MoonToTop
Description: Concept-style Earth-to-Moon scroll portfolio for MoonToTop AI Studio.
Version: 2.1.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: moontotop-concept-orbit
*/

:root {
  --bg: #020407;
  --text: #f5fbff;
  --muted: rgba(224, 235, 240, 0.76);
  --dim: rgba(224, 235, 240, 0.48);
  --cyan: #69e9ff;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(4, 9, 14, 0.56);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.space-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 34% 26%, #07111b 0, #020407 56%, #000 100%);
}

.space-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  background:
    radial-gradient(circle at 25% 34%, rgba(70, 140, 210, 0.82) 0 16%, transparent 18%),
    radial-gradient(circle at 74% 27%, rgba(220, 222, 220, 0.78) 0 4%, transparent 7%),
    #020407;
}

.no-webgl .scene-fallback {
  display: block;
}

.site-shell {
  position: relative;
  z-index: 2;
}

.orbital-header {
  position: fixed;
  z-index: 12;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px clamp(24px, 4.4vw, 58px);
  pointer-events: none;
}

.orbital-header a,
.orbital-header button {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.orbital-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: rgba(245, 251, 255, 0.86);
}

.orbital-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
}

.brand-copy {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.brand-copy b {
  color: var(--cyan);
  font-weight: 650;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  color: rgba(245, 251, 255, 0.86);
  font-size: 13px;
}

.nav > span {
  color: rgba(245, 251, 255, 0.42);
}

.nav a {
  padding: 7px 0;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cyan);
}

.menu-dot {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(105, 233, 255, 0.7);
  border-radius: 50%;
  background: rgba(2, 4, 7, 0.22);
  color: var(--text);
}

.menu-dot span {
  display: block;
  width: 13px;
  height: 1px;
  margin: 2px 0;
  background: currentColor;
}

.journey-rail {
  position: fixed;
  z-index: 11;
  top: 18vh;
  bottom: 12vh;
  left: clamp(18px, 2.2vw, 34px);
  width: 96px;
  pointer-events: none;
}

.rail-line {
  position: absolute;
  top: 46px;
  bottom: 34px;
  left: 10px;
  width: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.rail-line span {
  display: block;
  width: 100%;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(105, 233, 255, 0.9);
}

.rail-step {
  position: absolute;
  left: 0;
  display: grid;
  gap: 3px;
  pointer-events: auto;
  color: var(--dim);
}

.rail-step::after {
  content: "";
  position: absolute;
  top: 49px;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(105, 233, 255, 0.9);
}

.rail-step strong {
  color: var(--cyan);
  font-size: 27px;
  line-height: 1;
  font-weight: 520;
}

.rail-step span {
  font-size: 12px;
  font-weight: 740;
  text-transform: uppercase;
}

.rail-step em {
  font-size: 11px;
  font-style: normal;
}

.rail-step-one {
  top: 0;
}

.rail-step-two {
  top: 40%;
}

.rail-step-three {
  bottom: 0;
}

.scroll-widget {
  position: fixed;
  z-index: 10;
  right: clamp(24px, 3vw, 54px);
  top: 52%;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
  pointer-events: none;
}

.mouse-shape {
  position: relative;
  display: block;
  width: 25px;
  height: 39px;
  border: 1px solid rgba(245, 251, 255, 0.76);
  border-radius: 16px;
}

.mouse-shape i {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--text);
}

.scroll-widget::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

.chapter {
  position: relative;
  min-height: 100vh;
  display: grid;
  padding: 120px clamp(24px, 7vw, 98px);
}

.copy-block,
.about-copy,
.moon-copy,
.lunar-project-map {
  position: relative;
  z-index: 3;
}

.chapter-opening {
  min-height: 112vh;
  align-items: center;
}

.hero-copy {
  width: min(560px, 46vw);
  margin-left: 39vw;
  margin-top: 2vh;
  text-align: left;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.8);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 4.2vw, 66px);
  line-height: 1.04;
  font-weight: 560;
}

.hero-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.65;
}

.hero-line,
.section-line {
  display: block;
  width: 1px;
  height: 48px;
  margin: 22px auto 0;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(105, 233, 255, 0.7);
}

.chapter-earth {
  min-height: 128vh;
  align-items: center;
}

.about-copy {
  justify-self: end;
  width: min(500px, 39vw);
  margin-right: clamp(20px, 6vw, 100px);
  color: var(--text);
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.84);
}

.about-copy .section-line,
.moon-copy .section-line {
  width: 28px;
  height: 2px;
  margin: 0 0 22px;
}

.about-copy h2,
.moon-copy h2 {
  margin: 0;
  font-size: clamp(36px, 3.4vw, 58px);
  line-height: 1.05;
  font-weight: 520;
}

.about-copy p,
.moon-copy p {
  margin: 20px 0 0;
  max-width: 430px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
}

.focus-item {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.focus-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--text);
}

.focus-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.focus-item strong {
  font-size: 15px;
  font-weight: 700;
}

.focus-item span:last-child {
  color: var(--dim);
  font-size: 11px;
}

.chapter-moon {
  min-height: 132vh;
  align-items: start;
  overflow: hidden;
  padding-top: 17vh;
  padding-bottom: 18vh;
}

.moon-copy {
  width: min(470px, 42vw);
  margin-left: 58vw;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.86);
}

.lunar-project-map {
  position: absolute;
  left: 44vw;
  right: 7vw;
  bottom: 6vh;
  min-height: 320px;
}

.lunar-pin {
  position: absolute;
  width: 190px;
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.92);
}

.lunar-pin h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 520;
}

.lunar-pin p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pin-line {
  display: block;
  width: 1px;
  height: 108px;
  margin: 0 auto 10px;
  background: linear-gradient(to bottom, rgba(105, 233, 255, 0), var(--cyan));
  box-shadow: 0 0 14px rgba(105, 233, 255, 0.75);
}

.pin-line::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin: 106px 0 0 -2px;
  border-radius: 50%;
  background: var(--cyan);
}

.pin-filepilot {
  left: 12%;
  top: 42px;
}

.pin-vision {
  left: 44%;
  top: 18px;
}

.pin-voice {
  left: 76%;
  top: 48px;
}

.lunar-surface {
  position: absolute;
  z-index: 1;
  left: -8vw;
  right: -8vw;
  bottom: -4vh;
  height: 70vh;
  transform: perspective(900px) rotateX(56deg);
  transform-origin: bottom;
  border-radius: 50% 50% 0 0 / 19% 19% 0 0;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.38), rgba(106, 112, 118, 0.42) 16%, rgba(16, 18, 20, 0.9) 70%),
    url("assets/moon_1024.jpg");
  background-size: auto, 360px 180px;
  background-position: center top;
  filter: grayscale(1) contrast(1.35) brightness(0.94);
  opacity: 0.96;
  box-shadow: inset 0 38px 90px rgba(255, 255, 255, 0.17), 0 -24px 90px rgba(0, 0, 0, 0.72);
}

.footer-space {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 24vh;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 38px clamp(24px, 7vw, 98px);
  color: var(--dim);
}

.footer-space a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

@media (max-width: 1080px) {
  .journey-rail,
  .scroll-widget {
    display: none;
  }

  .hero-copy {
    width: min(620px, 54vw);
    margin-left: 34vw;
  }

  .about-copy {
    width: min(500px, 48vw);
    margin-right: 0;
  }

  .moon-copy {
    margin-left: 48vw;
    width: min(430px, 48vw);
  }
}

@media (max-width: 760px) {
  .orbital-header {
    align-items: flex-start;
    padding: 20px 22px;
  }

  .orbital-mark {
    display: none;
  }

  .brand-copy {
    display: grid;
    gap: 3px;
    font-size: 14px;
  }

  .nav a,
  .nav > span,
  .admin-link-top {
    display: none;
  }

  .chapter {
    padding: 108px 22px 72px;
  }

  .chapter-opening {
    min-height: 112vh;
    align-items: center;
  }

  .hero-copy {
    width: 100%;
    margin: 19vh 0 0;
  }

  .hero-copy h1 {
    max-width: 330px;
    font-size: 38px;
    line-height: 1.05;
  }

  .hero-copy p {
    max-width: 330px;
    font-size: 15px;
  }

  .hero-line {
    margin-left: 0;
  }

  .chapter-earth {
    min-height: 118vh;
    align-items: start;
    padding-top: 17vh;
  }

  .about-copy,
  .moon-copy {
    width: 100%;
    margin: 0;
  }

  .about-copy h2,
  .moon-copy h2 {
    font-size: 34px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 320px;
  }

  .focus-item {
    grid-template-columns: 42px 1fr;
    align-items: center;
  }

  .focus-item span:last-child {
    grid-column: 2;
  }

  .chapter-moon {
    min-height: 138vh;
    padding-top: 15vh;
  }

  .lunar-project-map {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: grid;
    gap: 22px;
    margin-top: 52px;
    min-height: 0;
  }

  .lunar-pin {
    position: relative;
    left: auto;
    top: auto;
    width: min(100%, 340px);
    transform: none;
    text-align: left;
  }

  .pin-line {
    width: 38px;
    height: 2px;
    margin: 0 0 12px;
    background: var(--cyan);
  }

  .pin-line::after {
    display: none;
  }

  .lunar-surface {
    bottom: -16vh;
    height: 36vh;
    transform: perspective(700px) rotateX(62deg);
  }

  .footer-space {
    flex-direction: column;
    align-items: flex-start;
  }
}
