@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/sourcesans3-latin-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --midnight: #090D29;
  --indigo: #282452;
  --slate: #526A99;
  --cyan: #22B6D0;
  --mauve: #B77BB5;
  --white: #F2EFF6;
  --line: #8799C2;
  --accent: #8AC94D;
  --blue-text: #7FA1EE;
  --pad-x: clamp(20px, 7.7vw, 120px);
  --nav-h: 76px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --muted: #8799C2;
  --soft: #CFCDE0;
  --bg-a: #07092B;
  --bg-b: #090D29;
  --card: rgba(40,36,82,.38);
  --card-line: rgba(135,153,194,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: none; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, .h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--white); color: var(--midnight); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--white);
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(9,13,41,.9), rgba(9,13,41,.62) 60%, rgba(9,13,41,0));
  transition: opacity 150ms ease;
}
.nav__inner {
  position: relative; height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(24px, 4.6vw, 72px);
  padding: 0 var(--pad-x) 0 clamp(20px, 5.6vw, 88px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 30px; height: 26px; fill: currentColor; stroke: currentColor; }
.brand__mark rect { stroke: none; }
.brand__text { display: grid; line-height: 1.1; justify-items: start; }
.brand__desc { white-space: nowrap; }   /* letter-spacing fitted to the wordmark width in main.js (Adam TG 10835) */
.brand__word { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .005em; }
.brand__desc { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .78; margin-top: 2px; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); margin-left: auto; }
.nav__links a { font-size: 15px; font-weight: 400; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-cta {
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--white);
  background: rgba(9,13,41,.55);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.nav-cta:hover { background: var(--white); color: var(--midnight); }
.menu-btn { display: none; }

.nav--solid { background: rgba(242,239,246,.96); color: var(--midnight); box-shadow: 0 1px 0 rgba(9,13,41,.08); }
.nav--solid::before { opacity: 0; }
.nav--solid .nav-cta { background: var(--midnight); color: var(--white); border-color: var(--midnight); }
.nav--solid .nav-cta:hover { background: var(--indigo); }

.sheet {
  position: absolute; top: var(--nav-h); left: 12px; right: 12px;
  display: grid; padding: 8px; border-radius: 12px;
  background: var(--white); color: var(--midnight);
  box-shadow: 0 18px 40px rgba(9,13,41,.35);
}
.sheet a { padding: 13px 16px; text-decoration: none; font-size: 17px; font-weight: 400; border-radius: 8px; }
.sheet a:hover { background: rgba(9,13,41,.06); }
.sheet .sheet__cta { margin-top: 6px; text-align: center; font-weight: 600; background: var(--midnight); color: var(--white); border-radius: 999px; }
.sheet .sheet__cta:hover { background: var(--indigo); }
.sheet[hidden] { display: none; }

/* ---------- shared type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-text); line-height: 1.4; }
.h2 { font-size: clamp(36px, 3.5vw, 50px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.eyebrow + .h2 { margin-top: 18px; }
.intro { font-size: 19px; line-height: 1.6; color: var(--soft); max-width: 62ch; }
.h2 + .intro { margin-top: 22px; }
.demo-note { font-size: 13px; line-height: 1.5; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn--primary { background: var(--white); color: var(--midnight); border: 1px solid var(--white); }
.btn--primary:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { background: rgba(9,13,41,.45); color: var(--white); border: 1px solid rgba(242,239,246,.55); }
.btn--ghost:hover { border-color: var(--white); background: rgba(40,36,82,.7); }
.btn--lg { min-height: 54px; padding: 14px 32px; font-size: 17px; }

/* ---------- scenes ---------- */
.scene { position: relative; overflow: hidden; }
.layer { position: absolute; left: 0; right: 0; top: 0; height: 100%; will-change: transform; pointer-events: none; }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.anchor-target { position: absolute; top: 0; left: 0; }
section[id], footer [id] { scroll-margin-top: var(--nav-h); }

/* hero */
.hero { min-height: max(110vh, 680px); background: #3f4b93; display: flow-root; }
.scrim {
  position: absolute; inset: auto 0 0 0; height: 16%; z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,7,42,0), #07092B 85%);
}
.hero__copy {
  position: relative; z-index: 34;
  margin-left: var(--pad-x); padding: clamp(116px, 21vh, 260px) 0 16vh;
  max-width: min(58vw, 760px);
}
.panel { position: relative; isolation: isolate; padding: 24px; }
/* nebula blob behind the hero text: two soft shapes that drift + morph */
.panel::before, .panel::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  will-change: transform, border-radius;
}
.panel::before {
  inset: -22% -14%;
  background:
    radial-gradient(ellipse 62% 58% at 45% 50%, rgba(7,9,43,.92) 0%, rgba(9,13,41,.86) 52%, rgba(9,13,41,0) 100%),
    radial-gradient(ellipse 45% 40% at 72% 30%, rgba(140,98,232,.6), rgba(140,98,232,0) 72%),
    radial-gradient(ellipse 40% 45% at 22% 75%, rgba(72,120,220,.5), rgba(72,120,220,0) 72%);
  filter: blur(22px);
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  animation: nebula-a 14s ease-in-out infinite alternate;
}
.panel::after {
  inset: -10% -4%;
  background: radial-gradient(ellipse 55% 50% at 50% 52%, rgba(9,13,41,.7), rgba(9,13,41,0) 74%),
    radial-gradient(ellipse 30% 30% at 30% 25%, rgba(190,150,255,.4), rgba(190,150,255,0) 70%);
  filter: blur(14px);
  border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%;
  animation: nebula-b 11s ease-in-out infinite alternate;
}
@keyframes nebula-a {
  0%   { transform: translate(0,0) rotate(0deg) scale(1);
         border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; }
  50%  { transform: translate(4%,-5%) rotate(9deg) scale(1.07);
         border-radius: 60% 40% 45% 55% / 38% 58% 42% 62%; }
  100% { transform: translate(-4%,4%) rotate(-8deg) scale(.95);
         border-radius: 38% 62% 55% 45% / 60% 44% 56% 40%; }
}
@keyframes nebula-b {
  0%   { transform: translate(0,0) rotate(0deg);
         border-radius: 58% 42% 38% 62% / 55% 60% 40% 45%; }
  100% { transform: translate(-6%,4%) rotate(-12deg);
         border-radius: 44% 56% 62% 38% / 40% 52% 48% 60%; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .panel::before, .panel::after { animation: none; } }
.eyebrow--hero { color: #C9D3F2; }
.hero h1 { margin-top: 18px; font-size: clamp(52px, 5.2vw, 78px); line-height: 1.04; font-weight: 400; letter-spacing: -.015em; }
.hero__sub { margin-top: 22px; font-size: clamp(18px, 1.35vw, 20px); line-height: 1.55; color: #E4E1EE; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* difference */
.features {
  background: linear-gradient(to bottom, #07092B, var(--midnight) 30%);
}
.features__inner { position: relative; z-index: 34; padding: clamp(140px, 24vh, 240px) var(--pad-x) clamp(110px, 18vh, 190px); }
.features .h2 { max-width: 20ch; }
.features .intro { max-width: min(56ch, 60vw); font-size: 21px; }
.cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.6vw, 56px);
  max-width: min(68vw, 1120px);
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: 40px; border-top: 1px solid rgba(135,153,194,.18);
}
.icon { width: 40px; height: 44px; fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.col h3 { margin-top: 22px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.col p { margin-top: 12px; font-size: 18.5px; line-height: 1.6; color: var(--soft); }

/* moon */
.moon { height: 60vh; min-height: 360px; background: #12163f; }
.fade { position: absolute; left: 0; right: 0; pointer-events: none; }
.fade--bottom { bottom: 0; height: 14vh; z-index: 31; background: linear-gradient(to bottom, rgba(17,14,51,0), #110E33 92%); }
.fade--top { top: 0; height: 26vh; z-index: 5; background: linear-gradient(to bottom, var(--midnight), rgba(9,13,41,.6) 40%, rgba(9,13,41,0)); }

/* wealth */
.wealth { min-height: 105vh; background: #1d1a55; }
.fade--wealth { top: 0; height: 30vh; z-index: 31; background: linear-gradient(to bottom, #110E33, rgba(17,14,51,.55) 45%, rgba(17,14,51,0)); }
.fade--wealth-out {
  bottom: 0; height: 38vh; z-index: 3;
  background: linear-gradient(to bottom, rgba(7,9,43,0), rgba(7,9,43,.28) 30%, rgba(7,9,43,.68) 62%, rgba(7,9,43,.92) 84%, var(--bg-a));
}
.sky--tail { top: auto; height: 40%; z-index: 4; -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); }
.wealth__inner {
  position: relative; z-index: 34; min-height: 105vh; padding: 16vh var(--pad-x) 12vh;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 4vw;
}
.wealth__copy { flex: 0 1 auto; max-width: min(600px, 43vw); align-self: center; text-shadow: 0 1px 14px rgba(7,9,43,.55); }
.wealth__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(9,13,41,.55), rgba(9,13,41,.35) 38%, rgba(9,13,41,0) 58%);
}
.wealth .eyebrow { color: #C9D3F2; }
.wealth .body { margin-top: 20px; font-size: 18px; line-height: 1.6; color: #E2DFEC; max-width: 60ch; }
.wealth .h2 + .body { margin-top: 26px; }
.ticks { margin-top: 28px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.55; color: #E2DFEC; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 14px; height: 1px; background: var(--blue-text);
}
.ticks li::after {
  content: ""; position: absolute; left: 14px; top: calc(.62em - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--blue-text);
}

/* One character scale (--char = the spaceman's box at arrival). v09 is drawn so its astronaut helmet matches
   the arriving v11 helmet; the waiting alien stands on the same rock at ~0.88x the spaceman's height. */
.stage {
  --char: 400px;
  position: relative; z-index: 15; flex: none;
  width: calc(var(--char) * .813); aspect-ratio: 912 / 880;
  margin: calc(var(--char) * .37) 2vw 0 0;   /* room for the standing alien above the rock */
}
.stage__pair { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: var(--meeting, 0); }
.stage__alien {
  position: absolute; left: calc(var(--char) * .634); bottom: calc(var(--char) * .2666);
  height: var(--alien-h, calc(var(--char) * .871)); width: auto; opacity: calc(1 - var(--meeting, 0));
}

/* ---------- restrained depth in the reading sections (existing art: star field + the hero's far asteroids);
   JS moves the far layer 14px and the near layer 48px over a full pass of the section ---------- */
.depth { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.depth img { position: absolute; left: 0; right: 0; top: -40px; bottom: -40px; width: 100%; height: calc(100% + 80px); object-fit: cover; will-change: transform; }
.depth--far img { opacity: .5; }
.depth--near img {
  opacity: .32; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(to right, #000, transparent 22%, transparent 78%, #000);
          mask-image: linear-gradient(to right, #000, transparent 22%, transparent 78%, #000);
}

/* ---------- content sections ---------- */
.sec { position: relative; padding: clamp(88px, 11vw, 144px) 0; }
.sec--a { background: var(--bg-a); }
.wrap { position: relative; z-index: 34; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.wrap--narrow { max-width: 880px; }
.sec__head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 64px); }

/* faint star dust */
.dust::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .85;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(242,239,246,.55), transparent 60%),
    radial-gradient(1px 1px at 78% 9%, rgba(242,239,246,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 72%, rgba(201,211,242,.5), transparent 60%),
    radial-gradient(1px 1px at 31% 84%, rgba(242,239,246,.4), transparent 60%),
    radial-gradient(1px 1px at 91% 56%, rgba(242,239,246,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 46% 34%, rgba(183,123,181,.45), transparent 60%),
    radial-gradient(1px 1px at 5% 61%, rgba(242,239,246,.4), transparent 60%);
  background-size: 520px 420px;
}

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; padding: 30px 28px 32px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-line);
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(135,153,194,.45); background: rgba(40,36,82,.5); }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .card, .btn { transition: none; } .card:hover, .btn:hover { transform: none; } }
.card__title { font-size: 19px; line-height: 1.35; font-weight: 600; }
.card p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--soft); }
.grid--4 .card__title { min-height: 2.7em; }
.grid--4 .card__title::before {
  content: ""; display: block; width: 28px; height: 1px; margin-bottom: 22px; background: var(--blue-text);
}

/* contact band */
.contact { background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(40,36,82,.75), rgba(9,13,41,0) 70%), var(--bg-b); border-top: 1px solid rgba(135,153,194,.12); }
.contact__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .intro { margin-left: auto; margin-right: auto; }
.contact .btn { margin-top: 36px; }
.contact .demo-note { margin-top: 18px; max-width: 64ch; }

/* dialog */
.dialog {
  width: min(92vw, 480px); padding: 32px; border-radius: 16px;
  background: #11143a; color: var(--white); border: 1px solid rgba(135,153,194,.35);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.dialog::backdrop { background: rgba(4,5,22,.72); }
.dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.dialog--legal { width: min(92vw, 620px); }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dialog__x {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px 0 0; border-radius: 50%;
  background: transparent; color: var(--white); border: 1px solid rgba(242,239,246,.35); cursor: pointer;
}
.dialog__x:hover { background: rgba(242,239,246,.08); }
.dialog__x svg { width: 20px; height: 20px; }
html.is-locked { overflow: hidden; }
.dialog h2 { font-size: 28px; line-height: 1.2; text-wrap: balance; }
.dialog p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--soft); }
.dialog .btn { margin-top: 26px; }

/* footer */
.footer { background: #06071F; border-top: 1px solid rgba(135,153,194,.14); padding: 80px 0 96px; color: var(--soft); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(135,153,194,.16); }
.footer__name { font-family: var(--serif); font-optical-sizing: auto; font-weight: 500; font-size: 26px; color: var(--white); }
.footer__brand p { margin-top: 8px; font-size: 16px; line-height: 1.5; max-width: 24ch; }
.footer__h { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.footer__col ul { margin-top: 16px; display: grid; gap: 10px; }
.footer__col a { font-size: 16px; text-decoration: none; color: var(--soft); }
.footer__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__col address { margin-top: 10px; font-style: normal; font-size: 16px; line-height: 1.5; }
.footer__muted { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.footer__col address + .footer__muted { margin-top: 10px; }
.footer__link {
  font: inherit; font-size: 16px; color: var(--soft); background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.footer__link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__copy { padding-top: 28px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- traveler ---------- */
/* z 33: in front of every scene layer (moon rim 30, fades 31), behind every text container (z 34) */
.traveler {
  position: fixed; left: 0; top: 0; z-index: 33;
  width: var(--s, 300px); height: var(--s, 300px);
  pointer-events: none; will-change: transform;
  transform: translate3d(-999px, -999px, 0);
}
.traveler img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity 120ms linear;
}
.traveler img.on { opacity: 1; }

/* the alien waits in the wealth scene: scroll parallax (JS, `translate`) + an idle bob */
.stage__alien { translate: calc(-50% + var(--ax, 0px)) var(--ay, 0px); scale: -1 1; /* mirrored: he looks toward the arriving spaceman (Adam TG 10898) */ animation: alien-bob 3.6s ease-in-out infinite alternate; }
@keyframes alien-bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .stage__alien { animation: none; } }

/* ---------- twinkling star field + shooting star (port of IronWorks night-sky) ---------- */
.sky { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.sky__star { position: absolute; border-radius: 50%; background: #cfd0e6; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(.45); } }
.sky__shot {
  position: absolute; width: 150px; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, #fff, rgba(190,200,255,.55) 30%, transparent);
  box-shadow: 0 0 10px 2px rgba(200,210,255,.35);
  transform: rotate(-20deg); transform-origin: left center; opacity: 0;
  animation: shoot 1.3s ease-out forwards;
}
@keyframes shoot {
  0% { opacity: 0; transform: rotate(-20deg) translateX(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-20deg) translateX(-420px); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .sky__star { animation: none; } .sky__shot { display: none; } }

/* ---------- pop-in reveals (port of IronWorks: IO threshold .1, 1000ms ease-out, 40px, 100ms stagger) ---------- */
@media all {
  .js [data-reveal] {
    transition: opacity 1000ms cubic-bezier(0,0,.2,1), transform 1000ms cubic-bezier(0,0,.2,1);
  }
  .js [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 40px, 0); }
  .js [data-reveal="left"]:not(.is-in) { transform: translate3d(-40px, 0, 0); }
  .js [data-reveal="right"]:not(.is-in) { transform: translate3d(40px, 0, 0); }
}

/* Reveals still acknowledge entry when ambient motion is disabled. */
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) {
  .js [data-reveal] { transition: opacity 150ms ease-out; transform: none; }
  .js [data-reveal]:not(.is-in) { opacity: 0; }
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; z-index: 90;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(9,13,41,.82); color: var(--white); border: 1px solid rgba(242,239,246,.55);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms, background-color 150ms ease;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 200ms ease, visibility 0s, background-color 150ms ease; }
.to-top:hover { background: var(--indigo); }
.to-top:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 50%; }
.to-top svg { width: 22px; height: 22px; }
/* next-section chevron (Adam TG 10834): same circle */
/* the down chevron is a classic scroll cue: bottom-centre, hero only (Adam: "Center it"), gentle 2s bob.
   `left` + the individual `translate` property keep it clear of .to-top's transform-based fade. */
.to-next { right: auto; left: 50%; margin-left: -60px; width: 120px; height: auto; padding: 8px 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; box-shadow: none; color: rgba(255,255,255,.85); }   /* IronWorks cue: SCROLL + chevron, no circle (Adam TG 10919) */
.to-next:hover { background: none; color: #fff; }
.to-next:focus-visible { border-radius: 8px; }
.to-next svg { width: 28px; height: 28px; }
.to-next__label { font-size: .85rem; letter-spacing: .4em; margin-right: -.4em; text-transform: uppercase; opacity: .75; }
.to-next.is-on { animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) and (min-width: 99999px) { .to-top, .to-top.is-on { transition: none; transform: none; } }

@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn {
    display: inline-grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border-radius: 10px;
    background: transparent; border: 1px solid currentColor; color: inherit; cursor: pointer;
  }
  .menu-btn span { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; }
  .sheet { left: auto; width: min(360px, calc(100vw - 24px)); }
  .nav__inner { gap: 16px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* tablets keep three columns but the traveler's floor size (240px) reaches the third one: back the copy like phones do */
@media (min-width: 768px) and (max-width: 1180px) {
  .features__head, .col { background: rgba(7,9,43,.72); border-radius: 18px; box-shadow: 0 0 28px 20px rgba(7,9,43,.72); }
}

/* tablet portrait: one wide reading column (min(640px, 80vw)); the landing art sits below the copy, centred */
@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
  .features .h2 { max-width: min(640px, 80vw); }
  .features .intro { max-width: min(640px, 80vw); }
  .cols { grid-template-columns: 1fr; max-width: min(640px, 80vw); gap: 40px; }
  .wealth__inner { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 0; padding: 12vh var(--pad-x) 8vh; gap: 0; }
  .wealth__copy { max-width: min(640px, 80vw); align-self: flex-start; background: rgba(7,9,43,.72); border-radius: 18px; box-shadow: 0 0 28px 20px rgba(7,9,43,.72); }
  .stage { align-self: center; margin: calc(var(--char) * .38 + 24px) 0 0; left: calc(var(--char) * -.031); }
}

@media (max-width: 900px) {
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { font-size: 17px; }
  .nav-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .nav__inner { padding: 0 16px; }
  .sheet { left: 12px; right: 12px; width: auto; }
  .brand__word { font-size: 19px; }
  .brand__desc { font-size: 10.5px; }

  .h2 { font-size: clamp(31px, 8.6vw, 36px); }
  .intro { font-size: 18px; }

  .hero { min-height: max(100svh, 680px); }
  /* the open rock area below the CTAs is the traveler's big opening moment */
  .hero__copy { margin: 0 12px; padding: calc(var(--nav-h) + 3svh) 0 34svh; max-width: none; }
  .panel { padding: 20px; }
  .hero h1 { font-size: clamp(38px, 10.6vw, 44px); margin-top: 14px; }
  .hero__sub { font-size: 17px; margin-top: 16px; }
  .hero__ctas { margin-top: 24px; }
  .hero__ctas .btn { padding: 12px 20px; font-size: 15px; }
  .scrim { height: 10%; }

  /* phones: text keeps a slightly narrower column; the traveler (clamp(150px, 42vw, 220px)) may pass behind
     its right edge, so every text block he can cross has a feathered dark backing (contrast measured over him) */
  :root { --corridor: 16vw; }
  .features__inner { padding: 36px calc(var(--corridor) + 4px) 64px 20px; }
  .features__head, .col, .wealth__copy {
    background: rgba(7,9,43,.72); border-radius: 18px;
    box-shadow: 0 0 28px 20px rgba(7,9,43,.72);
  }
  .features .intro { max-width: none; font-size: 18px; }
  .cols { grid-template-columns: 1fr; max-width: none; gap: 30px; margin-top: 30px; padding-top: 0; border-top: 0; }
  .col h3 { margin-top: 12px; font-size: 19px; }
  .col p { font-size: 17px; }

  .moon { height: 42svh; min-height: 300px; }

  .wealth { min-height: 0; }
  .wealth__inner { min-height: 0; padding: 9svh calc(var(--corridor) + 4px) 6svh 20px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
  .wealth__inner::before { background: none; }
  .wealth__copy { max-width: none; align-self: stretch; }
  /* stage + standing alien centred on the viewport (the copy column is offset left by the corridor) */
  .stage { align-self: flex-start; margin: calc(var(--char) * .36 + 28px) 0 0 calc((100vw - var(--char) * .875) / 2 - 20px); }

  .sec { padding: 80px 0; }
  .grid--4, .footer__top { grid-template-columns: 1fr; }
  .grid--4 .card__title { min-height: 0; }
  .card { padding: 26px 22px 28px; }
  .footer { padding-top: 64px; }
  .footer__top { gap: 32px; }
}

/* large screens: content lives in a centred container up to 1320px, type scales up, the landing sits beside the copy,
   and the dark intervals between scenes tighten */
@media (min-width: 1600px) {
  :root { --pad-x: max(120px, calc((100vw - 1320px) / 2)); }
  .wrap { max-width: 1320px; }
  .h2 { font-size: clamp(50px, 2.9vw, 64px); }
  .intro { font-size: 21px; }
  .hero h1 { font-size: clamp(78px, 4.2vw, 100px); }
  .hero__sub { font-size: 22px; }
  .hero__copy { max-width: min(52vw, 860px); }
  .features__inner { padding-top: clamp(120px, 16vh, 200px); padding-bottom: clamp(80px, 10vh, 140px); }
  .features .intro { font-size: 23px; }
  .cols { max-width: 100%; }
  .col h3 { font-size: 24px; }
  .col p { font-size: 20px; }
  .wealth__inner { justify-content: flex-start; gap: clamp(64px, 6vw, 160px); padding-top: 12vh; padding-bottom: 8vh; }
  .wealth__copy { max-width: 680px; }
  .wealth .body { font-size: 20px; }
  .ticks li { font-size: 19px; }
  .stage { margin-right: 0; }
  .sec { padding: clamp(96px, 9vh, 128px) 0; }
  .card__title { font-size: 21px; }
  .card p { font-size: 18.5px; }
}
