:root {
  --navy: #0d1b2e;
  --ink: #122033;
  --muted: #6a7380;
  --lede: #5c6570;
  --blue: #168cff;
  --cyan: #24c4ff;
  --serif-blue: #1a74e8;
  --line: rgba(16, 32, 54, 0.12);
  --paper: #f5f9fc;
  --glass: rgba(255,255,255,0.58);
  --glass-strong: rgba(255,255,255,0.78);
  --max: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
html { scroll-padding-top: 96px; }
body {
  font-family: "Inter Tight", Inter, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
.wrap { width: min(var(--max), calc(100% - 72px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 72px)); }

/* Light + scene */
.light-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 6; mix-blend-mode: soft-light; opacity: .8;
}
.scene {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden; background: linear-gradient(180deg, #eef6fb 0%, #f7fbff 55%, #e9f3f8 100%);
}
.lotus { position: absolute; inset: -4% -8% -8% 18%; will-change: transform, opacity; }
.lotus img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%; }
.streak {
  position: absolute; top: -8%; right: -6%; width: 46vw; height: 42vh;
  background: radial-gradient(closest-side, rgba(36,196,255,.35), rgba(180,140,255,.12) 42%, transparent 70%);
  filter: blur(8px); pointer-events: none; mix-blend-mode: screen;
}

/* Stage: rings, logo panel, tiles */
.stage { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.rings {
  position: absolute; width: min(720px, 56vw); height: min(720px, 56vw);
  left: 64%; top: 48%; transform: translate(-50%, -50%);
  overflow: visible;
}
.ring {
  stroke: rgba(36, 196, 255, 0.55);
  stroke-width: 1.25;
  filter: drop-shadow(0 0 6px rgba(36,196,255,.65));
  transform-origin: 400px 400px;
  animation: spin 28s linear infinite;
}
.ring-b { stroke: rgba(90, 170, 255, 0.4); animation-duration: 40s; animation-direction: reverse; }
.ring-c { stroke: rgba(180, 160, 255, 0.35); animation-duration: 22s; }
@keyframes spin { to { transform: rotate(360deg); } }

.logo-panel {
  position: absolute;
  left: 62%; top: 48%;
  transform: translate(-50%, -50%);
  width: 280px; padding: 22px 26px;
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(20,50,90,.12), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  will-change: transform, opacity;
  z-index: 8;
}
.logo-panel img { width: 100%; height: auto; }

.glass-tile {
  pointer-events: auto;
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 12px 30px rgba(20,40,80,.12);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  will-change: transform;
  transition: background .25s ease, transform .25s ease;
}
.glass-tile:hover { background: rgba(255,255,255,0.82); }
.glass-tile svg { width: 26px; height: 26px; stroke: var(--blue); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Default tile positions (JS refines) */
.glass-tile[data-tile="layers"] { left: 52%; top: 22%; }
.glass-tile[data-tile="pen"]    { left: 78%; top: 20%; }
.glass-tile[data-tile="chart"]  { left: 86%; top: 48%; }
.glass-tile[data-tile="code"]   { left: 50%; top: 52%; }
.glass-tile[data-tile="phone"]  { left: 80%; top: 70%; }

/* Nav pill */
.nav-wrap {
  position: fixed; top: 22px; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center; padding: 0 20px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  width: min(1180px, 100%);
  height: 68px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 10px 0 18px;
  background: rgba(255,255,255,0.56);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 999px;
  box-shadow: 0 10px 36px rgba(20,40,80,.08);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links > a, .has-sub > a {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 14px; font-weight: 500; color: var(--navy);
  border-radius: 999px;
}
.nav-links > a:hover, .has-sub > a:hover { background: rgba(255,255,255,0.55); }
.nav-links > a.is-active { font-weight: 600; }
.nav-links .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 3px rgba(22,140,255,.18);
  margin-left: 2px;
}
.chevron {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.has-sub { position: relative; }
.submenu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 240px; padding: 8px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20,40,80,.12);
  backdrop-filter: blur(18px);
  display: none;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
.submenu a {
  display: block; padding: 9px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
}
.submenu a:hover { background: rgba(22,140,255,.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 14px rgba(20,40,80,.06);
}
.search-btn svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 1.7; stroke-linecap: round; }
.btn-navy {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(13,27,46,.2);
}
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--navy); margin: 5px auto; }

/* Hero */
.hero {
  position: relative; z-index: 8;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  padding: 120px 0 160px;
}
.hero-copy {
  width: min(560px, calc(100% - 80px));
  margin-left: max(48px, calc((100% - var(--max)) / 2));
  will-change: opacity, transform;
}
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: #5a6570; margin-bottom: 22px;
}
.kicker-line { display: block; width: 36px; height: 1px; background: #8a93a0; }
.hero h1 {
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(40px, 5.1vw, 64px); color: var(--navy);
}
.hero h1 .h-sans { display: block; }
.hero h1 em {
  display: block; font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400; color: var(--serif-blue);
}
.lede {
  margin: 22px 0 28px; max-width: 46ch;
  font-size: 16px; line-height: 1.65; color: var(--lede);
}
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-grad, .btn-glass {
  display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: transform .25s ease;
}
.btn-grad, .btn-glass { transform-origin: center; }
.btn-grad:hover, .btn-glass:hover { transform: translateY(-1px); }
.btn-grad {
  color: #fff;
  background: linear-gradient(90deg, #2ad0ff 0%, #168cff 55%, #0a6be0 100%);
  box-shadow: 0 10px 24px rgba(22,140,255,.28);
}
.btn-glass {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 8px 22px rgba(20,40,80,.08);
  backdrop-filter: blur(12px);
  color: var(--navy);
}
.play {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); position: relative;
}
.play::after {
  content: ""; position: absolute; left: 9px; top: 7px;
  border: 5px solid transparent; border-left: 8px solid #fff;
}
.stats {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 36px; max-width: 520px;
}
.stats li {
  flex: 1; padding: 0 18px;
  font-size: 12px; color: var(--muted); line-height: 1.3;
}
.stats li:first-child { padding-left: 0; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong {
  display: block; font-size: 22px; font-weight: 650;
  color: var(--navy); letter-spacing: -0.03em; margin-bottom: 4px;
}

.scroll-cue {
  position: absolute; left: max(48px, calc((100% - var(--max)) / 2));
  bottom: 36px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; color: #6a7380;
}
.scroll-cue .mouse { width: 18px; height: 28px; stroke: #6a7380; fill: none; stroke-width: 1.3; }
.scroll-cue span { font-size: 9px; font-weight: 600; letter-spacing: 0.16em; writing-mode: vertical-rl; transform: rotate(180deg); }
.scroll-cue .vline { width: 1px; height: 36px; background: linear-gradient(#8a93a0, transparent); }

.service-bar {
  position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%);
  display: flex; align-items: stretch;
  width: min(860px, calc(100% - 280px));
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 12px 36px rgba(20,40,80,.08);
  overflow: hidden;
}
.service-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 8px 16px; text-align: center;
  font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--navy);
  border-right: 1px solid var(--line);
  transition: background .25s ease, color .25s ease;
}
.service-bar a:last-child { border-right: 0; }
.service-bar a:hover, .service-bar a.is-on {
  background: rgba(255,255,255,0.72);
  color: var(--blue);
}
.service-bar svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.dots {
  position: absolute; right: 40px; bottom: 42px;
  display: flex; gap: 8px;
}
.dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(13,27,46,0.18);
}
.dots button.is-active {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(36,196,255,.22), 0 0 12px rgba(36,196,255,.7);
}

/* Page sections */
.expertise, .work, .approach, .clients, .insights, .about, .contact, .footer {
  position: relative; z-index: 8; background: #fff;
}
.expertise, .approach, .insights, .contact { background: #f6f9fc; }
.expertise, .work, .approach, .clients, .insights, .about, .contact { padding: 120px 0; }
.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
h2 {
  font-size: clamp(32px, 3.6vw, 48px); font-weight: 500;
  letter-spacing: -0.035em; line-height: 1.12; color: var(--navy);
}
.section-lede { margin: 18px 0 48px; max-width: 62ch; color: var(--lede); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-grid article, .glass-card, .cap-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 22px; padding: 28px 24px 30px;
  box-shadow: 0 10px 30px rgba(20,40,80,.05);
  backdrop-filter: blur(12px);
}
.svc-grid article.is-lit { box-shadow: 0 12px 40px rgba(22,140,255,.16); outline: 1px solid rgba(22,140,255,.25); }
.svc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(22,140,255,.08);
}
.svc-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-grid h3, .about-grid h3, .steps h3, .app-work h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--navy);
}
.svc-grid p, .steps p, .about-grid p { font-size: 15px; color: var(--muted); line-height: 1.65; }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 16px; margin-top: 40px; }
.work-thumb { aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: #f3f5f7; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-item h3 { margin-top: 12px; font-size: 14px; font-weight: 600; }
.work-item p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.app-work { margin-top: 72px; }
.app-dock { display: grid; grid-template-columns: repeat(10, 1fr); gap: 14px 10px; margin-top: 22px; }
.app-dock li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.app-dock img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px rgba(20,40,80,.1); }
.app-dock span { font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.3; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.steps li { padding-top: 16px; border-top: 1px solid var(--line); }
.steps span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--blue); margin-bottom: 14px; }

.quotes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-top: 44px; }
.quotes p { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.quotes footer { margin-top: 16px; font-size: 12px; color: var(--muted); }

.insights { text-align: left; }
.insights .glass-card { padding: 56px 48px; }
.insights .btn-navy { margin-top: 24px; display: inline-flex; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-top: 44px; }

.contact { text-align: center; padding: 140px 0 150px; }
.contact-logo { height: 48px; width: auto; margin: 0 auto 28px; }
.contact h2 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.045em; margin-bottom: 14px; }
.contact p { max-width: 42ch; margin: 0 auto 28px; color: var(--lede); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; background: #fff; }
.footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo img { height: 30px; width: auto; }
.footer-nav, .social { display: flex; gap: 14px; }
.footer a, .copy { font-size: 12px; color: var(--muted); font-weight: 500; }
.footer .copy { margin-left: auto; }

/* Search */
.search-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(13,27,46,.28);
  display: grid; place-items: start center; padding-top: 16vh;
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(560px, calc(100% - 40px));
  background: rgba(255,255,255,0.9);
  border-radius: 22px; padding: 22px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(20,40,80,.18);
}
.search-panel input {
  width: 100%; height: 48px; border: 0; border-bottom: 1px solid var(--line);
  font: inherit; font-size: 18px; outline: none; background: transparent;
}
.search-panel ul { margin-top: 14px; max-height: 40vh; overflow: auto; }
.search-panel li a, .search-panel li { display: block; padding: 8px 4px; font-size: 14px; }
.search-close { margin-top: 12px; font-size: 13px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s ease; }

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: smooth; }
}

@media (max-width: 1100px) {
  .svc-grid, .steps, .quotes, .about-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .app-dock { grid-template-columns: repeat(5, 1fr); }
  .service-bar { width: calc(100% - 48px); bottom: 20px; }
  .scroll-cue, .dots { display: none; }
  .logo-panel { width: 220px; left: 66%; }
  .rings { left: 68%; }
}
@media (max-width: 860px) {
  .nav-wrap { top: 12px; }
  .nav-pill { height: 58px; padding: 0 8px 0 14px; }
  .nav-logo img { height: 26px; }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 66px; left: 12px; right: 12px;
    background: rgba(255,255,255,0.96); border-radius: 20px; padding: 12px;
    box-shadow: 0 16px 40px rgba(20,40,80,.12);
  }
  .submenu { position: static; display: block; box-shadow: none; background: transparent; padding: 0 0 0 10px; }
  .menu-toggle { display: grid; place-items: center; }
  .btn-navy { height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
  .search-btn { width: 36px; height: 36px; }
  .hero { padding: 92px 0 32px; align-items: flex-start; display: block; }
  .hero-copy {
    position: relative; z-index: 3;
    width: calc(100% - 40px); margin: 0 20px;
    background: linear-gradient(180deg, rgba(245,249,252,0.0), rgba(245,249,252,0.82) 8%, rgba(245,249,252,0.92));
  }
  .hero h1 { font-size: 34px; }
  .stats { flex-direction: column; gap: 12px; }
  .stats li { padding: 0; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .hero .service-bar {
    position: relative !important;
    left: 0 !important;
    bottom: auto !important;
    transform: none !important;
    width: calc(100% - 24px);
    margin: 24px 12px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    z-index: 3;
  }
  .service-bar a { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 8px; }
  .logo-panel, .glass-tile, .rings { display: none; }
  .lotus { inset: 0 0 auto 0; height: 42vh; opacity: 0.55; }
  .lotus img { object-position: 70% 35%; }
  .svc-grid, .steps, .quotes, .about-grid, .work-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .app-dock { grid-template-columns: repeat(4, 1fr); }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .footer .copy { margin-left: 0; width: 100%; }
  .expertise, .work, .approach, .clients, .insights, .about, .contact { padding: 80px 0; }
}
