@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --purple:#5B2D8E;--purple-dark:#3D1578;--purple-light:#F4EEFF;
  --purple-mid:#7B3FBE;--purple-pale:#E2D0F8;--purple-deep:#1E0A3C;
  --ink:#0D0B12;--ink-soft:#3A3351;--muted:#7A7290;
  --border:#E8E2F2;--bg:#FDFCFF;--bg-tint:#FAF6FF;--dark:#1F1B2E;
  --teal:#1ABFB0;--rose:#E85D7A;--gold:#C9A84C;
  --font-heading:'Instrument Serif',Georgia,serif;
  --font-body:'Syne',system-ui,sans-serif;
  --font-mono:'Courier New',monospace;
  --r-sm:8px;--r-md:14px;--r-lg:20px;--r-xl:32px;--r-full:9999px;
  --shadow-md:0 4px 24px rgba(13,11,18,.10);
  --shadow-lg:0 12px 48px rgba(13,11,18,.14);
  --shadow-p:0 8px 32px rgba(91,45,142,.22);
  --ease:.28s cubic-bezier(.4,0,.2,1);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:var(--font-body);background:var(--bg);color:var(--ink);line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased;font-family: system-ui;}

/* body{font-family:var(--font-body);background:var(--bg);color:var(--ink);line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased} */
a{color:inherit;text-decoration:none}ul{list-style:none}img{max-width:100%;display:block}
button,input,textarea,select{font-family:inherit}
::-webkit-scrollbar{width:5px}::-webkit-scrollbar-track{background:var(--bg-tint)}::-webkit-scrollbar-thumb{background:var(--purple-pale);border-radius:3px}

/* NAV */
#navbar{position:fixed;top:0;left:0;right:0;z-index:999;transition:box-shadow var(--ease);background:#ffffff;box-shadow:0 1px 0 var(--border),0 2px 16px rgba(13,11,18,.06)}
#navbar.scrolled{background:#ffffff;box-shadow:0 1px 0 var(--border),0 4px 24px rgba(13,11,18,.08)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem 5vw;max-width:1400px;margin:0 auto}
.nav-logo img{height:38px;width:auto}
.nav-links{display:flex;align-items:center;gap:.25rem}
.nav-link{padding:.5rem .85rem .55rem;font-size:.875rem;font-weight:600;color:var(--ink-soft);border-radius:var(--r-sm);transition:var(--ease);line-height:1.5}
.nav-link:hover,.nav-link.active{color:var(--purple);background:var(--purple-light)}
.nav-cta{background:var(--purple);color:#fff;border:none;border-radius:var(--r-full);padding:.6rem 1.4rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:var(--ease);text-decoration:none}
.nav-cta:hover{background:var(--purple-mid);transform:translateY(-1px)}
.hamburger{display:none;background:none;border:none;flex-direction:column;gap:5px;padding:.4rem;cursor:pointer}
.hamburger span{display:block;width:22px;height:2px;background:var(--ink);border-radius:2px;transition:var(--ease)}
.mobile-menu{display:none;position:fixed;inset:0;z-index:998;background:var(--bg);flex-direction:column;gap:.5rem;padding:90px 5vw 2rem}
.mobile-menu.open{display:flex}
.mobile-menu .nav-link{font-size:1.2rem;font-weight:700;padding:.8rem 0;border-bottom:1px solid var(--border);border-radius:0}

/* TYPOGRAPHY */
.eyebrow{display:inline-flex;align-items:center;gap:.6rem;font-size:.7rem;font-weight:700;color:var(--purple);letter-spacing:.14em;text-transform:uppercase;line-height:1.6;padding-bottom:.1rem}
.eyebrow::before{content:'';display:inline-block;width:20px;height:1.5px;background:currentColor}
.display-xl{font-family:var(--font-heading);font-size:clamp(2.8rem,5.5vw,5.5rem);line-height:1.05;letter-spacing:-.02em}
.display-xl em{font-style:italic;color:var(--purple)}
.display-md{font-family:var(--font-heading);font-size:clamp(1.8rem,3.5vw,3rem);line-height:1.15;letter-spacing:-.01em}
.display-md em{font-style:italic;color:var(--purple)}
.body-lg{font-size:1.05rem;line-height:1.75;color:var(--ink-soft)}
.body-md{font-size:.9rem;line-height:1.7;color:var(--muted)}

/* BUTTONS */
.btn-primary{display:inline-flex;align-items:center;gap:.5rem;background:var(--purple);color:#fff;border:none;border-radius:var(--r-full);padding:.8rem 2rem;font-size:.95rem;font-weight:600;cursor:pointer;box-shadow:var(--shadow-p);transition:var(--ease)}
.btn-primary:hover{background:var(--purple-mid);transform:translateY(-2px)}
.btn-outline{display:inline-flex;align-items:center;gap:.5rem;background:transparent;color:var(--purple);border:1.5px solid var(--purple-pale);border-radius:var(--r-full);padding:.8rem 2rem;font-size:.95rem;font-weight:600;transition:var(--ease)}
.btn-outline:hover{background:var(--purple-light);transform:translateY(-1px)}
.btn-ghost{display:inline-flex;align-items:center;gap:.4rem;background:transparent;color:var(--ink-soft);border:none;font-size:.95rem;font-weight:600;transition:var(--ease)}
.btn-ghost:hover{color:var(--purple)}

/* TAGS */
.tag{display:inline-block;background:var(--purple-light);color:var(--purple);border-radius:var(--r-full);padding:.3rem .75rem .4rem;font-size:.68rem;font-weight:600;line-height:1.4}

/* LAYOUT */
.section{padding:6rem 5vw}
.container{max-width:1200px;margin:0 auto}

/* ANIMATIONS */
@keyframes fadeUp{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes shimmer{from{background-position:-200% center}to{background-position:200% center}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes spin{from{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.afu{animation:fadeUp .7s ease both}.d1{animation-delay:.1s}.d2{animation-delay:.2s}.d3{animation-delay:.3s}.d4{animation-delay:.4s}
.reveal{opacity:1;transform:none}
.reveal.visible{opacity:1;transform:none}
.reveal-left{opacity:1;transform:none}
.reveal-left.visible{opacity:1;transform:none}
.reveal-right{opacity:1;transform:none}
.reveal-right.visible{opacity:1;transform:none}

/* MARQUEE */
.marquee-wrap{background:var(--bg-tint);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:1rem 0;overflow:hidden}
.marquee-track{display:flex;gap:3rem;animation:marquee 28s linear infinite;width:max-content;padding:.5rem 0}
.marquee-item{display:flex;align-items:center;gap:.6rem;font-size:.75rem;font-weight:600;color:var(--purple);white-space:nowrap;letter-spacing:.04em;line-height:2}
.marquee-dot{width:4px;height:4px;background:var(--purple-pale);border-radius:50%}

/* CTA BANNER */
.cta-section{background:var(--bg-tint);padding:5rem 5vw}
.cta-box{background:linear-gradient(135deg,var(--purple-deep),var(--purple-dark));border-radius:var(--r-xl);padding:5rem 4rem 5.5rem;position:relative;overflow:clip;max-width:1200px;margin:0 auto}
.cta-box-bg{position:absolute;inset:0;background:radial-gradient(ellipse 50% 80% at 90% 50%,rgba(196,160,236,.15) 0%,transparent 60%)}
.cta-box-content{position:relative;z-index:1;max-width:560px}
.cta-deco{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.06)}
.cd1{width:400px;height:400px;right:-100px;top:-100px}
.cd2{width:280px;height:280px;right:-30px;top:-30px}
.cd3{width:160px;height:160px;right:60px;top:60px;background:rgba(91,45,142,.3)}

/* FOOTER */
.site-footer{background:var(--purple-deep);padding:5rem 5vw 2rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem;max-width:1200px;margin:0 auto 3rem}
.footer-logo img{height:40px;width:auto;filter:brightness(0) invert(1);opacity:.9;margin-bottom:1rem}
.footer-tagline{font-size:.875rem;line-height:1.7;color:rgba(255,255,255,.5);max-width:280px}
.footer-col h4{font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.3);margin-bottom:1.25rem;line-height:1.6;padding-bottom:.2rem}
.footer-col ul{display:flex;flex-direction:column;gap:.65rem}
.footer-col a{font-size:.875rem;color:rgba(255,255,255,.5);transition:var(--ease);line-height:1.7;display:block}
.footer-col a:hover{color:#fff}
.footer-bottom{max-width:1200px;margin:0 auto;border-top:1px solid rgba(255,255,255,.08);padding-top:2rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;font-size:.78rem;color:rgba(255,255,255,.4)}
.footer-bottom-links{display:flex;gap:1.5rem}
.footer-bottom-links a{color:rgba(255,255,255,.35);transition:var(--ease)}
.footer-bottom-links a:hover{color:rgba(255,255,255,.7)}

/* RESPONSIVE */
@media(max-width:900px){.nav-links,.nav-cta{display:none}.hamburger{display:flex}.section{padding:4rem 5vw}.footer-grid{grid-template-columns:1fr 1fr}.cta-box{padding:3rem 2rem}}
@media(max-width:600px){.footer-grid{grid-template-columns:1fr}}


/* ─────────────────────────────────────────────────
   DESCENDER FIX (clean, single source of truth)
   
   The g/p/y/j clipping problem:
   When a container has border-bottom or overflow that
   touches the text baseline, descenders get cut.
   
   Fix: use clip-path on the nav so border is drawn
   independently of the text layout box.
───────────────────────────────────────────────── */

/* ══════════════════════════════════════════
   SERVICES TAB BUTTONS
   The descender (g, p, y, j) fix:
   - NO border-bottom on the button itself
   - Active line is a separate ::after element
     that lives OUTSIDE the button's content box
   - It can never touch text because it's not
     part of the button's layout
══════════════════════════════════════════ */
.svc-btn {
  position: relative;
  display: inline-block;
  padding: 1.25rem 1.75rem;    /* equal padding all sides — no bottom weirdness */
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;                 /* ZERO borders on the element */
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s, background .25s;
  line-height: 1.8;
  letter-spacing: 0;
  vertical-align: middle;
}

/* Active indicator lives BELOW the button, never touching text */
.svc-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background .25s;
}
.svc-btn:hover  { color: var(--purple); background: var(--purple-light); }
.svc-btn.active { color: var(--purple); background: var(--bg-tint); font-weight: 700; }
.svc-btn.active::after { background: var(--purple); }
.svc-nav-inner  { display: flex; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.svc-nav-inner::-webkit-scrollbar { display: none; }


/* ═══════════════════════════════════════════════
   DESCENDER FIX — all small pill/badge/tag elements
   padding-bottom ensures g/p/y/j never touch bottom
═══════════════════════════════════════════════ */
.tag { padding: .3rem .7rem .4rem; line-height: 1.6; }
.stack-chip, .cs-chip, .ctag { padding: .3rem .7rem .4rem; line-height: 1.6; }
.svc-badge { padding: .4rem .9rem .5rem; line-height: 1.6; }
.eyebrow { padding-bottom: .15rem; line-height: 1.6; }
.hero-pill { padding: .45rem 1rem .55rem; line-height: 1.6; overflow: visible; }
.marquee-item { line-height: 2; }
.footer-col a { line-height: 1.8; display: block; }
.footer-col h4 { line-height: 1.6; padding-bottom: .2rem; }
.nav-link { line-height: 1.6; padding: .45rem .85rem .5rem; }
.nav-cta { line-height: 1.6; padding: .55rem 1.4rem .65rem; }
.badge, [class*="badge"] { line-height: 1.6; padding-bottom: .35em; }
