/* ─────────────────────────────────────────────
   ORBIXOT — the intelligence behind every business
   Black and white. Hard structure, real contrast.
   Content sits inside frames; the cosmos stays behind glass.
   ───────────────────────────────────────────── */

:root {
  --void:     #000000;
  --ink:      #ffffff;
  --surface:  #0b0b0b;
  --surface-2:#141414;
  --line:     #2b2b2b;
  --line-2:   #454545;
  --muted:    #b8b8b8;
  --faint:    #7d7d7d;

  --font-display: 'Jost', 'Century Gothic', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', monospace;

  --gut: clamp(18px, 4.5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--void);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--void); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }

/* ── loader ── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; background: var(--void);
  transition: opacity .5s var(--ease), visibility .5s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader svg { width: 48px; height: 48px; color: var(--ink); }

/* ── type ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--font-body);
  letter-spacing: .26em; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--line-2);
}
.display {
  font-family: var(--font-display); font-weight: 300;
  line-height: 1.02; letter-spacing: -.012em; text-transform: uppercase;
}
.lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 54ch; }

.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span {
  display: block; transform: translateY(102%);
  transition: transform .9s var(--ease); transition-delay: var(--stagger, 0ms);
}
.is-ready .line > span { transform: translateY(0); }

/* ── nav ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.nav.is-stuck { background: rgba(0,0,0,.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 24px; height: 24px; }
.brand__word {
  font-family: var(--font-display); font-weight: 400; font-size: 14px;
  letter-spacing: .32em; text-transform: uppercase; padding-left: 2px;
}
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__link {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 10px 14px; border: 1px solid transparent;
  transition: color .25s, border-color .25s, background .25s;
}
.nav__link:hover { color: var(--ink); border-color: var(--line); }
.nav__link[aria-current='page'] { color: var(--ink); border-color: var(--line-2); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer; padding: 11px 12px; }
.nav__toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; margin: 4px 0; transition: transform .3s var(--ease), opacity .25s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── buttons: square, bordered, inverting ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px; border: 1px solid var(--line-2);
  font: 500 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: background .28s var(--ease), color .28s var(--ease), border-color .28s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--void); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--void); border-color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ── hero ── */
.hero { position: relative; padding: 132px 0 0; border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 4vw, 60px); align-items: center;
  /* leaves clear room under the actions for the scroll cue (~77px tall + 24px offset) */
  padding-bottom: 134px;
}
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.6rem); margin: 26px 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ── scroll cue: a light running down a rail, same idea as the satellite ── */
.scroll-cue {
  position: absolute; bottom: 24px;
  /* line up with the content column, not the viewport centre */
  left: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut)));
  display: flex; flex-direction: column; align-items: flex-start; gap: 13px;
  color: var(--faint); z-index: 5;
  transition: opacity .45s var(--ease), color .3s var(--ease);
}
.scroll-cue__label {
  font: 500 10px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase;
}
.scroll-cue__rail {
  position: relative; width: 1px; height: 54px;
  background: var(--line-2); overflow: hidden;
}
.scroll-cue__rail::after {
  content: ''; position: absolute; left: 0; width: 1px; height: 18px;
  background: var(--ink);
  animation: cue 2.3s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes cue {
  0%   { top: -18px; opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { top: 54px;  opacity: 0; }
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue.is-gone { opacity: 0; pointer-events: none; }

@media (max-width: 1000px) { .scroll-cue { display: none; } }

/* ── marquee band ── */
.marquee {
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 20px 0; background: var(--surface);
}
.marquee__track {
  display: flex; gap: 56px; width: max-content;
  animation: slide 38s linear infinite;
}
.marquee span {
  font-family: var(--font-display); font-weight: 300; font-size: 15px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--faint);
  white-space: nowrap;
}
.marquee span::after { content: '◦'; margin-left: 56px; color: var(--line-2); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── orbital system ── */
.orbit { position: relative; width: 100%; aspect-ratio: 1; max-width: 560px; margin-inline: auto; }
.orbit__paths { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orbit__core {
  position: absolute; top: 50%; left: 50%; z-index: 20;
  width: 22%; height: 22%; transform: translate(-50%,-50%); color: var(--ink);
}
.orbit__core svg { width: 100%; height: 100%; filter: drop-shadow(0 0 26px rgba(255,255,255,.45)); }
.sat { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 9px; will-change: transform, opacity; }
.sat__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 12px rgba(255,255,255,.5); transition: transform .4s var(--ease); }
.sat--inner .sat__dot { width: 6px; height: 6px; background: #cfcfcf; }
.sat__label { font: 500 10px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; opacity: 0; transition: opacity .3s var(--ease), color .3s; }
.sat:hover .sat__dot, .sat.is-held .sat__dot { transform: scale(1.9); }
.sat:hover .sat__label, .sat:focus-visible .sat__label, .sat.is-held .sat__label { opacity: 1; color: var(--ink); }
@media (hover: none) { .sat__label { opacity: .6; } }

/* ── sections ── */
.section { padding: clamp(72px, 8vw, 118px) 0; position: relative; border-bottom: 1px solid var(--line); }
.section__head {
  margin-bottom: clamp(38px, 5vw, 62px);
  padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
/* two-column only when there is a count to sit opposite the title */
.section__head:has(.section__count) {
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: end;
}
.section__title { font-size: clamp(2rem, 3.8vw, 3.4rem); margin: 18px 0 14px; }
.section__count { font: 400 12px/1 var(--font-mono); color: var(--faint); letter-spacing: .1em; white-space: nowrap; }

/* ── pillars ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.pillar {
  padding: clamp(30px, 3.4vw, 50px); display: flex; flex-direction: column; gap: 14px;
  border-right: 1px solid var(--line);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--ink); color: var(--void); }
.pillar__idx { font: 400 12px/1 var(--font-mono); color: var(--faint); letter-spacing: .1em; transition: color .3s; }
.pillar:hover .pillar__idx { color: rgba(0,0,0,.55); }
.pillar__title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 300; text-transform: uppercase; letter-spacing: .02em; }
.pillar__body { color: var(--muted); font-size: 15.5px; flex: 1; transition: color .3s; }
.pillar:hover .pillar__body { color: rgba(0,0,0,.72); }
.pillar__link { font: 500 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; display: inline-flex; gap: 9px; align-items: center; margin-top: 6px; }
.pillar:hover .btn__arrow { transform: translateX(5px); }

/* ── cards: framed, numbered, invert on hover ── */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  border: 1px solid var(--line); border-right: 0; border-bottom: 0;
}
.card {
  position: relative; z-index: 1;
  background: var(--surface);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(26px, 2.6vw, 38px);
  display: flex; flex-direction: column; gap: 14px; min-height: 232px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.card__idx {
  font: 400 12px/1 var(--font-mono); color: var(--faint); letter-spacing: .12em;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  transition: color .3s, border-color .3s;
}
.card__title {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 2vw, 1.9rem);
  text-transform: uppercase; letter-spacing: .02em; color: inherit;
}
.card__line { font: 500 11.5px/1.4 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--ink); transition: color .3s; }
.card__body { color: var(--muted); font-size: 15.5px; transition: color .3s; }
.card--full { min-height: 280px; }

.card:hover { background: var(--ink); color: var(--void); }
.card:hover .card__idx { color: rgba(0,0,0,.5); border-color: rgba(0,0,0,.18); }
.card:hover .card__line { color: rgba(0,0,0,.62); }
.card:hover .card__body { color: rgba(0,0,0,.78); }

/* ── flow: big numbers, ruled rows ── */
.flow { border-top: 1px solid var(--line); }
.flow__step {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 96px 1fr; gap: clamp(18px, 3vw, 48px);
  align-items: start; padding: clamp(26px, 3vw, 42px) clamp(8px, 1.5vw, 20px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), color .3s var(--ease), padding-left .3s var(--ease);
}
.flow__step:hover { background: var(--surface-2); padding-left: clamp(18px, 2.5vw, 34px); }
.flow__idx { font: 400 clamp(2rem, 3.4vw, 3rem)/1 var(--font-display); color: var(--line-2); transition: color .3s; }
.flow__step:hover .flow__idx { color: var(--ink); }
.flow__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.1rem); text-transform: uppercase; letter-spacing: .02em; }
.flow__line { font: 500 11.5px/1 var(--font-body); letter-spacing: .15em; text-transform: uppercase; color: var(--faint); margin: 10px 0 14px; }
.flow__body { color: var(--muted); max-width: 62ch; }

/* ── inverted band: the contrast moment ── */
.band { background: var(--ink); color: var(--void); border-bottom: 1px solid var(--ink); }
.band .section__title, .band .cta__title { color: var(--void); }
.band .lede { color: rgba(0,0,0,.7); }
.band .eyebrow { color: var(--void); }
.band .eyebrow::before { background: rgba(0,0,0,.35); }
.band .btn { border-color: rgba(0,0,0,.3); color: var(--void); }
.band .btn:hover { background: var(--void); color: var(--ink); border-color: var(--void); }
.band .btn--solid { background: var(--void); color: var(--ink); border-color: var(--void); }
.band .btn--solid:hover { background: transparent; color: var(--void); border-color: var(--void); }
.band .field { border-color: rgba(0,0,0,.25); color: var(--void); }
.band .field::placeholder { color: rgba(0,0,0,.4); }
.band .field:focus { border-color: var(--void); }
.band .form__status { color: rgba(0,0,0,.65); }

/* ── effect canvases ── */
.fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section--fx { position: relative; }
.section--fx .wrap { position: relative; z-index: 1; }
[data-constellation], [data-lightflow] { position: relative; }

/* ── eclipse transition ── */
.eclipse {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--void);
  clip-path: circle(150% at 50% 50%);
  transition: clip-path .55s cubic-bezier(.65,0,.35,1);
}
.eclipse.is-open { clip-path: circle(0% at 50% 50%); }

/* ── reveal ── */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--stagger, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── cta / form ── */
.cta { text-align: center; }
.cta__title { font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin-bottom: 20px; }
.form { display: grid; gap: 12px; max-width: 500px; margin: 38px auto 0; text-align: left; }
.form__row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.field {
  width: 100%; background: transparent; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 0;
  padding: 16px 18px; font: 400 15px/1.4 var(--font-body);
  transition: border-color .25s var(--ease);
}
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--ink); }
textarea.field { resize: vertical; min-height: 96px; }
.form__status { font-size: 13.5px; color: var(--muted); min-height: 20px; }

/* ── page hero (inner pages) ── */
.phero { padding: 140px 0 clamp(52px, 6vw, 84px); border-bottom: 1px solid var(--line); }
.phero__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin: 22px 0 24px; }

/* ── footer ── */
/* Must be positioned with a z-index: the fixed #starfield canvas is a positioned
   element at z-index 0, and would otherwise paint straight over this whole block. */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line); padding: clamp(56px, 6vw, 88px) 0 0;
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(30px, 4vw, 64px); align-items: start;
}
.footer__tag { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 32ch; }
.footer__mail {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font: 500 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 8px;
  transition: border-color .25s var(--ease);
}
.footer__mail:hover { border-color: var(--ink); }
.footer__col h4 {
  font: 500 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.footer__col a { display: block; font-size: 14.5px; color: var(--muted); padding: 7px 0; transition: color .25s, padding-left .25s var(--ease); }
.footer__col a:hover { color: var(--ink); padding-left: 5px; }

/* oversized wordmark, clipped by the viewport — the signature every good footer has */
.footer__wordmark {
  margin-top: clamp(52px, 6vw, 84px);
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(3.4rem, 15.5vw, 15rem); line-height: .82;
  letter-spacing: .06em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  user-select: none; white-space: nowrap; overflow: hidden;
  transition: -webkit-text-stroke-color .5s var(--ease);
}
.footer:hover .footer__wordmark { -webkit-text-stroke-color: var(--faint); }

.footer__base {
  margin-top: clamp(28px, 3vw, 40px); padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  font: 400 12px/1 var(--font-mono); color: var(--faint); letter-spacing: .06em;
}
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a { color: var(--faint); transition: color .25s; }
.footer__legal a:hover { color: var(--ink); }
.footer__status { display: inline-flex; align-items: center; gap: 9px; }
.footer__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink);
  animation: livedot 2.4s ease-in-out infinite;
}
@keyframes livedot { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

/* ── responsive ── */
@media (max-width: 1000px) {
  .hero { padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .orbit { max-width: 380px; margin-top: 20px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 70px 0 auto; flex-direction: column; gap: 0;
    background: rgba(0,0,0,.97); padding: 18px var(--gut) 30px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    align-items: stretch;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { font-size: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 16px; justify-content: center; }
  .section__head { grid-template-columns: 1fr; align-items: start; }
  .form__row { grid-template-columns: 1fr; }
  .flow__step { grid-template-columns: 1fr; gap: 8px; }
  .footer__base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .line > span { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
