/* Streamline Squad site redesign layer.
   Loads after each page's own styles and changes how things look, never what they say.
   One background colour throughout. Tokens match the live site. */

:root {
  --bg: #0E121A;
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.065);
  --border: rgba(255,255,255,0.075);
  --border-strong: rgba(255,255,255,0.16);
  --violet: #6E56CF;
  --blue: #3B9EFF;
  --violet-soft: #9B88F5;
  --gradient: linear-gradient(135deg, #6E56CF, #3B9EFF);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fs-display: clamp(48px, 6.8vw, 100px);
  --fs-h2: clamp(34px, 4.6vw, 62px);
  --fs-h3: clamp(22px, 2.2vw, 28px);
  --fs-lead: clamp(17px, 1.5vw, 20px);
}

/* ---------- Base ---------- */
html { scroll-padding-top: 96px; }
body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* dot grid texture, same background colour, texture only */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 85%);
}
body > * { position: relative; z-index: 1; }
::selection { background: rgba(110,86,207,0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1180px; }

/* ---------- Section rhythm and numbered labels ---------- */
main, body { counter-reset: rd-section; }
section:not(.cta-section) { padding: clamp(72px, 9vw, 128px) 0; }
.section-airy { padding: clamp(88px, 11vw, 150px) 0 !important; }
.section-tight { padding: clamp(56px, 6vw, 88px) 0 !important; }

.section-label,
.page-eyebrow,
.vision-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
.section-label::before {
  counter-increment: rd-section;
  content: counter(rd-section, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  color: var(--violet-soft);
}
.section-label::after {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--gradient);
  opacity: 0.8;
}
section + section::before { width: min(820px, 90%); }

/* ---------- Headings ---------- */
.problem-headline, .process-headline, .services-headline, .testimonials-headline,
.faq-headline, .certs-headline, .section-headline, .built-headline, .cs-headline,
.stats-headline, .story-headline, .mission-headline, .vision-headline, .wa-headline,
.hw-headline {
  font-size: var(--fs-h2) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.004em;
  text-wrap: balance;
}
.problem-body, .process-sub, .services-sub, .faq-sub, .certs-sub, .section-sub,
.built-sub, .stats-sub { font-size: var(--fs-lead); color: rgba(255,255,255,0.62); }
.process-intro, .services-header, .certs-intro, .faq-header { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 0 !important; letter-spacing: 0.005em; }
.btn-primary {
  background-image: var(--gradient);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 10px 30px -10px rgba(110,86,207,0.65);
  border-radius: 0;
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,0.2) inset, 0 16px 40px -10px rgba(110,86,207,0.85); }
.btn-secondary { border-radius: 0; }
.btn-secondary::before { border-radius: 0; background: rgba(255,255,255,0.2); }
.btn-secondary-inner { border-radius: 0; background: rgba(14,18,26,0.6); backdrop-filter: blur(8px); }
.footer-cta-btn { border-radius: 0; }

/* ---------- Navigation ---------- */
.nav {
  background: rgba(14,18,26,0.62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(14,18,26,0.82); }
.nav-inner { height: 76px; transition: height 0.3s var(--ease); }
.nav.scrolled .nav-inner { height: 64px; }
.nav-logo img { height: 62px; transition: height 0.3s var(--ease); }
.nav.scrolled .nav-logo img { height: 52px; }
.nav-links a { font-size: 14px; letter-spacing: 0.01em; }
.scroll-progress { height: 2px; background: var(--gradient); box-shadow: 0 0 12px rgba(110,86,207,0.8); }
.cursor-glow { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 8vw, 120px) 0 clamp(64px, 7vw, 104px); isolation: isolate; }
.hero-orb { display: none; }
.hero-gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: 0; transition: opacity 1.4s ease; pointer-events: none;
}
.hero-gl.on { opacity: 1; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* keeps the text readable over the moving background */
  background:
    radial-gradient(ellipse 62% 52% at 50% 46%, rgba(14,18,26,0.78), rgba(14,18,26,0.35) 62%, transparent 82%),
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(110,86,207,0.18), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero > .container { position: relative; z-index: 2; }
.hero-headline {
  font-size: var(--fs-display);
  line-height: 1.03;
  letter-spacing: -0.012em;
  max-width: none;
  margin-left: auto; margin-right: auto;
  text-shadow: 0 2px 40px rgba(14,18,26,0.6);
}
/* gradient words: the clip has to sit on each word, not on the wrapper */
.hero-headline .word, .hero-eyebrow .word { display: inline-block; }
.hero-headline .gradient-text .word {
  background: linear-gradient(135deg, #B9ABFF, #6CB6FF, #A596FF, #6CB6FF);
  background-size: 250% 250%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* from library entry 12 (hero-section.css), unchanged */
@keyframes word-appear {
  0% { opacity: 0; transform: translateY(30px) scale(0.8); filter: blur(10px); }
  50% { opacity: 0.8; transform: translateY(10px) scale(0.95); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes grid-draw { 0% { stroke-dashoffset: 1000; opacity: 0; } 50% { opacity: 0.3; } 100% { stroke-dashoffset: 0; opacity: 0.15; } }
@keyframes pulse-glow { 0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.1); } }
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  25% { transform: translateY(-10px) translateX(5px); opacity: 0.6; }
  50% { transform: translateY(-5px) translateX(-3px); opacity: 0.4; }
  75% { transform: translateY(-15px) translateX(7px); opacity: 0.8; }
}
/* the classes the saved keyframes were meant for (the library paste had none) */
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-grid .grid-line { stroke: rgba(155,136,245,0.35); stroke-width: 0.5; stroke-dasharray: 1000; stroke-dashoffset: 1000; opacity: 0; animation: grid-draw 2s ease-out forwards; }
.hero-grid .detail-dot { fill: rgba(155,136,245,0.6); opacity: 0; animation: word-appear 1s ease-out forwards; }
.corner-element { position: absolute; width: 8px; height: 8px; background: rgba(155,136,245,0.5); opacity: 0; z-index: 1; pointer-events: none; animation: word-appear 1s ease-out forwards; }
.corner-tl { top: 28px; left: 28px; } .corner-tr { top: 28px; right: 28px; }
.corner-bl { bottom: 28px; left: 28px; } .corner-br { bottom: 28px; right: 28px; }
.floating-element { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #9B88F5; opacity: 0; z-index: 1; pointer-events: none; animation: float 6s ease-in-out infinite; animation-play-state: paused; }
.hero-mouse-glow { position: absolute; width: 384px; height: 384px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; filter: blur(48px); transition: opacity 0.5s ease-out, left 0.5s ease-out, top 0.5s ease-out; background: radial-gradient(circle, rgba(110,86,207,0.22) 0%, transparent 100%); }
.hero-ripple { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(155,136,245,0.7); transform: translate(-50%, -50%); pointer-events: none; z-index: 3; animation: pulse-glow 1s ease-out forwards; }
.hero-sub { font-size: var(--fs-lead); max-width: 600px; color: rgba(255,255,255,0.7); }
.hero-eyebrow { backdrop-filter: blur(10px); background: rgba(255,255,255,0.05); }
.hero-actions { margin-bottom: clamp(48px, 6vw, 80px); }
.hero-stats { margin-bottom: 28px; padding-bottom: 28px; }

/* proof bar */
.proof-block {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.stat-number { font-size: clamp(40px, 5vw, 72px); }
.stat-number--word { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.5; }
.trust-pill { backdrop-filter: blur(6px); }

/* ---------- Glass cards (shared) ---------- */
.process-card, .service-card, .problem-item, .hw-item, .built-card, .cs-card, .deliverable-card,
.path-card, .res-card, .tier, .wl-step, .expect-step, .kt-box, .pt-inc, .pull-quote-block, .city-chip, .wa-chip {
  --mouse-x: 50%; --mouse-y: 50%;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s, background 0.3s;
}
.problem-item, .hw-item, .city-chip, .wa-chip, .pt-inc, .expect-step, .wl-step { border-radius: var(--radius-md); }
.process-card::after, .service-card::after, .problem-item::after, .hw-item::after, .built-card::after,
.cs-card::after, .deliverable-card::after, .path-card::after, .res-card::after, .tier::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mouse-x) var(--mouse-y), rgba(110,86,207,0.16), transparent 62%);
  opacity: 0; transition: opacity 0.35s;
}
.process-card:hover, .service-card:hover, .problem-item:hover, .hw-item:hover, .built-card:hover,
.cs-card:hover, .deliverable-card:hover, .path-card:hover, .res-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110,86,207,0.4);
  box-shadow: 0 24px 60px -28px rgba(110,86,207,0.55);
}
.process-card:hover::after, .service-card:hover::after, .problem-item:hover::after, .hw-item:hover::after,
.built-card:hover::after, .cs-card:hover::after, .deliverable-card:hover::after, .path-card:hover::after,
.res-card:hover::after, .tier:hover::after { opacity: 1; }
.problem-item:hover { background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)); }
.problem-x { border-radius: 8px; }

/* featured card: gradient hairline border */
.tier.featured, .path-card.featured, .service-card.featured {
  border: 1px solid transparent;
  background: linear-gradient(#131826, #0f1320) padding-box, var(--gradient) border-box;
}

/* ---------- Homepage: The Leak ---------- */
.problem-grid { gap: clamp(40px, 6vw, 96px); }
.problem-list { gap: 16px; }
.problem-item { padding: 22px 24px; }

/* ---------- Process: three connected steps ---------- */
.process-grid { gap: 20px; position: relative; counter-reset: rd-step; }
.process-card { padding: 36px 32px 34px; overflow: hidden; }
.process-number {
  font-size: clamp(72px, 8vw, 110px);
  opacity: 1;
  background: none;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px rgba(155,136,245,0.55);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.process-card:hover .process-number { -webkit-text-stroke-color: rgba(59,158,255,0.9); }
.hwb-v { border-radius: var(--radius-lg); box-shadow: 0 40px 100px -50px rgba(110,86,207,0.5); }

/* ---------- Services: bento ---------- */
@media (min-width: 901px) {
  .services-grid { grid-template-columns: repeat(12, 1fr); gap: 20px; }
  .services-grid > :nth-child(1) { grid-column: span 7; }
  .services-grid > :nth-child(2) { grid-column: span 5; }
  .services-grid > :nth-child(3) { grid-column: span 5; }
  .services-grid > :nth-child(4) { grid-column: span 7; }
  .services-grid > :nth-child(1), .services-grid > :nth-child(4) { padding: 40px; }
  .services-grid > :nth-child(1) .service-name, .services-grid > :nth-child(4) .service-name { font-size: clamp(30px, 3vw, 40px); }
}
.service-card { padding: 34px; }
.service-name { font-size: var(--fs-h3); }
.service-tier { color: var(--violet-soft); letter-spacing: 0.14em; }

/* ---------- Testimonials ---------- */
.testimonials-grid { gap: 32px; }
.testimonial-card { height: 480px; border-radius: 12px; border: 1px solid var(--border); }
/* entry 24 uses black 70% to 40% to clear; the bottom is kept a little darker for white text on bright photos, as its notes advise */
.testimonial-overlay { background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 48%, rgba(0,0,0,0) 100%); }
.testimonial-quote { font-size: 16px; }

/* ---------- Certifications ---------- */
.certs-grid { gap: 14px 22px; }
.cert-badge { filter: drop-shadow(0 8px 24px rgba(110,86,207,0.25)); }

/* ---------- FAQ ---------- */
.faq-list { background: var(--surface); border-radius: var(--radius-lg); backdrop-filter: blur(8px); }
.faq-question { padding: 26px 32px; font-size: 17px; }
/* the answer lines up with the question: same 32px each side on every page, whatever the page's own padding */
.faq-answer-inner { padding-left: 32px; padding-right: 32px; }


/* ---------- Inner page header ---------- */
.page-header { position: relative; padding: clamp(72px, 9vw, 130px) 0 clamp(48px, 6vw, 84px); overflow: hidden; isolation: isolate; }
.page-header::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: none; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 15% 0%, rgba(110,86,207,0.24), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 20%, rgba(59,158,255,0.1), transparent 70%);
}
.page-headline { font-size: clamp(44px, 6.6vw, 92px) !important; line-height: 0.98 !important; letter-spacing: -0.024em; text-wrap: balance; }
.page-sub { font-size: var(--fs-lead); color: rgba(255,255,255,0.66); }
.page-eyebrow::after { content: ''; width: 44px; height: 1px; background: var(--gradient); }
.bc { font-size: 13px; }
.company-badge, .cs-badge, .tier-badge, .service-tier-badge, .tier-tag {
  border-radius: 999px;
}

/* big numbers and stat bands */
.stats-band { position: relative; }
.stat-num, .cs-metric-num, .path-price { letter-spacing: -0.02em; }
.cs-card, .res-card, .built-card, .deliverable-card, .path-card, .tier { padding-block: 30px; }

/* tables */
.ptable-wrap, .pt-wrap { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: auto; background: var(--surface); }

/* quotes */
.pull-quote-block, .mission-inner { border-radius: var(--radius-lg); }
.pull-quote-text, .mission-quote-text { text-wrap: balance; }

/* team photos */
.m-photo, .page-header-photo { border-radius: var(--radius-lg); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: clamp(64px, 8vw, 104px); }
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(110,86,207,0.5) 30%, rgba(59,158,255,0.35) 70%, transparent);
}
.footer-tagline { font-size: 20px; }

/* ---------- Mobile menu: full screen, large type, staggered ---------- */
.nav-hamburger { border: 1px solid var(--border); border-radius: 999px; width: 44px; height: 44px; align-items: center; }
.mobile-nav {
  inset: 0; top: 0; right: 0; width: 100%; max-width: none; height: 100dvh;
  background: #0E121A; border-left: none; box-shadow: none; padding: 96px 28px 36px;
  visibility: hidden; overflow-y: auto; overflow-x: hidden; transition: none;
}
.mobile-nav.open, .mobile-nav.rd-closing { visibility: visible; }
/* without the script (or GSAP) fall back to a plain, instant menu */
.mobile-nav.rd-plain { visibility: hidden; }
.mobile-nav.rd-plain.open { visibility: visible; }
.mobile-nav-overlay { display: none; }
/* entry 16 structure: backdrop layers and abstract shapes sit behind the links */
.mobile-nav .menu-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mobile-nav .backdrop-layer { position: absolute; inset: 0; transform: translateX(101%); background: #171329; }
.mobile-nav .backdrop-layer.first { background: #241a5e; }
.mobile-nav .backdrop-layer.second { background: #1a1440; }
.mobile-nav .backdrop-layer:last-of-type { background: #0E121A; }
.mobile-nav .ambient-background-shapes { position: absolute; inset: 0; }
.mobile-nav .bg-shape { position: absolute; right: -8%; bottom: -4%; width: min(90vw, 520px); height: min(90vw, 520px); opacity: 0; transition: none; }
.mobile-nav .bg-shape.active { opacity: 1; }
.mobile-nav .mobile-nav-links, .mobile-nav .mobile-nav-cta, .mobile-nav .mobile-nav-close { position: relative; z-index: 2; }
.mobile-nav .mobile-nav-close { position: absolute; }
.mobile-nav-links li a {
  font-family: 'Anton', sans-serif; font-size: clamp(36px, 11vw, 56px); line-height: 1.1;
  padding: 10px 0; border-bottom: none; color: rgba(255,255,255,0.88);
  letter-spacing: -0.01em; text-transform: none;
}
.mobile-nav-links li a:hover { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .hero-headline { font-size: clamp(44px, 13vw, 68px); max-width: 12ch; }
  .testimonial-card { height: 420px; }
  .process-card, .service-card { padding: 28px 24px; }
  .proof-block { padding: 28px 20px; }
  .problem-headline, .process-headline, .services-headline, .testimonials-headline { letter-spacing: -0.015em; }
}

/* ---------- Reduced motion: still, readable, nothing looping ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-gl { display: none; }
  .hero-grid, .corner-element, .floating-element, .hero-mouse-glow, .hero-ripple { display: none; }
  .gradient-text { animation: none; }
  .hero-eyebrow-dot::before { animation: none; }
  .process-card:hover, .service-card:hover, .problem-item:hover, .hw-item:hover, .built-card:hover,
  .cs-card:hover, .deliverable-card:hover, .path-card:hover, .res-card:hover { transform: none; }
}

/* secondary button: square corners, matching the homepage's own button rules */
a.btn.btn-secondary,
a.btn.btn-secondary::before,
a.btn.btn-secondary .btn-secondary-inner { border-radius: 0 !important; }

/* mobile menu: dropdown rows match the large links */
.m-dd-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: 0; cursor: pointer; padding: 10px 0;
  font-family: 'Anton', sans-serif; font-size: clamp(36px, 11vw, 56px); line-height: 1.1;
  color: rgba(255,255,255,0.85); letter-spacing: -0.01em;
}
.m-dd-caret { font-family: 'DM Sans', sans-serif; font-size: 28px; color: var(--blue); }
.mobile-nav-links .m-dd-panel a {
  font-family: 'DM Sans', sans-serif; font-size: 18px; line-height: 1.4; padding: 9px 0;
  color: rgba(255,255,255,0.62); letter-spacing: 0;
}
.m-dd-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-soft); }


/* hero eyebrow: words are separate items now, let them wrap on narrow screens */
.hero-eyebrow { flex-wrap: wrap; justify-content: center; gap: 0 0.45em; max-width: 100%; }
.hero-eyebrow-dot { margin-right: 0.4em; }

/* ---------- Services: list beside a masked stage (library entry 7) ---------- */
.svc-stage.ready { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svc-left { min-width: 0; }
.svc-list { list-style: none; display: flex; flex-direction: column; gap: clamp(14px, 2vw, 26px); margin: 0 0 32px; padding: 0; }
.svc-item {
  display: flex; align-items: flex-start; gap: 22px; width: 100%; text-align: left;
  background: none; border: 0; padding: 4px 0; cursor: pointer; color: inherit; font: inherit;
}
.svc-num { font-family: var(--font-heading, 'Anton', sans-serif); font-size: clamp(22px, 2.4vw, 30px); margin-top: 6px; color: rgba(255,255,255,0.35); transition: color 0.5s, transform 0.5s var(--ease); }
.svc-name {
  font-family: 'Anton', sans-serif; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.95;
  font-size: clamp(38px, 5vw, 66px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.38);
  transition: transform 0.6s var(--ease), color 0.5s, -webkit-text-stroke-color 0.5s;
}
.svc-item:hover .svc-name { -webkit-text-stroke-color: rgba(155,136,245,0.8); }
.svc-li.active .svc-num { color: var(--violet-soft); transform: scale(1.1); }
.svc-li.active .svc-name { color: #fff; -webkit-text-stroke-color: transparent; transform: translateX(14px); }
.svc-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.svc-panels { display: block; }
.svc-panels > .service-card { margin: 0; padding: 28px 30px; }
.svc-panels > .service-card[hidden] { display: none; }
.svc-panels .service-name, .svc-panels .service-divider { display: none; } /* the name is in the list above */
.svc-right { position: sticky; top: 110px; display: flex; align-items: center; justify-content: center; }
.svc-art { position: relative; z-index: 1; width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)); }
.svc-glow { position: absolute; width: 130%; height: 130%; border-radius: 50%; background: radial-gradient(circle, rgba(110,86,207,0.22), transparent 62%); filter: blur(30px); pointer-events: none; }
@media (max-width: 900px) {
  .svc-stage.ready { grid-template-columns: 1fr; }
  .svc-right { position: relative; top: auto; order: -1; margin-bottom: 8px; }
  .svc-art { max-width: 300px; }
  .svc-name { font-size: clamp(34px, 11vw, 52px); }
}

/* ---------- Tools: pills ride an ellipse (library entry 10) ---------- */
.wa-tools .halo.ready { position: relative; height: clamp(440px, 46vw, 560px); margin-top: 8px; overflow: hidden; outline: none; touch-action: pan-y; user-select: none; cursor: grab; text-align: left; }
.wa-tools .halo.ready:active { cursor: grabbing; }
.wa-tools .halo:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); border-radius: var(--radius-lg); }
.halo-label { position: absolute; top: 0; bottom: 0; right: 0; z-index: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 8px 0 0; }
.halo-label h3 { text-align: left; margin: 0 0 14px; }
.halo-label .wa-tools-sub { margin: 0; text-align: left; max-width: 460px; }
.halo .halo-card {
  position: absolute; left: 0; top: 50%; display: flex; align-items: center; justify-content: center;
  padding: 0 18px; font-size: 17px; font-weight: 500; white-space: nowrap; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--border-strong); box-shadow: 0 18px 40px -22px rgba(0,0,0,0.9); will-change: transform;
}
.halo .halo-card.flagship { border: 1px solid transparent; background: linear-gradient(#171b2b, #171b2b) padding-box, var(--gradient) border-box; color: #fff; font-weight: 600; }
.halo-pause { position: absolute; right: 4px; bottom: 6px; z-index: 5000; border: 1px solid var(--border-strong); background: rgba(14,18,26,0.7); color: rgba(255,255,255,0.75); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; backdrop-filter: blur(8px); }
.halo-pause:hover { color: #fff; border-color: rgba(155,136,245,0.6); }

/* ---------- Process: sticky stage beside the steps (library entry 20) ---------- */
.proc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.proc-stage { position: sticky; top: 14vh; height: min(70vh, 520px); border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); overflow: hidden; }
.proc-stage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 30% 20%, rgba(110,86,207,0.25), transparent 70%); }
.proc-vis { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; opacity: 0; transition: opacity 0.4s ease; }
.proc-vis.on { opacity: 1; }
.proc-vis svg { width: 100%; height: auto; max-height: 100%; }
.proc-steps.process-grid { display: flex; flex-direction: column; gap: 0; grid-template-columns: none; }
.proc-steps > .process-card { min-height: min(58vh, 460px); display: flex; flex-direction: column; justify-content: center; margin: 0; will-change: opacity, transform; transition: none; }
.proc-steps > .process-card:hover { transform: none; }
@media (max-width: 959px) { .proc-split { display: block; } }

@media (prefers-reduced-motion: reduce) {
  .halo-pause { display: none; }
}

/* the stage glow is wider than its box on purpose, clip it so the page never scrolls sideways */
.svc-stage { overflow-x: clip; }
.svc-right { overflow: clip; }
@media (min-width: 901px) { .svc-right { overflow: visible; } }


/* step cards: the live styles were rows with a rule under each, now they are cards, so they need room */
.expect-steps, .wl-steps { gap: 16px; }
.expect-step { padding: 28px 34px; gap: 28px; grid-template-columns: 56px 1fr; border-bottom: 1px solid var(--border); }
.expect-section { padding: clamp(32px, 5vw, 64px); }
.wl-step { padding: 28px 28px; }
.pt-inc, .kt-box { padding: 22px 26px; }
.deliverable-card, .path-card, .res-card, .built-card, .cs-card { padding: 28px 30px; }
@media (max-width: 640px) {
  .expect-step { padding: 22px 20px; gap: 18px; grid-template-columns: 40px 1fr; }
  .expect-section { padding: 28px 18px; }
}

/* process stage: a picture for each step behind the drawing */
.proc-bg { position: absolute; top: 0; left: 0; width: 100%; height: 62%; object-fit: cover; opacity: 0.75;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); mask-image: linear-gradient(to bottom, #000 50%, transparent 100%); }
.svc-art image { filter: brightness(1.18) saturate(1.15); }
.proc-vis svg { position: relative; }

/* Services page headline: the word reveal. Once split, each word paints its own gradient and the wrapper paints none. */
.page-headline .word { display: inline-block; }
.page-headline.is-split .gradient-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: initial; animation: none; }
.page-headline .gradient-text .word {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Services page: the pinned list of the four services */
.service-card { scroll-margin-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.svc-rail { display: none; }
@media (min-width: 1100px) {
  .svc-layout { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 32px; }
  .svc-layout > .services-list { min-width: 0; }
  .svc-layout .service-card-left, .svc-layout .service-card-right { padding: 36px; }
  .svc-rail { display: block; }
  .svc-rail-inner { position: sticky; top: 132px; margin-top: 80px; }
}
.svc-rail-list { position: relative; list-style: none; margin: 0; padding: 0; }
.svc-rail-track { position: absolute; left: 6px; width: 2px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.svc-rail-fill { display: block; width: 100%; height: 0; border-radius: 2px; background: linear-gradient(180deg, #8B73F0, #3B9EFF); box-shadow: 0 0 10px rgba(110,86,207,0.55); transition: height 0.2s linear; }
.svc-rail-link { position: relative; display: block; padding: 11px 0 11px 30px; text-decoration: none; color: rgba(255,255,255,0.5); transition: color 0.25s; }
.svc-rail-link::before { content: ''; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #0E121A; border: 1.5px solid rgba(255,255,255,0.28); box-sizing: border-box; transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.svc-rail-link.past::before { background: #8B73F0; border-color: transparent; }
.svc-rail-link.on::before { background: linear-gradient(135deg, #8B73F0, #3B9EFF); border-color: transparent; box-shadow: 0 0 0 4px rgba(110,86,207,0.28), 0 0 16px rgba(110,86,207,0.75); }
.svc-rail-link:hover { color: rgba(255,255,255,0.85); }
.svc-rail-link.on { color: #fff; }
.svc-rail-link:focus-visible { outline: 2px solid #9B88F5; outline-offset: 2px; border-radius: 6px; }
.svc-rail-name { display: block; font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
.svc-rail-tag { display: block; margin-top: 3px; font-size: 10.5px; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.32); transition: color 0.25s; }
.svc-rail-link.on .svc-rail-tag { color: #9B88F5; }
@media (prefers-reduced-motion: reduce) {
  .svc-rail-link, .svc-rail-link::before, .svc-rail-tag, .svc-rail-fill { transition: none; }
}

/* the line down a list of real steps (AI Squad, Foundation Build, Streamline Partner, White-label) */
.has-line { position: relative; padding-left: 44px; }
.has-line > .tl-item { position: relative; }
.has-line > .tl-item::before { content: ''; position: absolute; left: -37px; top: calc(var(--tl-y, 46px) - 6px); width: 12px; height: 12px; border-radius: 50%; background: #0E121A; border: 1.5px solid rgba(255,255,255,0.28); box-sizing: border-box; transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.has-line > .tl-item.past::before { background: #8B73F0; border-color: transparent; }
.has-line > .tl-item.on::before { background: linear-gradient(135deg, #8B73F0, #3B9EFF); border-color: transparent; box-shadow: 0 0 0 4px rgba(110,86,207,0.28), 0 0 16px rgba(110,86,207,0.75); }
.expect-track { position: absolute; left: 12px; width: 2px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.expect-fill { display: block; width: 100%; height: 0; border-radius: 2px; background: linear-gradient(180deg, #8B73F0, #3B9EFF); box-shadow: 0 0 10px rgba(110,86,207,0.55); transition: height 0.2s linear; }
@media (max-width: 639px) {
  .has-line { padding-left: 30px; }
  .has-line > .tl-item::before { left: -25px; }
  .expect-track { left: 10px; }
}

/* entry 5: the soft moving gradient behind the right of the page header, fading out toward the text */
.page-header > .container { position: relative; z-index: 2; }
.hero-gl { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.6s ease; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 62% 95% at 82% 45%, #000 18%, transparent 72%), linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 62% 95% at 82% 45%, #000 18%, transparent 72%), linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-composite: intersect; }
.hero-gl.on { opacity: 0.42; }
.hero-gl canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 959px) { .hero-gl { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-gl { display: none; } }

/* entry 32: the map of the cities */
.city-map { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #0f131b; }
.city-map-canvas { width: 100%; height: clamp(280px, 38vw, 420px); background: #0f131b; }
.city-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.82) contrast(0.92) saturate(0.55); }
.city-map .leaflet-container { font-family: inherit; background: #0f131b; }
.city-map .leaflet-control-attribution { background: rgba(14,18,26,0.7); color: rgba(255,255,255,0.5); font-size: 10px; }
.city-map .leaflet-control-attribution a { color: rgba(255,255,255,0.7); }
.city-map .leaflet-bar a { background: #141922; color: #fff; border-color: rgba(255,255,255,0.12); }
.city-map .leaflet-popup-content-wrapper { background: #141922; color: #fff; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; }
.city-map .leaflet-popup-tip { background: #141922; }
.city-map .leaflet-popup-content { margin: 10px 14px; font-size: 14px; font-weight: 600; }
.city-map .leaflet-popup-content a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(155,136,245,0.8); }
.city-pin span { display: block; width: 14px; height: 14px; margin: 2px; border-radius: 50%; background: linear-gradient(135deg, #8B73F0, #3B9EFF); box-shadow: 0 0 0 4px rgba(110,86,207,0.3), 0 0 14px rgba(110,86,207,0.8); }
@media (prefers-reduced-motion: reduce) { .has-line > .tl-item::before, .expect-fill { transition: none; } }

/* entry 23: the crosshair frame and the portrait that dissolves into the page */
.xf { position: relative; }
.xf-line { position: absolute; z-index: 2; pointer-events: none; background: rgba(255,255,255,0.24); }
.xf-v { top: -22%; bottom: -22%; width: 1px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%); }
.xf-h { left: -15%; right: -15%; height: 1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 76%, transparent 100%); }
.xf-l { left: 0; } .xf-r { right: 0; } .xf-t { top: 0; } .xf-b { bottom: 0; }
.m-photo.xf img { border-radius: 0; border: 0; box-shadow: none;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 56%, transparent 78%); mask-image: radial-gradient(circle at 50% 46%, #000 56%, transparent 78%); }
.team-list { overflow-x: clip; }
@media (max-width: 768px) { .xf-h { left: -8%; right: -8%; } }

/* About: the portrait in a large circle with a second circle behind it (entry 25) */
.page-header-photo { max-width: 460px; justify-self: center; width: 100%; }
.page-header-photo::before { inset: -5%; border-radius: 50%; background: linear-gradient(135deg, #6E56CF, #3B9EFF); opacity: 0.85; transform: translate(7%, 5%); }
.page-header-photo img { aspect-ratio: 1; border-radius: 50%; object-position: center 20%; box-shadow: 0 30px 70px -22px rgba(0,0,0,0.65); }
@media (prefers-reduced-motion: no-preference) {
  .page-header-photo::before { animation: ph-circle 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
  .page-header-photo img { animation: ph-rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
}
@keyframes ph-circle { from { opacity: 0; transform: translate(7%, 5%) scale(0.8); } to { opacity: 0.85; transform: translate(7%, 5%) scale(1); } }
@keyframes ph-rise { from { transform: translateY(40px); } to { transform: none; } }

/* About: the badges as a marquee (entry 15's logo row) */
.story-grid > * { min-width: 0; }
.bm-wrap { position: relative; min-width: 0; max-width: 100%; padding-bottom: 40px; }
.bm { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%); }
.bm-track { display: flex; align-items: center; gap: 16px; width: max-content; animation: bm-scroll 16s linear infinite; }
.bm-track > a { flex: none; display: block; }
@keyframes bm-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.bm:hover .bm-track, .bm:focus-within .bm-track, .bm-wrap.is-paused .bm-track { animation-play-state: paused; }
.bm-pause { position: absolute; right: 0; bottom: -38px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(14,18,26,0.8); color: rgba(255,255,255,0.8); cursor: pointer; }
.bm-pause:focus-visible { outline: 2px solid #9B88F5; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bm-track { animation: none; } .bm-pause { display: none; } }
