:root {
  --brand-primary: #008da8;
  --brand-primary-hover: #33adb8;
  --brand-accent: #2a3084;
  --brand-ink: #052133;
  --brand-ink-soft: #3d5260;
  --brand-surface: #ffffff;
  --brand-surface-alt: #f3f7f8;
  --brand-line: #dce7ea;
  --brand-success: #19714a;
  --brand-danger: #9f2f2f;
  --shadow-soft: 0 18px 55px rgba(5, 33, 51, .10);
  --shadow-card: 0 8px 30px rgba(5, 33, 51, .08);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--brand-ink);
  background: var(--brand-surface);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-primary); text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.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;
}
.skip-link {
  position: fixed;
  left: 18px;
  top: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: .75rem 1rem;
  color: white;
  background: var(--brand-ink);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #f4c95d; outline-offset: 3px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2, .contact-copy h2, .about-grid h2 {
  margin: .25rem 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-heading > p:last-child { color: var(--brand-ink-soft); font-size: 1.1rem; max-width: 700px; }
.eyebrow {
  margin: 0 0 .6rem;
  color: #aeeaf2;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--brand-primary); }
.eyebrow.light { color: #aeeaf2; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: 76px;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(5, 33, 51, .96); box-shadow: 0 6px 25px rgba(0,0,0,.12); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-lockup { width: 160px; height: auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #fff; font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: #9de3ed; }
.site-nav .nav-cta { padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px auto; background: #fff; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--brand-ink) url('/assets/hero/1.jpg') center / cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,33,51,.96) 0%, rgba(5,33,51,.86) 48%, rgba(5,33,51,.48) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: clamp(44px, 7vw, 90px); align-items: end; padding-top: 130px; padding-bottom: 92px; }
.hero-copy { max-width: 790px; }
.hero h1 { margin: 0 0 1.5rem; font-size: clamp(3rem, 6.3vw, 5.9rem); line-height: .98; letter-spacing: -.06em; max-width: 900px; }
.hero-lead { margin: 0 0 .8rem; max-width: 720px; color: #e4eef1; font-size: clamp(1.06rem, 1.55vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease, border .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--brand-primary); border-color: var(--brand-primary); }
.button-primary:hover { color: #fff; background: var(--brand-primary-hover); border-color: var(--brand-primary-hover); }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.06); }
.button-ghost:hover { color: #fff; background: rgba(255,255,255,.14); }
.hero-proof { padding: 1.5rem; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: rgba(5,33,51,.58); box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.proof-label { margin: 0 0 .8rem; color: #aeeaf2; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.proof-row { display: flex; justify-content: space-between; gap: 20px; padding: .9rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.proof-row span { color: #b9c9cf; }
.proof-row strong { text-align: right; }

.proof-strip { background: #fff; border-bottom: 1px solid var(--brand-line); }
.proof-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 32px 0; }
.proof-strip p { margin: 0; color: var(--brand-ink-soft); }
.proof-strip strong { color: var(--brand-ink); }

.card-grid { display: grid; gap: 24px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { position: relative; padding: 34px; border: 1px solid var(--brand-line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.service-card.featured-card { color: #fff; background: var(--brand-ink); border-color: var(--brand-ink); transform: translateY(-10px); }
.service-card h3 { margin: 1rem 0; font-size: 1.5rem; line-height: 1.2; }
.service-card p { color: var(--brand-ink-soft); }
.service-card.featured-card p { color: #d7e4e7; }
.card-number { color: var(--brand-primary); font-size: .8rem; font-weight: 850; letter-spacing: .15em; }
.card-note { padding-top: 1rem; border-top: 1px solid var(--brand-line); font-size: .94rem; }
.featured-card .card-note { border-color: rgba(255,255,255,.16); }

.section-dark { color: #fff; background: var(--brand-ink); }
.use-cases-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); }
.section-heading.light h2 { color: #fff; }
.use-case-list article { padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.use-case-list h3 { margin: 0 0 .35rem; font-size: 1.25rem; }
.use-case-list p { margin: 0; color: #bed0d5; }

.process-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process-list li { min-width: 0; }
.process-list li > span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 1rem; color: #fff; background: var(--brand-primary); border-radius: 50%; font-weight: 800; }
.process-list h3 { margin: 0 0 .55rem; font-size: 1.05rem; }
.process-list p { margin: 0; color: var(--brand-ink-soft); font-size: .94rem; }

.work-section { background: #fbfdfd; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--brand-line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.work-meta span { padding: .3rem .65rem; color: #006f83; background: #e6f7f9; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.work-card h3 { margin: 0 0 1rem; font-size: 1.45rem; line-height: 1.22; }
.work-card p { color: var(--brand-ink-soft); }
.example-panel { margin: 1rem 0 1.4rem; border-top: 1px solid var(--brand-line); border-bottom: 1px solid var(--brand-line); background: #f8fbfb; }
.example-panel figcaption { padding: .65rem .75rem; color: #60737d; border-bottom: 1px solid var(--brand-line); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }
.example-panel table { width: 100%; border-collapse: collapse; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; }
.example-panel th, .example-panel td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid #e4edef; white-space: nowrap; }
.example-panel th { color: #45616d; font-weight: 750; }
.example-panel tbody tr:last-child td { border-bottom: 0; }
.tree-example { margin: 0; padding: .9rem .8rem 1rem; overflow-x: auto; color: #29424e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.65; }
.work-card ul { margin: auto 0 0; padding: 1.2rem 0 0 1.1rem; border-top: 1px solid var(--brand-line); }
.work-card li { margin: .35rem 0; }

.section-tint { background: var(--brand-surface-alt); }
.why-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 110px); }
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 30px; }
.why-list article { padding: 1.2rem 0; border-top: 1px solid #c9dadd; }
.why-list h3 { margin: 0 0 .4rem; }
.why-list p { margin: 0; color: var(--brand-ink-soft); }

.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(38px, 7vw, 90px); align-items: start; max-width: 1000px; }
.about-mark { display: grid; place-items: center; aspect-ratio: 1; border-radius: 42% 58% 58% 42% / 45% 40% 60% 55%; background: var(--brand-ink); }
.about-mark img { width: 84px; }
.about-grid p { color: var(--brand-ink-soft); font-size: 1.05rem; }

.contact-section { color: #fff; background: linear-gradient(135deg, var(--brand-accent), var(--brand-ink)); }
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.contact-copy h2 { color: #fff; }
.contact-copy > p { color: #dce5ff; font-size: 1.08rem; }
.contact-copy a { color: #fff; }
.contact-form { padding: 32px; color: var(--brand-ink); background: #fff; border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.field-row { margin-bottom: 1rem; }
.field-row label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 750; }
.field-row label span { color: #6b7d87; font-weight: 500; }
.field-row input, .field-row textarea { width: 100%; padding: .8rem .9rem; color: var(--brand-ink); background: #fff; border: 1px solid #b8cbd0; border-radius: 9px; }
.field-row input:focus, .field-row textarea:focus { border-color: var(--brand-primary); outline: 3px solid rgba(0,141,168,.18); }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.privacy-check { display: flex; gap: .7rem; align-items: flex-start; margin: 1.1rem 0 1.3rem; color: #4f626c; font-size: .86rem; }
.privacy-check input { margin-top: .25rem; }
.submit-button { border: 0; }
.form-status { min-height: 1.5em; margin: .8rem 0 0; font-weight: 650; }
.form-status.success { color: var(--brand-success); }
.form-status.error { color: var(--brand-danger); }

.site-footer { padding: 45px 0; color: #c5d2d6; background: #031722; }
.footer-grid { display: grid; grid-template-columns: 170px 1fr auto; gap: 30px; align-items: center; }
.footer-brand { width: max-content; }
.footer-grid p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #fff; }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }

.legal-page { background: var(--brand-surface-alt); }
.legal-header { background: var(--brand-ink); }
.legal-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.legal-nav a { color: #fff; }
.legal-content { max-width: 820px; padding-top: 80px; padding-bottom: 100px; }
.legal-content h1 { margin: 0 0 1rem; font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -.045em; }
.legal-content h2 { margin-top: 2.2rem; }
.legal-footer { padding: 28px 0; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 76px 20px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 14px; background: var(--brand-ink); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; box-shadow: var(--shadow-soft); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem; }
  .site-nav .nav-cta { margin-top: .4rem; text-align: center; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-proof { max-width: 620px; }
  .services-grid, .work-grid { grid-template-columns: 1fr; }
  .service-card.featured-card { transform: none; }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .use-cases-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 150px 1fr; }
  .footer-grid { grid-template-columns: 150px 1fr; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 72px 0; }
  .hero { background-position: 62% center; }
  .hero-overlay { background: rgba(5,33,51,.86); }
  .hero-grid { padding-top: 130px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .proof-strip-grid, .process-list, .why-list { grid-template-columns: 1fr; }
  .proof-strip-grid { gap: 18px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-mark { width: 130px; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links, .copyright { grid-column: 1; }
}

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