/* =========================================================
   ASTELLIX — Design Tokens
   ========================================================= */
:root {
  --navy:        #375A96;
  --navy-rgb:    55, 90, 150;
  --blue:        #2151FF;
  --blue-rgb:    33, 81, 255;
  --black:       #0B0B0D;
  --black-soft:  #131318;
  --cream:       #F1ECE0;
  --cream-rgb:   241, 236, 224;
  --cream-dim:   #cfc9ba;
  --neon-blue:     #4B8CFF;
  --neon-blue-rgb: 75, 140, 255;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-pad: 1.5rem;
  --section-pad: clamp(4rem, 8vw, 8rem);
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  overflow-x: hidden;
  overflow-x: clip; /* avoids the implicit overflow-y:auto that plain 'hidden' forces, which breaks position:sticky */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

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

.container { max-width: 1240px; }

section { position: relative; }

img { max-width: 100%; display: block; }

::selection { background: var(--blue); color: var(--cream); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: 1.1rem;
  color: #4b4b52;
  max-width: 640px;
  line-height: 1.6;
}

.section-head { margin-bottom: 3.5rem; }

.text-gradient {
  background: linear-gradient(100deg, var(--blue), var(--navy) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-highlight { color: var(--blue); }

/* =========================================================
   Buttons
   ========================================================= */
.btn-cta {
  background: var(--blue);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 100px;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--blue);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 24px -8px rgba(var(--blue-rgb), .55);
}
.btn-cta:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(var(--navy-rgb), .6);
}

.btn-outline-cta {
  background: transparent;
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 600;
  border-radius: 100px;
  padding: 0.68rem 1.6rem;
  border: 2px solid rgba(var(--cream-rgb), 0);
  border-color: currentColor;
  transition: all .25s var(--ease);
}
.btn-outline-cta:hover {
  background: var(--black);
  color: var(--cream);
}

/* =========================================================
   Scroll reveal (JS toggles .is-visible)
   ========================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(14px);
  padding: 0.65rem 0;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.4);
}

.brand-logo { height: 30px; width: auto; }

.navbar-nav .nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--cream);
  opacity: .85;
  padding: .5rem 1rem !important;
  transition: opacity .2s ease;
}
.navbar-nav .nav-link:hover { opacity: 1; color: var(--blue); }

.navbar-toggler {
  border: none;
  background: transparent;
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--black);
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }
  .navbar-nav .nav-link { padding: .7rem 0 !important; }
  .btn-cta.ms-lg-3 { margin-top: .75rem; display: inline-block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: 100vh;
  background: var(--black);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 920px;
}

.hero-title {
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--cream-dim);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .btn-outline-cta { color: var(--cream); }
.hero .btn-outline-cta:hover { background: var(--cream); color: var(--black); }

/* orbit decorations */
.hero-orbit {
  position: absolute;
  border: 1.5px solid rgba(var(--blue-rgb), .35);
  border-radius: 50%;
  z-index: 1;
  will-change: transform;
}
.hero-orbit--1 {
  width: 620px; height: 620px;
  top: -180px; right: -220px;
  border-color: rgba(var(--navy-rgb), .45);
}
.hero-orbit--2 {
  width: 380px; height: 380px;
  bottom: -140px; left: -120px;
  border-color: rgba(var(--blue-rgb), .3);
}
.hero-dot {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  will-change: transform;
}
.hero-dot--1 { width: 90px; height: 90px; background: var(--blue); top: 14%; right: 14%; filter: blur(0px); box-shadow: 0 0 60px 10px rgba(var(--blue-rgb), .45); }
.hero-dot--2 { width: 26px; height: 26px; background: var(--cream); top: 30%; left: 10%; opacity: .8; }
.hero-dot--3 { width: 46px; height: 46px; border: 2px solid var(--navy); top: 68%; right: 22%; }


/* =========================================================
   Stats bar — merged into the hero's black canvas, no seam
   ========================================================= */
.stats-bar {
  background: var(--black);
  color: var(--cream);
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(4.5rem, 9vw, 7.5rem);
  position: relative;
  z-index: 2;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.75rem 1.5rem;
}

.stat-item {
  flex: 1 1 200px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--neon-blue);
  text-shadow:
    0 0 25px rgba(var(--neon-blue-rgb), .55),
    0 0 70px rgba(var(--neon-blue-rgb), .3);
}

.stat-label {
  margin-top: .9rem;
  font-size: .95rem;
  color: var(--cream-dim);
}

@media (max-width: 575.98px) {
  .stat-number { font-size: clamp(2.6rem, 14vw, 3.6rem); }
}

/* =========================================================
   Statement
   ========================================================= */
.statement {
  padding: var(--section-pad) 0;
  background: var(--cream);
  overflow: hidden;
}
.statement-orbit {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--navy-rgb), .18);
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  will-change: transform;
}
.statement-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 500;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.4;
}

/* =========================================================
   Services — sticky stacking cards
   Each card pins in place with an increasing `top` offset, so
   the next card slides up and covers it while a sliver of the
   previous one stays visible above — a peeling stack on scroll.
   ========================================================= */
.services {
  padding: var(--section-pad) 0 0;
  background: var(--black);
}
.services .section-title { color: var(--cream); }
.services .section-lead { color: var(--cream-dim); }

.stack-wrap {
  position: relative;
  padding-bottom: 1.5rem;
}

.stack-card {
  position: sticky;
  display: flex;
  align-items: flex-start;
  min-height: 52vh;
}

.stack-card--4 {
  min-height: 36vh;
}

.stack-card-panel {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(1.75rem, 5vw, 4rem);
  box-shadow: 0 40px 80px -36px rgba(0,0,0,.45);
}

.stack-num {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.4ch;
  color: rgba(11,11,13,.3);
}

.stack-body h3 {
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: .9rem;
}
.stack-body p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}

.stack-card--1 { top: 14vh; z-index: 1; }
.stack-card--2 { top: calc(14vh + 26px); z-index: 2; }
.stack-card--3 { top: calc(14vh + 52px); z-index: 3; }
.stack-card--4 { top: calc(14vh + 78px); z-index: 4; }

.stack-card--1 .stack-card-panel { background: var(--cream); color: var(--black); }
.stack-card--2 .stack-card-panel { background: var(--navy); color: var(--cream); }
.stack-card--3 .stack-card-panel { background: var(--blue); color: var(--cream); }
.stack-card--4 .stack-card-panel {
  background: var(--black);
  color: var(--cream);
  border: 1px solid rgba(var(--cream-rgb), .12);
}

.stack-card--1 .stack-num { color: rgba(11,11,13,.3); }
.stack-card--2 .stack-num,
.stack-card--3 .stack-num { color: rgba(var(--cream-rgb), .4); }
.stack-card--4 .stack-num { color: var(--neon-blue); }

.stack-card--2 .stack-body p,
.stack-card--3 .stack-body p { color: rgba(var(--cream-rgb), .82); }
.stack-card--4 .stack-body p { color: var(--cream-dim); }

@media (max-width: 767.98px) {
  .stack-card { min-height: 48vh; }
  .stack-card--4 { min-height: 32vh; }
  .stack-card-panel { flex-direction: column; gap: 1rem; }
  .stack-card--1 { top: 10vh; }
  .stack-card--2 { top: calc(10vh + 18px); }
  .stack-card--3 { top: calc(10vh + 36px); }
  .stack-card--4 { top: calc(10vh + 54px); }
}

/* =========================================================
   Process
   ========================================================= */
.process { padding: var(--section-pad) 0; background: var(--cream); overflow: hidden; }
.process-orbit {
  position: absolute;
  width: 700px; height: 700px;
  right: -280px; top: 10%;
  border-radius: 50%;
  border: 1.5px dashed rgba(var(--blue-rgb), .2);
  will-change: transform;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}
.process-step {
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
}
.process-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--blue);
  margin-bottom: .75rem;
}
.process-step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.process-step p { font-size: .9rem; color: #55555c; margin: 0; }

@media (max-width: 991.98px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* =========================================================
   About
   ========================================================= */
.about { padding: var(--section-pad) 0; background: var(--cream); }
.about-points { margin-top: 1.8rem; display: flex; flex-direction: column; gap: .9rem; }
.about-point { display: flex; align-items: center; gap: .7rem; font-size: .98rem; }
.about-point i { color: var(--blue); font-size: 1.1rem; }

.about-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin: 0 auto;
}
.about-orbit-ring {
  position: absolute; inset: 0;
  border: 1.5px solid rgba(var(--navy-rgb), .35);
  border-radius: 50%;
}
.about-orbit-ring::before {
  content: '';
  position: absolute; inset: 14%;
  border: 1px dashed rgba(var(--blue-rgb), .3);
  border-radius: 50%;
}
.about-orbit-dot { position: absolute; border-radius: 50%; }
.about-orbit-dot--big {
  width: 34%; height: 34%;
  background: var(--blue);
  top: 8%; right: 10%;
  box-shadow: 0 0 60px 12px rgba(var(--blue-rgb), .35);
}
.about-orbit-dot--small {
  width: 12%; height: 12%;
  background: var(--navy);
  bottom: 16%; left: 14%;
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  padding: var(--section-pad) 0;
  background: var(--black);
  color: var(--cream);
  overflow: hidden;
}
.contact .section-lead { color: var(--cream-dim); }
.contact-orbit {
  position: absolute;
  width: 640px; height: 640px;
  left: -260px; bottom: -260px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--blue-rgb), .25);
  will-change: transform;
}

.contact-info { margin: 1.8rem 0 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.contact-info-item {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--cream);
  transition: color .2s ease;
}
.contact-info-item:hover { color: var(--blue); }

.social-links { display: flex; gap: .9rem; }
.social-links a {
  width: 42px; height: 42px;
  border: 1px solid rgba(var(--cream-rgb), .25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, border-color .25s ease;
}
.social-links a:hover { background: var(--blue); border-color: var(--blue); }

.contact-form {
  position: relative;
  z-index: 2;
  background: rgba(var(--cream-rgb), .04);
  border: 1px solid rgba(var(--cream-rgb), .12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(6px);
}
.contact-form .form-label {
  color: var(--cream-dim);
  font-size: .85rem;
  margin-bottom: .4rem;
}
.contact-form .form-control,
.contact-form .form-select {
  background: rgba(var(--cream-rgb), .06);
  border: 1px solid rgba(var(--cream-rgb), .18);
  color: var(--cream);
  border-radius: 12px;
  padding: .7rem 1rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: rgba(var(--cream-rgb), .1);
  border-color: var(--blue);
  box-shadow: 0 0 0 .2rem rgba(var(--blue-rgb), .25);
  color: var(--cream);
}
.contact-form .form-control::placeholder { color: rgba(var(--cream-rgb), .4); }
.contact-form select option { color: var(--black); }

.form-status {
  font-size: .9rem;
  color: var(--blue);
  min-height: 1.4rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--black);
  color: var(--cream);
  padding: 3rem 0 2rem;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-divider {
  border-color: rgba(var(--cream-rgb), .12);
  margin: 2.2rem 0 1.6rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: var(--cream-dim);
}
.footer-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: var(--blue); }

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--cream);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 999;
  box-shadow: 0 10px 24px -8px rgba(var(--blue-rgb), .6);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); }

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 767.98px) {
  .hero { padding-top: 5rem; text-align: center; }
  .hero-orbit--1, .hero-orbit--2 { opacity: .6; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
  .hero-dot--1 { width: 60px; height: 60px; }
  .hero-dot--3 { display: none; }
  .contact-form { padding: 1.4rem; }
}
