/* =========================================================
   DOTRUSH LABS — design system
   ========================================================= */

:root {
  /* color */
  --bg:        #08080a;
  --bg-2:      #0c0c10;
  --bg-3:      #111118;
  --fg:        #f4f4f6;
  --muted:     #c8c8d4;
  --muted-2:   #9898a8;
  --line:      rgba(244, 244, 246, 0.10);
  --line-2:    rgba(244, 244, 246, 0.18);
  --accent:    #7c84ff;
  --accent-2:  #a8b0ff;
  --irid:      linear-gradient(120deg, #9aa6ff 0%, #c9b8ff 45%, #a8e9ff 100%);

  /* type */
  --display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --body:    "Satoshi", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  /* layout */
  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1360px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 19px;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* faint grain / vignette so dark stays alive even without WebGL */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 70% 0%, rgba(124, 132, 255, 0.10), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(168, 184, 255, 0.06), transparent 60%);
}

::selection { background: var(--accent); color: #08080a; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- shared helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.section {
  position: relative;
  z-index: 2;
  padding-block: clamp(6rem, 14vh, 11rem);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.btn {
  --bg-btn: var(--fg);
  --fg-btn: #08080a;
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 0.85em 1.5em;
  border-radius: 100px;
  background: var(--bg-btn);
  color: var(--fg-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .5s var(--ease), background .4s var(--ease), color .4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.btn--ghost {
  --bg-btn: transparent;
  --fg-btn: var(--fg);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--fg); background: rgba(244,244,246,0.04); }

/* =========================================================
   PERFORMANCE HINTS
   ========================================================= */
.manifesto, .capabilities, .why-us, .process, .cta, footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.blob-canvas {
  will-change: transform, opacity;
}

/* =========================================================
   LOADER
   ========================================================= */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #08080a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s;
}
#loader.ldr-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ldr-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

/* wordmark */
.ldr-words {
  display: flex;
  align-items: baseline;
  gap: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: ldr-fade-up 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.15s forwards;
}
.ldr-brand {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: 2.1rem;
  color: #e8eaff;
  letter-spacing: -0.02em;
}
.ldr-dot-sep {
  font-family: "Clash Display", sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: #7c84ff;
  text-shadow: 0 0 18px rgba(124,132,255,0.8);
}
.ldr-lab {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: 2.1rem;
  color: #e8eaff;
  letter-spacing: -0.02em;
}

@keyframes ldr-fade-up { to { opacity: 1; transform: translateY(0); } }

/* progress */
.ldr-prog-track {
  width: 140px;
  height: 1px;
  background: rgba(124,132,255,0.1);
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  animation: ldr-fade-up 0.3s ease 0.55s forwards;
  transition: opacity 0.4s ease;
}
#loader.ldr-ready .ldr-prog-track { opacity: 0; pointer-events: none; }
.ldr-prog-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #7c84ff, #c4b5fd);
  animation: ldr-fill 2.2s cubic-bezier(0.4,0,0.6,1) 0.55s forwards;
}
@keyframes ldr-fill {
  0%   { width: 0%; }
  60%  { width: 72%; }
  100% { width: 94%; }
}

/* enter button */
.ldr-enter {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.34,1.56,0.64,1), transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
  background: none;
  border: 1px solid rgba(124,132,255,0.45);
  color: rgba(200,204,255,0.9);
  font-family: "Clash Display", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.75em 2.6em;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.ldr-enter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(124,132,255,0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.ldr-enter:hover::before { opacity: 1; }
.ldr-enter:hover {
  border-color: rgba(124,132,255,0.85);
  box-shadow: 0 0 24px rgba(124,132,255,0.25);
  color: #fff;
}
#loader.ldr-ready .ldr-enter {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* explosion orb */
.ldr-orb {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #c4c8ff 0%, #7c84ff 55%, #5b44f2 100%);
  box-shadow: 0 0 40px rgba(124,132,255,0.9), 0 0 80px rgba(124,132,255,0.4);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  pointer-events: none;
  z-index: 9100;
  transition:
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.1s ease;
  will-change: transform, opacity;
}
.ldr-orb.ldr-orb--fire {
  opacity: 1;
  transform: translate(-50%, -50%) scale(220);
}
.ldr-orb.ldr-orb--dissolve {
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s ease 0.15s;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem var(--pad);
  mix-blend-mode: difference;
  transition: padding .5s var(--ease);
}
.nav.scrolled { padding-top: 0.9rem; padding-bottom: 0.9rem; }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #fff;
}
.nav-links a {
  position: relative;
  opacity: 1;
  padding: 0.45em 1.1em;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 14px rgba(124, 132, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: background .35s, box-shadow .35s, border-color .35s, transform .35s var(--ease);
}
.nav-links a:hover {
  background: rgba(124, 132, 255, 0.14);
  border-color: rgba(124, 132, 255, 0.45);
  box-shadow:
    0 0 22px rgba(124, 132, 255, 0.35),
    0 0 50px rgba(124, 132, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}
.nav-links a::after { display: none; }

.nav .btn.nav-cta {
  background: var(--irid);
  color: #08080a;
  mix-blend-mode: normal;
  border-color: transparent;
  box-shadow:
    0 0 18px rgba(124, 132, 255, 0.45),
    0 0 40px rgba(124, 132, 255, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .5s var(--ease), box-shadow .4s, filter .4s;
  font-weight: 600;
}
.nav .btn.nav-cta:hover {
  box-shadow:
    0 0 28px rgba(124, 132, 255, 0.7),
    0 0 60px rgba(124, 132, 255, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.08) saturate(1.1);
  transform: translateY(-2px);
}
.nav .btn.nav-cta .dot {
  background: rgba(8, 8, 10, 0.5);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
#blob-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 9rem 5rem;
}
/* subtle glow halo behind blob as WebGL-less fallback + extra depth */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 42%; left: 50%;
  width: min(70vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124,132,255,0.18), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-eyebrow { margin-bottom: 2rem; }

.hero h1 {
  font-size: clamp(3.1rem, 11.5vw, 12rem);
  line-height: 0.9;
  max-width: 14ch;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero h1 em {
  font-style: normal;
  background: var(--irid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-foot {
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-sub {
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}
.hero-sub strong { color: var(--fg); font-weight: 500; }

.scroll-cue {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.scroll-cue .bar {
  width: 1px; height: 46px;
  background: linear-gradient(var(--muted), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .bar::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 40%;
  background: var(--fg);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(260%);} }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--line);
  padding-block: 1.6rem;
  overflow: hidden;
  background: rgba(8,8,10,0.6);
  backdrop-filter: blur(6px);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 80s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  white-space: nowrap;
}
.marquee-item::after {
  content: "✺";
  color: var(--accent);
  font-size: 0.7em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto .lead {
  font-family: var(--display);
  font-weight: 500;
  text-align: center;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.4rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.manifesto .lead .word {
  display: inline-block;
  opacity: 0.16;
  transition: opacity .6s var(--ease);
}
.manifesto .lead.lit .word { opacity: 1; }
.manifesto .lead em {
  font-style: normal;
  background: var(--irid);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.manifesto-grid {
  margin-top: clamp(3rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.manifesto-grid .col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.9rem;
}
.manifesto-grid .col p { color: var(--muted); font-size: 1rem; max-width: 32ch; }
@media (max-width: 820px) { .manifesto-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* =========================================================
   CAPABILITIES (accordion)
   ========================================================= */
.cap-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.cap-head h2 {
  font-size: clamp(2.4rem, 6.5vw, 5.6rem);
  max-width: 16ch;
}
.cap-head p { color: var(--muted); max-width: 34ch; }

.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.6rem, 3.5vh, 2.6rem) 0;
  text-align: left;
  font-family: var(--display);
  transition: padding .5s var(--ease);
}
.acc-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.acc-title {
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  transition: color .4s var(--ease), transform .6s var(--ease);
}
.acc-item:hover .acc-title { transform: translateX(10px); }
.acc-sign {
  width: 30px; height: 30px;
  position: relative;
  flex: none;
}
.acc-sign::before, .acc-sign::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--fg);
  transition: transform .5s var(--ease), background .4s;
}
.acc-sign::before { width: 100%; height: 1.5px; }
.acc-sign::after  { width: 1.5px; height: 100%; }
.acc-item.open .acc-sign::after { transform: scaleY(0); }
.acc-item.open .acc-title {
  background: var(--irid);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.acc-panel > .acc-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity .5s var(--ease) .05s;
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-item.open .acc-panel > .acc-inner { opacity: 1; }

.acc-services-list {
  padding: 0 0 clamp(1.5rem, 4vh, 2.5rem) calc(4.5rem + 1.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 2rem;
}

.svc-row { border-bottom: 1px solid var(--line); }
.svc-row:first-child { border-top: 1px solid var(--line); }

.acc-service {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  color: var(--muted);
  font-family: var(--body);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color .3s;
}
.acc-service:hover { color: var(--fg); }
.svc-row--active .acc-service { color: var(--fg); }
.svc-row--active .svc-name {
  background: var(--irid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.acc-service .i {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  flex: none;
  transition: color .3s;
}
.svc-name { flex: 1; }

.svc-toggle {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--muted-2);
  flex: none;
  line-height: 1;
  transition: transform .4s var(--ease), color .3s;
  transform-origin: center;
}
.svc-toggle.open {
  transform: rotate(45deg);
  color: var(--accent);
}

/* inline service dropdown */
.svc-drop-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease);
}
.svc-drop-panel.open { grid-template-rows: 1fr; }
.svc-drop-inner { overflow: hidden; }

.svc-drop-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1rem 1.4rem 1.5rem;
  margin-bottom: 0.5rem;
  background: rgba(124, 132, 255, 0.04);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  box-shadow: inset 0 0 40px rgba(124,132,255,0.03);
}
.svc-drop-desc {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 54ch;
  flex: 1;
}
.svc-inline-btn {
  font-size: 0.88rem;
  padding: 0.7em 1.5em;
  background: var(--irid);
  color: #08080a;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(124,132,255,0.3);
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.svc-inline-btn:hover {
  box-shadow: 0 0 32px rgba(124,132,255,0.55);
  filter: brightness(1.06);
}

/* gradient text utility */
.irid {
  background: var(--irid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  .acc-btn { grid-template-columns: 2.6rem 1fr auto; gap: 1rem; }
  .acc-services-list { padding-left: 0; }
  .svc-drop-content { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   PROCESS — premium 2×2 card grid
   ========================================================= */
.process { background: var(--bg-2); }
.process-head { margin-bottom: clamp(3rem, 7vh, 5rem); }
.process-head h2 { font-size: clamp(2.2rem, 6vw, 5rem); max-width: 14ch; }

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.steps-grid { display: none; } /* replaced by timeline */

/* ── Process Timeline ── */
.process-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 3rem;
}

.process-spine {
  position: absolute;
  left: 0;
  top: 1.6rem;
  bottom: 1.6rem;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(124,132,255,0.5) 15%,
    rgba(124,132,255,0.5) 85%,
    transparent 100%);
}

.process-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding: clamp(2.5rem, 5vh, 4rem) 0;
  border-bottom: 1px solid var(--line);
}
.process-row:last-child { border-bottom: none; }

.process-node {
  position: absolute;
  left: calc(-3rem - 12px);
  top: clamp(2.5rem, 5vh, 4rem);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid rgba(124,132,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(124,132,255,0.3);
}
.process-node-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.process-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
}

.process-ghost-num {
  font-family: var(--display);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124,132,255,0.12);
  position: absolute;
  right: 0;
  top: -1rem;
  pointer-events: none;
  user-select: none;
}

.process-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--fg);
  max-width: 18ch;
}

.process-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 52ch;
}

@media (max-width: 640px) {
  .process-timeline { padding-left: 2rem; }
  .process-node { left: calc(-2rem - 12px); }
  .process-ghost-num { display: none; }
}

  gap: 1.4rem;
}

.step-card {
  position: relative;
  background: var(--bg-3);
  border-radius: 24px;
  padding: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .4s;
  cursor: default;
}

/* rotating conic border glow — appears on hover */
.step-card::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 25px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 65%,
    rgba(124, 132, 255, 0.85) 80%,
    rgba(200, 210, 255, 1)    87%,
    transparent 94%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity .5s;
  animation: spin-border 3s linear infinite;
}

/* inner fill so only the border shows */
.step-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  background: var(--bg-3);
  z-index: -1;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(124, 132, 255, 0.10);
}
.step-card:hover::before { opacity: 1; }

@keyframes spin-border {
  to { --border-angle: 360deg; }
}

/* giant ghost number watermark */
.step-ghost-num {
  position: absolute;
  bottom: -0.12em;
  right: 0.05em;
  font-family: var(--display);
  font-size: clamp(6rem, 13vw, 11rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* eyebrow row */
.step-card-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.step-card-num::after {
  content: '';
  height: 1px;
  width: 36px;
  background: var(--accent);
  opacity: 0.45;
}

.step-card-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.step-card-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 38ch;
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why-us {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vh, 8rem) 0;
  isolation: isolate;
}
.why-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.72;
}
.why-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(8,8,10,0.55) 18%, rgba(8,8,10,0.55) 82%, var(--bg) 100%);
}
.why-inner { position: relative; z-index: 1; }

.why-head {
  margin-bottom: clamp(3rem, 6vh, 5rem);
}
.why-head h2 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  margin-top: 0.75rem;
  line-height: 1.0;
}

/* Symmetrical 2-col grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  gap: 0.9rem;
}

.why-card {
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: clamp(1.6rem, 2.5vw, 2.4rem);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.45s, box-shadow 0.45s, transform 0.45s var(--ease), background 0.45s;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.why-card:hover {
  background: rgba(124,132,255,0.055);
  border-color: rgba(124,132,255,0.35);
  box-shadow: 0 0 48px rgba(124,132,255,0.1), inset 0 1px 0 rgba(255,255,255,0.07);
  transform: translateY(-4px);
}

.why-icon {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  background: var(--irid);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.why-card-title {
  font-family: var(--display);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
}
.why-card-desc {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  flex: 1;
}

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

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: clamp(8rem, 20vh, 16rem);
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 55%, rgba(124,132,255,0.16), transparent 70%);
}
.cta .eyebrow { margin-bottom: 2rem; }
.cta h2 {
  font-size: clamp(2.8rem, 9vw, 9rem);
  line-height: 0.92;
}
.cta h2 em {
  font-style: normal;
  background: var(--irid);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-actions {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 8vh, 6rem) 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}
.footer .brand { font-size: 2rem; margin-bottom: 1.2rem; }
.footer-blurb { color: var(--muted); max-width: 34ch; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: var(--muted); transition: color .3s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  text-transform: uppercase;
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer .brand { font-size: 1.6rem; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }

/* typewriter cursor */
.type-cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  line-height: 1;
  margin-left: 2px;
  animation: blink .65s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* service inline dropdown — styles in CAPABILITIES section above */

/* =========================================================
   REVEAL / PARALLAX
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* headline: always visible (no motion dependency). The hero's
   drama comes from the 3D blob, marquee, and scroll reveals. */
.hero h1 .line > span {
  display: block;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .manifesto .lead .word { opacity: 1; }
}
