/* ===================================================================
   SoftPartners — design tokens
   Palette: deep blue-slate base + trustworthy azure signal accent
=================================================================== */
:root{
  --bg: #0A0B0D;
  --bg-soft: #0D0F12;
  --surface: #131418;
  --surface-2: #18191E;
  --line: #26282C;
  --line-soft: #1C1E22;
  --text: #EDEEEF;
  --text-dim: #9C9FA6;
  --text-faint: #8E9199;

  /* TEMP PREVIEW — pink→purple accent (was electric lime) */
  --lime: #C13AA6;
  --lime-dim: #9B2FE0;
  --lime-soft: rgba(193,58,166,0.12);
  --lime-line: rgba(193,58,166,0.34);

  /* semantic aliases used by newer blocks (trust band, FAQ, signal graph) */
  --accent: var(--lime);
  --accent-strong: var(--lime-dim);
  --accent-bright: #E24FBE;
  --accent-soft: var(--lime-soft);
  --accent-line: var(--lime-line);
  --accent-ink: #06070A;
  --grad: linear-gradient(135deg, #E23A6E 0%, #9B2FE0 100%);

  --amber: #FFB454;
  --red: #FF6B5E;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background: var(--bg);
  color: var(--text);
  font-family:'Inter', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x:hidden;
}
::selection{ background: var(--lime); color:#fff; }
h1,h2,h3,h4{ font-family:'Space Grotesk', sans-serif; font-weight:600; letter-spacing:-0.01em; line-height:1.12; }
.mono{ font-family:'JetBrains Mono', monospace; letter-spacing:0.06em; text-transform:uppercase; }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
ul{ list-style:none; }
button{ font-family:'Inter',sans-serif; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }
@media (max-width:720px){ .wrap{ padding:0 20px; } }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--lime); outline-offset:3px; border-radius:4px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.grain{
  position:fixed; inset:0; pointer-events:none; z-index:1; opacity:0.035; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ HEADER + MEGA MENU ============ */
header{
  position:fixed; top:0; left:0; right:0; z-index:200;
  padding:20px 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom:1px solid transparent;
}
header.scrolled{
  background:rgba(10,11,13,0.86); backdrop-filter:blur(14px) saturate(140%);
  padding:13px 0; border-bottom:1px solid var(--line-soft);
}
.nav{ display:flex; align-items:center; justify-content:space-between; position:relative; }
.logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.logo img{ height:30px; width:auto; }

.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-item{ position:relative; }
.nav-link{
  position:relative;
  display:flex; align-items:center; gap:6px;
  font-size:14.5px; color:var(--text-dim); padding:10px 14px; border-radius:8px;
  transition:color 0.2s; cursor:pointer;
}
.nav-link::after{
  content:''; position:absolute; left:14px; right:14px; bottom:5px; height:1.5px;
  background:var(--lime); border-radius:2px;
  transform:scaleX(0); transform-origin:center; opacity:0;
  transition:transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-link:hover{ color:var(--text); }
.nav-link:hover::after{ transform:scaleX(1); opacity:1; }
.nav-link[aria-current="page"]{ color:var(--text); }
.nav-link[aria-current="page"]::after{ transform:scaleX(1); opacity:1; }
.nav-link svg{ transition:transform 0.25s; opacity:0.6; }
.nav-item.open .nav-link svg{ transform:rotate(180deg); }
.nav-item.open .nav-link{ color:var(--text); }
.nav-item.open .nav-link::after{ transform:scaleX(1); opacity:1; }

.mega{
  position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%) translateY(-8px);
  width:560px; background:var(--surface); border:1px solid var(--line-soft); border-radius:16px;
  padding:22px; box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
  opacity:0; pointer-events:none; transition:opacity 0.22s ease, transform 0.22s ease;
  display:grid; grid-template-columns:1fr 1fr; gap:4px;
}
.nav-item.open .mega{ opacity:1; pointer-events:auto; transform:translateX(-50%) translateY(0); }
.mega a{
  display:flex; align-items:flex-start; gap:12px; padding:12px; border-radius:10px;
  transition:background 0.18s;
}
.mega a:hover{ background:var(--surface-2); }
.mega .mega-ic{
  width:34px; height:34px; flex-shrink:0; border-radius:9px; background:var(--bg-soft);
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--lime);
}
.mega .mega-title{ font-size:14px; font-weight:600; color:var(--text); margin-bottom:3px; }
.mega .mega-desc{ font-size:12px; color:var(--text-faint); line-height:1.4; }

.nav-cta{ display:flex; align-items:center; gap:18px; }
.nav-status{ display:flex; align-items:center; gap:8px; font-size:11px; letter-spacing:0.04em; color:var(--text-faint); white-space:nowrap; font-family:'JetBrains Mono', monospace; }
.nav-status .sdot{ width:6px; height:6px; border-radius:50%; background:var(--lime); box-shadow:0 0 0 0 var(--lime-soft); animation:pulse-ring 2s infinite; }
.nav-cta .btn-primary::after{ content:'→'; font-size:14px; transition:transform 0.25s var(--ease); }
.nav-cta .btn-primary:hover::after{ transform:translateX(3px); }
@media (max-width:1180px){ .nav-status{ display:none; } }
.btn{
  display:inline-flex; align-items:center; gap:8px; padding:11px 22px; border-radius:999px;
  font-size:14px; font-weight:600; border:1px solid var(--line); transition:all 0.25s ease;
  white-space:nowrap; cursor:pointer;
}
.btn-primary{ background:var(--grad); color:#fff; border-color:transparent; box-shadow:0 6px 22px -10px rgba(155,47,224,0.5); }
.btn-primary:hover{ filter:brightness(1.12); transform:translateY(-1px); box-shadow:0 10px 28px -10px rgba(155,47,224,0.65); }
.btn-ghost{ background:transparent; color:var(--text); }
.btn-ghost:hover{ border-color:var(--text-dim); }
.btn-lg{ padding:15px 28px; font-size:15px; }

.burger{ display:none; }
@media (max-width:980px){
  .nav-links{ display:none; }
  .burger{ display:flex; width:38px; height:38px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:10px; background:transparent; cursor:pointer; color:var(--text); }
}

.mobile-drawer{
  position:fixed; inset:0; z-index:300; background:var(--bg);
  display:flex; flex-direction:column; padding:100px 28px 40px;
  transform:translateX(100%); transition:transform 0.35s ease; overflow-y:auto;
}
.mobile-drawer.open{ transform:translateX(0); }
.mobile-drawer .md-link{
  font-family:'Space Grotesk',sans-serif; font-size:1.5rem; padding:16px 0;
  border-bottom:1px solid var(--line-soft); color:var(--text); display:flex; justify-content:space-between; align-items:center;
}
.mobile-drawer .md-sub{ display:none; flex-direction:column; padding-left:14px; }
.mobile-drawer .md-sub.open{ display:flex; }
.mobile-drawer .md-sub a{ padding:12px 0; color:var(--text-dim); font-size:1rem; font-family:'Inter',sans-serif; }
.md-chevron{ transition:transform 0.25s ease; flex-shrink:0; }
.md-chevron.rot{ transform:rotate(180deg); }
.drawer-close{
  position:absolute; top:24px; right:24px; width:38px; height:38px; border-radius:10px;
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
  background:none; color:var(--text); cursor:pointer;
}

/* ============ breadcrumb / page header (subpages) ============ */
.page-hero{
  padding:190px 0 70px;
  border-bottom:1px solid var(--line-soft);
  position:relative; overflow:hidden;
}
.page-hero .hero-grid-bg{ opacity:0.45; }
.crumb{
  display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-faint); margin-bottom:22px;
}
.crumb a:hover{ color:var(--lime); }
.page-hero h1{ font-size:clamp(2.2rem,4.4vw,3.4rem); color:var(--text); max-width:620px; margin-bottom:18px; position:relative; z-index:2;}
.page-hero p.lead{ color:var(--text-dim); font-size:1.1rem; max-width:540px; position:relative; z-index:2; }
.page-hero .wrap{ position:relative; z-index:2; }

/* ambient 3D sphere on subpage headers (reuses homepage hero3d scene) */
.page-hero-3d{
  position:absolute; top:50%; transform:translateY(-42%);
  right:max(16px, calc((100% - var(--maxw)) / 2));
  width:400px; height:400px; z-index:1; opacity:0.85; pointer-events:none;
}
.page-hero-3d canvas{ width:100% !important; height:100% !important; }
.no-webgl .page-hero-3d .hero-3d-fallback{ display:flex; }
@media (max-width:1040px){ .page-hero-3d{ display:none; } }

.hero-grid-bg{
  position:absolute; inset:0; z-index:0;
  background-image:linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 70% 60% at 60% 20%, black 0%, transparent 70%);
  opacity:0.6;
}
.hero-glow{
  position:absolute; z-index:0; filter:blur(50px);
  background:radial-gradient(circle, var(--lime-soft) 0%, transparent 70%);
}

/* ============ generic section pattern ============ */
.section{ padding:130px 0; position:relative; }
.section-head{ max-width:680px; margin-bottom:70px; }
.section-eyebrow{ font-size:12px; color:var(--text-faint); margin-bottom:16px; display:flex; align-items:center; gap:10px; }
.section-eyebrow::before{ content:''; width:24px; height:1px; background:var(--lime); }
.section-head h2{ font-size:clamp(1.8rem,3.4vw,2.6rem); color:var(--text); margin-bottom:18px; }
.section-head p{ color:var(--text-dim); font-size:1.05rem; }
@media (max-width:720px){ .section{ padding:90px 0; } .section-head{ margin-bottom:46px; } }

/* ============ marquee ============ */
.marquee-section{ border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); padding:40px 0; background:var(--bg-soft); }
.marquee-label{ text-align:center; font-size:11.5px; color:var(--text-faint); margin-bottom:26px; }
.marquee-track{ display:flex; gap:64px; align-items:center; overflow:hidden; mask-image:linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.marquee-inner{ display:flex; gap:64px; align-items:center; flex-shrink:0; animation:scroll-x 32s linear infinite; }
@keyframes scroll-x{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
.marquee-item{ font-family:'Space Grotesk',sans-serif; font-size:15px; color:var(--text-faint); white-space:nowrap; }
.marquee-track:hover .marquee-inner{ animation-play-state:paused; }

/* ============ services — lab rows ============ */
.service-row{
  display:grid; grid-template-columns:90px 1fr 280px; gap:32px; align-items:start;
  padding:34px 0; border-top:1px solid var(--line-soft); cursor:pointer; transition:background 0.3s ease;
}
.service-row:last-child{ border-bottom:1px solid var(--line-soft); }
.service-row:hover{ background:var(--surface); }
.service-idx{ font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--text-faint); padding-top:4px; }
.service-main h3{ font-size:1.4rem; color:var(--text); margin-bottom:10px; display:flex; align-items:center; gap:14px; }
.service-main .ic{ width:22px; height:22px; flex-shrink:0; color:var(--lime); }
.service-desc{
  color:var(--text-dim); max-height:0; overflow:hidden; transition:max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity:0; font-size:0.98rem; max-width:560px;
}
.service-row.open .service-desc{ max-height:200px; opacity:1; margin-top:4px; }
.service-stack{ display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; align-content:flex-start; }
.tag{ font-family:'JetBrains Mono', monospace; font-size:11px; padding:5px 10px; border-radius:6px; border:1px solid var(--line); color:var(--text-faint); white-space:nowrap; }
.service-toggle{
  width:28px; height:28px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
  flex-shrink:0; margin-left:14px; transition:transform 0.3s ease, border-color 0.3s ease; color:var(--text-dim);
}
.service-row.open .service-toggle{ transform:rotate(45deg); border-color:var(--lime); color:var(--lime); }
@media (max-width:780px){
  .service-row{ grid-template-columns:40px 1fr; }
  .service-stack{ grid-column:1/-1; justify-content:flex-start; margin-top:14px; }
}

/* ============ process ============ */
.process-grid{ display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden; }
.process-step{ position:relative; overflow:hidden; padding:36px 28px; border-right:1px solid var(--line-soft); }
.process-step:last-child{ border-right:none; }
.process-step .pnum{ font-family:'JetBrains Mono', monospace; font-size:12px; color:var(--lime); margin-bottom:18px; display:block; }
.process-step h3{ font-size:1.05rem; margin-bottom:10px; color:var(--text); }
.process-step p{ font-size:0.92rem; color:var(--text-dim); }
/* ---- process timeline rail + stage nodes ---- */
.process-grid{ position:relative; }
.process-grid::before{ content:''; position:absolute; top:37px; left:28px; right:28px; height:2px; background:var(--line-soft); z-index:0; }
.process-step{ padding-top:62px; }
.process-step::after{ content:''; position:absolute; top:32px; left:28px; width:12px; height:12px; border-radius:50%; background:var(--lime); box-shadow:0 0 0 4px var(--lime-soft); z-index:1; transition:box-shadow 0.25s ease; }
.process-step:hover::after{ box-shadow:0 0 0 6px var(--lime-soft); }
@media (max-width:900px){
  .process-grid::before{ display:none; }
  .process-step{ padding-top:36px; }
  .process-step::after{ display:none; }
}
@media (max-width:900px){
  .process-grid{ grid-template-columns:1fr; }
  .process-step{ border-right:none; border-bottom:1px solid var(--line-soft); }
  .process-step:last-child{ border-bottom:none; }
}

/* ============ partners ============ */
.partner-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line-soft); border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden; }
.partner-card{ position:relative; overflow:hidden; background:var(--surface); padding:28px 26px; min-height:168px; display:flex; flex-direction:column; justify-content:flex-start; transition:background 0.25s; }
.partner-card:hover{ background:var(--surface-2); }
.partner-card .pkind{ font-size:10px; letter-spacing:0.09em; text-transform:uppercase; color:var(--lime-dim); margin-bottom:14px; }
.partner-card .pname{ font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:0.95rem; color:var(--text); margin-bottom:10px; }
.partner-card .pdesc{ font-size:0.82rem; color:var(--text-faint); line-height:1.5; }
@media (max-width:900px){ .partner-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .partner-grid{ grid-template-columns:1fr; } }

/* ============ case ============ */
.case-card{ display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.case-media{ position:relative; min-height:380px; background:linear-gradient(160deg, var(--surface-2), var(--bg-soft)); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.case-media img{ width:100%; height:100%; object-fit:cover; opacity:0.92; }
.case-body{ padding:56px 52px; display:flex; flex-direction:column; justify-content:center; }
.case-tag{ font-size:12px; color:var(--lime); margin-bottom:18px; }
.case-body h3{ font-size:1.7rem; margin-bottom:18px; color:var(--text); }
.case-body p{ color:var(--text-dim); margin-bottom:28px; }
.case-stack{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:32px; }
.case-link{ display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:14.5px; color:var(--text); border-bottom:1px solid var(--text); padding-bottom:3px; width:fit-content; }
@media (max-width:860px){ .case-card{ grid-template-columns:1fr; } .case-media{ min-height:260px; } .case-body{ padding:40px 28px; } }

/* ============ testimonials ============ */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testi-card{ position:relative; overflow:hidden; background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius); padding:32px 28px; display:flex; flex-direction:column; }
.testi-quote{ font-size:1.7rem; color:var(--lime); line-height:1; margin-bottom:14px; font-family:'Space Grotesk',sans-serif; }
.testi-text{ color:var(--text-dim); font-size:0.95rem; margin-bottom:26px; flex-grow:1; }
.testi-person{ display:flex; align-items:center; gap:12px; }
.testi-avatar{ width:40px; height:40px; border-radius:50%; background:var(--surface-2); border:1px solid var(--lime-line); display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:14px; color:var(--lime); flex-shrink:0; }
.testi-name{ font-size:0.9rem; font-weight:600; color:var(--text); }
.testi-role{ font-size:0.78rem; color:var(--text-faint); }
@media (max-width:900px){ .testi-grid{ grid-template-columns:1fr; } }

/* ============ services detail rows — zig-zag + responsive ============ */
.svc-row{ align-items:center !important; }
.svc-row:nth-of-type(even) > div:first-child{ order:2; }

/* ---- sticky service index with scroll-spy ---- */
.svc-nav{
  position:sticky; top:80px; z-index:50;
  display:flex; gap:6px; flex-wrap:wrap; align-items:center;
  padding:10px; margin-bottom:64px;
  background:rgba(10,11,13,0.82); backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  border:1px solid var(--line-soft); border-radius:999px;
}
.svc-nav a{
  font-size:13px; color:var(--text-dim); padding:8px 15px; border-radius:999px;
  white-space:nowrap; transition:color 0.2s, background 0.2s;
}
.svc-nav a:hover{ color:var(--text); background:var(--surface); }
.svc-nav a.active{ background:var(--lime); color:#06070A; font-weight:600; }
@media (max-width:860px){
  .svc-nav{ flex-wrap:nowrap; overflow-x:auto; border-radius:14px; top:64px; }
  .svc-nav::-webkit-scrollbar{ display:none; }
}
@media (max-width:820px){
  .svc-row{ grid-template-columns:1fr !important; gap:34px !important; }
  .svc-row > div:first-child{ order:0 !important; }
}

/* ============ tech stack tabs ============ */
.stack-tabs{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:40px; border-bottom:1px solid var(--line-soft); }
.stack-tab{ padding:12px 4px; margin-right:28px; font-size:14.5px; color:var(--text-faint); border-bottom:2px solid transparent; cursor:pointer; transition:color 0.2s, border-color 0.2s; background:none; border-top:none; border-left:none; border-right:none; }
.stack-tab.active{ color:var(--text); border-bottom-color:var(--lime); }
.stack-panel{ display:none; }
.stack-panel.active{ display:flex; flex-wrap:wrap; gap:12px; }
.stack-chip{ padding:10px 16px; border:1px solid var(--line); border-radius:999px; font-size:13.5px; color:var(--text-dim); transition:border-color 0.2s, color 0.2s; }
.stack-chip:hover{ border-color:var(--lime); color:var(--text); }

/* ============ stat band ============ */
.stat-band{ display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden; }
.stat-cell{ padding:32px 28px; border-right:1px solid var(--line-soft); }
.stat-cell:last-child{ border-right:none; }
.stat-cell .stat-ic{ width:24px; height:24px; color:var(--lime); margin-bottom:18px; display:block; }
.stat-cell .num{ font-family:'Space Grotesk',sans-serif; font-size:2.6rem; font-weight:700; color:var(--text); line-height:1.05; }
.stat-cell .stat-sub{ font-size:11px; color:var(--text-faint); margin-top:9px; letter-spacing:0.05em; }
.stat-cell .num span{ color:var(--lime); }
.stat-cell .label{ font-size:0.85rem; color:var(--text-faint); margin-top:6px; }
@media (max-width:780px){ .stat-band{ grid-template-columns:repeat(2,1fr); } .stat-cell{ border-bottom:1px solid var(--line-soft); } }

/* ============ about — story pull-quote ============ */
.story-quote{
  position:relative; overflow:hidden;
  margin-top:34px; padding:24px 28px;
  border-left:2px solid var(--lime); background:var(--surface);
  border-radius:0 var(--radius) var(--radius) 0;
}
.story-quote::after{
  content:'\201D'; position:absolute; top:8px; right:20px;
  font-family:'Space Grotesk',sans-serif; font-size:3rem; line-height:1; color:var(--lime-line);
}
.story-quote p{
  color:var(--text); font-size:1.05rem; line-height:1.6; margin:0 0 14px;
  font-family:'Space Grotesk',sans-serif;
}
.story-quote cite{
  font-style:normal; font-size:12px; color:var(--text-faint);
  font-family:'JetBrains Mono',monospace; letter-spacing:0.04em;
}

/* ============ about — story split responsive ============ */
@media (max-width:820px){
  .about-split{ grid-template-columns:1fr !important; gap:38px !important; }
}

/* ============ team grid ============ */
.team-grid{ display:flex; flex-wrap:wrap; justify-content:center; gap:24px; }
.team-grid .team-card{ flex:0 1 calc(33.333% - 16px); }
@media (max-width:900px){ .team-grid .team-card{ flex-basis:calc(50% - 12px); } }
@media (max-width:560px){ .team-grid .team-card{ flex-basis:100%; } }
.team-card{ position:relative; background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden; transition:border-color 0.2s, transform 0.25s var(--ease); }
.team-card:hover{ border-color:var(--lime-line); transform:translateY(-3px); }
/* photo placeholder — drop <img src="..." alt="Name"> inside .team-avatar to use a real photo */
.team-avatar{
  aspect-ratio:1/1; position:relative; overflow:hidden;
  background:linear-gradient(160deg, var(--surface-2), var(--bg-soft));
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-size:2rem; font-weight:700; color:var(--text-faint);
}
.team-avatar img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.team-info{ padding:18px 20px; }
.team-name{ font-weight:600; color:var(--text); font-size:1rem; margin-bottom:4px; }
.team-role{ font-size:0.82rem; color:var(--text-faint); }
@media (max-width:900px){ .team-grid{ grid-template-columns:repeat(2,1fr); } }

/* ============ value cards ============ */
.value-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.value-card{ position:relative; overflow:hidden; padding:30px; border:1px solid var(--line-soft); border-radius:var(--radius); background:var(--surface); transition:border-color 0.25s ease, transform 0.25s var(--ease); }
.value-card:hover{ border-color:var(--lime-line); transform:translateY(-3px); }
.value-card .vic{ width:46px; height:46px; padding:11px; box-sizing:border-box; border-radius:12px; background:var(--lime-soft); border:1px solid var(--lime-line); color:var(--lime); margin-bottom:18px; }
.value-card h3{ font-size:1.1rem; color:var(--text); margin-bottom:10px; }
.value-card p{ font-size:0.92rem; color:var(--text-dim); }
@media (max-width:900px){ .value-grid{ grid-template-columns:1fr; } }

/* ============ project filter / grid ============ */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:50px; }
.filter-chip{ padding:10px 18px; border-radius:999px; border:1px solid var(--line); font-size:13.5px; color:var(--text-dim); cursor:pointer; transition:all 0.2s; background:none; }
.filter-chip.active{ background:var(--lime); color:#fff; border-color:var(--lime); }
.project-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.project-card{ position:relative; border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden; background:var(--surface); transition:border-color 0.25s; }
.project-card:hover{ border-color:var(--lime-line); }
.project-media{ position:relative; aspect-ratio:16/10; background:linear-gradient(150deg, var(--surface-2), var(--bg-soft)); overflow:hidden; }
.project-media img{ position:relative; width:100%; height:100%; object-fit:cover; }
.pm-fallback{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:16px; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:1.3rem; color:var(--text-faint); letter-spacing:0.02em; }
.project-info{ padding:26px 28px; }
.project-tag{ font-size:11.5px; color:var(--lime); margin-bottom:10px; }
.project-info h3{ font-size:1.25rem; color:var(--text); margin-bottom:10px; }
.project-info p{ font-size:0.92rem; color:var(--text-dim); margin-bottom:18px; }
/* portfolio card interactions */
.project-card{ cursor:pointer; }
.project-card .project-media img{ transition:transform 0.6s var(--ease); }
.project-card:hover .project-media img{ transform:scale(1.06); }
.project-media::after{ content:''; position:absolute; inset:0; z-index:2; pointer-events:none; opacity:0; transition:opacity 0.3s ease; background:linear-gradient(to top, rgba(10,11,13,0.5), transparent 46%); }
.project-card:hover .project-media::after{ opacity:1; }
.project-info h3{ transition:color 0.25s ease; }
.project-card:hover .project-info h3{ color:var(--lime); }
.project-card:hover{ transform:translateY(-3px); }
.project-card{ transition:border-color 0.25s, transform 0.25s var(--ease); }
@media (max-width:780px){ .project-grid{ grid-template-columns:1fr; } }

/* ============ contact ============ */
.contact-section{ padding:130px 0; position:relative; }
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:70px; }
.contact-info h2{ font-size:clamp(1.9rem,3.6vw,2.7rem); margin-bottom:22px; }
.contact-info > p{ color:var(--text-dim); margin-bottom:40px; max-width:460px; }
.contact-detail{ display:flex; gap:16px; align-items:flex-start; padding:18px 0; border-top:1px solid var(--line-soft); }
.contact-detail:last-child{ border-bottom:1px solid var(--line-soft); }
.contact-detail .ic{ color:var(--lime); flex-shrink:0; margin-top:2px; }
.contact-detail .ctitle{ font-size:12px; color:var(--text-faint); margin-bottom:4px; }
.contact-detail .cval{ font-size:0.98rem; color:var(--text); }
.form-card{ position:relative; overflow:hidden; background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius); padding:44px; }
.form-row{ margin-bottom:22px; }
.form-row.two{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-row label{ display:block; font-size:12.5px; color:var(--text-faint); margin-bottom:8px; }
.form-row input, .form-row textarea, .form-row select{
  width:100%; background:var(--bg-soft); border:1px solid var(--line); border-radius:10px; padding:13px 16px;
  color:var(--text); font-family:'Inter',sans-serif; font-size:14.5px; transition:border-color 0.2s;
}
.form-row input::placeholder, .form-row textarea::placeholder{ color:var(--text-faint); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{ border-color:var(--lime); outline:none; }
.form-row textarea{ resize:vertical; min-height:110px; }
.form-submit{ width:100%; justify-content:center; padding:15px; font-size:15px; }
.form-status{ font-size:0.9rem; line-height:1.5; margin-top:16px; min-height:1px; }
.form-status.ok{ color:var(--lime); }
.form-status.err{ color:var(--red); }

/* ============ custom select ============ */
.cselect{ position:relative; }
.cselect-trigger{
  width:100%; background:var(--bg-soft); border:1px solid var(--line); border-radius:10px;
  padding:13px 16px; color:var(--text); font-family:'Inter',sans-serif; font-size:14.5px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  cursor:pointer; text-align:left; transition:border-color 0.2s;
}
.cselect.open .cselect-trigger, .cselect-trigger:focus-visible{ border-color:var(--lime); outline:none; }
.cselect-arrow{ color:var(--text-faint); transition:transform 0.25s ease; flex-shrink:0; }
.cselect.open .cselect-arrow{ transform:rotate(180deg); }
.cselect-list{
  position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:30;
  background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:6px;
  list-style:none; box-shadow:0 22px 44px -18px rgba(0,0,0,0.75);
  opacity:0; transform:translateY(-6px); pointer-events:none;
  transition:opacity 0.18s ease, transform 0.18s ease; max-height:360px; overflow-y:auto;
}
.cselect.open .cselect-list{ opacity:1; transform:translateY(0); pointer-events:auto; }
.cselect-list li{
  display:flex; align-items:center; justify-content:space-between;
  padding:11px 14px; border-radius:7px; font-size:14px; color:var(--text-dim); cursor:pointer;
  transition:background 0.15s, color 0.15s;
}
.cselect-list li:hover{ background:var(--surface-2); color:var(--text); }
.cselect-list li.selected{ color:var(--lime); }
.cselect-list li.selected::after{ content:'✓'; font-size:12px; color:var(--lime); }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; gap:50px; } .form-card{ padding:28px; } .form-row.two{ grid-template-columns:1fr; } }

/* ============ map block ============ */
.map-block{ border:1px solid var(--line-soft); border-radius:var(--radius); overflow:hidden; height:340px; background:var(--surface); position:relative; }
.map-block iframe{ width:100%; height:100%; border:0; filter:grayscale(1) invert(0.92) contrast(0.85); }

/* ============ footer ============ */
footer{ border-top:1px solid var(--line-soft); padding:60px 0 32px; }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px; }
.footer-brand .logo{ margin-bottom:18px; }
.footer-brand p{ color:var(--text-faint); font-size:0.92rem; max-width:280px; }
.footer-col h3{ font-size:12px; color:var(--text-faint); margin-bottom:18px; font-family:'JetBrains Mono', monospace; letter-spacing:0.06em; text-transform:uppercase; }
.footer-col a{ display:block; color:var(--text-dim); font-size:0.92rem; margin-bottom:12px; transition:color 0.2s; }
.footer-col a:hover{ color:var(--lime); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:28px; border-top:1px solid var(--line-soft); font-size:0.85rem; color:var(--text-faint); flex-wrap:wrap; gap:16px; }
.footer-socials{ display:flex; gap:14px; }
.footer-socials a{ width:36px; height:36px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; transition:border-color 0.2s, color 0.2s; }
.footer-socials a:hover{ border-color:var(--lime); color:var(--lime); }
@media (max-width:900px){ .footer-top{ grid-template-columns:1fr 1fr; gap:32px; } }
@media (max-width:560px){ .footer-top{ grid-template-columns:1fr; } }

/* ============ reveal ============ */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible{ opacity:1; transform:translateY(0); }

/* ============ misc ============ */
.eyebrow{
  display:inline-flex; align-items:center; gap:10px; font-size:12px; color:var(--lime);
  padding:7px 14px 7px 10px; border:1px solid var(--lime-line); border-radius:999px; background:var(--lime-soft); margin-bottom:26px;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--lime); box-shadow:0 0 0 3px var(--lime-soft); }
.cta-banner{
  position:relative; overflow:hidden;
  border:1px solid var(--line); border-radius:24px; padding:76px 56px; text-align:center;
  background:linear-gradient(180deg, var(--surface-2), var(--surface));
}
.cta-banner::before{
  content:''; position:absolute; top:-60%; left:50%; width:80%; height:140%;
  transform:translateX(-50%); pointer-events:none; z-index:0;
  background:radial-gradient(ellipse at 50% 35%, rgba(193,58,166,0.14), transparent 60%);
}
.cta-banner > *{ position:relative; z-index:1; }
.cta-banner h2{ font-size:clamp(1.7rem,3.4vw,2.4rem); margin-bottom:16px; }
.cta-banner p{ color:var(--text-dim); margin-bottom:32px; max-width:480px; margin-left:auto; margin-right:auto; }
.cta-banner-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }
@media (max-width:600px){ .cta-banner{ padding:44px 26px; } }

/* ===================================================================
   V3 ADDITIONS — scroll progress, 3D hero, bento grid, spotlight cards
=================================================================== */

/* ---- scroll progress bar ---- */
.scroll-progress{
  position:fixed; top:0; left:0; height:2px; width:0%;
  background:linear-gradient(90deg, var(--lime-dim), var(--lime));
  z-index:300; transition:width 0.1s linear;
  box-shadow:0 0 12px var(--lime);
}

/* ---- header glass v2 ---- */
header.scrolled{
  background:rgba(10,11,13,0.72);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  box-shadow: inset 0 -1px 0 var(--line-soft), 0 12px 40px -20px rgba(0,0,0,0.5);
}

/* ---- 3D hero canvas ---- */
.hero-3d-stage{
  position:relative; aspect-ratio:1/1; max-width:600px; margin:0 auto;
}
.hero-3d-stage canvas{
  width:100% !important; height:100% !important;
  cursor:grab;
}
.hero-3d-stage:active canvas{ cursor:grabbing; }
.hero-3d-fallback{
  display:none; align-items:center; justify-content:center;
  width:100%; height:100%;
}
.no-webgl .hero-3d-fallback{ display:flex; }
.no-webgl .hero-3d-stage canvas{ display:none; }

/* ---- word-by-word reveal ---- */
.split-line{ overflow:hidden; display:block; }
.split-word{
  display:inline-block; transform:translateY(110%); opacity:0;
  transition:transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.split-ready .split-word{ transform:translateY(0); opacity:1; }

/* ---- bento grid ---- */
.bento-grid{
  display:grid;
  grid-template-columns:repeat(6, 1fr);
  grid-auto-rows:minmax(150px, auto);
  gap:16px;
}
.bento-card{
  position:relative;
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:var(--radius-lg);
  padding:30px;
  overflow:hidden;
  transition:border-color 0.3s ease, transform 0.3s var(--ease);
  display:flex; flex-direction:column;
}
.bento-card::before{
  content:'';
  position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background: radial-gradient(circle 220px at var(--mx,50%) var(--my,50%), var(--lime-soft), transparent 70%);
  opacity:0; transition:opacity 0.3s ease;
}
.bento-card:hover::before{ opacity:1; }
.bento-card:hover{ border-color:var(--lime-line); transform:translateY(-2px); }
.bento-card .bc-icon{ width:30px; height:30px; color:var(--lime); margin-bottom:auto; }
.bento-card h3{ font-size:1.2rem; color:var(--text); margin:18px 0 8px; position:relative; z-index:1; }
.bento-card p{ font-size:0.92rem; color:var(--text-dim); position:relative; z-index:1; }
.bento-card .bc-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:16px; position:relative; z-index:1; }
.bento-card .bc-list{
  list-style:none; margin:18px 0 4px; display:flex; flex-direction:column; gap:10px;
  position:relative; z-index:1;
}
.bento-card .bc-list li{
  display:flex; align-items:flex-start; gap:10px;
  font-size:0.9rem; color:var(--text-dim);
}
.bento-card .bc-list li svg{ color:var(--lime); flex-shrink:0; margin-top:3px; }
/* on the tall feature card, centre the whole stack so there's no empty void */
.bento-card.bento-h2{ justify-content:center; }
.bento-card.bento-h2 .bc-icon{ margin-bottom:24px; }

.bento-w2{ grid-column:span 2; }
.bento-w3{ grid-column:span 3; }
.bento-w4{ grid-column:span 4; }
.bento-w6{ grid-column:span 6; }
.bento-h2{ grid-row:span 2; }

.bento-card.bento-feature{
  background:linear-gradient(160deg, var(--surface-2), var(--bg-soft));
  justify-content:center;
}
.bento-card.bento-feature .bc-num{
  font-family:'Space Grotesk',sans-serif; font-size:3.2rem; font-weight:700; color:var(--lime);
  line-height:1; position:relative; z-index:1;
}
.bento-card.bento-feature .bc-label{ color:var(--text-dim); font-size:0.92rem; margin-top:10px; position:relative; z-index:1; }

@media (max-width:980px){
  .bento-grid{ grid-template-columns:repeat(2,1fr); }
  .bento-w2, .bento-w3, .bento-w4, .bento-w6{ grid-column:span 2; }
}
@media (max-width:600px){
  .bento-grid{ grid-template-columns:1fr; }
  .bento-w2, .bento-w3, .bento-w4, .bento-w6{ grid-column:span 1; }
  .bento-h2{ grid-row:span 1; }
}

/* ---- spotlight on generic surface cards (testimonials, partners, projects) ---- */
.spotlight{
  position:relative;
}
.spotlight::before{
  content:'';
  position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:0;
  background:radial-gradient(circle 200px at var(--mx,50%) var(--my,50%), var(--lime-soft), transparent 70%);
  opacity:0; transition:opacity 0.3s ease;
}
.spotlight:hover::before{ opacity:1; }
.spotlight > *{ position:relative; z-index:1; }

/* ---- gradient border utility ---- */
.gradient-border{
  position:relative; border-radius:var(--radius-lg);
  background:var(--surface);
}
.gradient-border::after{
  content:''; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background:linear-gradient(135deg, var(--lime-line), transparent 40%, transparent 60%, var(--lime-line));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  pointer-events:none;
}

/* ---- magnetic button micro-interaction ---- */
.btn-primary{ position:relative; overflow:hidden; }
.btn-primary span{ position:relative; z-index:1; display:flex; align-items:center; gap:8px; }

/* ---- nav link weight transition on variable font ---- */
.nav-link{ font-variation-settings:'wght' 420; }
.nav-link:hover{ font-variation-settings:'wght' 560; }

/* ---- stat-cell entrance count-up support ---- */
.stat-cell .num{ font-variant-numeric:tabular-nums; }

/* ---- section label ticking dot ---- */
.section-eyebrow .pulse-dot{
  width:6px; height:6px; border-radius:50%; background:var(--lime); display:inline-block;
  box-shadow:0 0 0 0 var(--lime-soft);
  animation:pulse-ring 2s infinite;
}
@keyframes pulse-ring{
  0%{ box-shadow:0 0 0 0 rgba(193,58,166,0.5); }
  70%{ box-shadow:0 0 0 6px rgba(193,58,166,0); }
  100%{ box-shadow:0 0 0 0 rgba(193,58,166,0); }
}

/* ===================================================================
   Hero — fills one viewport, content vertically centered, never clipped
=================================================================== */
.hero{
  min-height:100vh;
  min-height:100dvh;          /* correct on mobile (excludes browser chrome) */
  display:grid;
  align-content:center;        /* vertical centering, grows if content is taller */
  padding:104px 0 72px;        /* top clears the fixed header */
}
@media (max-width:860px){
  .hero{ min-height:auto; padding:130px 0 80px; }
}

/* ===================================================================
   Hero risk-reducer line (under the CTA buttons)
=================================================================== */
.hero-assure{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-bottom:24px; }
.hero-assure span{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--text-faint); }
.hero-assure span svg{ color:var(--lime); flex-shrink:0; }

/* ===================================================================
   Hero social proof (avatars + trusted-by line)
=================================================================== */
.hero-proof{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:48px; }
.hero-avas{ display:flex; }
.hero-ava{
  width:34px; height:34px; border-radius:50%; background:var(--surface-2);
  border:1px solid var(--lime-line); display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:12px; color:var(--accent-bright);
}
.hero-avas .hero-ava + .hero-ava{ margin-left:-10px; }
.hero-proof-text{ font-size:13.5px; color:var(--text-dim); line-height:1.5; }
.hero-proof-text strong{ color:var(--text); font-weight:600; }

/* ===================================================================
   Signal graph fallback (shown when WebGL is unavailable)
=================================================================== */
.signal-line{ stroke:var(--line); stroke-width:1; opacity:0.55; }
.signal-node{ fill:var(--surface-2); stroke:var(--accent-line); stroke-width:1.4; }
.signal-node.active{ fill:var(--accent); stroke:var(--accent); }
.signal-pulse{ fill:var(--accent-bright); filter:drop-shadow(0 0 4px var(--accent)); }

/* ===================================================================
   Trust band — guarantees / assurances
=================================================================== */
.trust-band{ border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); background:var(--bg-soft); }
.trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); }
.trust-cell{ padding:34px 28px; border-right:1px solid var(--line-soft); display:flex; flex-direction:column; gap:12px; }
.trust-cell:last-child{ border-right:none; }
.trust-ic{
  width:40px; height:40px; border-radius:11px; background:var(--accent-soft);
  border:1px solid var(--accent-line); display:flex; align-items:center; justify-content:center; color:var(--accent-bright);
}
.trust-ic svg{ width:20px; height:20px; }
.trust-cell h3{ font-size:1rem; color:var(--text); }
.trust-cell p{ font-size:0.86rem; color:var(--text-dim); line-height:1.5; }
@media (max-width:900px){ .trust-grid{ grid-template-columns:1fr 1fr; } .trust-cell:nth-child(2){ border-right:none; } .trust-cell:nth-child(1),.trust-cell:nth-child(2){ border-bottom:1px solid var(--line-soft); } }
@media (max-width:520px){ .trust-grid{ grid-template-columns:1fr; } .trust-cell{ border-right:none; border-bottom:1px solid var(--line-soft); } .trust-cell:last-child{ border-bottom:none; } }

/* ===================================================================
   FAQ — accordion
=================================================================== */
.faq-list{ border-top:1px solid var(--line-soft); }
.faq-item{ border-bottom:1px solid var(--line-soft); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:26px 4px; color:var(--text); font-family:'Space Grotesk',sans-serif; font-size:1.08rem; font-weight:600;
  transition:color 0.2s;
}
.faq-q:hover{ color:var(--accent-bright); }
.faq-icon{ flex-shrink:0; width:26px; height:26px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--text-dim); transition:transform 0.3s ease, border-color 0.3s, color 0.3s; }
.faq-item.open .faq-icon{ transform:rotate(45deg); border-color:var(--accent); color:var(--accent); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height 0.4s ease; }
.faq-a-inner{ padding:0 4px 28px; color:var(--text-dim); font-size:0.97rem; max-width:760px; line-height:1.65; }
.faq-item.open .faq-a{ max-height:340px; }

/* ===================================================================
   Responsive refinements — deep pass
=================================================================== */
/* homepage hero: collapse the 2-column layout on tablet/phone */
@media (max-width:860px){
  .hero > .wrap{ grid-template-columns:1fr !important; gap:0 !important; }
  .hero{ min-height:auto; padding:120px 0 56px; }
  .hero-3d-stage{ display:none; }
}
/* subpage headers: trim the big top padding on smaller screens */
@media (max-width:980px){ .page-hero{ padding:150px 0 60px; } }
@media (max-width:720px){ .page-hero{ padding:126px 0 48px; } }
/* compact header CTA so logo + button + burger never overflow */
@media (max-width:600px){
  .nav-cta{ gap:10px; }
  .nav-cta .btn-primary{ padding:9px 15px; font-size:13px; }
}
/* very small phones: drop the hero sphere and stack team to one column */
@media (max-width:560px){
  .hero-3d-stage{ display:none; }
  .team-grid{ grid-template-columns:1fr; }
}
@media (max-width:400px){ .nav-cta .btn-primary{ display:none; } }
@media (max-width:380px){ .wrap{ padding:0 16px; } }
