/* ============================================================
   NorthStar Digital — Celestial Navigation / Luxury Observatory
   Canvas: #04060F · Accent: champagne gold #E8C87E (CTA + star)
   Nebula teal/rose: decorative atmosphere ONLY
   ============================================================ */

:root {
  --bg: #04060f;
  --bg-raise: #0a0e1d;
  --ink: #e9ecf5;
  --ink-dim: #9aa3b8;
  --ink-faint: #5b6478;
  --gold: #e8c87e;
  --gold-bright: #f5dfa8;
  --line: rgba(233, 236, 245, 0.08);
  --line-strong: rgba(233, 236, 245, 0.16);

  --font-display: "Space Grotesk", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Inter", sans-serif;

  --duration-fast: 120ms;
  --duration-default: 200ms;
  --duration-slow: 320ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);

  --pad-x: clamp(1.25rem, 6vw, 7rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 450;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232, 200, 126, 0.28); color: #fff; }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }

h2 {
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
h2 em { font-style: italic; font-weight: 300; color: var(--gold); }

.gold { color: var(--gold); font-style: normal; }
.gold-serif {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

/* ============ COSMOS BACKGROUND ============ */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, #101b3d 0%, transparent 60%),
    radial-gradient(ellipse 90% 60% at 85% 110%, rgba(46, 20, 56, 0.85) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 8% 55%, rgba(10, 45, 58, 0.8) 0%, transparent 65%),
    var(--bg);
}

#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  mix-blend-mode: screen;
  will-change: transform;
}
.nebula--teal {
  width: 60vw; height: 60vw;
  top: -18vw; right: -15vw;
  background: radial-gradient(circle, rgba(22, 165, 175, 0.55) 0%, rgba(16, 95, 130, 0.32) 45%, transparent 70%);
  animation: drift-a 38s var(--ease-in-out) infinite alternate;
}
.nebula--rose {
  width: 55vw; height: 55vw;
  bottom: -20vw; left: -14vw;
  background: radial-gradient(circle, rgba(196, 62, 129, 0.48) 0%, rgba(112, 38, 96, 0.28) 45%, transparent 70%);
  animation: drift-b 46s var(--ease-in-out) infinite alternate;
}
.nebula--blue {
  width: 46vw; height: 46vw;
  top: 32%; left: 28%;
  background: radial-gradient(circle, rgba(56, 108, 220, 0.4) 0%, rgba(30, 60, 140, 0.2) 50%, transparent 68%);
  animation: drift-a 52s var(--ease-in-out) infinite alternate-reverse;
}
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-6vw, 5vh, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(7vw, -6vh, 0) scale(0.95); } }

/* ============ CURSOR GLOW ============ */
.cursor-glow {
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(232, 200, 126, 0.05) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  left: -999px; top: -999px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem var(--pad-x);
  transition: background-color var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) var(--ease-out),
              padding var(--duration-slow) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 6, 15, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.nav__brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logomark {
  color: var(--gold);
  flex-shrink: 0;
  animation: star-pulse 4s var(--ease-in-out) infinite;
}
.nav__wordmark {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.nav__wordmark > span {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-transform: uppercase;
}
.nav__wordmark em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.56rem;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
}
@keyframes star-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.75; transform: scale(0.92); } }

.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  color: var(--ink-dim); text-decoration: none;
  font-size: 0.9rem; letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-default) var(--ease-emphasized);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--gold); }
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links-cta { display: none; }

/* hamburger — hidden on desktop, replaces links + CTA on mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 102;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 320ms var(--ease-emphasized), opacity 200ms var(--ease-out);
}
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border-radius: 3rem;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-default) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  will-change: transform;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, #caa45c);
  color: #191100;
  box-shadow: 0 0 0 rgba(232, 200, 126, 0);
}
.btn--gold:hover { box-shadow: 0 8px 40px rgba(232, 200, 126, 0.35); }
.btn--gold:active { transform: scale(0.98); }
.btn__arrow { transition: transform var(--duration-fast) var(--ease-out); }
.btn--gold:hover .btn__arrow { transform: translateX(4px); }
.btn--line, .btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(233, 236, 245, 0.02);
}
.btn--line:hover, .btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.nav__cta { padding: 0.6rem 1.3rem; font-size: 0.85rem; }

/* ============ PLANET JOURNEY ============ */
.journey { padding: 0; }
.journey__space { height: 460vh; position: relative; }
.journey__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
#planet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.j-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  will-change: opacity, transform;
}
.j-stage--hero {
  align-items: center;
  text-align: center;
  padding: clamp(6rem, 14vh, 9rem) var(--pad-x) 0;
}
.j-stage--split {
  justify-content: center;
  padding: 0 var(--pad-x);
  opacity: 0;
  pointer-events: none;
}
.j-split__text { max-width: 34rem; }
.j-stage--surface {
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding: 0 var(--pad-x) clamp(4rem, 10vh, 7rem);
  opacity: 0;
  pointer-events: none;
}
.j-surface__text { max-width: 34rem; }
.j-surface__text p {
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  text-shadow: 0 2px 24px rgba(2, 4, 12, 0.8);
  text-wrap: pretty;
}

.j-kicker {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.j-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.j-rule {
  display: block;
  width: 5.5rem; height: 2px;
  background: var(--gold);
  margin: 0 auto 1.8rem;
}
.j-rule--left { margin-left: 0; }
.j-rule--right { margin-right: 0; margin-left: auto; margin-bottom: 1.4rem; }
.j-sub {
  max-width: 38rem;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 2.4rem;
  text-wrap: pretty;
}
.j-actions { display: flex; align-items: center; gap: 1rem; }
.j-play {
  display: grid;
  place-items: center;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, #caa45c);
  color: #191100;
  box-shadow: 0 0 34px rgba(232, 200, 126, 0.35);
  transition: box-shadow var(--duration-default) var(--ease-out);
  will-change: transform;
}
.j-play:hover { box-shadow: 0 0 54px rgba(232, 200, 126, 0.55); }
.j-play svg { margin-left: 2px; }

.j-neighbor {
  position: absolute;
  top: 58%;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  will-change: opacity;
}
.j-neighbor--left { left: 0; transform: translateX(-38%); }
.j-neighbor--right { right: 0; transform: translateX(38%); }
.j-neighbor__label {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
}
.j-orb {
  width: clamp(4.5rem, 9vw, 8rem);
  height: clamp(4.5rem, 9vw, 8rem);
  border-radius: 50%;
  flex-shrink: 0;
}
.j-orb--teal {
  background: radial-gradient(circle at 34% 30%, #7fd6c9 0%, #2a7f76 34%, #123c3e 68%, #060f14 100%);
  box-shadow: 0 0 44px rgba(64, 190, 175, 0.3);
}
.j-orb--rust {
  background: radial-gradient(circle at 34% 30%, #f0a06a 0%, #b35a33 36%, #57241a 70%, #140705 100%);
  box-shadow: 0 0 44px rgba(220, 120, 70, 0.3);
}

.j-scrollcue {
  position: absolute;
  left: 50%; bottom: 2.2rem;
  transform: translateX(-50%);
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(6, 9, 20, 0.6);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.j-scrollcue:hover { border-color: var(--gold); color: var(--gold); }
.j-scrollcue svg { animation: cue-bob 2s var(--ease-in-out) infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.statsband {
  /* emerge from the event horizon: the black lingers, then the
     starfield dissolves back in over ~a viewport of scroll */
  padding-top: clamp(18rem, 55vh, 32rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    rgba(4, 6, 15, 0.96) 22%,
    rgba(4, 6, 15, 0.75) 48%,
    rgba(4, 6, 15, 0.35) 74%,
    rgba(4, 6, 15, 0) 100%
  );
}
.statsband .hero__meta { border-top: 0; padding-top: 0; }
.statsband .reveal { transition-duration: 1100ms; }

/* Journey static fallback (reduced motion) */
.journey--static .journey__space { height: auto; }
.journey--static .journey__sticky { position: relative; height: auto; min-height: 100svh; overflow: visible; }
.journey--static #planet, .journey--static .j-neighbor, .journey--static .j-scrollcue { display: none; }
.journey--static .j-stage { position: relative; inset: auto; opacity: 1 !important; pointer-events: auto; padding-top: 4rem; padding-bottom: 4rem; }
.journey--static .j-stage--hero { padding-top: 8rem; }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--pad-x) 4rem;
  position: relative;
}
.hero__inner { max-width: 62rem; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232, 200, 126, 0.35);
  background: rgba(232, 200, 126, 0.06);
  border-radius: 3rem;
  padding: 0.5rem 1.1rem;
  margin-bottom: 1.6rem;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(232, 200, 126, 0.9);
  animation: star-pulse 2.4s var(--ease-in-out) infinite;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 2rem;
}
.tick { width: 2.5rem; height: 1px; background: var(--gold); display: inline-block; }

.hero__title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 2.2rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span {
  display: block;
  transform: translateY(110%);
  animation: line-up 900ms var(--ease-emphasized) forwards;
}
.hero__title .line:nth-child(2) span { animation-delay: 120ms; }
@keyframes line-up { to { transform: translateY(0); } }

.hero__sub {
  max-width: 34rem;
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  margin-bottom: 2.8rem;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4.5rem; }

.hero__meta {
  display: flex; gap: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  flex-wrap: wrap;
}
.hero__meta div { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__meta strong {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 500;
  color: var(--gold);
}
.hero__meta span { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

.hero__scroll {
  position: absolute;
  bottom: 2rem; right: var(--pad-x);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
}
.hero__scroll span {
  width: 1px; height: 3.2rem;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scroll-hint 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-hint { 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; } }

/* ============ MARQUEE BAND ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 29, 0.45);
  backdrop-filter: blur(4px);
  padding: 1.1rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-right: 0.5rem;
}
.marquee__track i {
  font-style: normal;
  color: var(--gold);
  margin: 0 1.4rem;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============ PILLS ============ */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 var(--pad-x) 1.6rem calc(6rem + 1.5rem);
}
.pill {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232, 200, 126, 0.28);
  background: rgba(232, 200, 126, 0.05);
  border-radius: 3rem;
  padding: 0.35rem 0.9rem;
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.pill:hover { background: rgba(232, 200, 126, 0.12); border-color: rgba(232, 200, 126, 0.5); }

/* ============ CTA BANNER ============ */
.banner { padding-top: 0; padding-bottom: 0; }
.banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  border: 1px solid rgba(232, 200, 126, 0.25);
  border-radius: 1.5rem;
  padding: clamp(2.2rem, 5vw, 3.8rem) clamp(2rem, 5vw, 4.5rem);
  background:
    radial-gradient(ellipse 90% 160% at 12% -30%, rgba(232, 200, 126, 0.12) 0%, transparent 55%),
    rgba(10, 14, 29, 0.55);
  backdrop-filter: blur(6px);
}
.banner__kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.banner__title { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.02rem; }

/* ============ SECTIONS SHARED ============ */
section { padding: clamp(5rem, 11vh, 9rem) var(--pad-x); }
.section-head { margin-bottom: clamp(2.5rem, 6vh, 4.5rem); max-width: 46rem; }
.kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.section-sub { color: var(--ink-dim); margin-top: 1.2rem; max-width: 36rem; text-wrap: pretty; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms var(--ease-emphasized), transform 700ms var(--ease-emphasized);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============ SERVICE PLANETS (floating worlds) ============ */
.system__wrap { max-width: 80rem; }
.system__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  min-height: 27rem;
}

/* ---- planet button — positioned by JS left/top %, CSS-transitioned ---- */
.s-planet {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transition:
    left 900ms var(--ease-emphasized),
    top  900ms var(--ease-emphasized);
}
.s-planet:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; border-radius: 0.5rem; }

/* gentle vertical drift — lives on an inner wrapper so it never fights the position transition */
.s-planet__float {
  position: relative;
  animation: planet-float var(--float-t, 7s) ease-in-out var(--float-d, 0s) infinite;
}
@keyframes planet-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

.s-planet__orb {
  display: block;
  position: relative;
  border-radius: 50%;
  transition:
    width  900ms var(--ease-emphasized),
    height 900ms var(--ease-emphasized),
    box-shadow var(--duration-default) var(--ease-out);
}
/* shared sphere lighting: sun highlight + dark limb */
.s-planet__orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.26) 0%, transparent 42%),
    radial-gradient(circle at 66% 72%, transparent 34%, rgba(3, 5, 14, 0.5) 72%, rgba(1, 2, 8, 0.88) 100%);
  pointer-events: none;
  z-index: 2;
}
.s-planet:hover .s-planet__orb {
  box-shadow: 0 0 0 2px rgba(232, 200, 126, 0.55), 0 0 44px rgba(232, 200, 126, 0.3);
}

/* "Click me to learn more" — printed on the planet face */
.s-planet__hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  background: radial-gradient(circle at 50% 50%, rgba(4, 6, 15, 0.58) 0%, rgba(4, 6, 15, 0.26) 55%, transparent 78%);
  text-shadow: 0 1px 8px rgba(4, 6, 15, 0.95);
  transition: opacity 320ms var(--ease-out), color var(--duration-fast) var(--ease-out);
  pointer-events: none;
}
.s-planet:hover .s-planet__hint { color: var(--gold); }
.system__stage.is-open .s-planet__hint { opacity: 0; }

/* service name under the planet */
.s-planet__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-out), font-size 900ms var(--ease-emphasized);
  text-shadow: 0 2px 10px rgba(4, 6, 15, 0.9);
}
.s-planet:hover .s-planet__label,
.s-planet.is-active .s-planet__label { color: var(--gold); }
.system__stage.is-open .s-planet:not(.is-active) .s-planet__label { font-size: 0.62rem; }

/* ---- moons — a rotating path box that scales with the orb, always spinning ---- */
.s-moonpath {
  position: absolute;
  inset: -24%;
  animation: moon-spin var(--moon-t, 9s) linear infinite;
  pointer-events: none;
  z-index: 6;
}
.s-moonpath--b {
  inset: -42%;
  animation-direction: reverse;
  animation-duration: var(--moon-t2, 14s);
}
.s-moonpath::before {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 9%; height: 9%;
  min-width: 7px; min-height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e6e9f2 0%, #8a90a4 52%, #23262f 100%);
  box-shadow: 0 0 10px rgba(200, 210, 235, 0.35);
}
.s-moonpath--b::before { width: 6.5%; height: 6.5%; min-width: 5px; min-height: 5px; }
@keyframes moon-spin { to { transform: rotate(1turn); } }

/* cover the back arc so moons disappear behind the planet */
.p-earth::after,
.p-jupiter::after {
  content: "";
  position: absolute;
  inset: -26%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 66%,
    rgba(4, 6, 15, 0.98) 70%,
    rgba(4, 6, 15, 0.98) 97%,
    transparent 99%
  );
  clip-path: inset(0 0 50% 0);
}

/* ---- planet skins ---- */
/* Earth — Website Development: blue marble, continents, cloud streaks */
.p-earth {
  background:
    radial-gradient(ellipse 34% 14% at 44% 22%, rgba(240, 250, 252, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 42% 15% at 58% 64%, rgba(240, 250, 252, 0.35) 0%, transparent 70%),
    radial-gradient(circle at 63% 52%, #3d8f4e 0% 11%, transparent 30%),
    radial-gradient(circle at 30% 60%, #2f7a44 0% 9%, transparent 24%),
    radial-gradient(circle at 68% 26%, #46995c 0% 7%, transparent 20%),
    radial-gradient(circle at 44% 80%, #2b6e3f 0% 6%, transparent 17%),
    radial-gradient(circle at 32% 28%, #a8d8f0 0%, #2f7fb8 44%, #143a63 76%, #060d1a 100%);
  box-shadow: 0 0 28px rgba(90, 170, 230, 0.4);
}

/* Mars — Google & Search: rust world, dark maria, polar cap */
.p-mars {
  background:
    radial-gradient(ellipse 40% 13% at 50% 5%, rgba(245, 246, 248, 0.8) 0%, transparent 62%),
    radial-gradient(circle at 60% 55%, rgba(92, 36, 18, 0.55) 0% 11%, transparent 27%),
    radial-gradient(circle at 34% 42%, rgba(106, 44, 20, 0.5) 0% 8%, transparent 22%),
    radial-gradient(circle at 56% 76%, rgba(70, 28, 14, 0.45) 0% 7%, transparent 18%),
    radial-gradient(circle at 32% 28%, #f2a578 0%, #c05f30 46%, #63260f 78%, #150502 100%);
  box-shadow: 0 0 26px rgba(232, 122, 70, 0.4);
}

/* Jupiter — AI Automation: banded giant with the Great Red Spot */
.p-jupiter {
  background:
    radial-gradient(ellipse 15% 9% at 64% 63%, rgba(210, 90, 56, 0.9) 0% 42%, transparent 78%),
    repeating-linear-gradient(178deg,
      rgba(246, 228, 200, 0.42) 0% 6%,
      rgba(152, 104, 62, 0.44) 6% 12%,
      rgba(230, 198, 158, 0.34) 12% 19%,
      rgba(122, 78, 44, 0.4) 19% 26%,
      rgba(240, 218, 186, 0.3) 26% 33%),
    radial-gradient(circle at 32% 28%, #f4dfc0 0%, #c99a64 46%, #6b4626 78%, #140b04 100%);
  box-shadow: 0 0 32px rgba(226, 178, 120, 0.45);
}

/* Uranus — Social Ads: pale cyan ice giant with its near-vertical ring */
.p-uranus {
  background:
    radial-gradient(ellipse 70% 30% at 50% 20%, rgba(232, 255, 255, 0.32) 0%, transparent 70%),
    radial-gradient(ellipse 80% 26% at 50% 78%, rgba(150, 225, 235, 0.18) 0%, transparent 70%),
    radial-gradient(circle at 32% 28%, #d9f7f9 0%, #7fd0da 46%, #2a6f86 78%, #06141c 100%);
  box-shadow: 0 0 28px rgba(120, 212, 226, 0.4);
}
.p-uranus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 168%; height: 44%;
  transform: translate(-50%, -50%) rotate(78deg);
  border-radius: 50%;
  border: 2px solid rgba(180, 235, 245, 0.42);
  border-left-color: rgba(180, 235, 245, 0.08);
  pointer-events: none;
  z-index: 3;
}

/* ---- info panel — slides in on the left when a planet is opened ---- */
.system__info {
  position: absolute;
  left: 3%;
  top: 50%;
  width: 46%;
  max-width: 34rem;
  transform: translateY(-50%) translateX(-18px);
  opacity: 0;
  visibility: hidden;
  z-index: 20;
  transition:
    opacity 500ms var(--ease-emphasized),
    transform 500ms var(--ease-emphasized),
    visibility 0s linear 500ms;
}
.system__stage.is-open .system__info {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  transition:
    opacity 640ms var(--ease-emphasized) 300ms,
    transform 640ms var(--ease-emphasized) 300ms,
    visibility 0s;
}

.system__back {
  display: inline-block;
  background: none;
  border: 0;
  padding: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}
.system__back:hover { color: var(--gold); }

.system__kicker {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.system__kicker::after {
  content: '';
  display: block;
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.45;
  margin-top: 0.6rem;
}

/* service name — font overridden per-service below */
.system__info h3 {
  font-weight: 400;
  font-size: clamp(1.6rem, 2.9vw, 2.5rem);
  line-height: 1.14;
  margin-bottom: 1rem;
}
.system__info[data-svc="ai"] h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
}
.system__info[data-svc="social"] h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.system__info[data-svc="google"] h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.system__info[data-svc="web"] h3 {
  font-family: 'DM Serif Display', serif;
}

.system__desc {
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
  text-wrap: pretty;
  max-width: 46ch;
}

.system__info .pills {
  margin: 0 0 1.4rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.system__info .pill {
  font-size: 0.6rem;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.12em;
  border: 1px solid rgba(232, 200, 126, 0.35);
  background: rgba(232, 200, 126, 0.07);
  color: rgba(232, 200, 126, 0.9);
  border-radius: 20px;
}

.system__ctas {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
}
.system__more {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color var(--duration-fast) var(--ease-out);
}
.system__more:hover { color: var(--gold); }

@media (max-width: 900px) {
  .system__stage {
    aspect-ratio: auto;
    min-height: 0;
    height: 36rem;
    transition: height 900ms var(--ease-emphasized);
  }
  .system__stage.is-open { height: 49rem; }
  .system__info {
    left: 50%;
    top: 55%;
    width: 92%;
    transform: translate(-50%, -50%) translateY(14px);
    text-align: center;
  }
  .system__stage.is-open .system__info { transform: translate(-50%, -50%); }
  .system__kicker::after { margin-left: auto; margin-right: auto; }
  .system__desc { margin-left: auto; margin-right: auto; }
  .system__info .pills, .system__ctas { justify-content: center; }
}

/* ============ ABOUT ============ */
.about__statement {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  max-width: 56rem;
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.25;
}
.about__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 2.5rem;
  max-width: 56rem;
  color: var(--ink-dim);
  margin-bottom: 3rem;
}
.values {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  list-style: none;
}
.values li {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 3rem;
  color: var(--ink-dim);
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.values li:hover { border-color: var(--gold); color: var(--gold); }

/* ============ SERVICES (ledger rows) ============ */
.services { padding-left: 0; padding-right: 0; }
.services .section-head { padding: 0 var(--pad-x); }

.service {
  border-top: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background-color var(--duration-default) var(--ease-out);
}
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service:hover { background: rgba(233, 236, 245, 0.02); }
.service.is-open { background: rgba(233, 236, 245, 0.03); }

.service__row {
  display: grid;
  grid-template-columns: 6rem 1fr auto 3rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.9rem var(--pad-x);
}
.service__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  transition: color var(--duration-default) var(--ease-out);
}
.service:hover .service__num, .service.is-open .service__num { color: var(--gold); }
.service__row h3 {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform var(--duration-slow) var(--ease-emphasized);
}
.service:hover .service__row h3 { transform: translateX(10px); }
.service__tag {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.service__plus {
  position: relative; width: 1.1rem; height: 1.1rem; justify-self: end;
}
.service__plus::before, .service__plus::after {
  content: "";
  position: absolute; top: 50%; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transition: transform var(--duration-slow) var(--ease-emphasized);
}
.service__plus::after { transform: rotate(90deg); }
.service.is-open .service__plus::after { transform: rotate(0deg); }

.service__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms var(--ease-emphasized);
}
.service.is-open .service__body { grid-template-rows: 1fr; }
.service__detail { overflow: hidden; }
.service__detail p, .service__detail ul {
  padding: 0 var(--pad-x);
  max-width: 52rem;
}
.service__detail p { color: var(--ink-dim); margin-bottom: 1.4rem; margin-left: calc(6rem + 1.5rem); padding-left: 0; }
.service__detail ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.7rem 2rem;
  margin-left: calc(6rem + 1.5rem);
  padding-left: 0;
  padding-bottom: 2.4rem;
}
.service__detail li {
  color: var(--ink-dim);
  font-size: 0.95rem;
  padding-left: 1.3rem;
  position: relative;
}
.service__detail li::before {
  content: "✦";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

/* ============ WHY ============ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(2rem, 4vw, 4rem) clamp(2rem, 4vw, 5rem);
  max-width: 70rem;
}
.why__item { position: relative; padding-top: 1.6rem; }
.why__item::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 2.6rem; height: 1px;
  background: var(--line-strong);
  transition: width var(--duration-slow) var(--ease-emphasized), background-color var(--duration-slow) var(--ease-out);
}
.why__item:hover::before { width: 5rem; background: var(--gold); }
.why__glyph { color: var(--gold); font-size: 0.85rem; display: block; margin-bottom: 0.9rem; }
.why__item h3 { font-size: 1.25rem; margin-bottom: 0.7rem; font-weight: 500; }
.why__item p { color: var(--ink-dim); font-size: 0.98rem; text-wrap: pretty; }

/* ============ PROCESS (flight path) ============ */
.path {
  list-style: none;
  position: relative;
  max-width: 44rem;
  padding-left: 2.5rem;
}
.path::before {
  content: "";
  position: absolute;
  left: 0.55rem; top: 0.6rem; bottom: 2rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong) 0%, var(--gold) var(--path-progress, 0%), var(--line-strong) var(--path-progress, 0%));
}
.path__step {
  position: relative;
  display: flex;
  gap: 1.6rem;
  padding-bottom: 3rem;
}
.path__step:last-child { padding-bottom: 0; }
.path__node {
  position: absolute;
  left: -2.5rem; top: 0.45rem;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--bg);
  flex-shrink: 0;
}
.path__node::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.path__step.is-in .path__node::after { opacity: 1; }
.path__node--gold { box-shadow: 0 0 20px rgba(232, 200, 126, 0.4); }
.path__step h3 { font-size: 1.3rem; margin-bottom: 0.4rem; font-weight: 500; }
.path__step h3::before {
  content: "0" counter(step) " — ";
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  vertical-align: 0.15em;
}
.path { counter-reset: step; }
.path__step { counter-increment: step; }
.path__step p { color: var(--ink-dim); font-size: 0.98rem; max-width: 30rem; text-wrap: pretty; }

/* ============ FOUNDERS ============ */
.founders__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(2.5rem, 5vw, 6rem);
  max-width: 66rem;
}
.founder__orbit {
  position: relative;
  width: 7.5rem; height: 7.5rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  margin-bottom: 1.8rem;
}
.founder__orbit span {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.founder__orbit::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  animation: orbit 7s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.founder h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.3rem; }
.founder__role {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.founder p:last-child { color: var(--ink-dim); font-size: 0.98rem; text-wrap: pretty; }

/* ============ PORTFOLIO ============ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
}
.work {
  border: 1px solid var(--line-strong);
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(10, 14, 29, 0.5);
  transition: border-color var(--duration-default) var(--ease-out),
              transform var(--duration-slow) var(--ease-emphasized);
}
.work:hover { border-color: rgba(232, 200, 126, 0.4); transform: translateY(-6px); }
.work__visual {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.work__visual--a { background: radial-gradient(ellipse 120% 90% at 20% 110%, rgba(22, 165, 175, 0.45) 0%, transparent 60%), #070b1a; }
.work__visual--b { background: radial-gradient(ellipse 120% 90% at 80% 110%, rgba(196, 62, 129, 0.4) 0%, transparent 60%), #070b1a; }
.work__visual--c { background: radial-gradient(ellipse 120% 90% at 50% 120%, rgba(56, 108, 220, 0.42) 0%, transparent 60%), #070b1a; }
.work__glyph {
  color: var(--gold);
  font-size: 1.6rem;
  opacity: 0.9;
  transition: transform var(--duration-slow) var(--ease-emphasized);
}
.work:hover .work__glyph { transform: scale(1.35) rotate(45deg); }
.work__meta { padding: 1.5rem 1.6rem 1.8rem; }
.work__meta .pill { display: inline-block; margin-bottom: 1rem; }
.work__meta h3 { font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 500; }
.work__meta p { color: var(--ink-dim); font-size: 0.92rem; text-wrap: pretty; }

.work--open {
  border-style: dashed;
  border-color: rgba(232, 200, 126, 0.35);
  background:
    radial-gradient(ellipse 100% 140% at 50% -30%, rgba(232, 200, 126, 0.08) 0%, transparent 55%),
    rgba(10, 14, 29, 0.4);
  display: grid;
  place-items: center;
}
.work__open-inner { text-align: center; padding: 2.5rem 1.8rem; }
.work__open-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.work__open-inner h3 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 400; margin-bottom: 0.6rem; }
.work__open-inner p { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 1.6rem; }

/* ============ CONTACT: INQUIRY + BOOKING ============ */
.contact { padding-bottom: clamp(5rem, 12vh, 10rem); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  max-width: 80rem;
}
.contact__panel-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
}
.inquiry, .booking {
  border: 1px solid var(--line-strong);
  border-radius: 1.5rem;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  background:
    radial-gradient(ellipse 90% 120% at 50% -20%, rgba(232, 200, 126, 0.06) 0%, transparent 55%),
    rgba(10, 14, 29, 0.55);
  backdrop-filter: blur(6px);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: block; margin-bottom: 1.1rem; }
.field span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}
.field span em { font-style: normal; color: var(--ink-faint); text-transform: none; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: rgba(4, 6, 15, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: 0.7rem;
  padding: 0.8rem 1rem;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 200, 126, 0.15);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa3b8' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
#inquiry-form .btn { border: 0; cursor: pointer; margin-top: 0.4rem; }
.inquiry__note {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 1rem;
}
.inquiry__alt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-dim);
}
.inquiry__alt a { color: var(--ink-dim); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
.inquiry__alt a:hover { color: var(--gold); }
.inquiry__alt span[aria-hidden] { color: var(--gold); font-size: 0.6rem; }
.booking__frame {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101321;
}
/* Dark-theme the Calendly embed: invert luminance, restore hue.
   Native widget colors require a paid Calendly plan — the URL params
   are already set, so this filter can be removed if the plan upgrades. */
.booking__frame .calendly-inline-widget {
  filter: invert(0.94) hue-rotate(180deg) contrast(0.92) saturate(1.25) brightness(1.02);
}
.calendly-overlay .calendly-popup {
  filter: invert(0.94) hue-rotate(180deg) contrast(0.92) saturate(1.25) brightness(1.02);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vh, 6rem) var(--pad-x) 2.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vh, 5rem);
}
.footer__logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  margin-bottom: 1.4rem;
}
.footer__logo svg { color: var(--gold); transition: transform var(--duration-slow) var(--ease-emphasized); }
.footer__logo:hover svg { transform: rotate(45deg); }
.footer__logo em { font-style: normal; color: var(--gold); font-weight: 400; }
.footer__desc { color: var(--ink-dim); max-width: 24rem; margin-bottom: 1.6rem; text-wrap: pretty; }
.footer__est {
  font-family: var(--font-display);
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.footer__heading {
  font-family: var(--font-display);
  font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.footer__col a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out), padding-left var(--duration-default) var(--ease-emphasized);
}
.footer__col a::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 0; height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: width var(--duration-default) var(--ease-emphasized);
}
.footer__col a:hover { color: var(--gold); padding-left: 1.1rem; }
.footer__col a:hover::before { width: 0.75rem; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.footer__bar a {
  font-family: var(--font-display);
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__bar a:hover { color: var(--ink-dim); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
/* horizontal-overflow guard + shrinkable form fields (all sizes) */
html, body { overflow-x: clip; }
.contact__grid > * { min-width: 0; }
.field input, .field select, .field textarea { min-width: 0; }

@media (max-width: 760px) {
  /* nav → hamburger + full-screen overlay menu */
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 101;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    background: rgba(4, 6, 15, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 360ms var(--ease-emphasized), visibility 0s linear 360ms;
  }
  body.menu-open .nav__links {
    opacity: 1;
    visibility: visible;
    transition: opacity 360ms var(--ease-emphasized), visibility 0s;
  }
  .nav__links a { font-size: 1.35rem; letter-spacing: 0.04em; }
  .nav__links-cta {
    display: inline-block;
    margin-top: 1.2rem;
    color: var(--gold) !important;
    font-family: var(--font-display);
    font-size: 1rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
    border: 1px solid rgba(232, 200, 126, 0.45);
    border-radius: 3rem;
    padding: 0.85rem 1.8rem;
  }
  .nav__links-cta::after { display: none; }
  body.menu-open { overflow: hidden; }

  .service__row { grid-template-columns: 3.4rem 1fr 2rem; }
  .service__tag { display: none; }
  .service__detail p, .service__detail ul { margin-left: 0; padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .pills { margin-left: var(--pad-x); margin-right: var(--pad-x); }
  .banner__inner { justify-content: flex-start; }
  .contact__grid, .field-row { grid-template-columns: 1fr; }
  .j-neighbor { display: none; }
  .hero__badge { font-size: 0.68rem; letter-spacing: 0.06em; }
  .hero__scroll { display: none; }
}

/* ============ TOUCH-DEVICE ADAPTATIONS (html.is-touch set by inline detector) ============ */
html.is-touch .cursor-glow { display: none; }
html.is-touch body { -webkit-tap-highlight-color: transparent; }
/* 16px+ inputs stop iOS Safari from auto-zooming the form on focus */
html.is-touch .field input,
html.is-touch .field select,
html.is-touch .field textarea { font-size: 1rem; }
/* hover-revealed hints are always readable on touch */
html.is-touch .s-planet__hint { opacity: 1; }

/* ============ WARP OVERLAY ============ */
.warp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  background: #04060f;
}
.warp-overlay canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ============ PORTFOLIO PAGE ============ */
.port-hero {
  padding: calc(var(--nav-h, 72px) + 6rem) var(--pad-x) 5rem;
  text-align: center;
  position: relative;
}
.port-hero__kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.port-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
}
.port-hero h1 em { font-style: italic; font-weight: 300; color: var(--gold); }
.port-hero__sub {
  max-width: 56ch;
  margin: 0 auto 2.8rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
}
.port-divider {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto 5rem;
  opacity: 0.5;
}

/* Portfolio page grid — larger cards */
.port-grid {
  padding: 0 var(--pad-x) 8rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 2.4rem;
}
.port-card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  overflow: hidden;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.port-card:hover {
  border-color: rgba(232, 200, 126, 0.25);
  transform: translateY(-4px);
}
.port-card__visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.port-card__visual--a { background: radial-gradient(ellipse at 40% 60%, rgba(99, 60, 180, 0.35), transparent 70%), radial-gradient(ellipse at 80% 30%, rgba(30, 60, 120, 0.4), transparent 60%), #0a0e1d; }
.port-card__visual--b { background: radial-gradient(ellipse at 60% 40%, rgba(180, 80, 60, 0.3), transparent 70%), radial-gradient(ellipse at 20% 70%, rgba(60, 40, 120, 0.4), transparent 60%), #0a0e1d; }
.port-card__visual--c { background: radial-gradient(ellipse at 50% 50%, rgba(20, 100, 80, 0.35), transparent 70%), radial-gradient(ellipse at 80% 20%, rgba(30, 50, 130, 0.4), transparent 60%), #0a0e1d; }
.port-card__visual--open { background: radial-gradient(ellipse at 50% 50%, rgba(232, 200, 126, 0.12), transparent 70%), #0a0e1d; border: 2px dashed rgba(232, 200, 126, 0.28); height: 220px; display: flex; align-items: center; justify-content: center; }
.port-card__body {
  padding: 2rem 2.2rem 2.4rem;
}
.port-card__body h3 {
  font-size: 1.25rem;
  margin: 0.7rem 0 0.8rem;
  line-height: 1.3;
}
.port-card__body p {
  color: var(--ink-dim);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.port-card__open-inner {
  text-align: center;
  padding: 2.8rem 2rem;
}
.port-card__open-inner .work__open-kicker {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.port-card__open-inner h3 {
  font-size: 1.8rem;
  font-family: var(--font-serif);
  font-weight: 400;
  margin-bottom: 0.9rem;
}
.port-card__open-inner p { color: var(--ink-dim); margin-bottom: 1.8rem; font-size: 0.92rem; }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nebula, .nav__star, .founder__orbit::before, .hero__scroll span, .marquee__track, .hero__badge-dot { animation: none !important; }
  .hero__title .line span { animation-duration: 1ms; }
  .reveal { transition: opacity 150ms var(--ease-out); transform: none; }
  .cursor-glow { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
