@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600&display=swap");

:root {
  --bg: #090d18;
  --bg-raised: #0d1220;
  --surface: #101625;
  --surface-hover: #131b2d;
  --text: #f0ede4;
  --muted: #979eae;
  --faint: #5d6678;
  --blue: #4d91ff;
  --blue-bright: #73a8ff;
  --line: rgba(173, 190, 218, 0.13);
  --line-bright: rgba(93, 148, 245, 0.35);
  --shell: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }
.shell { width: min(calc(100% - 40px), 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; top: 8px; left: 8px; z-index: 100;
  transform: translateY(-150%); background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 4px;
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(9, 13, 24, .82);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 600 19px/1 "Manrope", sans-serif; letter-spacing: -.03em; }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: #8ca2c9; stroke-width: 1.2; }
.brand-mark circle:last-child { fill: var(--blue); stroke: none; filter: drop-shadow(0 0 6px var(--blue)); }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a, .footer-nav a { color: #b9bfcb; font-size: 14px; transition: color .2s ease; }
.site-nav a:hover, .footer-nav a:hover { color: var(--text); }
.nav-toggle { display: none; color: var(--text); background: none; border: 0; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; width: 23px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .2s; }

.hero {
  min-height: 850px; height: 100svh; max-height: 1040px;
  position: relative; display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 64% 50%, rgba(40, 93, 190, .13), transparent 40%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .13;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 67%, transparent);
}
.hero-content { position: relative; z-index: 2; padding-top: 50px; }
.eyebrow {
  margin: 0 0 28px; color: var(--blue-bright); font: 500 12px/1.4 "Manrope", sans-serif;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow span { color: var(--faint); padding-inline: 6px; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 {
  max-width: 850px; margin: 0; font-size: clamp(52px, 6.3vw, 94px); line-height: 1.01;
  letter-spacing: -.06em; font-weight: 500;
}
.hero-copy {
  max-width: 650px; margin: 32px 0 0; color: #aeb5c2;
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; margin-top: 42px; }
.button {
  min-height: 48px; padding: 0 19px; display: inline-flex; align-items: center; gap: 22px;
  border: 1px solid var(--line); border-radius: 5px; font-size: 14px; transition: .2s ease;
}
.button span { color: var(--blue-bright); }
.button-primary { background: var(--text); color: #101522; border-color: var(--text); }
.button-primary span { color: #224f96; }
.button-primary:hover { background: white; transform: translateY(-2px); }
.button-secondary:hover { border-color: var(--line-bright); background: rgba(59, 130, 246, .06); transform: translateY(-2px); }
.hero-orbit {
  position: absolute; z-index: 1; right: max(-70px, calc((100vw - var(--shell)) / 2 - 100px));
  top: 50%; width: min(50vw, 700px); transform: translateY(-48%);
}
.orbit-lines { fill: none; stroke: rgba(111, 139, 185, .26); stroke-width: 1; }
.orbit-nodes { fill: #6f8bb9; opacity: .55; }
.orbit-core-halo { fill: rgba(59,130,246,.12); stroke: rgba(83,143,247,.25); }
.orbit-core { fill: #63a0ff; filter: drop-shadow(0 0 12px #3b82f6); }

.section { padding: 132px 0; }
.section-heading { max-width: 640px; margin-bottom: 64px; }
.section-heading h2 {
  margin: 0; font-weight: 500; letter-spacing: -.045em; line-height: 1.1;
  font-size: clamp(38px, 4.2vw, 62px);
}
.section-heading > p:last-child {
  color: var(--muted); line-height: 1.7; max-width: 600px; margin: 24px 0 0; font-size: 17px;
}
.services-section { background: var(--bg-raised); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card {
  position: relative; min-height: 345px; padding: 34px 30px; overflow: hidden;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.006); transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at 20% 0%, rgba(59, 130, 246, .13), transparent 52%);
}
.service-card:hover {
  z-index: 2; transform: translateY(-5px); background: var(--surface-hover);
  box-shadow: 0 18px 50px rgba(0,0,0,.26), 0 0 0 1px rgba(72,136,245,.2);
}
.service-card:hover::before { opacity: 1; }
.service-icon { position: relative; width: 45px; height: 45px; color: #7991bb; margin-bottom: 47px; }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { position: relative; margin: 0 0 15px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.service-card p { position: relative; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-index { position: absolute; right: 22px; top: 24px; color: #4d5667; font: 500 10px/1 "Manrope", sans-serif; letter-spacing: .1em; }

.about-section { border-bottom: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.about-layout .section-heading { margin-bottom: 0; }
.about-copy { padding-top: 38px; }
.about-copy p { color: #aeb5c2; font-size: 18px; line-height: 1.8; margin: 0 0 25px; }
.about-copy p:first-child { color: var(--text); font-size: 21px; }

.principles-section { background: #0b101c; }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { min-height: 260px; padding: 31px 28px; background: #0b101c; }
.principle > span { color: var(--blue); font: 500 11px/1 "Manrope", sans-serif; letter-spacing: .1em; }
.principle h3 { margin: 65px 0 14px; font-size: 17px; font-weight: 500; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.contact-section { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; border-top: 1px solid var(--line); }
.contact-inner { position: relative; text-align: center; }
.contact-inner h2 { margin: 0; font-weight: 500; font-size: clamp(44px, 6vw, 80px); line-height: 1.05; letter-spacing: -.055em; }
.contact-inner > p:not(.eyebrow, .company-note) { color: var(--muted); margin: 26px auto 35px; font-size: 17px; }
.email-link {
  display: inline-flex; gap: 20px; align-items: center; padding: 12px 0 8px;
  border-bottom: 1px solid var(--blue); font: 500 clamp(22px, 3vw, 31px)/1.3 "Manrope", sans-serif;
  transition: color .2s;
}
.email-link span { color: var(--blue); font-size: .8em; }
.email-link:hover { color: var(--blue-bright); }
.company-note { margin: 52px 0 0; color: var(--faint); font-size: 12px; }
.contact-glow {
  position: absolute; width: 640px; height: 640px; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 93, 186, .12), transparent 65%);
}

.site-footer { padding: 66px 0 24px; border-top: 1px solid var(--line); background: #070b14; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .4fr; gap: 70px; }
.footer-tagline { color: var(--faint); font-size: 13px; margin: 20px 0 0 41px; }
.footer-details p { color: #9da5b4; font-size: 13px; line-height: 1.65; margin: 0 0 20px; }
.footer-details span { color: var(--faint); display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.footer-nav { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }
.footer-bottom {
  margin-top: 58px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; color: #515a6c; font-size: 11px;
}
.footer-bottom p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2), .principles-grid .reveal:nth-child(2) { transition-delay: .06s; }
.services-grid .reveal:nth-child(3), .principles-grid .reveal:nth-child(3) { transition-delay: .12s; }
.services-grid .reveal:nth-child(4), .principles-grid .reveal:nth-child(4) { transition-delay: .18s; }

@media (max-width: 1040px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-orbit { right: -170px; width: 620px; opacity: .6; }
  .hero-content { padding-right: 20%; }
}
@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { height: 66px; }
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .site-nav {
    display: none; position: absolute; inset: 0 0 auto; padding: 92px 24px 28px;
    background: rgba(9,13,24,.98); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 25px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { min-height: 760px; height: 100svh; }
  .hero-content { padding: 70px 0 0; }
  .hero-content .eyebrow { max-width: 250px; }
  h1 { font-size: clamp(43px, 13.3vw, 67px); }
  .hero-copy { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: space-between; }
  .hero-orbit { width: 430px; right: -225px; top: 28%; opacity: .4; }
  .hero-grid { background-size: 56px 56px; }
  .section { padding: 90px 0; }
  .section-heading { margin-bottom: 46px; }
  .section-heading h2 { font-size: 39px; }
  .services-grid, .principles-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 295px; }
  .service-icon { margin-bottom: 38px; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-copy { padding-top: 0; }
  .about-copy p, .about-copy p:first-child { font-size: 17px; }
  .principle { min-height: 225px; }
  .principle h3 { margin-top: 48px; }
  .contact-section { min-height: 590px; }
  .contact-inner h2 { font-size: 43px; }
  .contact-inner > p:not(.eyebrow, .company-note) { font-size: 15px; line-height: 1.6; }
  .email-link { font-size: 21px; }
  .company-note { line-height: 1.6; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-tagline { margin-left: 0; }
  .footer-bottom { gap: 20px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
