:root {
  --green: #1d3fb8;
  --green-line: #4563cf;
  --mint: #ffffff;
  --mint-soft: #d3dcf8;
  --amber: #ffd166;
  --amber-dark: #1d3fb8;
  --amber-hover: #ffdd8c;
  --on-accent: #10214f;
  --paper: #f7f8fc;
  --tint: #e9edfa;
  --ink: #121a33;
  --ink-soft: #444e6b;
  --rule: #d3d9ec;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--amber); color: var(--ink); padding: 10px 14px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--green); color: var(--mint);
  border-bottom: 1px solid var(--green-line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; text-decoration: none; }
.brand img { flex: none; border-radius: 4px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle {
  display: none; background: none; color: inherit; font: inherit; font-weight: 600; font-size: 15px;
  border: 1px solid var(--green-line); border-radius: 2px; padding: 8px 14px; cursor: pointer;
}

/* Buttons */
.button {
  display: inline-block; background: var(--amber); color: var(--on-accent);
  font-weight: 600; font-size: 16px; text-decoration: none;
  padding: 14px 22px; border-radius: 2px;
}
.button:hover { background: var(--amber-hover); }
.button-small { padding: 9px 16px; font-size: 15px; }

/* Hero */
.hero { background: var(--green); color: var(--mint); padding-top: 72px; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(27px, 6.6vw, 72px); line-height: 1.04; letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-lede { font-size: 19px; line-height: 1.55; color: var(--mint-soft); max-width: 60ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-mail { font-size: 16px; text-underline-offset: 4px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 64px; border-top: 1px solid var(--green-line);
}
.hero-stats > div { padding: 24px 28px 32px 0; }
.hero-stats > div + div { padding-left: 28px; border-left: 1px solid var(--green-line); }
.hero-stats dt { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; margin-bottom: 6px; }
.hero-stats dd { font-size: 15px; line-height: 1.45; color: var(--mint-soft); }
.hero-note { border-top: 1px solid var(--green-line); padding: 18px 0 22px; font-size: 15px; color: var(--mint-soft); }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section h2, .closing h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.02em;
  max-width: 22ch; margin-bottom: 20px;
}
.section-intro { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 68ch; margin-bottom: 44px; }
.section p { max-width: 68ch; }

/* What's different */
.different-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 40px 64px; align-items: start; }
.different-head { position: sticky; top: calc(var(--header-h) + 32px); }
.different-head .section-intro { margin-bottom: 0; font-size: 18px; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.points > div {
  padding: 22px 24px 24px; background: #fff;
  border: 1px solid var(--rule); border-left: 4px solid var(--green); border-radius: 4px;
}
.points dt { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.points dd { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin-top: 36px; }
.service { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; margin-bottom: 24px; padding: 26px 28px 28px; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--green); border-radius: 4px; }
.service h3 { font-family: var(--display); font-weight: 600; font-size: 23px; line-height: 1.25; margin-bottom: 10px; }
.service p { color: var(--ink-soft); }
.service .proof { margin-top: 12px; color: var(--ink); font-size: 16px; }
.service .proof strong { display: inline-block; background: var(--green); color: var(--amber); font-size: 13px; font-weight: 600; line-height: 1.5; padding: 1px 9px; border-radius: 2px; margin-right: 6px; }
.depth-panel { margin-top: 32px; padding: 36px 40px 12px; background: var(--green); color: var(--mint); border-radius: 4px; }
.subhead { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; margin: 0 0 12px; }
.depth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; font-size: 16px; line-height: 1.5; color: var(--mint-soft); }
.depth li { padding: 22px 0 26px; border-top: 1px solid var(--green-line); }
.depth strong { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--amber); margin-bottom: 6px; }

/* Case studies */
.case { padding: 36px 0; border-top: 1px solid var(--rule); }
.case:last-child { padding-bottom: 0; }
.case h3 { font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.2; max-width: 30ch; margin-bottom: 20px; }
.case-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.case-main > p { color: var(--ink-soft); }
.case-results { background: var(--green); color: var(--mint); padding: 24px 26px; border-radius: 2px; font-size: 16px; }
.case-results h4 { font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 12px; }
.case-results li { padding: 10px 0; border-top: 1px solid var(--green-line); line-height: 1.45; }
.case-results li:last-child { padding-bottom: 0; }

details { margin-top: 20px; }
summary {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-weight: 600; list-style: none; padding: 8px 0;
  border-bottom: 2px solid var(--amber);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; line-height: 1; font-weight: 500; }
details[open] summary::after { content: "\2212"; }
details ul { margin-top: 16px; font-size: 16px; color: var(--ink-soft); }
details li { padding: 10px 0; border-top: 1px solid var(--rule); max-width: 68ch; }
details li strong { color: var(--ink); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 52px; counter-reset: step; margin-top: 36px; }
.steps li { position: relative; counter-increment: step; padding: 22px 26px 26px; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--green); border-radius: 4px; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--amber-dark); margin-bottom: 10px;
}
.steps li::after {
  content: ""; position: absolute; top: 50%; right: -33px; width: 14px; height: 14px;
  border-top: 3px solid var(--green); border-right: 3px solid var(--green);
  transform: translateY(-50%) rotate(45deg);
}
.steps li:nth-child(3n)::after { display: none; }
.steps h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 16px; }
.models { margin-top: 44px; font-size: 18px; }

/* Who and about */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; }
.two-col p { color: var(--ink-soft); }
.two-col p + p { margin-top: 16px; }
.two-col .who-lead { margin-bottom: 16px; }
.industries { margin-bottom: 24px; }
.industries li { padding: 12px 0; border-top: 1px solid var(--rule); font-weight: 500; }
.industries li:last-child { border-bottom: 1px solid var(--rule); }

/* Closing */
.closing { background: var(--green); color: var(--mint); padding: 96px 0; }
.closing p { color: var(--mint-soft); max-width: 60ch; font-size: 19px; margin-bottom: 32px; }
.closing .closing-note { font-size: 15px; margin: 32px 0 0; }

.site-footer { background: var(--green); color: var(--mint-soft); border-top: 1px solid var(--green-line); padding: 24px 0; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.site-footer a { text-underline-offset: 4px; }
.site-footer a + a { margin-left: 20px; }
.two-col .text-link { color: var(--ink); font-weight: 600; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Motion: hero entrance on load only. Content below the hero is never hidden. */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js-anim .hero h1 span, .js-anim .hero-lede, .js-anim .hero .hero-actions, .js-anim .hero-stats > div {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.js-anim .hero h1 span + span { animation-delay: 0.12s; }
.js-anim .hero-lede { animation-delay: 0.26s; }
.js-anim .hero .hero-actions { animation-delay: 0.38s; }
.js-anim .hero-stats > div { animation-delay: 0.55s; }
.js-anim .hero-stats > div + div { animation-delay: 0.67s; }
.js-anim .hero-stats > div + div + div { animation-delay: 0.79s; }
.js-anim .hero-note { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both; }

/* Section headings carry a short accent line. */
.section h2 { position: relative; padding-bottom: 18px; }
.section h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 4px; background: var(--amber); }

/* Reading progress along the bottom edge of the header, and a shadow once the page has scrolled. */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.site-header { transition: box-shadow 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 33, 79, 0.28); }

@media (prefers-reduced-motion: reduce) {
  .js-anim .hero h1 span, .js-anim .hero-lede, .js-anim .hero .hero-actions, .js-anim .hero-stats > div, .js-anim .hero-note { animation: none; }
}

/* Responsive */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--green); border-bottom: 1px solid var(--green-line); padding: 8px 20px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.button) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--green-line); }
  .site-nav .button { margin-top: 16px; }
  .brand { font-size: 16px; }

  .hero { padding-top: 48px; }
  .hero-stats { grid-template-columns: 1fr; margin-top: 44px; }
  .hero-stats > div, .hero-stats > div + div { padding: 18px 0; border-left: 0; }
  .hero-stats > div + div { border-top: 1px solid var(--green-line); }

  .section { padding: 60px 0; }
  .closing { padding: 64px 0; }
  .different-grid, .points, .services, .depth, .case-body, .steps, .two-col { grid-template-columns: 1fr; }
  .different-head { position: static; }
  .depth-panel { padding: 28px 22px 4px; }
  .steps { gap: 40px; }
  .steps li:nth-child(3n)::after { display: block; }
  .steps li::after { top: auto; right: auto; bottom: -26px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .steps li:last-child::after { display: none; }
  .case h3 { font-size: 23px; }
}
