:root {
  --color-void: #000000;
  --color-bone-white: #ffffff;
  --color-ash-gray: #9a9a9a;
  --color-silver-mist: #bdbdbd;
  --color-electric-iris: #8052ff;
  --color-saffron-spark: #ffb829;
  --color-deep-verdant: #15846e;

  --font-sans: 'PP Neue Montreal', 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --page-max-width: 1280px;
  --gutter: clamp(16px, 4vw, 36px);
  --section-gap: clamp(60px, 10vw, 120px);
  --radius: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-void);
  color: var(--color-bone-white);
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: 18px;
  line-height: 1.5;
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--color-saffron-spark); }

::selection { background: var(--color-electric-iris); color: #fff; }

#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.display, .heading-lg, .heading, .heading-2xs { font-weight: 400; }

.display {
  font-size: clamp(52px, 9vw, 113px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.heading-lg {
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.heading {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.heading-2xs {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.48px;
}
.body { font-size: 18px; font-weight: 200; max-width: 520px; }
.caption { font-size: 12px; }
.muted { color: var(--color-silver-mist); }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--color-saffron-spark);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  height: 45px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--color-electric-iris);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.98); }
.btn:focus-visible, .ghost:focus-visible, .nav-links a:focus-visible, .logo:focus-visible {
  outline: 2px solid var(--color-saffron-spark);
  outline-offset: 3px;
}

.ghost {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-ash-gray);
  transition: color .2s;
}
.ghost:hover { color: #fff; }
.ghost.amber { color: var(--color-saffron-spark); display: inline-block; margin-top: 30px; }
.ghost.amber:hover { color: #fff; }

.actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  gap: 36px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
.logo svg { height: 34px; width: auto; overflow: visible; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--color-ash-gray);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* ---------- Sections ---------- */
section {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 0;
  min-height: calc(100vh - 93px);
  padding-top: 30px;
}
.hero .display { margin-bottom: 36px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 118%; margin-right: -18%; }
#constellation { width: 100%; height: 100%; max-width: none; margin: 0; aspect-ratio: auto; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}
.split.reverse > :first-child { order: 2; }
.split-body { padding-top: 12px; }
.split-head { position: sticky; top: 36px; }
.scene { display: block; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin-top: 24px; }

.service-list { display: grid; gap: 36px; margin-top: 12px; }
.service-list h3 { margin-bottom: 6px; }

.steps { display: grid; gap: 36px; margin-top: 12px; }
.steps li { display: grid; grid-template-columns: 60px 1fr; gap: 12px; }
.step-n {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--color-electric-iris);
  padding-top: 6px;
}
.steps h3 { margin-bottom: 6px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 30px; }
.tags li {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-electric-iris);
}

.manifesto { max-width: 1080px; }
.statement { color: var(--color-bone-white); }

.contact .split-body { align-self: center; }
.contact .caption { margin-top: 18px; }

.footer {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 60px var(--gutter) 36px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--color-ash-gray);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Headlines rise word by word */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.2, .75, .2, 1);
}
.words-in .w > span { transform: none; }

/* Manifesto lights up word by word with scroll */
.mw { color: rgba(255, 255, 255, 0.16); transition: color .35s ease; }
em .mw { color: rgba(255, 184, 41, 0.2); }
.mw.lit { color: var(--color-bone-white); }
em .mw.lit { color: var(--color-saffron-spark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 0; }
  .hero-visual { order: -1; width: 100%; max-width: 520px; margin: 0 auto; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .display { font-size: clamp(40px, 12vw, 64px); }
  .split.reverse > :first-child { order: 0; }
  .split-head { position: static; }
  .scene { max-width: 420px; margin: 24px auto 0; }
}

@media (max-width: 480px) {
  .nav { gap: 12px; }
  .nav .btn { height: 40px; padding: 0 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .w > span { transform: none; transition: none; }
  .mw, em .mw { color: inherit; }
}
