:root{
  --navy: #0B1F4D;
  --navy-deep: #071433;
  --cyan: #0BC5F5;
  --cyan-soft: #E4F8FF;
  --paper: #F6F8FB;
  --ink: #10152B;
  --line: #DFE6F0;
  --line-dark: rgba(255,255,255,0.12);
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3, .display{
  font-family:'Plus Jakarta Sans', sans-serif;
  color:var(--navy);
  letter-spacing:-0.015em;
  font-weight:700;
}
.mono{ font-family:'JetBrains Mono', monospace; letter-spacing:0.02em; }
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
.wrap{ max-width:1180px; margin:0 auto; padding:0 32px; }
section{ position:relative; }
::selection{ background:var(--cyan); color:var(--navy-deep); }
:focus-visible{ outline:2px solid var(--cyan); outline-offset:3px; border-radius:2px; }

/* ---------- NAV ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,248,251,0.82);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
nav.wrap{ display:flex; align-items:center; justify-content:space-between; height:76px; }
.logo{ display:flex; align-items:center; gap:10px; }
.logo-mark{ width:26px; height:26px; }
.logo-text{ font-family:'Plus Jakarta Sans', sans-serif; font-weight:700; font-size:18px; color:var(--navy); }
.logo-text span{ color:var(--cyan); font-weight:500; }
.nav-links{ display:flex; gap:36px; font-size:14.5px; font-weight:500; align-items:center; }
.nav-links a{ color:var(--navy); opacity:0.72; transition:opacity .2s; position:relative; }
.nav-links a:hover{ opacity:1; }
.nav-links a.active{ opacity:1; }
.nav-links a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-26px; height:2px; background:var(--cyan);
}
.nav-cta{
  padding:10px 20px; background:var(--navy); color:#fff !important;
  border-radius:100px; font-size:14px; font-weight:600; opacity:1 !important;
  transition:background .2s;
}
.nav-cta:hover{ background:var(--cyan); color:var(--navy-deep) !important; }

/* ---------- HERO (home) ---------- */
.hero{ padding:104px 0 88px; overflow:hidden; }
.hero .wrap{ display:grid; grid-template-columns:1.05fr 0.85fr; gap:56px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:600; color:var(--navy);
  background:var(--cyan-soft); border:1px solid #C9EFFC;
  padding:6px 14px; border-radius:100px; margin-bottom:22px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background:var(--cyan); }
.hero h1{ font-size:clamp(38px, 5vw, 58px); line-height:1.06; margin-bottom:22px; }
.hero h1 em{ font-style:normal; color:var(--cyan); }
.hero p.lead{ font-size:18px; color:#40476b; max-width:480px; margin-bottom:34px; }
.hero-ctas{ display:flex; gap:14px; align-items:center; margin-bottom:44px; }
.btn-primary{
  background:var(--navy); color:#fff; padding:14px 26px; border-radius:100px;
  font-weight:600; font-size:15px; display:inline-block; transition:transform .2s, background .2s;
}
.btn-primary:hover{ background:var(--cyan); color:var(--navy-deep); transform:translateY(-2px); }
.btn-ghost{
  padding:14px 22px; font-weight:600; font-size:15px; color:var(--navy);
  border-bottom:1.5px solid var(--navy); transition:border-color .2s, color .2s;
}
.btn-ghost:hover{ color:var(--cyan); border-color:var(--cyan); }
.hero-note{ font-size:13px; color:#7c85a8; }
.hero-note strong{ color:var(--navy); }

/* signature graphic: the flower mark — assembles once, then runs as a live tech/network animation */
.mark-stage{ display:flex; align-items:center; justify-content:center; }
.mark-stage svg{ width:min(380px, 90%); height:auto; }
.petal{
  transform-origin:250px 250px;
  stroke:var(--cyan); stroke-width:2; fill:var(--cyan); fill-opacity:0.14;
  stroke-dasharray:140; stroke-dashoffset:140;
  animation:draw 1s ease forwards, petal-glow 3.4s ease-in-out infinite;
  animation-delay:0s, 1.6s;
}
.petal.p2{ animation-delay:.12s, 1.73s; }
.petal.p3{ animation-delay:.24s, 1.86s; }
.petal.p4{ animation-delay:.36s, 1.99s; }
.petal.p5{ animation-delay:.48s, 2.12s; }
.petal.p6{ animation-delay:.6s, 2.25s; }
.core{
  fill:var(--navy); opacity:0; transform-origin:250px 250px;
  animation:fadein .6s ease forwards .9s, pulse-core 2.6s ease-in-out infinite 1.6s;
}
.thread{ stroke:#B9DDEF; stroke-width:1; opacity:0; animation:fadein .8s ease forwards 1s; }
.node{ fill:var(--cyan); opacity:0; animation:fadein .6s ease forwards 1.3s; }
.orbit-ring{
  fill:none; stroke:#C9EFFC; stroke-width:1; stroke-dasharray:3 11; stroke-linecap:round;
  opacity:0; transform-origin:250px 250px;
  animation:fadein .8s ease forwards 1.4s, spin-ring 70s linear infinite 1.4s;
}
.pulse-dot{ fill:var(--cyan); }
@keyframes draw{ to{ stroke-dashoffset:0; } }
@keyframes fadein{ to{ opacity:1; } }
@keyframes petal-glow{ 0%,100%{ fill-opacity:0.14; } 50%{ fill-opacity:0.34; } }
@keyframes pulse-core{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.4); } }
@keyframes spin-ring{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .petal{ animation:draw 1s ease forwards; }
  .core{ animation:fadein .6s ease forwards .9s; }
  .orbit-ring{ animation:fadein .8s ease forwards 1.4s; }
  .pulse-dot{ display:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- PAGE HERO (subpages) ---------- */
.page-hero{ padding:64px 0 56px; border-bottom:1px solid var(--line); background:#fff; }
.page-hero .wrap{ max-width:760px; }
.page-hero h1{ font-size:clamp(32px,4vw,46px); margin-bottom:14px; }
.page-hero p{ font-size:17px; color:#4a5178; }
.breadcrumb{ font-size:13px; color:#8188aa; margin-bottom:18px; }
.breadcrumb a{ opacity:0.8; } .breadcrumb a:hover{ color:var(--cyan); }

/* ---------- STATS ---------- */
.stats{ border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#fff; }
.stats .wrap{ display:grid; grid-template-columns:repeat(4,1fr); }
.stat{ padding:36px 0; text-align:center; border-right:1px solid var(--line); }
.stat:last-child{ border-right:none; }
.stat .num{ font-family:'JetBrains Mono', monospace; font-size:30px; font-weight:600; color:var(--navy); }
.stat .num span{ color:var(--cyan); }
.stat .label{ font-size:13px; color:#6b7394; margin-top:6px; }

/* ---------- ACCREDITATION STRIP ---------- */
.accred{ background:var(--navy); }
.accred .wrap{ display:flex; align-items:center; justify-content:center; gap:10px; padding:14px 32px; flex-wrap:wrap; text-align:center; }
.accred p{ color:#D7E2F7; font-size:13.5px; font-weight:500; }
.accred strong{ color:#fff; }
.accred .dot{ width:4px; height:4px; border-radius:50%; background:var(--cyan); }

/* ---------- SECTION HEADS ---------- */
.section-pad{ padding:110px 0; }
.section-pad.tight{ padding:80px 0; }
.section-head{ max-width:600px; margin-bottom:56px; }
.section-head.center{ max-width:640px; margin-left:auto; margin-right:auto; text-align:center; }
.section-head .eyebrow{ margin-bottom:16px; }
.section-head h2{ font-size:clamp(28px,3.4vw,40px); margin-bottom:14px; }
.section-head p{ color:#4a5178; font-size:16px; }

/* ---------- SERVICES ---------- */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.service{ background:#fff; padding:38px 32px; transition:background .25s; }
.service:hover{ background:var(--cyan-soft); }
.service .si{ width:40px; height:40px; margin-bottom:22px; }
.service h3{ font-size:19px; margin-bottom:10px; }
.service p{ font-size:14.5px; color:#565d80; }

/* ---------- SERVICE DETAIL (services page) ---------- */
.service-detail{
  display:grid; grid-template-columns:80px 1fr; gap:28px;
  padding:44px 0; border-bottom:1px solid var(--line);
}
.service-detail:last-child{ border-bottom:none; }
.service-detail .si-lg{ width:56px; height:56px; }
.service-detail h3{ font-size:22px; margin-bottom:10px; }
.service-detail p{ color:#4a5178; font-size:15.5px; max-width:640px; margin-bottom:16px; }
.service-detail ul{ list-style:none; display:grid; grid-template-columns:repeat(2,1fr); gap:8px 24px; max-width:640px; }
.service-detail li{ font-size:14px; color:#40476b; padding-left:18px; position:relative; }
.service-detail li::before{ content:''; position:absolute; left:0; top:8px; width:6px; height:6px; border-radius:50%; background:var(--cyan); }

/* ---------- APPROACH ---------- */
.approach-line{ display:grid; grid-template-columns:repeat(5,1fr); gap:24px; position:relative; }
.approach-line::before{ content:''; position:absolute; top:19px; left:5%; right:5%; height:1px; background:var(--line); z-index:0; }
.step{ position:relative; z-index:1; }
.step .idx{
  width:38px; height:38px; border-radius:50%; background:#fff; border:1.5px solid var(--navy);
  display:flex; align-items:center; justify-content:center;
  font-family:'JetBrains Mono', monospace; font-weight:600; font-size:13px; color:var(--navy);
  margin-bottom:20px;
}
.step:nth-child(odd) .idx{ background:var(--navy); color:#fff; border-color:var(--navy); }
.step h3{ font-size:16.5px; margin-bottom:8px; }
.step p{ font-size:13.8px; color:#5a6188; }

/* ---------- VALUES (about page) ---------- */
.values-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.value-card{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:32px 28px; }
.value-card .vi{ width:36px; height:36px; margin-bottom:18px; }
.value-card h3{ font-size:17.5px; margin-bottom:8px; }
.value-card p{ font-size:14px; color:#565d80; }

/* ---------- WORK / CASE STUDIES ---------- */
.work-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.work-grid.stacked{ grid-template-columns:1fr; gap:22px; }
.work-card{
  border-radius:18px; overflow:hidden; background:#fff; border:1px solid var(--line);
  transition:transform .25s, box-shadow .25s;
}
.work-card:hover{ transform:translateY(-6px); box-shadow:0 18px 40px rgba(11,31,77,0.1); }
.work-thumb{ height:150px; position:relative; border-bottom:3px solid var(--cyan); }
.work-card:nth-child(1) .work-thumb{ background:var(--navy); }
.work-card:nth-child(2) .work-thumb{ background:var(--navy-deep); }
.work-card:nth-child(3) .work-thumb{ background:#12285C; }
.work-card:nth-child(4) .work-thumb{ background:#1B3A7A; }
.work-body{ padding:26px 26px 30px; }
.work-tag{ font-family:'JetBrains Mono', monospace; font-size:11.5px; color:var(--cyan); font-weight:600; text-transform:uppercase; letter-spacing:0.06em; }
.work-card h3{ font-size:18px; margin:10px 0 8px; }
.work-card p{ font-size:14px; color:#5a6188; margin-bottom:16px; }
.work-result{ font-size:13px; font-weight:600; color:var(--navy); display:flex; align-items:center; gap:6px; }

/* full write-up layout on case-studies.html */
.case-full{ display:grid; grid-template-columns:220px 1fr; gap:36px; padding:44px 0; border-bottom:1px solid var(--line); }
.case-full:last-child{ border-bottom:none; }
.case-full .work-thumb{ height:140px; border-radius:14px; border-bottom:3px solid var(--cyan); }
.case-full h3{ font-size:21px; margin:12px 0 10px; }
.case-full p{ color:#4a5178; font-size:15px; margin-bottom:14px; max-width:640px; }
.case-full .case-meta{ display:flex; gap:22px; flex-wrap:wrap; font-size:13px; color:#5a6188; margin-top:14px; }
.case-full .case-meta strong{ color:var(--navy); display:block; font-size:12px; }

/* ---------- CTA BAND ---------- */
.cta-band{ background:var(--navy-deep); border-radius:28px; padding:70px 60px; position:relative; overflow:hidden; }
.cta-band::after{
  content:''; position:absolute; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(11,197,245,0.14), transparent 70%);
  top:-180px; right:-120px;
}
.cta-inner{ position:relative; z-index:1; max-width:560px; }
.cta-band h2{ color:#fff; font-size:clamp(26px,3.2vw,36px); margin-bottom:16px; }
.cta-band p{ color:#B9C4E6; font-size:16px; margin-bottom:30px; }
.btn-primary.on-dark{ background:var(--cyan); color:var(--navy-deep); }
.btn-primary.on-dark:hover{ background:#fff; }

/* ---------- CONTACT PAGE ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:56px; align-items:start; }
.contact-info h3{ font-size:15px; margin-bottom:6px; }
.contact-info .info-block{ margin-bottom:30px; }
.contact-info .info-block p, .contact-info .info-block a{ font-size:15px; color:#4a5178; }
.contact-info .info-block a:hover{ color:var(--cyan); }
.contact-form{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:40px; }
.form-row{ margin-bottom:20px; }
.form-row label{ display:block; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:8px; }
.form-row input, .form-row textarea, .form-row select{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px;
  font-family:'Inter', sans-serif; font-size:14.5px; color:var(--ink); background:var(--paper);
  transition:border-color .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{ outline:none; border-color:var(--cyan); }
.form-row textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:12.5px; color:#8188aa; margin-top:14px; }
.btn-submit{
  background:var(--navy); color:#fff; border:none; padding:14px 28px; border-radius:100px;
  font-weight:600; font-size:15px; cursor:pointer; transition:background .2s;
  font-family:'Inter', sans-serif;
}
.btn-submit:hover{ background:var(--cyan); color:var(--navy-deep); }

/* ---------- FOOTER ---------- */
footer{ background:var(--navy-deep); color:#B9C4E6; padding:70px 0 30px; margin-top:30px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:50px; border-bottom:1px solid var(--line-dark); }
.footer-brand .logo-text{ color:#fff; }
.footer-brand p{ font-size:14px; margin-top:16px; max-width:260px; color:#8D98C2; }
.footer-col h4{ color:#fff; font-size:13.5px; margin-bottom:16px; font-weight:600; }
.footer-col a{ display:block; font-size:14px; color:#B9C4E6; opacity:0.85; margin-bottom:11px; transition:opacity .2s, color .2s; }
.footer-col a:hover{ opacity:1; color:var(--cyan); }
.footer-addr{ display:block; font-size:14px; color:#B9C4E6; opacity:0.85; margin-bottom:11px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; font-size:13px; color:#7681A8; flex-wrap:wrap; gap:8px; }

@media (max-width: 860px){
  .hero .wrap{ grid-template-columns:1fr; }
  .mark-stage{ order:-1; margin-bottom:10px; }
  .mark-stage svg{ width:220px; }
  .nav-links{ display:none; }
  .stats .wrap{ grid-template-columns:repeat(2,1fr); }
  .stat{ border-bottom:1px solid var(--line); }
  .services-grid{ grid-template-columns:1fr; }
  .approach-line{ grid-template-columns:1fr; }
  .approach-line::before{ display:none; }
  .work-grid{ grid-template-columns:1fr; }
  .values-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .cta-band{ padding:48px 28px; }
  .service-detail{ grid-template-columns:1fr; }
  .service-detail ul{ grid-template-columns:1fr; }
  .case-full{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
}
