:root {
  --ink: #14161c;
  --ink-soft: #3a4050;
  --muted: #5c6372;
  --paper: #f3f0e8;
  --paper-2: #fffdf8;
  --line: rgba(20, 22, 28, 0.12);
  --line-strong: rgba(20, 22, 28, 0.28);
  --teal: #0f6f68;
  --teal-soft: rgba(15, 111, 104, 0.1);
  --header: 78px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(20, 22, 28, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(15, 111, 104, 0.08), transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 em, h2 em { font-style: italic; font-weight: 520; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 50;
}

.skip:focus { top: 12px; }

.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;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 20px;
}

.brand { display: flex; align-items: center; }

.brand img { height: 40px; width: auto; display: block; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.burger,
.burger::before,
.burger::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before { top: -6px; }
.burger::after { top: 6px; }

body.nav-open .burger { background: transparent; }
body.nav-open .burger::before { top: 0; transform: rotate(45deg); }
body.nav-open .burger::after { top: 0; transform: rotate(-45deg); }

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.96rem;
}

.menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.menu-item { position: relative; }

.menu-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  padding: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.dropdown a {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
}

.dropdown a:hover,
.dropdown a:focus-visible { background: var(--teal-soft); }

.dropdown strong { font-size: 0.98rem; font-weight: 600; }
.dropdown span { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 560;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover { background: #000; }

.btn-ghost:hover { background: rgba(20, 22, 28, 0.04); }

.menu-cta { margin-left: 8px; }
.menu-cta .btn { min-height: 42px; }

.hero { padding: 28px 0 20px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.9rem, 4.6vw, 4.5rem);
  max-width: 11em;
  margin-bottom: 18px;
}

.hero .lede { margin-bottom: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.diagram {
  list-style: none;
  margin: 42px 0 0;
  padding: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.diagram li {
  padding: 18px 18px 16px;
  border-radius: 20px;
}

.diagram li + li { border-top: 1px solid var(--line); }

.diagram span {
  display: block;
  color: var(--teal);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.diagram strong {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.diagram p { color: var(--ink-soft); font-size: 0.98rem; }

.band { padding: 10px 0 20px; }

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-grid article { padding: 22px 22px 22px 0; }

.band-grid article + article {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.band-grid h2 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.band-grid p { color: var(--muted); font-size: 0.92rem; }

.section { padding: 88px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
  align-items: end;
}

.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); max-width: 16ch; }

.section-head .lede { justify-self: end; }

.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card, .panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.card h3, .panel h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.card p, .panel p { color: var(--ink-soft); }

a.more {
  display: inline-flex;
  margin-top: 16px;
  color: var(--teal);
  font-weight: 600;
  text-underline-offset: 4px;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-dark .eyebrow { color: #8fd9d1; }
.section-dark .lede,
.section-dark .card p { color: rgba(243, 240, 232, 0.78); }

.section-dark .card {
  background: transparent;
  border-color: rgba(243, 240, 232, 0.16);
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.steps li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.steps span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.steps h3 { font-size: 1.55rem; margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }

.link-list { display: grid; }

.link-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.link-row:last-child { border-bottom: 1px solid var(--line); }

.link-row:hover strong { color: var(--teal); }

.link-row .idx {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.link-row strong { display: block; font-size: 1.25rem; font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
.link-row small { color: var(--muted); }
.link-row .arrow { font-size: 1.3rem; }

.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--serif);
  color: var(--teal);
}

.faq[open] summary::after { content: "–"; }

.faq p { color: var(--ink-soft); max-width: 46rem; padding-bottom: 18px; }

.cta-band { padding: 0 0 88px; }

.cta-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 36px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--paper);
}

.cta-inner h2 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 12ch; }
.cta-inner p { color: rgba(243, 240, 232, 0.76); margin: 12px 0 0; }
.cta-inner .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0 28px;
  border-top: 3px solid var(--teal);
}

.footer-brand img {
  height: 36px;
  width: auto;
  filter: invert(1);
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
  gap: 28px;
}

.footer-grid p, .footer-grid a { color: rgba(243, 240, 232, 0.78); text-decoration: none; }
.footer-grid a:hover { color: white; }

.footer-label {
  margin-bottom: 10px;
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-brand + p { margin-top: 14px; max-width: 26ch; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 240, 232, 0.14);
  color: rgba(243, 240, 232, 0.6);
  font-size: 0.9rem;
}

.page-hero { padding: 48px 0 12px; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); max-width: 18ch; margin-bottom: 16px; }

.stack { display: grid; gap: 28px; }
.stack section { scroll-margin-top: 96px; }

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.split h2 { font-size: clamp(2rem, 3vw, 2.8rem); }

.check { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.check li { padding-left: 18px; position: relative; color: var(--ink-soft); }
.check li::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--teal); position: absolute; left: 0; top: 0.55em; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline h2 { font-size: 2rem; }
.kicker { color: var(--teal); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 8px; }

.industry { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.industry:last-child { border-bottom: 1px solid var(--line); }
.industry h2 { font-size: clamp(2rem, 3vw, 2.7rem); margin-bottom: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.pair article { padding: 18px; border-radius: 18px; background: var(--paper-2); border: 1px solid var(--line); }
.pair h3 { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; padding-bottom: 88px; }

.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.92rem; font-weight: 600; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  border-radius: 12px;
  padding: 12px 14px;
}

textarea { min-height: 150px; resize: vertical; }

.hp { position: absolute; left: -9999px; }

.form-status { min-height: 1.4em; color: var(--teal); font-weight: 600; }
.form-status.is-error { color: #9b2c2c; }

.side-card { display: grid; gap: 18px; }
.side-card a { color: var(--teal); font-weight: 600; }

@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .grid-3,
  .grid-2,
  .steps,
  .band-grid,
  .footer-grid,
  .split,
  .pair,
  .contact-grid,
  .timeline li,
  .form-row {
    grid-template-columns: 1fr;
  }

  .band-grid article,
  .band-grid article + article {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .band-grid { border-top: 0; }
  .section-head .lede { justify-self: start; }
  .cta-inner { flex-direction: column; align-items: start; }
  .hero h1 { max-width: none; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .site-nav { display: none; }

  body.nav-open .site-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header);
    z-index: 40;
    padding: 8px 22px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 22, 28, 0.08);
    max-height: calc(100svh - var(--header));
    overflow: auto;
  }

  .menu > li > a:not(.btn) {
    font-weight: 600;
    font-size: 1.05rem;
  }

  .menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .menu-item::after { display: none; }

  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    width: auto;
    box-shadow: none;
    margin: 0 0 8px 12px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .menu-cta { margin: 10px 0 0; }
  .menu-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
