:root {
  --header-offset: 112px;
  --ink: #07101e;
  --navy: #0b1830;
  --blue: #247cc7;
  --blue-light: #79c9ff;
  --ice: #e8f5ff;
  --mist: #f4f7f8;
  --silver: #c5ccd3;
  --line: #dce4e9;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.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; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr auto;
  align-items: center;
  min-height: 88px;
  padding: 12px clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(7,16,30,.08);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}
.brand img { width: min(360px, 100%); }
.main-nav { display: flex; justify-content: center; gap: clamp(20px, 3vw, 42px); }
.main-nav a { font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.main-nav .portal-link { margin: -8px 0; padding: 8px 14px; border: 1px solid rgba(36,124,199,.28); border-radius: 999px; color: #0d67ad; background: var(--ice); }
.main-nav .portal-link:hover { color: white; border-color: var(--blue); background: var(--blue); }
.header-call { padding: 12px 18px; border-radius: 999px; color: white; background: var(--ink); font-weight: 800; text-decoration: none; }
.menu-toggle { display: none; border: 0; background: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: clamp(70px, 9vw, 138px) clamp(24px, 7vw, 108px);
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 44%, rgba(54,142,212,.15), transparent 32%),
    linear-gradient(135deg, #fff 0%, #f6f8f9 57%, #edf4f8 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/circuit-pattern.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: .72;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 740px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; max-width: 790px; font-size: clamp(46px, 5.6vw, 86px); line-height: .98; letter-spacing: -.055em; }
.hero-text { max-width: 690px; margin: 30px 0; color: #435163; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 25px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.button.primary { color: white; background: linear-gradient(135deg, #0c5fa7, #238ed8); box-shadow: 0 12px 32px rgba(29,119,190,.25); }
.button.secondary { border: 1px solid var(--line); background: white; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: #465569; font-size: 13px; font-weight: 700; }
.trust-row span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(36,124,199,.1); }
.hero-art { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-art img { position: relative; width: min(700px, 52vw); filter: drop-shadow(0 28px 24px rgba(7,16,30,.18)); }
.art-glow { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(69,161,229,.32), transparent 68%); filter: blur(20px); }

.section { padding: clamp(84px, 10vw, 150px) clamp(24px, 7vw, 108px); }
#services, #about, #business, #coverage, #contact { scroll-margin-top: var(--header-offset); }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading.compact { max-width: 900px; }
h2 { margin: 0; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -.045em; }
.section-heading > p:last-child { color: #596779; font-size: 18px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 270px; padding: 36px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.service-card.featured { color: white; border-color: transparent; background: linear-gradient(145deg, #0c1d37, #123f70); }
.service-card h3 { margin: 52px 0 12px; font-size: 25px; }
.service-card p { max-width: 620px; margin: 0; color: #617082; line-height: 1.65; }
.service-card.featured p { color: #c9d9e8; }
.card-number { position: absolute; top: 28px; right: 30px; color: var(--blue); font-size: 12px; font-weight: 800; }

.legacy-section { display: grid; grid-template-columns: minmax(260px, .65fr) 1.35fr; gap: clamp(50px, 8vw, 120px); align-items: center; padding-top: 30px; }
.legacy-year { color: transparent; font-size: clamp(110px, 17vw, 260px); font-weight: 800; line-height: .8; letter-spacing: -.09em; -webkit-text-stroke: 2px #b9d8ef; text-shadow: 22px 24px 0 #edf6fc; }
.legacy-copy > p:not(.eyebrow) { max-width: 840px; color: #566577; font-size: 18px; line-height: 1.75; }
.legacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.legacy-points div { display: grid; gap: 8px; }
.legacy-points strong { color: var(--blue); font-size: 15px; }
.legacy-points span { color: #657384; font-size: 13px; line-height: 1.6; }
.then-now { grid-column: 1 / -1; margin-top: clamp(16px, 3vw, 42px); }
.then-now-heading { display: grid; grid-template-columns: minmax(180px, .65fr) 1.35fr; gap: clamp(50px, 8vw, 120px); align-items: end; margin-bottom: 30px; }
.then-now-heading .eyebrow { margin: 0; }
.then-now-heading h3 { max-width: 780px; margin: 0; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.photo-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.history-photo { margin: 0; }
.photo-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: #dfe8ee; box-shadow: 0 18px 50px rgba(7,16,30,.12); }
.photo-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.35); border-radius: inherit; pointer-events: none; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.history-photo-then img { object-position: center; image-rendering: auto; }
.history-photo-now img { object-position: 56% 49%; }
.history-photo figcaption { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px 0; }
.history-photo figcaption strong { font-size: 19px; }
.history-photo figcaption span { color: var(--blue); font-size: 14px; font-weight: 800; letter-spacing: .08em; }

.business-section { padding-top: 0; }
.business-panel { display: grid; grid-template-columns: 1.5fr .7fr; gap: clamp(40px, 7vw, 100px); padding: clamp(42px, 7vw, 92px); border-radius: 22px; color: white; background: var(--ink); }
.business-copy > p:not(.eyebrow) { max-width: 780px; color: #b9c7d7; font-size: 18px; line-height: 1.75; }
.check-list { display: grid; gap: 15px; margin: 34px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; color: #dbe5ed; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-light); font-weight: 800; }
.business-stat { align-self: end; padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(255,255,255,.055); }
.signal { display: block; width: 12px; height: 12px; margin-bottom: 28px; border-radius: 50%; background: #59b8fa; box-shadow: 0 0 0 8px rgba(89,184,250,.12), 0 0 30px #59b8fa; }
.business-stat strong { font-size: 22px; line-height: 1.3; }
.business-stat p { color: #aebdcb; line-height: 1.65; }

.coverage-section { background: var(--mist); }
.coverage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.coverage-card { min-height: 300px; padding: 38px; border-radius: 16px; background: white; box-shadow: 0 16px 50px rgba(16,30,48,.07); }
.coverage-card.remote { color: white; background: linear-gradient(145deg, #196fb4, #0c3763); }
.coverage-label { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.remote .coverage-label { color: #9ed7ff; }
.coverage-card h3 { margin: 76px 0 14px; font-size: 32px; }
.coverage-card > p:last-child { color: #5e6c7d; line-height: 1.7; }
.coverage-card.remote > p:last-child { color: #d1e1ed; }

.contact-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 108px); color: white; background: linear-gradient(135deg, #0a1425, #0b2441); }
.contact-actions { display: grid; gap: 12px; }
.contact-actions a { display: flex; justify-content: space-between; gap: 20px; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; text-decoration: none; background: rgba(255,255,255,.05); }
.contact-actions span { color: #a9bed0; }
.contact-actions strong { color: #8ed1ff; }
.site-footer { display: grid; grid-template-columns: minmax(260px, 380px) 1fr auto; gap: 30px; align-items: center; padding: 32px clamp(24px, 7vw, 108px); color: #5d6a79; font-size: 12px; }
.site-footer img { width: 330px; }
.site-footer p:nth-child(2) { text-align: center; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: minmax(220px, 330px) 1fr auto; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 24px; flex-direction: column; align-items: center; background: white; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav .portal-link { margin: 0; }
  .menu-toggle { display: grid; justify-self: end; gap: 4px; padding: 12px; }
  .menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--ink); }
  .header-call { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 36px; }
  .hero-art img { width: min(670px, 82vw); }
  .legacy-section, .business-panel, .contact-section { grid-template-columns: 1fr; }
  .then-now { grid-column: auto; }
  .then-now-heading { grid-template-columns: 1fr; gap: 12px; }
  .legacy-year { font-size: clamp(120px, 30vw, 220px); }
  .business-stat { max-width: 520px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer img { margin: auto; }
}

@media (max-width: 680px) {
  :root { --header-offset: 88px; }
  .site-header { min-height: 72px; padding: 10px 18px; }
  .brand img { width: 245px; }
  .hero { min-height: auto; padding-top: 50px; }
  .hero-art img { width: 94vw; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .service-grid, .coverage-grid { grid-template-columns: 1fr; }
  .legacy-points { grid-template-columns: 1fr; }
  .photo-pair { grid-template-columns: 1fr; gap: 34px; }
  .service-card { min-height: auto; }
  .business-panel { padding: 34px 24px; }
  .contact-actions a { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
