:root {
  --midnight: #0b0f14;
  --midnight-soft: #111923;
  --apex: #3b82f6;
  --electric: #06b6d4;
  --white: #ffffff;
  --slate: #6b7280;
  --line: rgba(255, 255, 255, 0.12);
  --shell: min(1160px, calc(100% - 40px));
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; background: var(--white); color: var(--midnight); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled { background: rgba(11, 15, 20, .86); border-color: var(--line); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 .95rem/1 "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.button) { color: #d3dae3; text-decoration: none; font-size: .92rem; }
.site-nav > a:not(.button):hover { color: var(--white); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 10px; color: white; }
.menu-button span:not(.sr-only) { display: block; width: 19px; height: 2px; margin: 4px auto; background: currentColor; }
.menu-button span:not(.sr-only) { transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 10px; background: linear-gradient(110deg, var(--apex), var(--electric)); color: var(--white); text-decoration: none; font-weight: 700; box-shadow: 0 12px 36px rgba(6, 182, 212, .16); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(6, 182, 212, .25); }
.button-small { min-height: 42px; padding-inline: 18px; font-size: .88rem; }
.text-link { text-decoration: none; color: #dce4ed; font-weight: 600; }
.text-link span { color: var(--electric); margin-left: 6px; }

.hero { position: relative; min-height: 820px; overflow: hidden; display: grid; align-items: center; padding: 142px 0 86px; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 74px 74px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.hero-glow { position: absolute; width: 720px; height: 720px; right: -180px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.22), rgba(59,130,246,.08) 46%, transparent 70%); filter: blur(8px); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 20px; color: var(--electric); font: 700 .78rem/1.2 "Montserrat", sans-serif; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: "Montserrat", sans-serif; line-height: 1.08; }
h1 { max-width: 760px; font-size: clamp(3.3rem, 6.4vw, 6.5rem); letter-spacing: -.055em; }
h1 span { color: transparent; background: linear-gradient(90deg, var(--apex), var(--electric)); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 640px; margin: 28px 0 0; color: #bdc7d3; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.hero-mark { position: relative; display: grid; place-items: center; }
.hero-mark img { width: min(440px, 100%); height: auto; border-radius: 0; filter: drop-shadow(0 35px 70px rgba(0,0,0,.45)); }

.section { padding: 112px 0; }
.section-heading { display: grid; grid-template-columns: 1fr .7fr; column-gap: 70px; align-items: end; margin-bottom: 50px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .approach h2, .about h2, .contact h2 { font-size: clamp(2.25rem, 4vw, 4rem); letter-spacing: -.045em; }
.section-heading > p:last-child, .approach-copy > p:last-child, .about-card > p { margin: 0; color: var(--slate); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service-card { position: relative; min-height: 360px; padding: 42px 34px 34px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); transition: background .25s, transform .25s; }
.service-card:first-child { border-left: 1px solid var(--line); }
.service-card:hover { background: linear-gradient(180deg, rgba(59,130,246,.11), rgba(6,182,212,.025)); transform: translateY(-4px); }
.service-number { color: #687587; font: 600 .75rem "Montserrat", sans-serif; letter-spacing: .12em; }
.service-icon { width: 56px; height: 56px; margin: 52px 0 30px; color: var(--electric); }
.service-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.service-card h3 { font-size: 1.45rem; }
.service-card p { color: var(--slate); margin: 16px 0 0; }

.approach { background: var(--white); color: var(--midnight); }
.approach-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; }
.approach-copy { position: sticky; top: 130px; align-self: start; }
.approach-copy > p:last-child { color: #5e6a78; margin-top: 24px; }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #dce1e7; }
.process-list li { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid #dce1e7; }
.process-list li > span { color: var(--apex); font: 700 .78rem "Montserrat", sans-serif; }
.process-list h3 { font-size: 1.35rem; }
.process-list p { color: #687482; margin: 8px 0 0; }

.about { background: #0e151e; }
.about-card { display: grid; grid-template-columns: 1.25fr .75fr; gap: 90px; align-items: end; padding: 70px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 90% 10%, rgba(6,182,212,.15), transparent 30%), linear-gradient(135deg, #111b27, #0a0f15); }
.about-card > p { font-size: 1.05rem; }
.contact { position: relative; text-align: center; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 640px; height: 360px; left: 50%; bottom: -250px; transform: translateX(-50%); background: rgba(59,130,246,.26); filter: blur(110px); border-radius: 50%; }
.contact-inner { position: relative; }
.contact h2 { max-width: 800px; margin-inline: auto; }
.contact p:not(.eyebrow) { color: var(--slate); margin: 22px auto 32px; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--slate); }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .85rem; }
.footer-layout div { display: flex; align-items: center; gap: 20px; }
.footer-layout strong { color: var(--white); font-family: "Montserrat", sans-serif; }
.footer-layout p { margin: 0; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--electric); outline-offset: 4px; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav { position: fixed; inset: 82px 20px auto; display: none; align-items: stretch; gap: 8px; max-height: calc(100dvh - 102px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #101822; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 12px; }
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; gap: 50px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 280px; }
  .section-heading, .approach-layout, .about-card { grid-template-columns: 1fr; gap: 34px; }
  .approach-copy { position: static; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:first-child { min-height: auto; border: 1px solid var(--line); border-top: 0; }
  .service-icon { margin-top: 30px; }
  .about-card { padding: 42px; }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1160px); }
  .nav-wrap { min-height: 72px; }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: .78rem; }
  .site-nav { top: 72px; inset-inline: 14px; }
  #services, #approach, #about, #contact { scroll-margin-top: 72px; }
  .hero { padding: 92px 0 62px; }
  .hero-grid { background-size: 48px 48px; }
  .hero-mark { display: none; }
  .hero .eyebrow { margin-bottom: 14px; }
  h1 { font-size: clamp(2.65rem, 12.5vw, 3.55rem); letter-spacing: -.045em; }
  .hero-lead { margin-top: 20px; font-size: 1rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 18px; margin-top: 22px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { align-self: center; min-height: 44px; display: inline-flex; align-items: center; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 34px; }
  .service-card { padding: 32px 26px; }
  .about-card { padding: 32px 24px; }
  .contact .button { width: 100%; min-height: 56px; padding-inline: 14px; font-size: clamp(.9rem, 4.2vw, 1.05rem); line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
  .footer-layout, .footer-layout div { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
