/* ==========================================================
   Awesome Additions — brand system
   Deep Navy #0B1D3A · Lake Blue #1F6BC4 · Bright Blue #3DA5E8
   Platinum #D8DCDF · Sand #E5D5B8 · Montserrat
   ========================================================== */

:root {
  --deep-navy: #0B1D3A;
  --logo-navy: #021F3B; /* exact bg of logo-reverse.jpeg — surfaces behind it must match */
  --navy-2: #0E2547;
  --lake-blue: #1F6BC4;
  --bright-blue: #3DA5E8;
  --platinum: #D8DCDF;
  --sand: #E5D5B8;
  --white: #FFFFFF;
  --light-gray: #F4F4F7;
  --hairline: #D6D6DC;
  --sans: 'Montserrat', 'Helvetica Neue', sans-serif;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--deep-navy);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 880px; }

h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bright-blue);
  margin-bottom: 16px;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .section-sub {
  margin-top: 18px;
  font-size: 18px;
  opacity: 0.85;
}
.section-head.light h2 { color: var(--white); }
.section-head.light .section-sub { color: var(--platinum); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 32px;
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn-primary {
  background: var(--bright-blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--lake-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 107, 196, 0.35);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--bright-blue);
  color: var(--bright-blue);
  transform: translateY(-2px);
}
.btn-lg { padding: 20px 40px; font-size: 14px; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bright-blue);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.scrolled {
  background: var(--logo-navy);
  box-shadow: 0 8px 30px rgba(11, 29, 58, 0.45);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (min-width: 761px) and (max-width: 1100px) { .nav-links { gap: 14px; } .nav-links a { font-size: 12px; letter-spacing: 1px; } }
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--bright-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--bright-blue);
  padding: 11px 22px !important;
  transition: background 0.25s;
}
.nav-cta:hover { background: var(--lake-blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--logo-navy) 0%, var(--navy-2) 70%, #102B52 100%);
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-peaks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.peak { transition: transform 0.1s linear; will-change: transform; }
.peak-1 { fill: rgba(31, 107, 196, 0.16); }
.peak-2 { fill: rgba(61, 165, 232, 0.13); }
.peak-3 { fill: rgba(31, 107, 196, 0.10); }
.peak-4 { fill: rgba(216, 220, 223, 0.05); }

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 45%, black 30%, transparent 75%);
}

.hero-content { position: relative; max-width: 940px; }
.hero-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--bright-blue);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(42px, 7.4vw, 88px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.04;
  color: var(--white);
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--bright-blue); }
.hero-sub {
  margin: 32px auto 0;
  max-width: 560px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: var(--platinum);
  line-height: 1.65;
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--platinum);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.7;
}
.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--bright-blue);
  animation: cueDrop 2s var(--ease-out) infinite;
}
@keyframes cueDrop {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* ---------- Facts band ---------- */
.facts {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  padding: 72px 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.fact { text-align: center; }
.fact-num {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--deep-navy);
  line-height: 1.1;
}
.fact-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lake-blue);
}

/* ---------- Intro ---------- */
.intro { padding: 110px 0; background: var(--light-gray); }
.intro-line {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.55;
  font-weight: 500;
  margin-bottom: 32px;
}
.intro-line.strong { font-weight: 700; }
.intro-line em {
  font-style: normal;
  color: var(--bright-blue);
}

/* ---------- Services ---------- */
.services { padding: 120px 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--lake-blue);
  padding: 36px 30px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-top-color 0.35s;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(11, 29, 58, 0.12);
  border-top-color: var(--bright-blue);
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--bright-blue);
  margin-bottom: 22px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.service-card .scope {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bright-blue);
  margin-bottom: 14px;
}
.service-card p:last-child { font-size: 15px; line-height: 1.65; }
.services-note {
  margin-top: 48px;
  padding: 26px 30px;
  background: var(--light-gray);
  border-left: 4px solid var(--bright-blue);
  font-size: 15px;
  font-weight: 500;
  max-width: 880px;
}

/* ---------- Differentiators ---------- */
.different {
  padding: 120px 0;
  background: var(--light-gray);
}
.diff-list { display: grid; gap: 20px; }
.diff-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 40px 44px;
  align-items: start;
}
.diff-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--bright-blue);
  line-height: 1;
}
.diff-body h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.diff-body p { max-width: 64ch; }

/* ---------- The AG Standard / timeline ---------- */
.standard {
  padding: 130px 0 140px;
  background: linear-gradient(180deg, var(--deep-navy) 0%, var(--navy-2) 100%);
  color: var(--white);
}
.standard .section-head { margin-bottom: 80px; }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 0;
}
.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.timeline-track span {
  display: block;
  width: 100%;
  height: 0;
  background: var(--bright-blue);
}

.phase {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.phase:last-child { margin-bottom: 0; }
.phase-marker {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--deep-navy);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--platinum);
  position: relative;
  z-index: 1;
  transition: border-color 0.4s, color 0.4s, background 0.4s, box-shadow 0.4s;
}
.phase.in-view .phase-marker {
  border-color: var(--bright-blue);
  color: var(--white);
  background: var(--lake-blue);
  box-shadow: 0 0 0 6px rgba(61, 165, 232, 0.18);
}
.phase-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--bright-blue);
  padding: 34px 36px;
  transition: background 0.4s;
}
.phase-card:hover { background: rgba(255, 255, 255, 0.07); }
.phase-lead {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bright-blue);
  margin-bottom: 10px;
}
.phase-card h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--white);
}
.phase-card > p { color: var(--platinum); font-size: 15.5px; }
.phase-output {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(216, 220, 223, 0.8);
}
.phase-output strong {
  color: var(--bright-blue);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-right: 10px;
}

/* ---------- Written commitments ---------- */
.commitments {
  padding: 120px 0;
  background: var(--navy-2);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.commit-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.commit-list li {
  position: relative;
  padding: 20px 26px 20px 64px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
  font-weight: 500;
  color: var(--platinum);
}
.commit-list li::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 26px;
  width: 18px;
  height: 9px;
  border-left: 3px solid var(--bright-blue);
  border-bottom: 3px solid var(--bright-blue);
  transform: rotate(-45deg);
}

/* ---------- Who we serve ---------- */
.serve { padding: 120px 0; }
.serve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.serve-card {
  padding: 44px 40px;
  background: var(--light-gray);
  border-left: 4px solid var(--lake-blue);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.serve-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(11, 29, 58, 0.1);
}
.serve-card h3 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.serve-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bright-blue);
  margin-bottom: 16px;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  padding: 150px 0;
  background: linear-gradient(180deg, var(--deep-navy) 0%, #0D2348 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.contact-bg svg { width: 100%; height: 100%; }
.contact-inner { position: relative; }
.contact h2 {
  color: var(--white);
  max-width: 760px;
  margin: 0 auto;
}
.contact-sub {
  margin: 24px auto 0;
  max-width: 480px;
  color: var(--platinum);
  font-size: 17px;
}
.contact-actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-person {
  margin-top: 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(216, 220, 223, 0.7);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--logo-navy);
  padding: 70px 0 56px;
  text-align: center;
  color: var(--platinum);
}
.footer-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 22px;
}
.footer-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-endorsement {
  font-style: italic;
  font-size: 14px;
  color: var(--bright-blue);
  margin-bottom: 22px;
}
.footer-legal {
  max-width: 620px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(216, 220, 223, 0.55);
}

/* ==========================================================
   Scroll animations
   ========================================================== */

/* Load-in (hero) */
.reveal-load {
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal { transform: translateY(44px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }

.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-load, .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .scroll-cue-line::after { animation: none; }
  .peak { transition: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .serve-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    left: 0;
    background: var(--logo-navy);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 24px;
    transform: translateY(-130%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 32px; width: 100%; text-align: center; }
  .nav-cta { margin: 12px 32px 0; width: auto !important; }
  .nav-toggle { display: flex; }
  .nav { background: var(--logo-navy); }

  .service-grid { grid-template-columns: 1fr; }
  .diff-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 26px;
  }
  .diff-num { font-size: 40px; }
  .phase { grid-template-columns: 48px 1fr; gap: 18px; }
  .phase-marker { width: 48px; height: 48px; font-size: 18px; }
  .timeline-track { left: 23px; }
  .phase-card { padding: 26px 22px; }
  .container { padding: 0 22px; }
  .services, .different, .serve { padding: 80px 0; }
  .standard, .commitments { padding: 90px 0; }
  .contact { padding: 100px 0; }
}
