:root {
  --ink: #050f1a;
  --charcoal: #0e3d20;
  --charcoal-dark: #073256;
  --cream: #c9d9d3;
  --cream-deep: #a3bfb2;
  --white: #ffffff;
  --line: rgba(5, 15, 26, 0.18);
  --shadow: 0 20px 40px -20px rgba(5, 15, 26, 0.28);
  --radius: 4px;
  --max-width: 1160px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Switzer", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-weight: 400;
}

h1, h2, h3, .logo-text {
  font-family: "Switzer", Arial, Helvetica, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}

h1 { font-size: 64px; line-height: 1.05; font-weight: 700; }
h2 { font-size: 38px; line-height: 1.15; }
h3 { font-size: 20px; letter-spacing: -0.01em; }

p { margin: 0 0 16px; }

a { color: inherit; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img { height: 44px; width: auto; flex-shrink: 0; }

.brand span {
  font-family: "Switzer", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--ink);
  cursor: pointer;
}

.main-nav {
  flex: 1 1 auto;
  margin: 0 40px 0 72px;
}

.main-nav > ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--cream);
}

.nav-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--cream) !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  margin-left: 12px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-cta:hover { background: var(--charcoal); }

/* Hero (split-screen) */
.hero {
  padding: 88px 0;
  background: var(--cream);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { font-size: 56px; }

.hero p.lead {
  font-size: 20px;
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 300;
  color: #1c3040;
}

.hero-media {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 0;
  border: 1px solid var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}

.btn:hover { background: transparent; color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Capability strip */
.capability-strip {
  background: var(--charcoal-dark);
}

.capability-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 22px 32px;
}

.capability-strip a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream-deep);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.capability-strip a:hover { color: var(--white); }

.capability-strip svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Services sidebar layout */
.services-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

.services-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--line);
}

.services-nav a {
  padding: 10px 20px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #263c4d;
  transition: color 0.2s, border-color 0.2s;
}

.services-nav a.active,
.services-nav a:hover {
  color: var(--ink);
  border-left-color: var(--charcoal-dark);
}

@media (max-width: 900px) {
  .services-layout { grid-template-columns: 1fr; gap: 0; }

  .services-nav {
    position: sticky;
    top: 77px;
    z-index: 90;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    border-left: none;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: 14px 0;
    margin-bottom: 24px;
  }

  .services-nav a {
    border-left: none;
    border-radius: 0;
    background: var(--cream);
    padding: 8px 18px;
    white-space: nowrap;
    margin-left: 0;
  }

  .services-nav a.active,
  .services-nav a:hover {
    background: var(--ink);
    color: var(--cream);
    border-left: none;
  }
}

/* Solution blocks (alternating full-width service rows) */
.solution-block {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.solution-block:last-child { border-bottom: none; }

.solution-block .media { aspect-ratio: 4 / 3; }
.solution-block .media img { width: 100%; height: 100%; object-fit: cover; }
.solution-block h3 { font-size: 28px; }

/* Sections */
section { padding: 84px 0; }

.section-alt { background: var(--cream); }

/* Decorative color-wash blobs to fill empty section space */
.section-decor {
  position: relative;
  overflow: hidden;
}

.section-decor::before,
.section-decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section-decor::before {
  top: -140px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(7, 50, 86, 0.18), transparent 70%);
}

.section-decor::after {
  bottom: -160px;
  left: -140px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 61, 32, 0.18), transparent 70%);
}

.section-decor > .container { position: relative; z-index: 1; }

.section-header { max-width: 620px; margin: 0 auto 56px; text-align: center; }

.section-header p { color: #263c4d; font-size: 18px; font-weight: 300; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.media {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream);
}

.media img {
  width: 100%;
  height: auto;
  display: block;
}

.blob {
  position: relative;
}

.blob::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: var(--cream-deep);
  border-radius: 0;
  z-index: 0;
}

.blob img {
  position: relative;
  z-index: 1;
  border-radius: 0;
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.eyebrow {
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--charcoal);
  margin-bottom: 12px;
  display: block;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}

.card img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 0;
  margin: 0 auto 24px;
}

.card .icon-badge { margin-left: auto; margin-right: auto; }

/* Values grid (About page) */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-grid .card { padding: 32px 20px; }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  padding: 22px 0;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--charcoal-dark);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  padding-bottom: 22px;
  margin: 0;
  color: #263c4d;
  max-width: 720px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--charcoal-dark);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.card-link:hover { border-color: var(--ink); transform: translateX(4px); }

/* Icon badges */
.icon-badge {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 50, 86, 0.14);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--charcoal-dark);
}

.icon-badge svg { width: 28px; height: 28px; }

.icon-badge.green {
  background: rgba(14, 61, 32, 0.16);
  color: var(--charcoal);
}

/* Numbered steps (Our Approach) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: "Switzer", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  background: var(--charcoal-dark);
}

.steps li:nth-child(even) .num { background: var(--charcoal); }

.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: #263c4d; }

/* Services list */
.service-block { padding: 48px 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: none; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.tech-grid li {
  background: rgba(7, 50, 86, 0.12);
  color: var(--charcoal-dark);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 500;
  font-size: 14px;
  text-align: center;
}

.tech-grid li:nth-child(3n+2) {
  background: rgba(14, 61, 32, 0.14);
  color: var(--charcoal);
}

.tech-grid li:nth-child(3n) {
  background: var(--cream);
  color: var(--ink);
}

/* Careers page */
.careers-empty {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--cream);
  border-radius: 12px;
  border-top: 4px solid var(--charcoal-dark);
}

.careers-empty .icon-badge { margin: 0 auto 20px; }

.job-card-grid {
  display: grid;
  gap: 24px;
}

.job-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--charcoal-dark);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.job-card .meta,
.job-listing .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal-dark);
  background: var(--cream);
  padding: 4px 12px;
  border-radius: 999px;
}

.job-listing {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-left: 4px solid var(--charcoal-dark);
  border-radius: var(--radius);
  padding: 40px;
}

.job-listing h3 {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-dark);
  margin-bottom: 12px;
}

.job-listing p { color: #263c4d; }

.job-listing .btn { margin-top: 12px; }

.map-frame {
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

/* Document preview card (Notices page) */
.doc-card {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--charcoal-dark);
  border-radius: var(--radius);
  padding: 32px;
  flex-wrap: wrap;
}

.doc-card-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 50, 86, 0.1);
  color: var(--charcoal-dark);
}

.doc-card-icon svg { width: 30px; height: 30px; }

.doc-card-info { flex: 1 1 300px; }

.doc-card-info h3 { margin-bottom: 8px; }

.doc-card-info p { color: #263c4d; margin-bottom: 10px; }

.doc-card-meta {
  font-size: 13px;
  color: #46606d;
  word-break: break-word;
}

.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.info-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
}

input, textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 17px;
  font-family: inherit;
  background: transparent;
}

input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

textarea { min-height: 120px; resize: vertical; }

.form-note { font-size: 13px; color: #46606d; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #051c30 55%, var(--charcoal-dark) 100%);
  color: var(--cream);
  text-align: center;
  padding: 80px 0;
}

.cta-band h2 { color: var(--white); }

.cta-band p {
  color: var(--cream-deep);
  font-size: 18px;
  font-weight: 300;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

.cta-band .btn:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

/* Footer */
footer {
  background: var(--charcoal-dark);
  color: var(--cream-deep);
  padding: 64px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-brand {
  display: block;
  font-family: "Switzer", Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-grid h3 {
  color: var(--white);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid p { color: var(--cream-deep); margin-bottom: 8px; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a { text-decoration: none; color: var(--cream-deep); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

footer a { color: var(--white); }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .two-col, .contact-grid, .hero .container { grid-template-columns: 1fr; }
  .hero .container { gap: 40px; }
  .hero-media { order: -1; }
  .card-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: 34px; }
  .hero h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  section { padding: 72px 0; }
  .cta-band { padding: 64px 0; }

  .nav-cta { display: none; }

  .steps li { grid-template-columns: 48px 1fr; }

  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .main-nav.open { display: block; }

  .main-nav > ul {
    flex-direction: column;
    justify-content: flex-start;
    padding: 16px 32px 24px;
    gap: 4px;
  }
}
