:root {
  --bg: #0b0d12;
  --bg-alt: #11141b;
  --text: #f4f5f7;
  --text-muted: #9aa1ad;
  --accent: #3d7cff;
  --border: #1f2430;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(61, 124, 255, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav nav a {
  position: relative;
  margin-left: 28px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav nav a:hover::after { width: 100%; }

.hero {
  position: relative;
  padding: 130px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(61, 124, 255, 0.25), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(61, 124, 255, 0.18), transparent 50%),
    radial-gradient(circle at 50% -10%, #1a2236, var(--bg) 60%);
  background-size: 200% 200%;
  animation: drift 16s ease-in-out infinite;
  z-index: 0;
}

@keyframes drift {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 0%; }
  50% { background-position: 15% 10%, 85% 15%, 50% 5%; }
}

.hero .container { position: relative; z-index: 1; }

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45));
}

.hero-logo img {
  display: block;
  height: 130px;
  width: auto;
}

@media (max-width: 480px) {
  .hero-logo img { height: 90px; }
}

.hero .eyebrow {
  color: var(--text-muted);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  background: linear-gradient(100deg, #ffffff 30%, #9cb6ff 50%, #ffffff 70%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to { background-position: -220% center; }
}

.hero .sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 0 0 rgba(61, 124, 255, 0);
}
.btn:hover {
  text-decoration: none;
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(61, 124, 255, 0.35);
}

.about, .services, .vision-mission, .projects, .office, .contact {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.about h2, .services h2, .projects h2, .office h2, .contact h2 {
  font-size: 1.75rem;
  margin-bottom: 32px;
}

.about p {
  color: var(--text-muted);
  max-width: 720px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 124, 255, 0.4);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.service-card h3 { margin-bottom: 4px; }
.service-card .service-sub {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.service-card p:not(.service-sub) { color: var(--text-muted); }

.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.vm-card h2 { font-size: 1.5rem; margin-bottom: 16px; }
.vm-card p { color: var(--text-muted); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(61, 124, 255, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.project-num {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.project-card h3 small {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 4px;
}

.project-card ul li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 3px 0;
}

.project-card ul li::before {
  content: "— ";
  color: var(--accent);
}

.office p {
  color: var(--text-muted);
  max-width: 560px;
}

.contact-list li {
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.contact-list a { color: var(--text); font-weight: 600; }
.contact-list a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.service-grid .reveal:nth-child(1) { --d: 0; }
.service-grid .reveal:nth-child(2) { --d: 1; }
.service-grid .reveal:nth-child(3) { --d: 2; }
.service-grid .reveal:nth-child(4) { --d: 3; }

.project-grid .reveal { --d: 0; }
.project-grid .reveal:nth-child(2n) { --d: 1; }
