/* ==========================================================================
   NebulaQuest Studios — Design System
   Fonts loaded via <link> in <head> (Bricolage Grotesque, Inter, Space Mono)
   ========================================================================== */

:root {
  /* ---- Color: brand ---- */
  --void: #07091f;
  --navy: #13173a;
  --navy-mid: #1f2456;
  --navy-soft: #2c3170;
  --slate: #5b6088;
  --slate-light: #9ba0c4;
  --cloud: #f1f2fa;
  --cloud-dim: #e7e9f7;
  --white: #ffffff;
  --violet: #7c5cfc;
  --violet-bright: #9b82ff;
  --violet-deep: #4c3fc7;
  --teal: #1fd1c4;
  --teal-deep: #14a89d;
  --ink: #0b0d24;

  /* ---- Gradients ---- */
  --grad-brand: linear-gradient(135deg, var(--violet) 0%, var(--teal) 100%);
  --grad-brand-deep: linear-gradient(135deg, var(--violet-deep) 0%, var(--teal-deep) 100%);
  --grad-text: linear-gradient(100deg, #b7a6ff 0%, #8fe9e1 100%);

  /* ---- Type ---- */
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Consolas, monospace;

  /* ---- Radius ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---- Shadow ---- */
  --shadow-sm: 0 2px 10px rgba(11, 13, 36, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 13, 36, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 13, 36, 0.16);
  --shadow-violet: 0 14px 36px rgba(124, 92, 252, 0.30);
  --shadow-teal: 0 14px 36px rgba(31, 209, 196, 0.26);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-base: 450ms;
  --dur-slow: 900ms;

  /* ---- Layout ---- */
  --container: 1220px;
  --pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 10vw, 140px);
  --header-h: 84px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 1ms; --dur-base: 1ms; --dur-slow: 1ms; }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--violet); color: var(--white); }

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--navy);
}

h1 { font-size: clamp(2.6rem, 4.6vw + 1rem, 5rem); font-weight: 650; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.2rem); }
h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { color: var(--slate); font-size: 1.05rem; }

.lede {
  font-size: clamp(1.1rem, 0.4vw + 1rem, 1.35rem);
  color: var(--slate);
  max-width: 54ch;
}

/* Dark-surface components: hero, page-hero, CTA banner, footer, and dark cards
   always sit on a dark background, so their text colors are baked in here
   rather than depending on a class being remembered in markup.
   Named components use a COMPOUND selector (.on-dark.cta-banner, not just
   .cta-banner) so they reliably outrank a lighter wrapper section they might
   be nested inside — e.g. a CTA banner sitting inside an .on-light section —
   regardless of stylesheet order. Plain .on-dark alone is left at ordinary
   single-class specificity so a light-surface component nested inside *it*
   (e.g. the contact form card) can still correctly re-assert light colors
   via the .on-light rules below. */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.on-dark.hero h1, .on-dark.hero h2, .on-dark.hero h3, .on-dark.hero h4,
.on-dark.page-hero h1, .on-dark.page-hero h2, .on-dark.page-hero h3, .on-dark.page-hero h4,
.on-dark.cta-banner h1, .on-dark.cta-banner h2, .on-dark.cta-banner h3, .on-dark.cta-banner h4,
.on-dark.site-footer h1, .on-dark.site-footer h2, .on-dark.site-footer h3, .on-dark.site-footer h4,
.on-dark.card-dark h1, .on-dark.card-dark h2, .on-dark.card-dark h3, .on-dark.card-dark h4 {
  color: var(--white);
}

.on-dark p,
.on-dark.hero p, .on-dark.page-hero p, .on-dark.cta-banner p, .on-dark.site-footer p, .on-dark.card-dark p {
  color: var(--slate-light);
}

.on-dark .lede,
.on-dark.hero .lede, .on-dark.page-hero .lede, .on-dark.cta-banner .lede {
  color: var(--slate-light);
}

/* Light-surface components nested inside a dark ancestor (e.g. the contact
   form card on the dark contact page) must re-assert light-surface colors,
   since descendant selectors above would otherwise cascade through. This
   sits below the plain .on-dark rules so it wins that specific tie — the
   compound .on-dark.* rules above are already higher-specificity and are
   unaffected by ordering either way. */
.on-light h1, .on-light h2, .on-light h3, .on-light h4 { color: var(--navy); }
.on-light p { color: var(--slate); }
.on-light .lede { color: var(--slate); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-deep);
  font-weight: 700;
  margin-bottom: 18px;
}
.on-dark .eyebrow { color: var(--teal); }
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.16);
  flex-shrink: 0;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.on-dark .text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section-pad); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 80px); position: relative; }
.section-tight-top { padding-top: clamp(20px, 3vw, 40px); }

.on-light { background: var(--white); }
.on-alt { background: var(--cloud); }
.on-dark { background: var(--navy); color: var(--white); }

.stack { display: flex; flex-direction: column; }
.center { text-align: center; margin-inline: auto; }

.grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head.center { margin-inline: auto; text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  position: relative;
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: var(--shadow-violet);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 20px 44px rgba(124,92,252,0.38); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--cloud-dim);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-deep); transform: translateY(-2px); }
.on-dark .btn-ghost,
.hero .btn-ghost, .page-hero .btn-ghost, .cta-banner .btn-ghost {
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}
.on-dark .btn-ghost:hover,
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover, .cta-banner .btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-sm { padding: 11px 22px; font-size: 0.9rem; }

.btn-arrow { transition: transform var(--dur-fast) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), backdrop-filter var(--dur-base) var(--ease);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 31, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  z-index: -1;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled::after { opacity: 1; border-bottom-color: rgba(255,255,255,0.08); }
.site-header.is-scrolled { box-shadow: 0 8px 32px rgba(7,9,31,0.18); }

/* light pages (non-hero pages use a solid header from the start) */
.site-header.header-solid { background: rgba(7, 9, 31, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(255,255,255,0.08); }

.nav-wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
}
.brand-word small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--teal);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate-light);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-links a.is-active { color: var(--white); background: rgba(255,255,255,0.09); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 24px; font-size: 0.9rem; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle span { margin: 5px 0; }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 28px var(--pad); background: rgba(7,9,31,0.98); backdrop-filter: blur(20px); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base); }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), visibility 0s; }
  .nav-links a { padding: 16px 6px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.1rem; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: flex; margin-top: 20px; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Hero + nebula atmosphere
   ========================================================================== */

.hero {
  position: relative;
  background: var(--void);
  color: var(--white);
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}

.nebula-field {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.nebula-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 80% 12%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 32% 68%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 62% 42%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 92% 74%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 48% 88%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 20% 46%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 90%, rgba(255,255,255,0.4), transparent);
  background-repeat: no-repeat;
  opacity: 0.8;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -14%; left: -8%; background: radial-gradient(circle at 40% 40%, var(--violet) 0%, transparent 70%); animation: drift1 26s var(--ease) infinite alternate; }
.blob-2 { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; bottom: -18%; right: -6%; background: radial-gradient(circle at 60% 60%, var(--teal) 0%, transparent 70%); animation: drift2 32s var(--ease) infinite alternate; }
.blob-3 { width: 26vw; height: 26vw; max-width: 380px; max-height: 380px; top: 30%; right: 18%; background: radial-gradient(circle, var(--violet-bright) 0%, transparent 72%); opacity: 0.35; animation: drift3 22s var(--ease) infinite alternate; }

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(4%, 6%) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-5%, -4%) scale(1.05); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-6%, 5%) scale(0.94); } }

.hero-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
}

.hero-copy { max-width: 760px; }

.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; }

.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

.hero-meta {
  margin-top: clamp(56px, 7vw, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--slate-light);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* small page hero (non-home pages) */
.page-hero {
  position: relative;
  background: var(--void);
  color: var(--white);
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 84px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .hero-copy { max-width: 640px; }
.page-hero h1 { margin-bottom: 18px; }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--cloud-dim);
  border-bottom: 1px solid var(--cloud-dim);
  background: var(--cloud);
  padding-block: 22px;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.marquee-track span::after { content: "◆"; color: var(--violet); font-size: 0.6rem; margin-left: 44px; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--cloud);
  border-radius: var(--r-lg);
  padding: clamp(28px, 2.6vw, 38px);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: var(--white); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-violet);
  flex-shrink: 0;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--white); }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; margin-bottom: 0; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet-deep);
}
.card .card-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

.card-dark {
  background: var(--navy-mid);
  color: var(--white);
}
.card-dark:hover { background: var(--navy-soft); }
.card-dark p { color: var(--slate-light); }

/* value / feature row (checklist style) */
.feat-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-block: 18px;
  border-top: 1px solid var(--cloud-dim);
}
.feat-row:last-child { border-bottom: 1px solid var(--cloud-dim); }
.feat-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.feat-icon svg { width: 11px; height: 11px; stroke: var(--white); }
.feat-row h4 { margin-bottom: 4px; }
.feat-row p { font-size: 0.95rem; margin-bottom: 0; }

/* ==========================================================================
   Section eyebrow decorative rule
   ========================================================================== */

.divider {
  width: 46px; height: 3px; border-radius: 2px;
  background: var(--grad-brand);
  margin-bottom: 22px;
}

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 540ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 630ms; }

/* ==========================================================================
   Waypoint timeline (Process page signature)
   ========================================================================== */

.timeline { position: relative; max-width: 760px; margin-inline: auto; }

.timeline-track, .timeline-progress {
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
.timeline-track { background: var(--cloud-dim); }
.timeline-progress {
  background: linear-gradient(180deg, var(--violet) 0%, var(--teal) 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 120ms linear;
}

.timeline-step {
  position: relative;
  padding-left: 76px;
  padding-bottom: clamp(44px, 6vw, 68px);
}
.timeline-step:last-child { padding-bottom: 0; }

.timeline-node {
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--cloud-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
  transition: border-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
  z-index: 1;
}
.timeline-step.is-active .timeline-node {
  border-color: var(--violet);
  color: var(--violet-deep);
  box-shadow: 0 0 0 6px rgba(124,92,252,0.12), var(--shadow-violet);
  transform: scale(1.06);
}

.timeline-content h3 { margin-bottom: 8px; }
.timeline-content p { margin-bottom: 0; max-width: 52ch; }
.timeline-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--slate-light);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

@media (max-width: 640px) {
  .timeline-track, .timeline-progress { left: 21px; }
  .timeline-step { padding-left: 60px; }
  .timeline-node { width: 44px; height: 44px; font-size: 0.72rem; }
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  position: relative;
  background: var(--void);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 84px) clamp(28px, 5vw, 84px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-banner .blob-1, .cta-banner .blob-2 { opacity: 0.45; }
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner .lede { margin-inline: auto; margin-bottom: 36px; color: var(--slate-light); }
.cta-banner-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--void);
  color: var(--slate-light);
  padding-top: clamp(56px, 7vw, 90px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-brand p { max-width: 34ch; margin-top: 18px; font-size: 0.94rem; }
.footer-col h4 { color: var(--white); font-size: 0.92rem; letter-spacing: 0.02em; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.94rem; transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: 0.94rem; line-height: 1.7; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 26px;
  font-size: 0.84rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Forms (contact page)
   ========================================================================== */

.form-field { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 9px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--cloud-dim);
  background: var(--cloud);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--violet);
  background: var(--white);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.84rem; color: var(--slate); margin-top: 14px; }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgba(31,209,196,0.12);
  color: var(--teal-deep);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 18px;
}
.form-success.is-shown { display: flex; }
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
   Contact info list
   ========================================================================== */

.info-row { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 30px; }
.info-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; stroke: var(--teal); }
.info-row h4 { color: var(--white); margin-bottom: 6px; font-size: 0.92rem; }
.info-row p, .info-row a { font-size: 0.98rem; color: var(--slate-light); }
.info-row a:hover { color: var(--white); }

.map-embed {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  filter: grayscale(0.3) contrast(1.05);
}
.map-embed iframe { width: 100%; height: 240px; border: 0; display: block; }

/* ==========================================================================
   Service section layout
   ========================================================================== */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.service-block.flip .service-copy { order: 2; }
.service-block.flip .service-visual { order: 1; }
@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block.flip .service-copy,
  .service-block.flip .service-visual { order: initial; }
}

.service-icon-lg {
  width: 64px; height: 64px; border-radius: var(--r-md);
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; box-shadow: var(--shadow-violet);
}
.service-icon-lg svg { width: 30px; height: 30px; stroke: var(--white); }
.on-dark .service-icon-lg { background: rgba(255,255,255,0.1); box-shadow: none; }
.on-dark .service-icon-lg svg { stroke: var(--teal); }

.service-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 24px;
  margin-top: 28px;
}
@media (max-width: 560px) { .service-features { grid-template-columns: 1fr; } }

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 12px;
  font-size: 0.98rem;
  color: var(--slate);
  border-top: 1px solid var(--cloud-dim);
}
.on-dark .service-feature { color: var(--slate-light); border-top-color: rgba(255,255,255,0.1); }
.service-feature svg { width: 17px; height: 17px; stroke: var(--teal-deep); flex-shrink: 0; margin-top: 2px; }
.on-dark .service-feature svg { stroke: var(--teal); }

/* ---- Abstract browser mockup ---- */
.mock-browser {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--cloud-dim);
}
.mock-browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  background: var(--cloud);
  border-bottom: 1px solid var(--cloud-dim);
}
.mock-browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--cloud-dim); }
.mock-browser__bar span:nth-child(1) { background: #ffb4a8; }
.mock-browser__bar span:nth-child(2) { background: #ffd897; }
.mock-browser__bar span:nth-child(3) { background: #a8e6c8; }
.mock-browser__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.mock-line { height: 11px; border-radius: 6px; background: var(--cloud-dim); }
.mock-line.w-60 { width: 60%; height: 16px; background: linear-gradient(90deg, var(--violet), var(--teal)); opacity: 0.85; }
.mock-line.w-40 { width: 40%; }
.mock-block { height: 90px; border-radius: var(--r-sm); background: var(--cloud); margin-block: 6px; }
.mock-row { display: flex; gap: 10px; }
.mock-chip { flex: 1; height: 34px; border-radius: var(--r-sm); background: var(--cloud); }

/* ---- Abstract phone mockup ---- */
.mock-phone {
  width: 220px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.mock-phone__screen { background: var(--white); border-radius: 22px; overflow: hidden; padding: 20px 16px; }
.mock-phone__notch { width: 50px; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.16); margin: 0 auto 14px; }
.mock-phone .mock-line { height: 9px; }
.mock-phone .mock-block { height: 64px; }

/* ---- 3D rotating cube (AR/VR signature) ---- */
.cube-stage {
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 50px);
}
.cube {
  position: relative;
  width: 150px;
  height: 150px;
  transform-style: preserve-3d;
  animation: spinCube 18s linear infinite;
}
.cube__face {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: linear-gradient(135deg, rgba(124,92,252,0.32), rgba(31,209,196,0.14));
}
.cube__face--front  { transform: translateZ(75px); }
.cube__face--back   { transform: rotateY(180deg) translateZ(75px); }
.cube__face--right  { transform: rotateY(90deg) translateZ(75px); }
.cube__face--left   { transform: rotateY(-90deg) translateZ(75px); }
.cube__face--top    { transform: rotateX(90deg) translateZ(75px); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(75px); }

@keyframes spinCube {
  from { transform: rotateX(-16deg) rotateY(0deg); }
  to   { transform: rotateX(-16deg) rotateY(360deg); }
}

/* ---- Abstract growth chart (marketing) ---- */
.mock-chart {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cloud-dim);
  padding: clamp(28px, 3vw, 40px);
}
.mock-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 160px;
}
.mock-chart__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--violet-bright), var(--teal));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 900ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.is-visible .mock-chart__bars span { transform: scaleY(1); }

/* ==========================================================================
   Misc utility
   ========================================================================== */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--cloud);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}
.on-dark .chip { background: rgba(255,255,255,0.08); color: var(--white); }

.mt-0 { margin-top: 0 !important; }
.hidden-mobile { display: initial; }
@media (max-width: 640px) { .hidden-mobile { display: none !important; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
