/* ==========================================================
   RunIT — main stylesheet
   ========================================================== */

:root {
  --paper: #F5F4EF;
  --paper-2: #ECEAE3;
  --surface: #FFFFFF;
  --ink: #0D1A2B;
  --ink-2: #22344B;
  --body: #3A4452;
  --muted: #4B5563;
  --faint: #8A8676;
  --line: #DEDBD2;
  --line-strong: #C9C5BA;

  --accent: #2B62A8;
  --accent-hover: #1D4A85;
  --accent-soft: #EEF3F9;
  --teal: #3B8194;
  --green: #4A8F53;

  --on-dark: #FFFFFF;
  --on-dark-muted: #A7B1BF;
  --on-dark-line: #34465E;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: 96px;
  --max: 1440px;
  --radius: 14px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.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: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.lead { font-size: 18px; line-height: 1.6; color: var(--body); }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 8px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 244, 239, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(13, 26, 43, .18); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav__cta-mobile { display: none !important; }

/* ---------- Hero ---------- */
.hero { padding-block: 88px 72px; }
.hero__grid { display: flex; gap: 72px; align-items: flex-start; }
.hero__copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 32px; padding-top: 16px; min-width: 0; }
.hero__kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.hero__kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--green); flex-shrink: 0; }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__lead { font-size: 20px; line-height: 1.55; color: var(--body); max-width: 560px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Pipeline diagram */
.pipeline {
  width: 588px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  box-shadow: 0 1px 0 rgba(13,26,43,.04), 0 24px 48px -24px rgba(13,26,43,.18);
}
.pipeline__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  padding-bottom: 20px; border-bottom: 1px dashed var(--line);
}
.live-dot { display: inline-flex; align-items: center; gap: 8px; }
.live-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,143,83,.5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,143,83,.45); } 70% { box-shadow: 0 0 0 8px rgba(74,143,83,0); } 100% { box-shadow: 0 0 0 0 rgba(74,143,83,0); } }
.pipeline__stage { position: relative; width: 540px; height: 380px; margin-top: 24px; }
.pipeline__wires { position: absolute; inset: 0; }
.pipeline__wires .flow { stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.pipeline__sources { position: absolute; left: 0; top: 0; width: 166px; display: flex; flex-direction: column; gap: 18px; list-style: none; margin: 0; padding: 0; }
.pipeline__sources li {
  height: 72px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #FAF9F6;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
}
.tag-mono { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.pipeline__sources strong { font-size: 14px; font-weight: 600; line-height: 1.2; }
.pipeline__engine {
  position: absolute; left: 206px; top: 96px; width: 128px; height: 188px;
  border-radius: 12px; background: var(--ink); color: #fff; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.pipeline__engine .tag-mono { color: var(--on-dark-muted); }
.pipeline__engine ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; }
.pipeline__engine li { display: flex; align-items: center; gap: 8px; }
.pipeline__engine li::before { content: ""; width: 18px; height: 4px; border-radius: 2px; background: var(--c); }
.pipeline__output {
  position: absolute; left: 370px; top: 40px; width: 170px; height: 300px;
  border: 1.5px solid var(--accent); border-radius: 12px; background: #F3F7FC; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.pipeline__output .tag-mono { color: var(--accent-hover); }
.pipeline__output ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.pipeline__output li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: #fff; border-radius: 6px; border: 1px solid #DCE5F0;
}
.pipeline__output li::after { content: "›"; color: var(--accent); }

/* ---------- Stats ---------- */
.stats { padding-bottom: 88px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.stat { padding: 28px 24px 0; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num { order: -1; margin: 0; font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Partners ---------- */
.partners { background: var(--paper-2); padding-block: 40px; }
.partners__inner { display: flex; align-items: center; gap: 48px; }
.partners__label {
  flex-shrink: 0; width: 150px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); line-height: 1.5;
}
.partners__list {
  flex: 1 1 0; display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 14px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--font-display); font-size: 21px; color: #2A3442;
}
.partners__list li { display: flex; align-items: center; gap: 32px; }
.partners__list li:not(:last-child)::after { content: "/"; color: #B3AE9F; }
.partners__list a { color: inherit; }
.partners__list a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about { padding-block: 120px; }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.about__copy { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.about__cards { grid-column: 7 / span 6; align-self: end; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card svg { width: 28px; height: 28px; color: var(--accent); }
.card h3 { font-size: 18px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Services ---------- */
.services { padding-block: 112px; background: var(--surface); border-block: 1px solid var(--line); }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  list-style: none; margin: 0; padding: 0;
}
.service {
  padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; transition: background .2s ease;
}
.service:hover { background: #FAFAF7; }
.service__top { display: flex; justify-content: space-between; align-items: center; }
.service__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.service__icon svg { width: 24px; height: 24px; }
.service__num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.service h3 { font-size: 21px; font-weight: 600; }
.service p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Work ---------- */
.work { padding-block: 120px; }
.work .section-head { margin-bottom: 56px; }
.feature {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  background: var(--ink); color: #fff; border-radius: 20px; overflow: hidden; margin-bottom: 56px;
}
.feature__media { grid-column: span 7; padding: 40px 0 40px 40px; display: flex; align-items: center; }
.feature__media img { width: 100%; height: 330px; object-fit: cover; object-position: top center; border-radius: 10px; }
.feature__body { grid-column: span 5; padding: 48px 48px 48px 16px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 12px; }
.pills li { padding: 6px 10px; border: 1px solid var(--on-dark-line); border-radius: 999px; color: #C9D2DE; }
.feature h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.7vw, 38px); line-height: 1.1; }
.feature p { font-size: 16px; line-height: 1.6; color: #C9D2DE; }
.feature .link-arrow { color: #fff; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; gap: 20px; }
.project__img { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.project__img img { width: 100%; height: 240px; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.project:hover .project__img img { transform: scale(1.03); }
.project__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.project h3 { font-size: 22px; font-weight: 600; }
.project p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.project .link-arrow { font-size: 15px; margin-top: auto; }

/* ---------- Process ---------- */
.process { padding-block: 112px; background: var(--ink); color: #fff; }
.process .eyebrow { color: #7FBCCB; }
.process__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: end; margin-bottom: 64px; }
.process__head .section-head { grid-column: span 7; }
.process__head p { grid-column: 9 / span 4; font-size: 17px; line-height: 1.6; color: var(--on-dark-muted); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: 16px; padding-right: 28px; }
.step:last-child { padding-right: 0; }
.step__marker { display: flex; align-items: center; gap: 12px; }
.step__marker::after { content: ""; flex-grow: 1; height: 1px; background: var(--on-dark-line); }
.step:last-child .step__marker::after { display: none; }
.step__num {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid #6FA9BA;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px;
}
.step:first-child .step__num { background: #6FB277; border-color: #6FB277; color: var(--ink); font-weight: 500; }
.step__text { display: flex; flex-direction: column; gap: 16px; }
.step h3 { font-size: 19px; font-weight: 600; }
.step p { font-size: 15px; line-height: 1.6; color: var(--on-dark-muted); }

/* ---------- Milestones ---------- */
.milestones { padding-block: 112px 104px; }
.milestones .section-head { margin-bottom: 56px; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 2px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.timeline li { padding-top: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.timeline__year { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.timeline h3 { font-size: 19px; font-weight: 600; }
.timeline p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding-block: 104px; background: var(--surface); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.faq__head { grid-column: span 4; }
.faq__head .h2 { font-size: clamp(32px, 3vw, 44px); }
.faq__list { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 19px; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 26px; line-height: 1; font-weight: 400; color: var(--accent); transition: transform .2s ease; }
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:hover { color: var(--accent); }
.faq__item p { padding: 0 48px 28px 0; margin-top: -12px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 112px; background: var(--surface); }
.contact__card {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 64px;
}
.contact__copy { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.contact__copy .h2 { font-size: clamp(32px, 3.3vw, 48px); }
.contact__copy .lead { font-size: 17px; }
.contact__details { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--body); }
.contact__details li { display: flex; align-items: center; gap: 12px; }
.contact__details svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.form { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field--full { grid-column: span 2; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 16px; font-weight: 400;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: 132px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,98,168,.15); }
.form__foot { grid-column: span 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--muted); }
.form__status { grid-column: span 2; font-size: 15px; padding: 14px 16px; border-radius: 8px; display: none; }
.form__status.is-ok { display: block; background: #EAF4EC; color: #2E6537; border: 1px solid #C6E0CB; }
.form__status.is-error { display: block; background: #FBEDEA; color: #8A2C1D; border: 1px solid #F0CFC8; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #C9D2DE; padding-block: 72px 40px; }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; margin-bottom: 56px; }
.footer__brand { grid-column: span 5; display: flex; flex-direction: column; gap: 20px; }
.footer__logo { align-self: flex-start; background: #fff; border-radius: 10px; padding: 12px 16px; }
.footer__logo img { height: 26px; width: auto; }
.footer__tagline { font-family: var(--font-display); font-size: 24px; line-height: 1.3; color: #fff; max-width: 380px; }
.footer__col { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col:first-of-type { grid-column: 7 / span 2; }
.footer__col h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; color: #7F8B9B; text-transform: uppercase; }
.footer__col a { color: #E9EDF2; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--ink-2); font-size: 13px; color: #7F8B9B; }
.footer__bottom nav { display: flex; gap: 24px; }
.footer__bottom a, .footer__bottom button { color: #7F8B9B; background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }
.footer__bottom a:hover, .footer__bottom button:hover { color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 150; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgba(13,26,43,.28); padding: 24px;
  display: none; flex-direction: column; gap: 14px;
}
.cookie.is-open { display: flex; animation: rise .3s ease both; }
.cookie h2 { font-size: 17px; font-weight: 600; }
.cookie p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.cookie__prefs { display: none; flex-direction: column; gap: 10px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.cookie.show-prefs .cookie__prefs { display: flex; }
.cookie__prefs label { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; }
.cookie__prefs input { width: 18px; height: 18px; accent-color: var(--accent); }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie__actions .btn { height: 44px; padding: 0 16px; font-size: 14px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pipeline__wires .flow, .live-dot::before { animation: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1280px) {
  :root { --gutter: 56px; }
  .hero__grid { gap: 48px; }
  .pipeline { transform-origin: top right; }
}

@media (max-width: 1180px) {
  .hero__grid { flex-direction: column; }
  .hero__copy { padding-top: 0; }
  .pipeline { align-self: center; }
  .about__copy, .about__cards { grid-column: 1 / -1; }
  .process__head .section-head, .process__head p { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(3) .step__marker::after { display: none; }
  .faq__head, .faq__list { grid-column: 1 / -1; }
  .contact__copy, .form { grid-column: 1 / -1; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col:first-of-type { grid-column: span 4; }
}

@media (max-width: 960px) {
  :root { --gutter: 32px; --header-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav .btn { margin-top: 16px; border-bottom: 0; color: #fff; }
  .header.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .header.nav-open .icon-open { display: none; }
  .header.nav-open .icon-close { display: block; }
  .header .nav .nav__cta-mobile { display: inline-flex !important; }

  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .partners__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .partners__label { width: auto; }
  .services__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature__media, .feature__body { grid-column: 1 / -1; }
  .feature__media { padding: 24px 24px 0; }
  .feature__body { padding: 28px 28px 32px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; border-top: 0; }
  .timeline li { border-top: 2px solid var(--ink); }
  .contact__card { padding: 40px; }
}

@media (max-width: 700px) {
  .pipeline { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --header-h: 64px; }
  .header__logo img { height: 24px; }
  .hero { padding-block: 40px 32px; }
  .hero__copy { gap: 22px; }
  .hero__lead { font-size: 17px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__kicker { font-size: 11px; }
  .stats { padding-bottom: 40px; }
  .stat__num { font-size: 36px; }
  .stat__label { font-size: 13px; }
  .stat { padding: 18px 12px 18px 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .partners__list { font-size: 18px; column-gap: 16px; }
  .partners__list li { gap: 16px; }
  .about, .services, .work, .process, .milestones, .faq { padding-block: 56px; }
  .about__cards { grid-template-columns: 1fr; }
  .services__head, .work .section-head, .milestones .section-head { margin-bottom: 28px; }
  .services__grid { grid-template-columns: 1fr; border-left: 0; }
  .service { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; padding: 18px 0; border-right: 0; }
  .service__top { order: 0; }
  .service__num { display: none; }
  .service__icon { width: 40px; height: 40px; }
  .service h3 { font-size: 17px; flex: 1 1 0; align-self: center; }
  .service p { font-size: 14px; flex-basis: 100%; padding-left: 54px; }
  .feature { margin-bottom: 32px; border-radius: 16px; }
  .feature__media { padding: 0; }
  .feature__media img { height: 180px; border-radius: 0; object-position: top left; }
  .feature__body { padding: 20px; gap: 12px; }
  .projects { grid-template-columns: 1fr; gap: 32px; }
  .project { gap: 10px; }
  .project__img img { height: 180px; }
  .process__head { margin-bottom: 32px; }
  .steps { grid-template-columns: 1fr; row-gap: 20px; }
  .step { flex-direction: row; gap: 14px; padding-right: 0; }
  .step__marker::after { display: none; }
  .step__num { width: 32px; height: 32px; font-size: 12px; }
  .step__text { gap: 4px; }
  .step h3 { font-size: 16px; }
  .step p { font-size: 14px; }
  .timeline { grid-template-columns: 1fr; row-gap: 28px; }
  .timeline__year { font-size: 34px; }
  .faq__item summary { font-size: 17px; padding: 22px 0; }
  .contact { padding-bottom: 56px; }
  .contact__card { padding: 28px 20px; border-radius: 16px; }
  .form { grid-template-columns: 1fr; }
  .field--full, .form__foot, .form__status { grid-column: auto; }
  .form__foot .btn { width: 100%; }
  .footer { padding-block: 40px 28px; }
  .footer__col, .footer__col:first-of-type { grid-column: span 6; }
  .footer__tagline { font-size: 20px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
