/*
Theme Name: MoonToTop Concept Exact
Theme URI: https://moontotop.xyz/
Author: MoonToTop
Description: 2D concept-faithful Earth-to-Moon homepage for MoonToTop AI Studio.
Version: 3.0.4
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: moontotop-concept-exact
*/

:root {
  --bg: #02070b;
  --text: #f7fbff;
  --muted: rgba(242, 248, 255, 0.82);
  --soft: rgba(242, 248, 255, 0.58);
  --dim: rgba(242, 248, 255, 0.42);
  --cyan: #63edff;
  --line: rgba(255, 255, 255, 0.22);
  --page-pad-x: clamp(20px, 5.2vw, 86px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  background: #000;
  scroll-behavior: smooth;
}

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

@media (min-width: 921px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
}

body.admin-bar {
  margin-top: 0 !important;
}

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

button {
  font: inherit;
}

.star-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 70% 4%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.4px),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.4px),
    radial-gradient(circle at 58% 21%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.4px),
    radial-gradient(circle at 46% 10%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1.4px),
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.4px),
    radial-gradient(circle at 31% 68%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1.4px),
    radial-gradient(circle at 90% 62%, rgba(255, 255, 255, 0.25) 0 1px, transparent 1.4px),
    radial-gradient(circle at 55% 68%, rgba(180, 216, 255, 0.16), transparent 16%),
    linear-gradient(90deg, #01070b 0%, #02080e 46%, #020407 100%);
  background-size: 233px 191px, 311px 257px, 389px 313px, 431px 349px, 503px 397px, 557px 463px, 617px 521px, 100% 100%, 100% 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--page-pad-x) 0;
  pointer-events: none;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: var(--text);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
}

.brand-mark svg {
  display: block;
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.12;
}

.brand > span:last-child {
  font-size: 15px;
  line-height: 1;
  font-weight: 540;
  white-space: nowrap;
}

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

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 23px;
  color: var(--text);
  font-size: 13px;
  line-height: 1;
}

.top-nav a {
  opacity: 0.94;
}

.top-nav i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.menu-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(99, 237, 255, 0.78);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
}

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

.section-rail {
  position: fixed;
  z-index: 19;
  top: 19.1vh;
  bottom: 9vh;
  left: clamp(14px, 1.3vw, 22px);
  width: 90px;
  pointer-events: none;
}

.rail-line {
  position: absolute;
  top: 76px;
  bottom: 136px;
  left: 9px;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.rail-line::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--cyan), rgba(99, 237, 255, 0.78), rgba(99, 237, 255, 0.25));
  transform: scaleY(var(--scroll-progress, 1));
  transform-origin: top;
  box-shadow: 0 0 14px rgba(99, 237, 255, 0.75);
}

.rail-item {
  position: absolute;
  left: 0;
  display: grid;
  gap: 4px;
  min-width: 88px;
  padding-left: 16px;
  color: var(--soft);
  pointer-events: auto;
}

.rail-item::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 75px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(99, 237, 255, 0.9);
}

.rail-item strong {
  color: var(--cyan);
  font-size: 25px;
  line-height: 0.92;
  font-weight: 520;
}

.rail-item span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rail-item em {
  color: var(--soft);
  font-size: 10px;
  line-height: 1;
  font-style: normal;
}

.rail-one {
  top: 0;
}

.rail-two {
  top: calc(50% - 43px);
}

.rail-three {
  bottom: 7vh;
}

.scroll-sign {
  position: fixed;
  z-index: 18;
  right: clamp(24px, 3vw, 52px);
  top: 52.4vh;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--soft);
  pointer-events: none;
}

.scroll-sign span {
  position: relative;
  display: block;
  width: 25px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 15px;
}

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

.scroll-sign b {
  font-size: 12px;
  font-weight: 400;
}

.scroll-sign em {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 11px rgba(99, 237, 255, 0.9);
}

.concept-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 62% 9%, rgba(255, 255, 255, 0.16), transparent 9%),
    radial-gradient(circle at 70% 74%, rgba(255, 255, 255, 0.08), transparent 16%);
}

@media (min-width: 921px) {
  .concept-page {
    height: 100vh;
    min-height: 0;
  }
}

.panel {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.panel-begin {
  height: 36.4vh;
  min-height: 330px;
}

.panel-about {
  height: 30.8vh;
  min-height: 280px;
}

.panel-projects {
  height: 32.8vh;
  min-height: 365px;
  border-bottom: 0;
}

.planet {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.planet-earth {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.86), transparent 0 3%, transparent 18%),
    radial-gradient(circle at 73% 18%, rgba(143, 218, 255, 0.65), transparent 0 22%, transparent 40%),
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.16), transparent 0 37%, transparent 48%),
    radial-gradient(circle at 26% 68%, rgba(0, 0, 0, 0.58), transparent 0 48%, rgba(0, 0, 0, 0.88) 75%),
    url("assets/earth_lights_2048.png"),
    url("assets/earth_atmos_2048.jpg");
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 140% 70%, 145% 72%;
  background-position: center, center, center, center, 48% 50%, 50% 50%;
  box-shadow:
    inset -45px -18px 90px rgba(0, 0, 0, 0.86),
    inset 18px 0 45px rgba(116, 215, 255, 0.16),
    0 0 0 4px rgba(117, 215, 255, 0.16),
    0 0 34px rgba(104, 203, 255, 0.3);
}

.earth-hero {
  left: 10.8vw;
  top: -5.3vh;
  width: min(36.5vw, 560px);
  aspect-ratio: 1;
}

.moon-small {
  right: 23vw;
  top: 13.4vh;
  width: min(7.5vw, 105px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.6), transparent 0 28%, rgba(0, 0, 0, 0.52) 72%),
    url("assets/moon_1024.jpg");
  background-size: 100% 100%, 150% 150%;
  background-position: center, 50% 50%;
  filter: grayscale(1) contrast(1.12) brightness(0.86);
  box-shadow: inset -18px -8px 30px rgba(0, 0, 0, 0.72), 0 0 18px rgba(255, 255, 255, 0.08);
}

.hero-copy {
  position: absolute;
  left: 40.6vw;
  top: 75.4%;
  width: 390px;
  transform: translateY(-50%);
  text-align: center;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.72);
}

.hero-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(29px, 2.55vw, 39px);
  line-height: 1.06;
  font-weight: 440;
}

.hero-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cyan-stem,
.section-stroke {
  display: block;
  width: 1px;
  height: 42px;
  margin: 18px auto 0;
  background: var(--cyan);
  box-shadow: 0 0 13px rgba(99, 237, 255, 0.75);
}

.earth-sweep {
  position: absolute;
  left: 0;
  top: -46%;
  width: 57.2vw;
  height: 87vh;
  border-radius: 50%;
  background:
    radial-gradient(circle at 75% 22%, rgba(255, 255, 255, 0.45), transparent 0 24%, transparent 44%),
    radial-gradient(circle at 85% 18%, rgba(136, 222, 255, 0.55), transparent 0 21%, transparent 44%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.86) 91%),
    url("assets/earth_lights_2048.png"),
    url("assets/earth_atmos_2048.jpg");
  background-size: 100% 100%, 100% 100%, 100% 100%, 137% 68%, 138% 70%;
  background-position: center, center, center, 49% 52%, 45% 51%;
  box-shadow:
    inset -42px -22px 110px rgba(0, 0, 0, 0.82),
    0 0 44px rgba(119, 214, 255, 0.25);
}

.about-copy {
  position: absolute;
  top: 12.4%;
  right: 18.7vw;
  width: 330px;
  color: var(--text);
  text-shadow: 0 16px 45px rgba(0, 0, 0, 0.82);
}

.section-stroke {
  width: 24px;
  height: 2px;
  margin: 0 0 19px;
}

.about-copy h2,
.project-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.05;
  font-weight: 400;
}

.about-copy > p,
.project-copy > p {
  max-width: 300px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.project-copy > p {
  max-width: 390px;
}

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

.skill-row article {
  min-width: 0;
}

.skill-row span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  color: var(--text);
}

.skill-row svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.skill-row h3 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 620;
}

.skill-row p {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 9px;
  line-height: 1.2;
}

.earth-distant {
  position: absolute;
  left: 10.5vw;
  top: 12.2%;
  width: 14vw;
  min-width: 160px;
  max-width: 230px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.56), transparent 0 25%, transparent 50%),
    radial-gradient(circle at 30% 68%, rgba(0, 0, 0, 0.6), transparent 0 44%, rgba(0, 0, 0, 0.86) 74%),
    url("assets/earth_atmos_2048.jpg");
  background-size: 100% 100%, 100% 100%, 145% 72%;
  background-position: center, center, 54% 50%;
  box-shadow: inset -24px -14px 55px rgba(0, 0, 0, 0.82), 0 0 25px rgba(122, 214, 255, 0.24);
}

.project-copy {
  position: absolute;
  top: 9.5%;
  left: 63.5vw;
  width: 430px;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.82);
}

.moon-ground {
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: 3vh;
  height: 25vh;
  min-height: 220px;
  transform: perspective(950px) rotateX(53deg);
  transform-origin: bottom;
  border-radius: 50% 50% 0 0 / 16% 16% 0 0;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.58), rgba(172, 179, 182, 0.54) 13%, rgba(55, 57, 60, 0.86) 58%, rgba(0, 0, 0, 0.98) 100%),
    radial-gradient(circle at 18% 40%, rgba(0, 0, 0, 0.42) 0 2.1%, transparent 2.4%),
    radial-gradient(circle at 38% 44%, rgba(0, 0, 0, 0.4) 0 1.8%, transparent 2.2%),
    radial-gradient(circle at 63% 36%, rgba(0, 0, 0, 0.48) 0 2.3%, transparent 2.8%),
    radial-gradient(circle at 79% 47%, rgba(0, 0, 0, 0.38) 0 1.7%, transparent 2.2%),
    url("assets/moon_1024.jpg");
  background-size: 100% 100%, 420px 180px, 510px 190px, 620px 210px, 480px 180px, 380px 190px;
  background-position: center top, 0 20px, 70px 44px, 30px 18px, 120px 60px, center top;
  filter: grayscale(1) contrast(1.3) brightness(0.95);
  box-shadow: inset 0 26px 65px rgba(255, 255, 255, 0.16), 0 -16px 65px rgba(255, 255, 255, 0.08);
}

.project-map {
  position: absolute;
  left: 45.3vw;
  right: 9.5vw;
  bottom: 5.5vh;
  height: 170px;
  z-index: 3;
}

.project-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 190px;
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 13px 34px rgba(0, 0, 0, 0.92);
}

.project-pin > span {
  display: block;
  order: 3;
  width: 1px;
  height: 72px;
  margin: 13px auto 0;
  background: linear-gradient(to bottom, rgba(99, 237, 255, 0.08), rgba(99, 237, 255, 0.58), var(--cyan));
  box-shadow: 0 0 12px rgba(99, 237, 255, 0.74);
}

.project-pin > span::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 70px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(99, 237, 255, 0.9);
}

.project-pin h3 {
  order: 1;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 430;
}

.project-pin p {
  order: 2;
  margin: 7px auto 0;
  max-width: 170px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.34;
}

.pin-one {
  left: 17%;
  top: 22px;
}

.pin-two {
  left: 49%;
  top: 8px;
}

.pin-three {
  left: 80%;
  top: 20px;
}

.pager-dots {
  position: absolute;
  right: 3.25vw;
  top: 37.6%;
  display: grid;
  gap: 12px;
}

.pager-dots span {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.pager-dots .active {
  border-color: var(--cyan);
  background: var(--cyan);
}

@media (min-width: 1200px) and (max-height: 930px) {
  .panel-begin {
    height: 37.1vh;
  }

  .panel-about {
    height: 30.6vh;
  }

  .panel-projects {
    height: 32.3vh;
  }
}

@media (max-width: 920px) {
  .concept-page {
    overflow: visible;
  }

  .site-header {
    padding: 20px 22px 0;
  }

  .brand-mark {
    display: none;
  }

  .brand > span:last-child {
    display: grid;
    gap: 4px;
    font-size: 14px;
    line-height: 1.15;
  }

  .top-nav a,
  .top-nav i {
    display: none;
  }

  .section-rail,
  .scroll-sign,
  .pager-dots {
    display: none;
  }

  .panel {
    min-height: 100vh;
    height: auto;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .panel-begin,
  .panel-about,
  .panel-projects {
    min-height: 100vh;
  }

  .earth-hero {
    left: -8vw;
    top: 27vh;
    width: 115vw;
  }

  .moon-small {
    right: 8vw;
    top: 19vh;
    width: 18vw;
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    top: 58vh;
    width: auto;
    transform: none;
    text-align: left;
  }

  .hero-copy h1 {
    max-width: 330px;
    font-size: 38px;
    font-weight: 520;
  }

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

  .cyan-stem {
    margin-left: 0;
  }

  .earth-sweep {
    left: -36vw;
    top: 22vh;
    width: 142vw;
    height: 142vw;
  }

  .about-copy,
  .project-copy {
    left: 22px;
    right: 22px;
    top: 15vh;
    width: auto;
  }

  .about-copy h2,
  .project-copy h2 {
    font-size: 34px;
    font-weight: 520;
  }

  .about-copy > p,
  .project-copy > p {
    max-width: 340px;
    font-size: 15px;
  }

  .skill-row {
    grid-template-columns: 1fr;
    max-width: 310px;
    gap: 16px;
  }

  .skill-row article {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 12px;
    align-items: center;
  }

  .skill-row span {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .skill-row p {
    font-size: 11px;
  }

  .earth-distant {
    left: 22px;
    top: 29vh;
    width: 38vw;
    min-width: 130px;
  }

  .moon-ground {
    left: -52vw;
    right: -52vw;
    bottom: -4vh;
    height: 39vh;
  }

  .project-map {
    left: 22px;
    right: 22px;
    bottom: 10vh;
    display: grid;
    gap: 18px;
    height: auto;
  }

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

  .project-pin > span {
    width: 36px;
    height: 1px;
    margin: 0 0 9px;
  }

  .project-pin > span::before {
    display: none;
  }

  .project-pin h3 {
    font-size: 22px;
    font-weight: 560;
  }

  .project-pin p {
    max-width: 285px;
    margin-left: 0;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 36px;
  }

  .moon-small {
    width: 0;
    opacity: 0;
  }
}
