/* RelayFlows
   Calm, precise, and quiet. One accent, hairlines, generous space. */

:root {
  --bg: #fbfbfd;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --hairline: #d2d2d7;
  --accent: #17372d;
  --accent-hover: #0f271f;
  --error: #b42318;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --max: 1040px;
  --gutter: 22px;
  --nav-h: 52px;
  --section-y: 128px;

  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  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: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  font-size: 15px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.bg-a { background: var(--bg); }
.bg-b { background: var(--bg-alt); }

.muted { color: var(--text-2); }

/* ---------- Type ---------- */

.eyebrow,
.kicker {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(2.5rem, 1.675rem + 3.38vw, 4rem);
  line-height: 1.05;
  max-width: 13em;
}

.display {
  font-size: clamp(2rem, 1.45rem + 2.25vw, 3rem);
  line-height: 1.08;
  max-width: 20em;
}

.section-title {
  font-size: clamp(2rem, 1.45rem + 2.25vw, 3rem);
  line-height: 1.08;
}

.lede {
  font-size: clamp(19px, 1rem + 0.5vw, 21px);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 36em;
  margin-top: 20px;
}

.caption {
  margin-top: 40px;
  color: var(--text-2);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:focus-visible { outline: none; box-shadow: var(--focus); }

.btn-sm {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
  position: relative;
}
/* Expands the hit area to 44px without changing the visual size. */
.btn-sm::after {
  content: "";
  position: absolute;
  inset: -8px -4px;
}

.link-chevron {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--accent);
  font-size: 17px;
  text-decoration: none;
}
.link-chevron:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-chevron svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}
.link-chevron:hover svg { transform: translateX(2px); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s var(--ease);
}
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-icon .bar {
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  transform-origin: 9px 9px;
  transition: transform 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"] .bar-top { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar-bottom { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 833px) {
  .js .menu-toggle { display: inline-flex; }

  .js .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
  }
  .js .nav-menu.is-open { display: flex; }

  .js .nav-links { flex-direction: column; gap: 0; }
  .js .nav-links a {
    display: flex;
    min-height: 52px;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--hairline);
    opacity: 1;
  }
  .js .nav-menu .btn-sm {
    align-self: flex-start;
    margin-top: 24px;
    min-height: 44px;
    padding: 0 22px;
    font-size: 17px;
  }

  /* Without JavaScript, keep links reachable as a simple wrapped row. */
  html:not(.js) .site-nav { height: auto; }
  html:not(.js) .nav-inner { flex-wrap: wrap; padding-block: 4px; }
  html:not(.js) .nav-menu { flex-wrap: wrap; gap: 8px; }
}

/* ---------- Hero ---------- */

/* Centered lockup with a product-style window that sits on the section edge. */
.hero {
  padding-top: clamp(88px, 9vw, 128px);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 14px; height: 14px; }
.icon-xs { width: 12px; height: 12px; }

.hero .hero-title {
  max-width: 14em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(19px, 1rem + 0.5vw, 21px);
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero-actions .btn { gap: 8px; }

.btn-outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn-outline:hover { background: rgba(0, 0, 0, 0.03); }
.btn-outline:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--hairline), var(--focus); }

.hero-footnote {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-2);
}

.mock {
  width: 100%;
  max-width: 880px;
  margin-top: 72px;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.18);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-alt);
}

.mock-dots { display: flex; gap: 6px; }
.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #fff;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 420px;
  height: 28px;
  margin-inline: auto;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 7px;
  background: #fff;
  color: var(--text-2);
  font-size: 12px;
}
.mock-search-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.mock-body {
  min-height: 256px;
  padding: 28px 28px 36px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--text-2);
}

.mock-note {
  margin-bottom: 12px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-2);
}

/* The example reads as a small timeline: on arrival a line grows through
   the icons and each step types in after the line reaches it. */
.mock-flow { position: relative; }

.mock-track {
  position: absolute;
  left: 6.5px;
  width: 1px;
  background: var(--hairline);
}
.mock-progress {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
}
.js .mock-progress { display: block; }

.mock-rest { visibility: hidden; }
.mock-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  margin-right: -0.55em;
  vertical-align: -0.2em;
  background: var(--accent);
}

.mock-step {
  display: flex;
  align-items: baseline;
  gap: 10px;
  transition: opacity 0.3s var(--ease);
}
.mock-flow.is-ready .mock-step:not(.is-reached) { opacity: 0.35; }

.mock-marker {
  position: relative;
  z-index: 1;
  flex: none;
  background: #fff;
  transition: color 0.3s var(--ease);
}
.mock-step.is-reached .mock-marker { color: var(--accent); }

.mock-run { color: var(--text); }
.mock-prompt {
  display: inline-block;
  width: 14px;
  text-align: center;
  color: var(--text-2);
}

.mock-log {
  display: grid;
  gap: 2px;
  margin-top: 16px;
}
.mock-log .icon { position: relative; top: 2px; }

.mock-status {
  margin-top: 16px;
  color: var(--text);
}
.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px #fff;
  margin-inline: 3px;
  /* Sit on the first line's center even when the text wraps. */
  align-self: flex-start;
  margin-top: calc(0.85em - 4px);
}

/* ---------- Relay Loop ---------- */

.loop-rows {
  margin-top: 56px;
  border-top: 1px solid var(--hairline);
}

.loop-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: baseline;
  gap: 8px 32px;
  padding-block: 36px;
  border-bottom: 1px solid var(--hairline);
}

.loop-num {
  font-size: clamp(40px, 2rem + 2vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.loop-num.is-accent { color: var(--accent); }

.loop-name {
  font-size: clamp(24px, 1.2rem + 1vw, 32px);
}

.loop-text {
  font-size: 19px;
  color: var(--text-2);
}

/* ---------- Approach ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.principles li {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.principles .num,
.step-title .num {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.principles h3 { font-size: 24px; }

/* ---------- Services ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
  margin-top: 72px;
}

.service {
  padding-block: 36px 44px;
  border-top: 1px solid var(--hairline);
}

.service-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.service > p:not(.guardrail) { max-width: 34em; }

.bullets {
  margin-top: 20px;
  display: grid;
  gap: 6px;
}
.bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-2);
}

.guardrail {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-2);
}

/* ---------- Steps (People in control, How it works) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 72px;
}

.step {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 16px;
}
.step.is-accent .step-label { color: var(--accent); }

.step-title {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.step > p:last-child { color: var(--text-2); }

/* A single track with markers, echoing the hero diagram. */
.steps-track { position: relative; }
.steps-track .step {
  position: relative;
  border-top: 0;
  padding-top: 40px;
}
.steps-track::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
}
.step-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--text-2);
  background: var(--bg);
}
.step.is-accent .step-marker {
  background: var(--accent);
  border-color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 56px;
}
.tags li {
  padding: 6px 14px;
  border: 1px solid var(--hairline);
  border-radius: 980px;
  font-size: 14px;
  color: var(--text-2);
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.callout p {
  font-size: clamp(21px, 1.1rem + 0.6vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 30em;
}
.callout strong { font-weight: 600; }

/* ---------- Timeline ---------- */

/* A line fills as the section scrolls past, lighting up each step it reaches. */
.timeline {
  position: relative;
  margin-top: 40px;
}

.timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: var(--hairline);
}

.timeline-progress {
  display: none;
  position: absolute;
  inset: 0 -0.5px;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(0);
}
.js .timeline-progress { display: block; }

.timeline-item {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 40px;
  padding-top: 112px;
}
.timeline-item:first-child { padding-top: 56px; }

.timeline-head {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 24px;
}

.timeline-dot {
  position: relative;
  flex: none;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--bg-alt);
}
.timeline-dot::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid var(--text-2);
  background: var(--bg-alt);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.timeline-item.is-reached .timeline-dot::after {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline-title {
  font-size: clamp(28px, 1.2rem + 2vw, 44px);
  color: var(--text);
}
/* With the script running, titles start grey and darken as the line reaches them. */
.js [data-timeline] .timeline-title {
  color: var(--text-2);
  transition: color 0.3s var(--ease);
}
.js [data-timeline] .timeline-item.is-reached .timeline-title { color: var(--text); }

.timeline-body {
  padding-top: 4px;
  max-width: 32em;
}
.timeline-body p:last-child {
  font-size: 19px;
  color: var(--text-2);
}

/* ---------- Request ---------- */

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--text-2);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}
.book-actions .btn { gap: 8px; }

.form-intro { display: grid; gap: 4px; }
.form-heading { font-size: 24px; }

.request-form {
  display: grid;
  gap: 22px;
}

.field { display: grid; gap: 8px; }

.field label {
  font-size: 15px;
  font-weight: 600;
}
.optional { font-weight: 400; color: var(--text-2); }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.45; }

.field input:hover,
.field textarea:hover { border-color: #b0b0b6; }

.field input:focus-visible,
.field textarea:focus-visible,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 55, 45, 0.18);
}

.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15); border-color: var(--error); }

.error {
  font-size: 14px;
  color: var(--error);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 6px;
}
.form-hint { font-size: 14px; color: var(--text-2); }

.form-status {
  font-size: 15px;
  color: var(--text);
}
.form-status:empty { display: none; }
.form-status:not(:empty) {
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.about {
  display: flex;
  align-items: center;
  gap: 16px;
}
.about p { margin: 0; }
.about-photo {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px dashed var(--hairline);
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  color: var(--text-2);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 64px 32px;
  font-size: 14px;
  color: var(--text-2);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.footer-wordmark { min-height: 0; margin-bottom: 6px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.footer-links a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}
.footer-links a:hover,
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 16px;
}
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}

/* ---------- Reveal motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Big headings: words rise into place one after another, once. */
@media (prefers-reduced-motion: no-preference) {
  /* Hide the hero headline only until its words are wrapped; if the script
     never runs, it shows anyway after a moment. */
  .js .hero-title:not(.is-split) {
    opacity: 0;
    animation: heading-failsafe 0s 2s forwards;
  }

  .split-heading .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    /* Room for descenders inside the clip, without changing line height. */
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
  }
  .split-heading .word-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
    transition-delay: calc(var(--i) * 50ms);
  }
  .split-heading.is-visible .word-inner { transform: none; }
}

@keyframes heading-failsafe { to { opacity: 1; } }

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

/* ---------- Responsive ---------- */

@media (max-width: 833px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .services { grid-template-columns: 1fr; }
  .request-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 734px) {
  :root {
    --section-y: 80px;
    --gutter: 16px;
  }

  .hero { padding-top: 56px; }
  .br-wide { display: none; }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .hero-actions .btn { width: 100%; }
  .mock { margin-top: 56px; }
  .mock-dots { display: none; }
  .mock-body { min-height: 0; padding: 20px 18px 28px; font-size: 13px; }

  .loop-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-block: 28px;
  }
  .loop-num { margin-bottom: 8px; }

  .principles { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .principles li { padding-block: 20px; }

  .services { margin-top: 56px; }
  .service-title { font-size: 24px; }

  .steps { grid-template-columns: 1fr; gap: 32px; margin-top: 56px; }

  /* Vertical track on mobile. */
  .steps-track { gap: 0; }
  /* Draw the segment between markers per step so the line ends at the last node. */
  .steps-track::before { content: none; }
  .steps-track .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 15px;
    bottom: 0;
    left: 7px;
    width: 1px;
    background: var(--hairline);
  }
  .steps-track .step { padding: 0 0 36px 40px; }
  .steps-track .step:last-child { padding-bottom: 0; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 64px;
  }
  .timeline-item:first-child { padding-top: 40px; }
  .timeline-head { gap: 18px; }
  .timeline-body { padding-left: 49px; }
  .timeline-body p:last-child { font-size: 17px; }

  .callout { flex-direction: column; align-items: flex-start; margin-top: 56px; }

  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-right { flex-direction: column; align-items: flex-start; }
}

@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
}
