/* ==========================================================================
   Majorney — Constellation
   Dark-void system: pure black canvas, oversized weight-400 display type,
   ultra-light body, one saturated accent reserved for the single pill CTA.
   Accent is Majorney gold rather than the reference's violet; amber stays
   as the label/emphasis spark.
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Serif";
  src: url("assets/fonts/IBMPlexSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --void: #000000;
  --bone: #ffffff;
  --ash: #9a9a9a;
  --silver: #bdbdbd;
  --gold: #d4af6a;          /* accent — the single saturated action color */
  --gold-bright: #f0cf8e;
  --bronze: #8a5a2e;
  --amber: #ffb829;         /* Saffron Spark — labels, emphasis */
  --ice: #9fc7ff;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand: "IBM Plex Serif", Georgia, serif;

  --w-extralight: 200;
  --w-regular: 400;
  --w-semibold: 600;

  /* Spacing (6px base) */
  --s-6: 6px;
  --s-12: 12px;
  --s-18: 18px;
  --s-24: 24px;
  --s-30: 30px;
  --s-36: 36px;
  --s-60: 60px;
  --s-96: 96px;
  --s-120: 120px;

  --page-max: 1280px;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-sans);
  font-weight: var(--w-regular);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: var(--w-regular);   /* never bold — hierarchy comes from scale */
  letter-spacing: -0.04em;
  line-height: 1.1;
}

p { margin: 0; }

/* Shared -------------------------------------------------------------------- */

.label {
  display: block;
  font-size: 14px;
  font-weight: var(--w-semibold);
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--amber);
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbe6bb 0%, var(--gold-bright) 32%, var(--gold) 62%, var(--bronze) 100%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #14100a;
  font-size: 14px;
  font-weight: var(--w-semibold);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(212, 175, 106, 0);
  transition: background-position 0.5s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  /* slide the gradient rather than swap the colour, so the sheen travels */
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212, 175, 106, 0.32);
}

/* Nav ----------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--s-36);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s-24) var(--s-36);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Once the page scrolls under it the nav needs a ground of its own, or the
   content slides straight through the logo and links. The bar itself is
   max-width capped and centred, so the ground is a full-viewport-width
   pseudo-element rather than a background on the bar. */
.nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  opacity: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.nav.solid::before { opacity: 1; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-brand span {
  font-family: var(--font-brand);
  font-size: 18px;
  color: var(--bone);
  letter-spacing: 0;
}

.nav-links {
  display: none;
  gap: var(--s-30);
}

.nav-links a {
  font-size: 14px;
  font-weight: var(--w-semibold);
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--bone); }

.nav-cta { display: none; }

.nav-burger {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--bone);
}

.nav-burger svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-burger .icon-close { opacity: 0; transform: rotate(-90deg) scale(0); }
.nav-burger.is-open .icon-menu { opacity: 0; transform: rotate(90deg) scale(0); }
.nav-burger.is-open .icon-close { opacity: 1; transform: rotate(0) scale(1); }

@media (min-width: 880px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-burger { display: none; }
}

/* Drawer -------------------------------------------------------------------- */

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 58;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 86vw;
  height: 100%;
  padding: 110px var(--s-30) var(--s-36);
  background: #050505;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.is-open { transform: translateX(0); }

.drawer-links { display: flex; flex-direction: column; gap: var(--s-6); }

.drawer-links a {
  padding: var(--s-12) 0;
  font-size: 24px;
  letter-spacing: -0.48px;
  color: var(--ash);
  opacity: 0;
  transform: translateX(24px);
  transition: color 0.2s ease, opacity 0.4s ease, transform 0.4s ease;
}

.drawer.is-open .drawer-links a { opacity: 1; transform: translateX(0); }
.drawer.is-open .drawer-links a[data-i="0"] { transition-delay: 60ms; }
.drawer.is-open .drawer-links a[data-i="1"] { transition-delay: 120ms; }
.drawer.is-open .drawer-links a[data-i="2"] { transition-delay: 180ms; }

.drawer-links a:hover { color: var(--bone); }

.drawer-cta {
  margin-top: auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.drawer.is-open .drawer-cta { opacity: 1; transform: translateY(0); }

/* Hero ---------------------------------------------------------------------- */

/* The constellation is fixed behind the entire page, so every section below
   has to be transparent and sit above it. */
#constellation {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  transition: opacity 1.4s ease;
}

#constellation.ready { opacity: 1; }

.hero,
.split,
.phases,
.connect,
.closing,
.footer {
  position: relative;
  z-index: 1;
  background: transparent;
}

.hero {
  display: flex;
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 150px var(--s-36) var(--s-96);
  min-height: 100svh;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

/* Copy sits directly over the densest part of the field, so it needs help */
.hero-copy h1,
.hero-copy p,
.hero-copy .label,
.split-head h2,
.split-body p,
.phases h3,
.phases p,
.closing h2,
.closing p {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.92), 0 0 46px rgba(0, 0, 0, 0.7);
}

.hero-copy .label { margin-bottom: var(--s-24); }

.hero-copy h1 {
  font-size: clamp(52px, 8.4vw, 113px);
  letter-spacing: -0.04em;
  margin-bottom: var(--s-30);
}

.hero-copy p {
  max-width: 480px;
  font-size: 18px;
  font-weight: var(--w-extralight);
  line-height: 1.5;
  color: var(--silver);
  margin-bottom: var(--s-36);
}

@media (min-width: 980px) {
  .hero {
    padding-top: 120px;
  }
}

/* Split section ------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-36);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s-120) var(--s-36);
}

.split-head .label { margin-bottom: var(--s-24); }

.split-head h2 {
  font-size: clamp(34px, 5vw, 78px);
  letter-spacing: -0.04em;
}

.split-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
  max-width: 520px;
}

.split-body p {
  font-size: 18px;
  font-weight: var(--w-extralight);
  line-height: 1.5;
  color: var(--silver);
}

@media (min-width: 980px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    gap: var(--s-96);
    align-items: start;
  }
}

/* Phases -------------------------------------------------------------------- */

.phases {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s-60) var(--s-36) var(--s-120);
}

.phases > .label { margin-bottom: var(--s-60); }

.phase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-60);
}

.phase-list li {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.phase-num {
  font-size: 14px;
  font-weight: var(--w-semibold);
  letter-spacing: 0.35px;
  color: var(--gold);
}

.phase-list h3 {
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.04em;
}

.phase-list p {
  font-size: 18px;
  font-weight: var(--w-extralight);
  line-height: 1.5;
  color: var(--ash);
  max-width: 340px;
}

@media (min-width: 880px) {
  .phase-list { grid-template-columns: repeat(3, 1fr); gap: var(--s-36); }
}

/* Connect ------------------------------------------------------------------- */

.connect {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--s-60) var(--s-36) var(--s-120);
  text-align: center;
}

.connect .label { margin-bottom: var(--s-30); }

.social-row {
  display: flex;
  justify-content: center;
  gap: var(--s-24);
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ash);
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-row svg { width: 20px; height: 20px; }

.social-row a:hover { color: var(--gold-bright); transform: translateY(-3px); }

/* Closing ------------------------------------------------------------------- */

.closing {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--s-60) var(--s-36) var(--s-120);
  text-align: center;
}

.closing h2 {
  font-size: clamp(34px, 5vw, 78px);
  letter-spacing: -0.04em;
  margin-bottom: var(--s-30);
}

.closing p {
  max-width: 520px;
  margin: 0 auto var(--s-36);
  font-size: 18px;
  font-weight: var(--w-extralight);
  line-height: 1.5;
  color: var(--silver);
}

/* Footer -------------------------------------------------------------------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-18);
  padding: var(--s-60) var(--s-36) var(--s-60);
  text-align: center;
}

.footer p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ash);
}
