:root {
  --ink: #14212e;
  --ink-2: #1f3041;
  --muted: #5a6876;
  --line: #e3e8ee;
  --bg: #ffffff;
  --soft: #f5f7fa;
  --accent: #0f5c4d;
  --accent-light: #7fd1bc;
  --on-ink: #c9d3dd;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 4px; z-index: 20; }
.skip:focus { left: 8px; }

main { flex: 1; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { letter-spacing: -0.01em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { display: block; height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; white-space: nowrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: #fff; background: var(--ink); padding: 7px 14px; border-radius: 6px; }
.nav .nav-cta:hover { color: #fff; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid var(--accent);
}
.btn:hover { background: #0b4a3e; border-color: #0b4a3e; }
.btn-ghost { background: transparent; color: #fff; border-color: #6f8398; }
.btn-ghost:hover { background: var(--ink-2); border-color: #8fa0b1; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--soft); border-color: var(--soft); }

/* Hero */
.hero { background: var(--ink); color: #fff; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--accent-light); font-weight: 600; margin: 0 0 14px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 20px; max-width: 900px; }
.hero-lead { font-size: 18px; color: var(--on-ink); margin: 0 0 28px; max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.facts { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid #2c3d4e; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--on-ink); }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--accent-light); border-radius: 1px; vertical-align: 1px; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.section h2 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 40px; max-width: 680px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.service > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--soft); }
.service-body { padding: 22px 24px 26px; }
.service h3 { margin: 0 0 8px; font-size: 19px; }
.service p { margin: 0 0 14px; color: var(--muted); }
.service ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.service li { position: relative; padding-left: 18px; margin-bottom: 6px; color: #2b3947; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--accent); }

/* Typical engagements */
.engagements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.engagement { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 22px 24px 24px; }
.engagement h3 { margin: 0 0 14px; font-size: 19px; line-height: 1.3; }
.engagement dl { margin: 0; }
.engagement dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.engagement dd { margin: 2px 0 12px; color: #2b3947; font-size: 15px; }
.engagement dd:last-child { margin-bottom: 0; }


/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.about-grid p { color: #2b3947; max-width: 620px; }
.facts-card { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.facts-card dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts-card dd { margin: 2px 0 14px; }
.facts-card dd:last-child { margin-bottom: 0; }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; margin-top: 32px; }
.stack h3 { margin: 0 0 10px; font-size: 15px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: #2b3947; }

/* Growing offerings */
.offers { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.offers li { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.offers h3 { margin: 10px 0 6px; font-size: 18px; }
.offers p { margin: 0; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 10px; border-radius: 999px; background: #dcefe9; color: var(--accent); }

/* Contact */
.contact { background: var(--accent); color: #fff; padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.contact h2 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
.contact p { margin: 0 0 24px; color: #e2f1ec; font-size: 18px; max-width: 520px; }
.contact dl { margin: 0; background: rgba(0, 0, 0, 0.16); border-radius: 12px; padding: 24px; }
.contact dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cfe8e0; }
.contact dd { margin: 2px 0 14px; }
.contact dd:last-child { margin-bottom: 0; }
.contact a { color: #fff; }
.contact .btn-light { color: var(--ink); }

/* Legal pages and 404 */
.legal .wrap { padding-top: 56px; padding-bottom: 72px; }
.legal .wrap > * { max-width: 740px; }
.legal h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: #2b3947; }
.legal li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink); font-size: 14px; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-logo { display: block; height: 30px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; line-height: 1.7; }
.site-footer strong { color: #fff; }
.site-footer a { color: #e6edf3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-links a[aria-current="page"] { color: #fff; font-weight: 600; }
.copyright { grid-column: 1 / -1; border-top: 1px solid #2c3d4e; padding-top: 18px; color: #8fa0b1; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .services { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .engagements { grid-template-columns: repeat(2, 1fr); }
  .stack { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero-grid { padding-top: 48px; padding-bottom: 56px; }
  .section { padding: 64px 0; }
  .contact { padding: 64px 0; }
  .hero h1 { font-size: 32px; }
  .hero-lead, .lead, .contact p { font-size: 17px; }
  .section h2, .contact h2 { font-size: 28px; }
  .services, .engagements, .offers,   .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .nav .nav-cta { padding: 6px 11px; }
  .site-header .wrap { height: 58px; }
  .brand img { height: 26px; }
  html { scroll-padding-top: 66px; }
}

@media (max-width: 420px) {
  .nav { gap: 12px; }
  .nav a { font-size: 13.5px; }
  .nav a[href$="#about"] { display: none; }
  .brand img { height: 24px; }
    .hero h1 { font-size: 28px; }
  .eyebrow { letter-spacing: 0.06em; font-size: 12px; }
}

@media (max-width: 359px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .site-header .wrap { gap: 8px; }
  .nav { gap: 9px; }
  .nav a { font-size: 13px; }
  .nav .nav-cta { padding: 5px 8px; }
  .brand img { height: 20px; }
}
