:root {
  --white: #ffffff;
  --paper: #f7fbfd;
  --ink: #07172d;
  --muted: #526173;
  --line: #dce8ef;
  --blue: #0768d7;
  --cyan: #10b8e6;
  --teal: #18b99b;
  --deep: #053a7c;
  --shadow: 0 24px 80px rgba(5, 38, 79, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header[data-scrolled] {
  border-color: var(--line);
  box-shadow: 0 16px 34px rgba(3, 31, 64, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 20px;
  font-weight: 780;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span,
footer span:first-child {
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 48%, var(--teal));
  background-clip: text;
  -webkit-background-clip: text;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  gap: 28px;
  color: #26384d;
  font-size: 14px;
  font-weight: 650;
}

nav a {
  position: relative;
  padding: 6px 0;
}

nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  justify-self: end;
  padding: 11px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 760;
}

.hero {
  min-height: calc(100svh - 79px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(18, 184, 230, 0.17), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #ffffff 54%, #eefaff 100%);
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(36px, 7vw, 94px);
  align-items: center;
}

.hero-copy {
  animation: rise 650ms ease both;
}

.hero-wordmark {
  width: min(780px, 100%);
  margin: 0;
}

.hero-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-line {
  max-width: 780px;
  margin: 28px 0 0;
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-body {
  max-width: 660px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 780;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan) 52%, var(--teal));
  box-shadow: 0 18px 38px rgba(12, 145, 208, 0.26);
}

.button.secondary {
  color: var(--deep);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  animation: floatIn 800ms 150ms ease both;
}

.hero-visual img {
  position: relative;
  width: min(410px, 78%);
  filter: drop-shadow(0 28px 42px rgba(5, 56, 112, 0.18));
}

.section,
.split-section,
.bay-area,
.contact {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
}

.intro {
  padding-bottom: clamp(30px, 5vw, 50px);
}

.intro p {
  max-width: 930px;
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 720;
  line-height: 1.12;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 54px;
  align-items: start;
  margin-bottom: 48px;
}

.section-heading p,
.section-label {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.section-heading h2,
.split-section h2,
.bay-area h2,
.contact h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 275px;
  padding: 30px;
  background: var(--white);
  transition: opacity 420ms ease var(--delay), transform 420ms ease var(--delay), background 180ms ease;
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  background: #f8fdff;
}

.service-card span,
.process span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 840;
}

.service-card h3 {
  margin: 54px 0 14px;
  font-size: 24px;
}

.service-card p,
.resilience-list span,
.bay-area p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-section h2 {
  margin-top: 18px;
}

.resilience-list {
  display: grid;
  gap: 18px;
}

.resilience-list article {
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
  transition: opacity 420ms ease, transform 420ms ease;
}

.resilience-list article.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.resilience-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process article {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 104, 215, 0.04), rgba(24, 185, 155, 0.08)),
    var(--white);
  transition: opacity 420ms ease, transform 420ms ease;
}

.process article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process p {
  margin: 72px 0 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.32;
}

.bay-area {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: clamp(36px, 8vw, 110px);
  align-items: center;
}

.bay-area h2 {
  margin-top: 18px;
}

.bay-area p:not(.section-label) {
  max-width: 680px;
  margin-top: 24px;
  font-size: 18px;
}

.location-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.location-panel span {
  min-height: 94px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--white);
  color: var(--deep);
  font-weight: 780;
}

.contact {
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: clamp(72px, 9vw, 108px);
  padding-bottom: clamp(72px, 9vw, 108px);
  background: linear-gradient(135deg, #f4fbff, #ffffff 52%, #eefcf8);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 72px;
}

.contact img {
  width: 84px;
  margin-bottom: 18px;
}

.contact h2 {
  max-width: 780px;
}

.contact p {
  max-width: 620px;
  margin: 22px 0 28px;
  font-size: 18px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero-inner,
  .section-heading,
  .split-section,
  .bay-area {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 56px;
  }

  .hero-visual {
    min-height: 300px;
    order: -1;
  }

  .hero-visual img {
    width: min(300px, 70%);
  }

  .service-grid,
  .process {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand span {
    font-size: 18px;
  }

  .nav-cta {
    display: none;
  }

  .hero-inner,
  .section,
  .split-section,
  .bay-area,
  .contact {
    width: min(100% - 32px, 1120px);
  }

  .hero h1 {
    width: min(100%, 355px);
  }

  .hero-line {
    font-size: 32px;
  }

  .hero-body,
  .bay-area p:not(.section-label),
  .contact p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .intro p {
    font-size: 28px;
  }

  .service-card,
  .process article {
    min-height: 220px;
    padding: 24px;
  }

  .location-panel {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}

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