:root {
  --ink: #111827;
  --ink-soft: #425067;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --line: #dce2eb;
  --navy: #0b1020;
  --navy-2: #121a31;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf1ff;
  --mint: #97f0d1;
  --white: #f8fafc;
  --muted-on-dark: #aab6cb;
  --max: 1160px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 999;
  background: white;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; font-weight: 650; }
.nav a { text-decoration: none; color: #334155; }
.nav a:hover { color: var(--blue); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(circle at 88% 10%, rgba(37,99,235,.13), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, var(--paper) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(15,23,42,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.55fr .85fr; gap: 72px; align-items: center; }
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 800;
  color: var(--blue);
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(3.4rem, 8vw, 6.5rem); line-height: .96; letter-spacing: -.065em; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.06; letter-spacing: -.045em; }
h3 { margin-bottom: 12px; font-size: 1.35rem; line-height: 1.18; letter-spacing: -.02em; }
h4 { margin-bottom: 8px; font-size: .83rem; text-transform: uppercase; letter-spacing: .09em; }
.lede { max-width: 780px; margin-bottom: 28px; font-size: clamp(1.18rem, 2.2vw, 1.55rem); line-height: 1.45; color: #334155; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 750;
  background: white;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); border-color: #94a3b8; box-shadow: 0 8px 24px rgba(15,23,42,.07); }
.button-primary { background: var(--navy); border-color: var(--navy); color: white; }
.button-primary:hover { border-color: var(--navy); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; font-size: .9rem; color: #64748b; }
.contact-row a { color: #334155; text-underline-offset: 3px; }

.signal-panel {
  border: 1px solid #d7deea;
  border-radius: 22px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
  padding: 24px;
}
.signal-label { margin-bottom: 16px; color: #64748b; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.signal-item { padding: 15px 0; border-top: 1px solid #e6eaf0; display: flex; justify-content: space-between; gap: 18px; }
.signal-item span { color: #64748b; }
.signal-item strong { text-align: right; font-size: .95rem; }
.signal-note { margin: 15px 0 0; padding-top: 17px; border-top: 1px solid #e6eaf0; color: #64748b; font-size: .88rem; }

.section { padding: 94px 0; }
.section-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: end; margin-bottom: 38px; }
.section-heading > p { margin-bottom: 2px; color: var(--ink-soft); max-width: 470px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15,23,42,.035);
}
.project-card-featured { border-top: 4px solid var(--blue); }
.project-card p { color: var(--ink-soft); }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tag { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .75rem; font-weight: 750; }
.metric-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: auto 0 16px; }
.metric-row > div { padding: 14px; border-radius: 12px; background: var(--blue-soft); }
.metric-row strong { display: block; color: #123c90; font-size: 1.15rem; }
.metric-row span { display: block; margin-top: 2px; color: #58709d; font-size: .76rem; }
.metric-row.compact { margin-top: auto; }
.highlight-line { margin: auto 0 16px; padding: 13px 14px; border-radius: 12px; background: #f7f9fc; color: #526079; font-size: .88rem; border: 1px solid #e7ebf1; }
.text-link { margin-top: auto; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.privacy-note { margin: auto 0 0; color: #718096 !important; font-size: .79rem; font-style: italic; }

.section-dark { background: var(--navy); color: var(--white); }
.section-heading.on-dark > p, .on-dark-note { color: var(--muted-on-dark) !important; }
.section-dark .eyebrow { color: var(--mint); }
.case-study { padding: 52px 0; border-top: 1px solid #29344f; scroll-margin-top: 72px; }
.case-study:last-child { padding-bottom: 0; }
.case-title { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 30px; }
.case-title h3 { margin-bottom: 0; font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -.04em; }
.case-kicker { margin-bottom: 8px; color: #8fa0bf; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.case-stat { min-width: 190px; text-align: right; }
.case-stat strong { display: block; color: var(--mint); font-size: 1.5rem; }
.case-stat span { color: #96a5bd; font-size: .82rem; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.case-grid > div { padding: 22px; border: 1px solid #2a3651; border-radius: 14px; background: var(--navy-2); }
.case-grid h4 { color: #9db0d0; }
.case-grid p { margin: 0; color: #cad3e2; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding: 16px; border-radius: 12px; background: #101a30; border: 1px solid #2a3651; }
.flow span { padding: 7px 10px; border-radius: 8px; background: #172440; color: #dbe6f6; font-size: .82rem; font-weight: 700; }
.flow i { color: var(--mint); font-style: normal; }
.on-dark-note { margin-top: 16px; }

.more-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.section-copy { margin-top: 18px; color: var(--ink-soft); }
.chip-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.chip-grid span { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 700; color: #334155; }

.contact-section { padding: 20px 0 90px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 38px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.contact-card h2 { margin-bottom: 10px; }
.contact-card p:not(.eyebrow) { margin-bottom: 0; color: var(--ink-soft); }
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: #64748b; font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 860px) {
  .nav { gap: 14px; font-size: .84rem; }
  .nav a:nth-child(2) { display: none; }
  .hero { padding-top: 70px; }
  .hero-grid, .section-heading, .more-grid { grid-template-columns: 1fr; gap: 32px; }
  .signal-panel { max-width: 620px; }
  .case-title { align-items: start; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .site-header { position: static; }
  .header-inner { min-height: 62px; }
  .nav { gap: 11px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a:nth-child(2), .nav a:nth-child(5) { display: none; }
  .hero { padding: 62px 0 58px; }
  h1 { font-size: clamp(3rem, 17vw, 5.2rem); }
  .section { padding: 68px 0; }
  .project-grid, .case-grid, .chip-grid { grid-template-columns: 1fr; }
  .project-card { min-height: auto; }
  .case-title { display: block; }
  .case-stat { margin-top: 18px; text-align: left; }
  .contact-card { display: block; padding: 28px; }
  .contact-actions { margin-top: 24px; }
  .footer-inner { display: block; }
  .footer-inner span { display: block; margin: 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
