/* ============ NOT ANOTHER PLANET ============ */

:root {
  --bg: #050505;
  --ink: #f5f2ea;
  --accent: #c6f24e;
  --sky: #7dd8ff;
  --mono: 'Sora', sans-serif;
  --serif: 'Cormorant Garamond', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* film grain */
body::after {
  content: '';
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 9998;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-4%); }
  60% { transform: translate(-3%,-2%); }
  80% { transform: translate(4%,2%); }
}

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__count {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 400;
  display: block; line-height: 1;
}
.preloader__label {
  font-size: .7rem; letter-spacing: .5em; text-transform: uppercase;
  opacity: .5; margin-top: 1.5rem; display: block;
}

/* ---------- Fixed UI ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2.5rem 2.2rem;
  background: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.25) 60%, rgba(5,5,5,0) 100%);
  text-shadow: 0 1px 14px rgba(5,5,5,.6);
}
.nav a { color: var(--ink); text-decoration: none; }
.nav__logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .1em; }
.nav__coords {
  font-size: .65rem; letter-spacing: .25em;
  opacity: .7; font-variant-numeric: tabular-nums;
}
.nav__cta {
  font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 101;
}
.progress__bar {
  height: 100%; width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(5,5,5,.25) 0%, rgba(5,5,5,.75) 100%);
}
.hero__content { position: relative; text-align: center; padding: 0 1.5rem; }
.hero__kicker {
  font-size: .7rem; letter-spacing: .45em; text-transform: uppercase;
  opacity: .8; margin-bottom: 2rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4rem, 13vw, 13rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line span { display: block; }
.hero__sub {
  margin-top: 2.5rem;
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sky);
}
.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  text-align: center;
  font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; opacity: .7;
}
.hero__scroll-line {
  width: 1px; height: 56px; margin: 1rem auto 0;
  background: linear-gradient(var(--ink), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Manifesto ---------- */
.manifesto {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20vh 1.5rem;
}
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  font-weight: 400; line-height: 1.1;
}
.manifesto__text--em { font-style: italic; color: var(--accent); margin-top: 1rem; }
.manifesto__body {
  margin-top: 6rem; max-width: 34rem;
  font-size: .85rem; letter-spacing: .12em; line-height: 2.2;
  text-transform: uppercase; opacity: .6;
}

/* ---------- Globe ---------- */
.globe-section { height: 520vh; position: relative; }
.globe-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
}
#globeCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.globe-ui {
  position: absolute; left: 2.5rem; bottom: 3rem; z-index: 2; max-width: 30rem;
  pointer-events: none;
}
.globe-ui__kicker {
  font-size: .6rem; letter-spacing: .45em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 1rem;
}
.globe-ui__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.05;
}
.globe-ui__place {
  margin-top: 1.2rem; font-size: .75rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--accent); min-height: 1.2em;
}
.globe-labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.globe-label {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: .6rem;
  opacity: 0; transition: opacity .6s ease;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  white-space: nowrap;
}
.globe-label.is-visible { opacity: .35; }
.globe-label.is-visible.is-active { opacity: 1; }
.globe-label.is-visible.is-hover { opacity: 1; color: var(--sky); }
.globe-labels { pointer-events: none; }
.globe-label::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 12px 2px rgba(245,242,234,.8);
  animation: dotpulse 2.4s ease-in-out infinite;
}
.globe-label.is-active { color: var(--sky); }
@keyframes dotpulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .7; }
}

/* ---------- Index ---------- */
.index {
  position: relative;
  padding: 22vh 2.5rem;
  max-width: 68rem; margin: 0 auto;
}
.index__kicker {
  font-size: .6rem; letter-spacing: .45em; text-transform: uppercase;
  opacity: .55; margin-bottom: 3.5rem;
}
.index__list { list-style: none; }
.index__list li { border-top: 1px solid rgba(245,242,234,.14); }
.index__list li:last-child { border-bottom: 1px solid rgba(245,242,234,.14); }
.index__list a {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: baseline; gap: 1.5rem;
  padding: 1.6rem .5rem;
  color: var(--ink); text-decoration: none;
  transition: padding-left .4s cubic-bezier(.25,1,.3,1), opacity .3s;
}
.index__list:hover a { opacity: .35; }
.index__list a:hover { opacity: 1; padding-left: 1.5rem; }
.index__num { font-size: .65rem; letter-spacing: .25em; opacity: .5; font-variant-numeric: tabular-nums; }
.index__name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400; line-height: 1;
}
.index__loc { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; opacity: .55; }
.index__preview {
  position: fixed; z-index: 50;
  width: 300px; height: 380px;
  pointer-events: none;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(.92);
  transition: opacity .35s ease, transform .35s ease;
}
.index__preview.is-on { opacity: 1; transform: scale(1); }

/* ---------- Planets ---------- */
.planet {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: 14vh 2.5rem;
  max-width: 100rem; margin: 0 auto;
}
.planet--right { grid-template-columns: 1fr 1.15fr; }
.planet--right .planet__media { order: 2; }
.planet--right .planet__content { order: 1; text-align: right; }
.planet--right .planet__meta { justify-content: flex-end; }

.planet__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  clip-path: inset(0 0 100% 0);
}
.planet__media img {
  width: 100%; height: 115%;
  object-fit: cover; display: block;
  will-change: transform;
}
.planet__ph {
  width: 100%; height: 115%;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed rgba(245,242,234,.25);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(125,216,255,.08), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(198,106,43,.1), transparent 60%),
    #0a0a0c;
}
.planet__ph span { font-size: .6rem; letter-spacing: .35em; text-transform: uppercase; opacity: .45; }

.planet__num {
  font-size: .62rem; letter-spacing: .45em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.6rem;
}
.planet__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  line-height: .98; margin-bottom: 2rem;
}
.planet__desc {
  font-size: .95rem; line-height: 2; max-width: 26rem;
  opacity: .75;
}
.planet--right .planet__desc { margin-left: auto; }
.planet__meta {
  display: flex; gap: 2.8rem; margin-top: 3rem; flex-wrap: wrap;
}
.planet__meta dt {
  font-size: .55rem; letter-spacing: .3em; text-transform: uppercase;
  opacity: .45; margin-bottom: .5rem;
}
.planet__meta dd { font-family: var(--serif); font-size: 1.15rem; }

/* ---------- Per-destination tint ---------- */
[data-theme="namibia"]    { --tint: #e0784a; }
[data-theme="iceland"]    { --tint: #7dd8ff; }
[data-theme="uyuni"]      { --tint: #a8dcec; }
[data-theme="china"]      { --tint: #9ecfb2; }
[data-theme="bhutan"]     { --tint: #e6c86e; }
[data-theme="socotra"]    { --tint: #e8a0b4; }
[data-theme="lencois"]    { --tint: #5cd6c5; }
[data-theme="cappadocia"] { --tint: #f0a868; }

.planet__num { color: var(--tint, var(--accent)); }

/* ---------- Ghost chapter numbers ---------- */
.planet-ghost {
  position: absolute; top: 6vh; right: -1vw; z-index: 0;
  pointer-events: none; user-select: none;
  font-family: var(--serif); font-weight: 400; line-height: .8;
  font-size: clamp(12rem, 30vw, 36rem);
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--tint, #f5f2ea) 32%, transparent);
}
.planet .planet__media, .planet .planet__content { position: relative; z-index: 1; }
.planet--right .planet-ghost { right: auto; left: -1vw; }

/* ---------- Edge-bleed chapter (full-height image) ---------- */
.planet--edge { padding: 0; max-width: none; gap: 0; }
.planet--edge .planet__media { aspect-ratio: auto; height: 100vh; }
.planet--edge .planet__content { padding: 14vh clamp(2.5rem, 6vw, 8rem); }
.planet--edge .planet-ghost { right: auto; left: 2vw; bottom: 4vh; top: auto; }

/* ---------- Full-bleed chapter ---------- */
.planet-full {
  position: relative; min-height: 130vh; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 0 2.5rem 12vh;
}
.planet-full__media { position: absolute; inset: 0; }
.planet-full__media img {
  width: 100%; height: 115%; object-fit: cover; display: block;
  will-change: transform;
}
.planet-full__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.4) 0%, rgba(5,5,5,.05) 42%, rgba(5,5,5,.78) 100%);
}
.planet-full__content { position: relative; z-index: 2; max-width: 46rem; }
.planet-full .planet__desc { opacity: .9; }
.planet-full .planet-ghost {
  top: 8vh; right: 2rem; z-index: 1;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--tint, #f5f2ea) 55%, transparent);
}

/* ---------- Zoom chapter (image opens on scroll) ---------- */
.planet-zoom { position: relative; height: 240vh; }
.planet-zoom__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.planet-zoom__media {
  position: absolute; inset: 0;
  clip-path: inset(32% 38%);
}
.planet-zoom__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.3);
  will-change: transform;
}
.planet-zoom__shade {
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5,5,5,.55) 65%, rgba(5,5,5,.92) 100%);
}
.planet-zoom__content {
  position: absolute; left: 2.5rem; bottom: 3rem; z-index: 2;
  max-width: 46rem; opacity: 0;
  text-shadow: 0 1px 24px rgba(5,5,5,.6);
}
.planet-zoom .planet-ghost { top: 4vh; left: 3vw; right: auto; }

/* ---------- Diptych chapter ---------- */
.planet-duo {
  position: relative; min-height: 155vh;
  padding: 18vh 2.5rem;
  max-width: 100rem; margin: 0 auto;
}
.planet-duo__content { position: relative; z-index: 2; max-width: 34rem; }
.planet-duo__img {
  position: absolute; z-index: 1; overflow: hidden;
  clip-path: inset(0 0 100% 0);
}
.planet-duo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.planet-duo__img--a { top: 8vh; right: 2.5rem; width: 38vw; aspect-ratio: 4 / 5; }
.planet-duo__img--b { bottom: 4vh; left: 14vw; width: 24vw; aspect-ratio: 4 / 5; }
.planet-duo .planet-ghost { top: auto; bottom: 10vh; right: 6vw; }

/* ---------- Interlude / Wow / Outro ---------- */
.interlude, .outro {
  position: relative; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.outro video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .55;
}
.interlude__media { position: absolute; inset: 0; overflow: hidden; }
.interlude__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.08); will-change: transform;
}
.interlude__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,.35) 0%, rgba(5,5,5,.15) 45%, rgba(5,5,5,.85) 100%);
}
.interlude__heading {
  position: absolute; z-index: 1; top: 16vh; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.interlude__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: .9; text-transform: uppercase; text-align: center;
  color: var(--tint, var(--ink));
  text-shadow: 0 4px 60px rgba(5,5,5,.5);
}
.outro { align-items: flex-end; padding-bottom: 6vh; }

/* ---------- Letter-by-letter reveal (interlude title) ---------- */
.split-letters .letter { display: inline-block; overflow: hidden; vertical-align: top; }
.split-letters .letter > span { display: inline-block; }
.outro .outro__text {
  font-size: clamp(1.4rem, 2.6vw, 2.6rem);
  max-width: none;
  white-space: nowrap;
}
.interlude .interlude__text {
  font-size: clamp(1rem, 1.9vw, 1.5rem);
  max-width: 30ch;
}
.interlude__text, .outro__text {
  position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(2rem, 5.5vw, 5rem);
  text-align: center; max-width: 20ch; line-height: 1.15;
  padding: 0 1.5rem;
  text-shadow: 0 2px 40px rgba(5,5,5,.8);
}

.wow {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20vh 1.5rem;
}
.wow__q {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 7.5rem);
  line-height: 1.05;
}
.wow__a {
  margin-top: 3rem;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: .25em; text-transform: uppercase;
}
.wow__a em { color: var(--sky); font-style: normal; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3rem; padding: 24vh 2.5rem;
  max-width: 80rem; margin: 0 auto;
  text-align: center;
}
.stat__num {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 7rem);
  display: block; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  display: block; margin-top: 1rem;
  font-size: .7rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--accent);
}
.stat__desc { display: block; margin-top: .8rem; font-size: .75rem; opacity: .55; letter-spacing: .1em; }

/* ---------- Footer ---------- */
.footer {
  padding: 20vh 2.5rem 3rem;
  text-align: center;
}
.footer__title {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(2.5rem, 8vw, 8rem);
  line-height: 1;
}
.footer__sub {
  margin-top: 1.5rem; font-size: .75rem; letter-spacing: .35em;
  text-transform: uppercase; opacity: .6;
}
.footer__bottom {
  margin-top: 10rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6;
}
.footer__bottom a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Split helpers ---------- */
.split-words .word { display: inline-block; overflow: hidden; vertical-align: top; }
.split-words .word > span { display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav { padding: 1.2rem 1.25rem; }
  .nav__coords { display: none; }
  .planet, .planet--right { grid-template-columns: 1fr; padding: 10vh 1.25rem; gap: 2.5rem; }
  .planet--right .planet__media { order: 0; }
  .planet--right .planet__content { text-align: left; }
  .planet--right .planet__meta { justify-content: flex-start; }
  .planet--right .planet__desc { margin-left: 0; }
  .stats { grid-template-columns: 1fr; padding: 14vh 1.25rem; }
  .index { padding: 14vh 1.25rem; }
  .index__preview { display: none; }
  .index__list a { grid-template-columns: 2.5rem 1fr; }
  .index__loc { grid-column: 2; }
  .globe-ui { left: 1.25rem; right: 1.25rem; bottom: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1.5rem; }
  .interlude .interlude__text, .outro .outro__text { white-space: normal; }
  .planet--edge { padding: 0; gap: 2.5rem; }
  .planet--edge .planet__media { height: 62vh; }
  .planet--edge .planet__content { padding: 0 1.25rem 10vh; }
  .planet-full { padding: 0 1.25rem 10vh; min-height: 110vh; }
  .planet-zoom { height: 200vh; }
  .planet-zoom__media { clip-path: inset(30% 16%); }
  .planet-zoom__content { left: 1.25rem; right: 1.25rem; bottom: 2.5rem; }
  .planet-duo { min-height: 0; padding: 10vh 1.25rem; }
  .planet-duo__content { margin-bottom: 3rem; }
  .planet-duo__img { position: static; }
  .planet-duo__img--a { width: 82%; }
  .planet-duo__img--b { width: 62%; margin: 1.5rem 0 0 auto; }
  .planet-ghost { font-size: clamp(8rem, 34vw, 14rem); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .hero__scroll-line, .globe-label::before { animation: none; }
}
