@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --gold: #c98a21;
  --gold2: #a86c0f;
  --ink: #20262b;
  --muted: #687178;
  --line: #e4e6e7;
  --soft: #f5f6f6;
  --dark: #0d1318;
  --container: 1180px;
  --header-h: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Manrope, system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; display: block; }
.container { width: min(var(--container), calc(100% - 40px)); margin: auto; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid #eee;
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border: 5px solid #8c9499;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 500 25px Montserrat, sans-serif;
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  right: -6px;
}
.brand-text {
  font: 300 27px Montserrat, sans-serif;
  letter-spacing: 0.2em;
}
.nav-links {
  display: flex;
  gap: 23px;
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-links a:hover { color: var(--gold2); }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 12px 18px;
  color: var(--gold2);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: var(--gold);
  color: #fff;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  padding-top: var(--header-h);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: var(--header-h) 0 0;
  background: url('../images/hero-earth.jpg') 62% center / cover no-repeat;
  filter: saturate(1.08) contrast(1.08) brightness(0.92);
  transform: translateZ(0);
}
@supports (background-image: url('../images/hero-earth.webp')) {
  .hero-image {
    background-image: url('../images/hero-earth.webp');
  }
}
.hero-overlay {
  position: absolute;
  inset: var(--header-h) 0 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.99) 20%,
    rgba(255, 255, 255, 0.94) 31%,
    rgba(255, 255, 255, 0.72) 42%,
    rgba(255, 255, 255, 0.28) 54%,
    rgba(255, 255, 255, 0.05) 66%,
    rgba(255, 255, 255, 0) 76%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 678px;
  padding: 42px 0 54px;
}
.hero-content > * { max-width: 610px; }
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.hero h1,
.page-hero h1,
h2 {
  font: 300 clamp(46px, 6vw, 84px) / 0.95 Montserrat, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  margin: 18px 0 24px;
}
.hero h1 {
  font-size: clamp(64px, 6.2vw, 94px);
  line-height: 0.9;
  margin-bottom: 22px;
}
.lead,
.section-lead,
.page-hero p,
.section p { color: var(--muted); }
.hero .lead {
  max-width: 590px;
  font-size: 18px;
  line-height: 1.65;
  color: #4f5960;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid var(--gold);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--gold);
  color: #fff;
}
.btn.primary:hover { background: var(--gold2); }
.btn.secondary {
  background: #fff;
  color: var(--gold2);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(720px, 100%);
  gap: 14px;
  margin-top: 34px;
}
.stats div {
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 138, 33, 0.24);
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 12px 28px rgba(18, 26, 31, 0.07);
}
.stats strong {
  display: block;
  font-size: 21px;
  color: #20262b;
}
.stats span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: #626c72;
}

/* Sections */
.section { padding: 92px 0; }
.section:first-of-type { padding-top: 100px; }
.section h2 {
  font-size: clamp(38px, 5vw, 62px);
  max-width: 900px;
  line-height: 1.02;
}
.section-lead {
  max-width: 760px;
  font-size: 17px;
}
.alt { background: var(--soft); }
.dark {
  background: var(--dark);
  color: #fff;
}
.dark p { color: #aab2b7; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}
.card {
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 310px;
  background: #fff;
  transition: 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
  border-color: #d4b474;
}
.card span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.15em;
}
.card h3 {
  font: 500 23px Montserrat, sans-serif;
  margin: 42px 0 12px;
  line-height: 1.25;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: start;
}
.checklist {
  padding-left: 0;
  list-style: none;
}
.checklist li {
  padding: 9px 0 9px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.metric-grid div {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 26px;
}
.metric-grid strong,
.metric-grid span { display: block; }
.metric-grid span {
  font-size: 13px;
  color: #aab2b7;
  margin-top: 7px;
}
.contact-band { background: #f2f3f3; }

/* Page hero */
.page-hero {
  padding: 170px 0 80px;
  background: linear-gradient(180deg, #f6f7f7, #fff);
}
.page-hero h1 {
  font-size: clamp(48px, 7vw, 82px);
  max-width: 1000px;
}
.page-hero p {
  max-width: 800px;
  font-size: 18px;
}

/* Services / Expertise / Tech */
.service-detail-grid,
.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service-detail-grid article,
.tech-groups > div {
  border: 1px solid var(--line);
  padding: 30px;
}
.service-detail-grid h2,
.tech-groups h2 {
  font-size: 28px;
  text-transform: none;
  letter-spacing: -0.03em;
}
.service-detail-grid ul {
  padding-left: 20px;
  color: var(--muted);
}

/* Leadership */
.leadership-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 75px;
  align-items: center;
}
.leadership-quote {
  min-height: 500px;
  background: linear-gradient(145deg, #f3f3f1, #e6e8e8);
  padding: 38px;
  display: flex;
  align-items: end;
  font: 300 38px / 1.25 Montserrat, sans-serif;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-grid article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 30px;
  min-height: 280px;
  background: linear-gradient(145deg, #151e25, #0e1419);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.project-grid small {
  color: #d8a44a;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.project-grid h2 {
  font-size: 28px;
  text-transform: none;
  letter-spacing: -0.03em;
  color: #fff;
}
.project-grid p { color: #aab2b7; }

/* Technologies logos */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.logo-grid span {
  min-height: 110px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font: 500 16px Montserrat, sans-serif;
  color: #5d656a;
  text-align: center;
  padding: 12px;
}
.logo-grid span:nth-child(4n) { border-right: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
}
.contact-grid form { display: grid; gap: 14px; }
.contact-grid label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-grid input,
.contact-grid textarea,
.contact-grid select {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid #ccd1d3;
  background: #fff;
  margin-top: 6px;
  font: inherit;
  border-radius: 0;
}
.contact-grid input:focus,
.contact-grid textarea:focus,
.contact-grid select:focus {
  border-color: var(--gold);
  outline: none;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px;
  color: var(--muted);
}
.consent input {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}
.legal { max-width: 850px; }
.legal h2 {
  font-size: 24px;
  text-transform: none;
  letter-spacing: -0.02em;
  margin-top: 36px;
}

/* Footer */
.site-footer {
  padding: 65px 0 22px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 0.8fr;
  gap: 50px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #667076;
}
.footer-links a:hover { color: var(--gold2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding-top: 20px;
  color: #8a9195;
  font-size: 12px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Large screens */
@media (min-width: 1400px) {
  :root { --container: 1260px; }
  .hero { min-height: 820px; }
  .hero-content { min-height: 738px; }
  .hero h1 { font-size: 96px; }
}

/* Tablet */
@media (max-width: 1180px) {
  .hero h1 { font-size: clamp(58px, 7vw, 82px); }
  .hero-image { background-position: 67% center; }
  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.99) 24%,
      rgba(255, 255, 255, 0.88) 38%,
      rgba(255, 255, 255, 0.38) 58%,
      rgba(255, 255, 255, 0) 78%
    );
  }
}

@media (max-width: 1000px) {
  .nav-links,
  .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    position: absolute;
    top: var(--header-h);
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    gap: 14px;
  }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split,
  .leadership-layout,
  .contact-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { min-height: 880px; }
  .hero-content {
    min-height: 798px;
    justify-content: flex-start;
    padding-top: 70px;
  }
  .hero-image {
    background-size: auto 66%;
    background-repeat: no-repeat;
    background-position: 72% bottom;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.99) 48%,
      rgba(255, 255, 255, 0.72) 63%,
      rgba(255, 255, 255, 0.18) 80%,
      rgba(255, 255, 255, 0) 92%
    );
  }
  .stats {
    grid-template-columns: 1fr;
    max-width: 430px;
  }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero { min-height: 930px; }
  .hero-content {
    min-height: 848px;
    padding-top: 48px;
  }
  .hero h1 { font-size: clamp(54px, 16vw, 70px); }
  .hero .lead { font-size: 16px; }
  .hero-image {
    background-size: auto 58%;
    background-position: 72% bottom;
  }
  .stats div { min-height: auto; }
  .section { padding: 76px 0; }
  .actions { flex-direction: column; }
  .card-grid,
  .service-detail-grid,
  .tech-groups,
  .project-grid,
  .metric-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid span:nth-child(4n) { border-right: 1px solid var(--line); }
  .logo-grid span:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
  .leadership-quote {
    min-height: 280px;
    font-size: 28px;
  }
}
