:root {
  --bg: #050208;
  --fg: #F5F0FA;
  --accent: #6E4FA8;
  --accent-rgb: 110, 79, 168;
  --accent-2: #C9A6F0;
  --accent-2-rgb: 201, 166, 240;
  --accent-3: #4FC3D4;
  --accent-3-rgb: 79, 195, 212;
  --muted: #9A9AA4;
  --muted-2: #6E6E78;
  --line: rgba(245, 240, 250, 0.12);
  --line-soft: rgba(245, 240, 250, 0.07);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Saira", var(--font-sans);
  --font-display-condensed: "Saira Condensed", "Saira", var(--font-sans);
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
  font-family: var(--font-sans);
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(245, 240, 250, 0.14) 1px, transparent 1.4px);
  background-size: 7px 7px;
}

a {
  color: inherit;
  text-decoration: none;
  text-shadow: 0 0 0 rgba(var(--accent-2-rgb), 0);
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
}
a:hover { color: var(--accent-2); }
a:not(.btn):hover, a:not(.btn):focus-visible {
  text-shadow: 0 0 18px rgba(var(--accent-2-rgb), 0.55);
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.3s var(--ease), background-color 0.25s var(--ease);
}
.cursor-ring.is-active { opacity: 1; }
.cursor-ring.is-hover { background: rgba(var(--accent-2-rgb), 0.24); border-color: var(--accent-2); }

html.has-custom-cursor,
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor input,
html.has-custom-cursor textarea {
  cursor: none !important;
}

.atmosphere-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.anomaly-field {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.anomaly-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-3);
  opacity: 0.35;
  transform: scale(1);
  will-change: transform, opacity;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.label {
  font-family: var(--font-display-condensed);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* Emphasized-word glow — always on, independent of the char-warp JS below */
.hero-title em.glow-target,
.section-title em.glow-target,
.char-glow {
  font-style: normal;
  text-shadow: 0 0 20px rgba(var(--accent-2-rgb), 0.55), 0 0 42px rgba(var(--accent-rgb), 0.3);
}

/* Per-character spans, only present once the cursor-warp JS has run.
   .word groups a word's chars so wrapping only ever happens at real spaces. */
.word { display: inline-block; }
.char {
  display: inline-block;
  will-change: transform;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transform: translate(0, 0) scale(1);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    opacity 0.25s var(--ease);
}
.btn:active { transform: translate(0, 0) scale(0.96); }
.btn-solid { background: var(--accent); color: var(--bg); }
.btn-solid:hover { opacity: 0.9; color: var(--bg); box-shadow: 0 10px 34px -6px rgba(var(--accent-2-rgb), 0.55); }
.btn-solid:active {
  box-shadow: 0 4px 14px -4px rgba(var(--accent-rgb), 0.4);
  transition: box-shadow 0.1s var(--ease), transform 0.1s var(--ease);
}
.btn-outline { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.75rem; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 2, 8, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.wordmark {
  font-family: var(--font-display-condensed);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-family: var(--font-display-condensed);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links > a:not(.btn) { color: var(--muted); transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease); }
.nav-links > a:not(.btn):hover { color: var(--accent-2); }

main { position: relative; z-index: 1; padding-right: 28px; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.25rem, 6vw, 5rem);
}
.hero-inner { max-width: 62rem; padding-top: 4rem; }
.hero .eyebrow { display: inline-flex; margin-bottom: 1.5rem; }
.hero-title {
  font-family: var(--font-display-condensed);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(3.25rem, 11.5vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  margin-bottom: 1.75rem;
  animation: heroGlowPulse 1.8s var(--ease) 0.6s 1 both;
}

@keyframes heroGlowPulse {
  0% { text-shadow: 0 0 0 rgba(var(--accent-2-rgb), 0); }
  45% { text-shadow: 0 0 60px rgba(var(--accent-2-rgb), 0.5); }
  100% { text-shadow: 0 0 0 rgba(var(--accent-2-rgb), 0); }
}
.hero-sub {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-centered .hero-inner {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }

.hero-coords {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 3rem;
  width: 100%;
  max-width: 32rem;
}
.hero-coords-line {
  flex: 1;
  height: 6px;
  position: relative;
  background:
    radial-gradient(circle, var(--muted-2) 1.4px, transparent 1.6px) repeat-x left center / 16px 6px,
    linear-gradient(var(--line), var(--line)) no-repeat left center / 100% 1px;
}
.hero-coords-line::before,
.hero-coords-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
  z-index: 1;
}
.hero-coords-line::before { left: -2px; }
.hero-coords-line::after { right: -2px; }

.hero-coords-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(var(--accent-2-rgb), 0.7);
  transform: translateY(-50%) scaleX(0);
}
.hero-coords-line-left .hero-coords-fill {
  transform-origin: left center;
  animation: coordsFillLeft 4.5s var(--ease) infinite;
}
.hero-coords-line-right .hero-coords-fill {
  transform-origin: right center;
  animation: coordsFillRight 4.5s var(--ease) infinite;
}
@keyframes coordsFillLeft {
  0% { transform: translateY(-50%) scaleX(0); }
  40% { transform: translateY(-50%) scaleX(1); }
  70% { transform: translateY(-50%) scaleX(1); }
  100% { transform: translateY(-50%) scaleX(0); }
}
@keyframes coordsFillRight {
  0% { transform: translateY(-50%) scaleX(0); }
  40% { transform: translateY(-50%) scaleX(1); }
  70% { transform: translateY(-50%) scaleX(1); }
  100% { transform: translateY(-50%) scaleX(0); }
}
.hero-coords-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--muted-2);
  white-space: nowrap;
}

/* Generic section */
.section { padding: clamp(5rem, 12vw, 9rem) clamp(1.25rem, 6vw, 5rem); border-bottom: 1px solid var(--line-soft); }
.section-inner { max-width: 72rem; margin: 0 auto; }
.section .eyebrow { display: inline-flex; margin-bottom: 1.25rem; }
.section-title {
  font-family: var(--font-display-condensed);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  line-height: 1.15;
  max-width: 38rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.section-title-group { margin-bottom: clamp(3rem, 7vw, 5rem); }
.section-title-group .section-title { margin-bottom: 0; max-width: 42rem; }
.section-intro {
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.75;
  font-size: 0.95rem;
  margin-top: 1.25rem;
}

/* Services (formerly "phases") */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.service-card { display: flex; flex-direction: column; }
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 1.4rem; height: 1.4rem; }
.service-label {
  font-family: var(--font-display-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted-2);
  margin-bottom: 0.6rem;
}
.service-title { font-family: var(--font-display-condensed); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; margin-bottom: 0.9rem; }
.service-copy { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }

/* Spec sheet */
.spec-sheet { border-top: 1px solid var(--line-soft); }
.spec-row { display: grid; grid-template-columns: 10rem 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line-soft); }
.spec-key { font-family: var(--font-display-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--accent); }
.spec-claim { max-width: 38rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.65; }

/* Section identity variation — subtle tints so scrolling feels like distinct spaces */
#what-we-do { background: radial-gradient(ellipse 60% 50% at 15% 0%, rgba(var(--accent-rgb), 0.055), transparent 65%); }
#different { background: radial-gradient(ellipse 60% 50% at 85% 100%, rgba(var(--accent-2-rgb), 0.05), transparent 65%); }

/* How It Works — numbered horizontal timeline, distinct from the card grid above it */
.how-it-works { background: rgba(var(--accent-3-rgb), 0.035); }
.steps-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.step-item {
  position: relative;
  padding: 2.5rem 1.75rem 2rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.step-number {
  display: block;
  font-family: var(--font-display-condensed);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--accent-2-rgb), 0.5);
  margin-bottom: 1.25rem;
}
.step-title { font-family: var(--font-display-condensed); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; margin-bottom: 0.75rem; }
.step-copy { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.9rem;
  right: -1px;
  width: 10px;
  height: 1px;
  background: var(--accent-2);
}

/* Common Questions — accordion-style Q&A list, distinct from cards/rows/timeline */
.faq { background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(var(--accent-rgb), 0.05), transparent 70%); }
.faq-list { max-width: 46rem; margin: 0 auto; }
.faq-item { padding: 1.75rem 0; border-bottom: 1px solid var(--line-soft); }
.faq-item:first-child { border-top: 1px solid var(--line-soft); }
.faq-q {
  font-family: var(--font-display-condensed);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.faq-q::before { content: "Q"; color: var(--accent-2); font-weight: 900; }
.faq-a { color: var(--muted); font-size: 0.95rem; line-height: 1.75; padding-left: 1.4rem; }

/* Why we started — single centered block, deliberately different from the card/row patterns elsewhere */
.why-started { background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), rgba(5, 2, 8, 0) 75%); }
.why-started-inner { max-width: 46rem; margin: 0 auto; text-align: center; }
.why-started .eyebrow { justify-content: center; margin-bottom: 1.75rem; }
.why-started-copy {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.75;
  color: var(--fg);
}

/* Contact + Book a call, side by side */
.contact-combined { border-bottom: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.contact-col { display: flex; flex-direction: column; min-height: 700px; }
.contact-col > .label { margin-bottom: 1.25rem; }

.contact-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-label {
  font-family: var(--font-display-condensed);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--muted-2);
}
.field input, .field textarea {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}
.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; border: none; }
.contact-form-done { padding: 1.5rem 0; color: var(--muted); font-size: 0.9rem; max-width: 20rem; }

.calendly-intro { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.contact-col-call { justify-content: flex-start; min-height: 0; }
.contact-col-call .btn { align-self: flex-start; }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem clamp(1.25rem, 6vw, 5rem);
  padding-right: calc(28px + clamp(1.25rem, 6vw, 5rem));
  border-top: 1px solid var(--line-soft);
}
.footer-note { margin-left: auto; }

.dashboard-login {
  position: fixed;
  left: 1.25rem;
  bottom: 1.1rem;
  z-index: 15;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  text-shadow: 0 0 8px rgba(var(--accent-2-rgb), 0.75), 0 0 18px rgba(var(--accent-rgb), 0.45);
  opacity: 0.85;
}
.dashboard-login:hover { color: var(--accent-2); opacity: 1; text-shadow: 0 0 12px rgba(var(--accent-2-rgb), 0.9), 0 0 26px rgba(var(--accent-rgb), 0.6); }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 28px;
  z-index: 30;
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: none;
}
.scroll-progress-track { position: relative; width: 1px; margin: 1.5rem 0; background: var(--line); }
.scroll-progress-fill {
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 0%;
  background: var(--accent);
  transition: height 0.12s linear;
}
.scroll-progress-ticks { position: absolute; inset: 0; }
.scroll-progress-tick { position: absolute; left: -2.5px; width: 6px; height: 1px; background: var(--muted-2); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-progress-fill { transition: none !important; }
  html { scroll-behavior: auto; }
  .hero-title { animation: none !important; }
  a { text-shadow: none !important; transition: color 0.2s ease !important; }
  .btn {
    transform: none !important;
    box-shadow: none !important;
    transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  }
  .cursor-ring, .anomaly-field, .particle-canvas, .atmosphere-canvas { display: none !important; }
  .field input, .field textarea { transition: border-color 0.2s ease !important; box-shadow: none !important; }
  .hero-coords-fill { animation: none !important; transform: translateY(-50%) scaleX(1) !important; }
}

@media (max-width: 900px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn) { display: none; }
  main { padding-right: 0; }
  .scroll-progress { display: none; }
  .footer { padding-right: clamp(1.25rem, 6vw, 5rem); }
  .service-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .spec-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .contact-col { min-height: 0; }
  .hero-coords { max-width: 100%; }
  .hero-coords-label { white-space: normal; text-align: center; }
  .steps-track { grid-template-columns: 1fr; border-left: none; }
  .step-item { border-left: 1px solid var(--line-soft); }
  .step-item::after { display: none; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-track { grid-template-columns: repeat(2, 1fr); }
}
