:root {
  --navy: #08111f;
  --navy-soft: #101d30;
  --ink: #172033;
  --muted: #637083;
  --line: #dbe1e8;
  --surface: #f4f6f8;
  --white: #ffffff;
  --accent: #7fa8d9;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: rgba(8, 17, 31, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--white); color: var(--navy);
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
}
.nav-links { display: flex; gap: 30px; color: rgba(255,255,255,.8); font-size: .94rem; }
.nav-links a:hover { color: white; }
.menu-button { display: none; }

.hero {
  min-height: 880px;
  padding: 170px 0 70px;
  background:
    radial-gradient(circle at 78% 22%, rgba(127,168,217,.18), transparent 28%),
    linear-gradient(135deg, #08111f, #0c1728 55%, #112036);
  color: white;
  position: relative;
  overflow: hidden;
}
.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: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}
.hero-content { position: relative; z-index: 1; max-width: 1040px; }
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .76rem; font-weight: 700;
  color: #a9c4e4;
}
.eyebrow.dark { color: #61799a; }
.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4.5rem, 10vw, 8.7rem);
  letter-spacing: -.06em; line-height: .92;
}
.hero h2 {
  max-width: 890px;
  margin: 28px 0 26px;
  font-size: clamp(1.7rem, 3.4vw, 3.15rem);
  line-height: 1.12; letter-spacing: -.035em;
  font-weight: 600;
}
.hero-copy { max-width: 770px; font-size: 1.15rem; color: rgba(255,255,255,.72); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-tags span {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  border-radius: 999px; padding: 9px 13px;
  font-size: .86rem; color: rgba(255,255,255,.82);
}
.hero-actions { display: flex; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 19px; border-radius: 10px; font-weight: 700; font-size: .94rem; }
.button.primary { background: white; color: var(--navy); }
.button.secondary { border: 1px solid rgba(255,255,255,.22); color: white; }
.hero-stats { position: relative; z-index: 1; margin-top: 90px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats article { padding: 28px 20px 0 0; }
.hero-stats strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.65rem; margin-bottom: 4px; }
.hero-stats span { color: rgba(255,255,255,.56); font-size: .9rem; }

.section { padding: 110px 0; }
.section-muted { background: var(--surface); }
.split-heading { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.section h2, .split-heading h2, .contact-section h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.045em;
  line-height: 1.08;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
}
.body-copy { font-size: 1.08rem; color: #4e5b6c; }
.body-copy p:first-child { margin-top: 4px; }
.section-heading { max-width: 780px; margin-bottom: 54px; }
.section-heading.inverted h2 { color: white; }

.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.expertise-card {
  background: white; border: 1px solid var(--line); border-radius: 18px;
  padding: 30px; min-height: 240px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.expertise-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(17,31,52,.08); }
.card-number { color: #7c8ba0; font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.expertise-card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.55rem; margin: 50px 0 10px; }
.expertise-card p { margin: 0; color: var(--muted); }

.projects { background: var(--navy); color: white; }
.project-list { border-top: 1px solid rgba(255,255,255,.13); }
.project-card { display: grid; grid-template-columns: 210px 1fr; gap: 40px; padding: 38px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.project-card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; margin: 0 0 10px; }
.project-card p { margin: 0; max-width: 780px; color: rgba(255,255,255,.66); }
.project-meta { color: #91afd1; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; padding-top: 7px; }
.project-note { margin-top: 12px !important; color: #c7d8ea !important; font-weight: 600; }
.featured { position: relative; }
.featured::before { content: ""; position: absolute; left: -20px; top: 30px; bottom: 30px; width: 3px; background: var(--accent); border-radius: 10px; }

.lifecycle-section { overflow: hidden; }
.lifecycle { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; font-weight: 700; }
.lifecycle span { padding: 11px 15px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.lifecycle i { color: #93a0b0; font-style: normal; }

.recognition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.recognition-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 34px; }
.recognition-card p { font-size: 1.16rem; margin-top: 0; }
.recognition-card span { color: var(--muted); font-size: .88rem; }
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.training-grid span { padding: 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }

.contact-section { background: #0e1a2c; color: white; padding: 120px 0; }
.contact-inner { max-width: 900px; }
.contact-inner > p:not(.eyebrow) { color: rgba(255,255,255,.66); max-width: 700px; font-size: 1.05rem; }
.contact-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.contact-links a { padding: 13px 17px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; font-weight: 700; }
.contact-links a:hover { background: white; color: var(--navy); }

.site-footer { background: #07101d; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; font-size: .86rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 20px; right: 20px; padding: 18px; background: #101c2c; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; flex-direction: column; gap: 14px; }
  .nav-links.open { display: flex; }
  .menu-button { display: block; background: transparent; color: white; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; padding: 8px 11px; }
  .hero { min-height: auto; padding-top: 145px; }
  .hero-stats, .split-heading, .recognition-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats article { padding-bottom: 5px; }
  .expertise-grid, .training-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; gap: 10px; }
  .featured::before { left: -12px; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 78px 0; }
  .hero h1 { font-size: 4.2rem; }
  .hero h2 { font-size: 1.85rem; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-stats { margin-top: 58px; }
  .contact-section { padding: 85px 0; }
  .footer-inner { flex-direction: column; justify-content: center; gap: 5px; }
}

/* V2 hero portrait */
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .72fr);
  gap: 72px;
  align-items: center;
}
.hero-layout .hero-content { max-width: 760px; }
.hero-positioning {
  margin: -8px 0 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: #b9d1eb;
}
.hero-portrait-wrap { position: relative; justify-self: end; width: min(100%, 430px); }
.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  box-shadow: 0 32px 80px rgba(0,0,0,.32);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.hero-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  object-position: 50% 37%;
}
.portrait-caption {
  width: calc(100% - 34px);
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(11,24,42,.92);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0,0,0,.24);
}
.portrait-caption span,
.portrait-caption strong { display: block; }
.portrait-caption span { color: rgba(255,255,255,.58); font-size: .76rem; margin-bottom: 3px; }
.portrait-caption strong { font-family: "Space Grotesk", sans-serif; color: white; font-size: .96rem; }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr .58fr; gap: 42px; }
  .hero h1 { font-size: clamp(4rem, 9vw, 7.2rem); }
}

@media (max-width: 760px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-portrait-wrap { justify-self: start; width: min(82vw, 390px); margin-top: 12px; }
  .hero-stats { margin-top: 72px; }
}
