:root{
  --bg:#FFFFFF;
  --surface:#FFFFFF;
  --surface-2:#EEF0FC;
  --gold:#4F46E5;
  --gold-soft:#3730A3;
  --indigo:#A5B4FC;
  --paper:#17151E;
  --fog:#6E6F78;
  --on-accent:#FFFFFF;
  --line:rgba(79,70,229,0.16);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg);
  color:var(--paper);
  font-family:'Inter', sans-serif;
  line-height:1.6;
  overflow-x:hidden;
}
.bg-grid{
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image: radial-gradient(circle, rgba(79,70,229,0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 70%);
}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px; position:relative; z-index:1;}
.eyebrow{
  font-family:'JetBrains Mono', monospace;
  font-size:12px; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold-soft);
  display:flex; align-items:center; gap:10px;
}
.eyebrow::before{content:''; width:16px; height:1px; background:var(--gold-soft); display:inline-block;}
h1,h2,h3{font-family:'Space Grotesk', sans-serif; font-weight:600; letter-spacing:-0.01em;}

/* NAV */
nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter:blur(14px);
  background:rgba(255,255,255,0.80);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:1180px; margin:0 auto; padding:18px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{
  font-family:'JetBrains Mono', monospace; font-weight:500; font-size:18px;
  color:var(--paper); letter-spacing:-0.01em;
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.logo-mark{
  width:24px; height:24px; border-radius:50%; flex-shrink:0;
  object-fit:cover;
}
.logo span{font-style:italic; font-weight:400; color:var(--paper); margin-left:2px;}
.nav-links{display:flex; align-items:center; gap:34px;}
.nav-links a{
  color:var(--fog); text-decoration:none; font-size:14px; font-weight:500;
  transition:color 0.15s;
}
.nav-links a:hover, .nav-links a.active{color:var(--paper);}
.btn{
  font-family:'Inter'; font-weight:600; font-size:14px;
  padding:11px 22px; border-radius:8px; text-decoration:none;
  display:inline-flex; align-items:center; gap:8px;
  transition:transform 0.15s, filter 0.15s;
  border:none; cursor:pointer;
}
.btn:active{transform:scale(0.97);}
.btn-gold{background:var(--gold); color:var(--on-accent);}
.btn-gold:hover{filter:brightness(1.08);}
.btn-ghost{background:transparent; color:var(--paper); border:1px solid var(--line);}
.btn-ghost:hover{border-color:rgba(79,70,229,0.45);}

/* HERO (home) */
.hero{
  padding:104px 0 88px;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:40px; align-items:center;
}
.hero h1{font-size:52px; line-height:1.08; margin:18px 0 22px; color:var(--paper);}
.hero h1 em{font-style:normal; color:var(--gold-soft);}
.hero p.sub{font-size:17px; color:var(--fog); max-width:480px; margin-bottom:34px;}
.hero-ctas{display:flex; gap:14px;}
.hero-graphic{
  position:relative; height:420px;
  display:flex; align-items:center; justify-content:center;
  perspective:900px;
}
.logo-glow{
  position:absolute; top:50%; left:50%; width:260px; height:260px;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(79,70,229,0.22) 0%, transparent 70%);
  pointer-events:none;
}
.logo-reactive-mark{
  position:relative; z-index:2;
  width:200px; height:200px; border-radius:50%; object-fit:cover;
  box-shadow:0 0 0 1px rgba(79,70,229,0.15), 0 20px 60px rgba(23,21,30,0.18);
  transform-style:preserve-3d;
  transition:transform 0.2s ease-out;
  will-change:transform;
}
.orbit-ring{
  position:absolute; top:50%; left:50%; border-radius:50%;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.ring-1{
  width:300px; height:300px; border:1px solid rgba(79,70,229,0.22);
  animation:spin 22s linear infinite;
}
.ring-2{
  width:380px; height:380px; border:1px dashed rgba(165,180,252,0.55);
  animation:spin 34s linear infinite reverse;
}
.orbit-dot{
  position:absolute; top:50%; left:50%; width:8px; height:8px;
  margin:-4px; border-radius:50%; background:var(--gold);
  box-shadow:0 0 10px rgba(79,70,229,0.6);
  pointer-events:none;
}
.dot-a{animation:orbitA 9s linear infinite;}
.dot-b{animation:orbitB 14s linear infinite; background:var(--gold-soft);}
.dot-c{animation:orbitC 19s linear infinite; width:6px; height:6px; margin:-3px;}
@keyframes spin{to{transform:translate(-50%,-50%) rotate(360deg);}}
@keyframes orbitA{
  from{transform:translate(-50%,-50%) rotate(0deg) translateX(150px);}
  to{transform:translate(-50%,-50%) rotate(360deg) translateX(150px);}
}
@keyframes orbitB{
  from{transform:translate(-50%,-50%) rotate(360deg) translateX(190px);}
  to{transform:translate(-50%,-50%) rotate(0deg) translateX(190px);}
}
@keyframes orbitC{
  from{transform:translate(-50%,-50%) rotate(0deg) translateX(110px);}
  to{transform:translate(-50%,-50%) rotate(-360deg) translateX(110px);}
}

/* HERO (simple, About/Services/Contact) */
.hero-simple{padding:96px 0 64px; max-width:720px;}
.hero-simple h1{font-size:46px; line-height:1.1; margin:18px 0 20px; color:var(--paper);}
.hero-simple p.sub{font-size:17px; color:var(--fog);}

/* STATS STRIP */
.strip{border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:28px 0;}
.strip-inner{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.strip-item{font-family:'JetBrains Mono', monospace; font-size:12.5px; color:var(--fog); display:flex; align-items:center; gap:10px;}
.strip-item .dot{width:6px; height:6px; border-radius:50%; background:var(--gold); flex-shrink:0;}

/* SECTION HEADERS */
.sec{padding:100px 0;}
.sec-head{max-width:600px; margin-bottom:52px;}
.sec-head h2{font-size:34px; color:var(--paper); margin-top:14px;}
.sec-head p{color:var(--fog); font-size:15px; margin-top:14px;}

/* SERVICES (teaser cards, home page) */
.services-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:16px;}
.service-card{
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:26px 22px; transition:border-color 0.2s, transform 0.2s;
}
.service-card:hover{border-color:rgba(79,70,229,0.45); transform:translateY(-3px);}
.service-icon{
  width:38px; height:38px; border-radius:9px;
  background:var(--surface-2); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px; color:var(--gold-soft); font-size:17px;
}
.service-card h3{font-size:16.5px; color:var(--paper); margin-bottom:8px; font-weight:500;}
.service-card p{font-size:13.5px; color:var(--fog); margin-bottom:16px;}
.service-card a{font-size:13px; color:var(--gold-soft); text-decoration:none; font-weight:500;}

/* SERVICES (detail sections, services page) */
.service-detail{
  display:grid; grid-template-columns:44px 1fr; gap:24px;
  padding:56px 0; border-bottom:1px solid var(--line);
  scroll-margin-top:88px;
}
.service-detail:last-of-type{border-bottom:none;}
.service-icon-lg{
  width:44px; height:44px; border-radius:11px;
  background:var(--surface); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-size:19px; color:var(--gold-soft); flex-shrink:0;
}
.service-detail h2{font-size:26px; color:var(--paper); margin-bottom:12px;}
.service-detail p.desc{color:var(--fog); font-size:15.5px; max-width:640px; margin-bottom:18px;}
.outcomes{list-style:none; display:flex; flex-direction:column; gap:10px; max-width:520px; margin-bottom:22px;}
.outcomes li{display:flex; align-items:flex-start; gap:10px; font-size:14px; color:var(--paper);}
.outcomes li::before{content:''; width:6px; height:6px; border-radius:50%; background:var(--gold-soft); margin-top:7px; flex-shrink:0;}
.service-link{font-size:13.5px; color:var(--gold-soft); text-decoration:none; font-weight:500;}

/* FAQ */
.faq{display:flex; flex-direction:column; gap:12px; max-width:820px;}
.faq details{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:20px 24px; transition:border-color 0.2s;}
.faq details[open]{border-color:rgba(79,70,229,0.4);}
.faq summary{cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; font-family:'Space Grotesk', sans-serif; font-weight:500; font-size:15.5px; color:var(--paper);}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:'+'; font-size:20px; color:var(--gold-soft); flex-shrink:0; transition:transform 0.2s;}
.faq details[open] summary::after{content:'−';}
.faq-answer{color:var(--fog); font-size:14.5px; margin-top:14px; max-width:680px;}
.faq-answer a{color:var(--gold-soft);}

/* STORY / VALUES (about page) */
.story{display:grid; grid-template-columns:0.9fr 1.1fr; gap:60px; align-items:start;}
.story-mark{position:relative; height:280px;}
.story p{color:var(--fog); font-size:15.5px; margin-bottom:18px; max-width:520px;}
.story p:last-child{margin-bottom:0;}
.values-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr)); gap:16px;}
.value-card{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:26px 22px;}
.value-icon{width:38px; height:38px; border-radius:9px; background:var(--surface-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; margin-bottom:18px; color:var(--gold-soft); font-size:17px;}
.value-card h3{font-size:16.5px; color:var(--paper); margin-bottom:8px; font-weight:500;}
.value-card p{font-size:13.5px; color:var(--fog);}

/* CONTACT PAGE */
.contact-grid{display:grid; grid-template-columns:1fr 1.15fr; gap:48px; padding-bottom:100px; align-items:start;}
.info-card{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:32px 28px;}
.info-row{display:flex; align-items:flex-start; gap:14px; margin-bottom:22px;}
.info-row:last-child{margin-bottom:0;}
.info-icon{width:36px; height:36px; border-radius:9px; background:var(--surface-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--gold-soft); font-size:15px; flex-shrink:0;}
.info-row h3{font-size:13px; color:var(--fog); font-weight:500; margin-bottom:4px; text-transform:uppercase; letter-spacing:0.04em; font-family:'JetBrains Mono', monospace;}
.info-row a, .info-row p{font-size:15px; color:var(--paper); text-decoration:none;}
.info-row a:hover{color:var(--gold-soft);}
form{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:36px 32px;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px;}
.field{display:flex; flex-direction:column; gap:6px; margin-bottom:14px;}
.field label{font-size:12.5px; color:var(--fog); font-family:'JetBrains Mono', monospace;}
.field input, .field select, .field textarea{
  background:var(--surface-2); border:1px solid var(--line); border-radius:8px;
  padding:11px 13px; color:var(--paper); font-family:'Inter', sans-serif; font-size:14px;
  outline:none; transition:border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--gold);}
.field textarea{resize:vertical; min-height:90px;}
.checkbox-group{display:flex; flex-wrap:wrap; gap:10px;}
.checkbox-pill{
  display:flex; align-items:center; gap:7px;
  background:var(--surface-2); border:1px solid var(--line); border-radius:20px;
  padding:8px 14px; font-size:13px; color:var(--paper); cursor:pointer;
}
.checkbox-pill input{accent-color:var(--gold); width:14px; height:14px;}
form .btn-gold{width:100%; justify-content:center; margin-top:6px; font-size:14.5px; padding:13px;}
.form-note{font-size:12px; color:var(--fog); margin-top:12px; text-align:center;}

/* CTA BANNER */
.cta-banner{
  background:linear-gradient(120deg, var(--surface) 0%, var(--surface-2) 100%);
  border:1px solid var(--line); border-radius:20px;
  padding:56px 60px; display:flex; justify-content:space-between; align-items:center; gap:30px;
  position:relative; overflow:hidden;
}
.cta-banner::after{
  content:''; position:absolute; right:-60px; top:-60px; width:220px; height:220px;
  border-radius:50%; background:radial-gradient(circle, rgba(79,70,229,0.14) 0%, transparent 70%);
}
.cta-banner h2{font-size:30px; color:var(--paper); margin-bottom:10px;}
.cta-banner p{color:var(--fog); font-size:14.5px; max-width:420px;}

/* FOOTER */
footer{border-top:1px solid var(--line); padding:48px 0 36px;}
.footer-inner{display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px;}
.footer-links{display:flex; gap:28px;}
.footer-links a{color:var(--fog); font-size:13.5px; text-decoration:none;}
.footer-links a:hover{color:var(--paper);}
.footer-bottom{
  margin-top:38px; padding-top:22px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; color:var(--fog); font-size:12.5px;
  font-family:'JetBrains Mono', monospace;
}

/* HERO GRAPHIC ANIMATION */
@keyframes pulseNode{0%,100%{opacity:1; r:5;} 50%{opacity:0.55; r:7;}}
.node-pulse{animation:pulseNode 2.2s ease-in-out infinite;}
.draw-line{stroke-dasharray:600; stroke-dashoffset:600; animation:drawIn 1.8s ease forwards 0.3s;}
@keyframes drawIn{to{stroke-dashoffset:0;}}

/* FLOATING CTA */
.float-cta{
  position:fixed; bottom:24px; right:24px; z-index:60;
  opacity:0; transform:translateY(12px) scale(0.96); pointer-events:none;
  transition:opacity 0.25s ease, transform 0.25s ease;
  box-shadow:0 8px 24px rgba(23,21,30,0.18);
}
.float-cta.visible{opacity:1; transform:translateY(0) scale(1); pointer-events:auto;}

@media (max-width:900px){
  .hero{grid-template-columns:1fr;}
  .hero-graphic{display:none;}
  .strip-inner, .services-grid{grid-template-columns:1fr 1fr;}
  .nav-links{display:none;}
  .story{grid-template-columns:1fr;}
  .story-mark{display:none;}
  .service-detail{grid-template-columns:1fr; gap:14px;}
  .contact-grid{grid-template-columns:1fr;}
  .field-row{grid-template-columns:1fr;}
}
