/* Homepage only. Keep the shared stylesheet and all existing copy intact. */
:root {
  --max: 1240px;
  --pad: 72px;
  --bg: #ffffff;
  --fg: #2e3238;
  --body: #494e55;
  --muted: #60656b;
  --muted-2: #696d73;
  --rule: #dcdedf;
  --rule-2: #e7e8e8;
  --works-bg: #f5f5f4;
  --accent: #454b54;
  --accent-hov: #333940;
  --flow-rule: #c9cdd1;
  --hero-bg: #454b54;
}

body { letter-spacing: .015em; }
::selection { background: #e2e4e6; color: #2e3238; }
section { scroll-margin-top: 32px; }

.site-head { border: 0; }
.site-head .wrap { padding-top: 24px; padding-bottom: 24px; }
.wordmark { font-size: 25px; letter-spacing: -.035em; }
.site-nav { gap: 32px; font-size: 13px; align-items: center; }
.site-nav a { padding: 8px 0; color: var(--fg); }
.site-nav a:last-child { padding: 10px 22px; background: var(--accent); color: var(--on-accent); border-radius: 2px; }
.site-nav a:last-child:hover { background: var(--accent-hov); text-decoration: none; }

/* Keep the headline, explanation and action on a single reading axis. */
.hero { padding: 0; }
.hero > .wrap { max-width: none; padding: 0; }
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  /* Full-width color, with the previous text position and measure preserved. */
  padding: 76px max(80px, calc((100vw - 1240px) / 2 + 72px)) 72px;
  background: var(--hero-bg);
  color: #fff;
  text-align: left;
}
.hero h1 {
  grid-column: 1 / -1;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .015em;
}
.hero-emphasis { color: inherit; }
.hero .lede {
  max-width: 660px;
  font-size: 16px;
  line-height: 2.05;
  color: #f3f4f5;
}
.hero .actions { padding-top: 4px; margin-top: 0; }
.btn { border-radius: 3px; min-height: 56px; padding: 0 28px; }
.hero .btn-primary { min-width: 240px; justify-content: space-between; gap: 52px; color: #333940; background: #fff; }
.hero .btn-primary:hover { background: #eeeef0; }
.hero .btn-primary:focus-visible { outline-color: #fff; }
.hero .btn-primary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Centered section introductions establish a consistent reading rhythm. */
section { padding-top: 0; }
section > .wrap > .inner { padding: 88px 0; gap: 48px; }
.sec-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.sec-label {
  grid-column: 1;
  grid-row: 1 / span 2;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--accent);
}
.sec-head h2 {
  grid-column: 2;
  font-size: 34px;
  line-height: 1.6;
  letter-spacing: .005em;
  font-weight: 700;
  text-wrap: balance;
}
.section-lede { max-width: 660px; font-size: 15px; line-height: 2; }

/* Open two-column services, separated by fine rules instead of boxes. */
#services > .wrap > .inner {
  display: flex;
  border-top: 0;
}
#services .sec-head h2 { font-size: 34px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-left: 0; }
.card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 30px 0 34px;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.card:first-child { padding-top: 30px; }
.card-num {
  width: auto;
  display: block;
  padding-top: 0;
  color: var(--accent);
  background: none;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.card-main {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
}
.card-head .icon-box { display: none; }
.card-title { font-size: 21px; font-weight: 700; letter-spacing: 0; }
.card-text { font-size: 15px; line-height: 2; }

/* Results use generous typesetting and open space rather than card chrome. */
.stats { gap: 0 64px; margin-top: 0; }
.stat {
  padding: 32px 0 36px;
  gap: 18px;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.stat-num {
  color: var(--fg);
  font-size: 28px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat-num .metric { font-size: 72px; line-height: 1; letter-spacing: -.045em; }
.stat-num { min-height: 92px; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 4px; }
.stat:last-child .stat-num { font-size: 32px; align-items: center; letter-spacing: -.03em; }
.stat-title { font-size: 15px; font-weight: 700; }
.stat-text { max-width: 470px; font-size: 15px; line-height: 2; }
.chip-block {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 40px;
  border-top: 1px solid var(--rule-2);
  padding-top: 28px;
}
.chip-label { font-size: 12px; font-weight: 500; }
.chips { gap: 10px 0; }
.chip {
  padding: 0 13px;
  border: 0;
  border-left: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  font-size: 12px;
  line-height: 1.8;
}
.note-line { margin-left: 0; max-width: 800px; font-size: 13px; }

/* Connected numbered milestones: horizontal on desktop, vertical below. */
.flow-line, .flow-icon { display: none; }
.flow-grid { gap: 32px; }
.flow-item { position: relative; padding: 0; border: 0; }
.flow-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 64px;
  right: -6px;
  height: 1px;
  background: var(--flow-rule);
}
.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28.5px;
  right: -12px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 7px solid var(--flow-rule);
  /* The shaft overlaps the triangle base by 1px and stops before its tip. */
}
.flow-body { gap: 16px; }
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--accent);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.flow-step span { font-size: 9px; font-weight: 500; letter-spacing: .1em; }
.flow-title { font-size: 17px; font-weight: 700; line-height: 1.8; }
.flow-text { font-size: 14px; line-height: 2; }

/* Broad, straight-edged background fields distinguish evidence and contact. */
#works { background: var(--works-bg); }
#works > .wrap > .inner { border-top: 0; }
#process > .wrap > .inner { border-top: 0; }
#contact { background: var(--works-bg); }
#contact > .wrap > .inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  column-gap: 88px;
  row-gap: 30px;
  border-top: 0;
  padding: 80px 0;
  align-items: start;
}
#contact .sec-head { display: flex; gap: 24px; align-items: stretch; text-align: left; }
#contact .sec-head h2 { font-size: 32px; line-height: 1.7; }
.contact-phrase { display: block; }
.heading-phrase { display: inline-block; }
.heading-chunk { display: inline-block; max-width: 100%; }
#contact .section-lede { font-size: 15px; line-height: 2; }
.contact-form { max-width: none; gap: 24px; }
.field { gap: 9px; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field textarea { border-radius: 2px; font-size: 16px; padding: 12px; }
.req { border: 0; padding: 0; font-size: 10px; }
.form-foot { align-items: flex-start; flex-direction: column; gap: 14px; }
.form-foot .btn { width: 100%; }
.form-note { font-size: 11px; }
.contact-alt { grid-column: 2; border-top: 1px solid var(--rule); padding-top: 22px; }
.contact-sub { font-size: 12px; }

#posts > .wrap > .inner { padding: 72px 0 52px; border-top: 0; }
.channels { grid-template-columns: 1fr 1fr; gap: 80px; margin-left: 0; }
.ch {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  padding: 24px 0 0;
  background: none;
  box-shadow: none;
  gap: 18px;
  color: var(--fg);
}
.ch-x:hover { color: var(--fg); border-color: var(--accent); }
.ch-name, .ch-note-logo { font-size: 18px; font-weight: 500; }
.ch-x-logo { width: 18px; height: 18px; }
.ch-text, .ch-x .ch-text { color: var(--muted); font-size: 14px; line-height: 2; }
.ch-cta { color: var(--accent); font-size: 12px; font-weight: 500; }
.site-foot { padding: 32px 0; }
.site-foot .inner { padding-top: 24px; }
.foot-mark { color: var(--fg); letter-spacing: -.04em; }
.foot-copy { font-size: 10px; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #161719;
    --fg: #eeeff0;
    --body: #c9cbce;
    --muted: #b8bbc0;
    --muted-2: #a7abb1;
    --rule: #3d4147;
    --rule-2: #32363c;
    --works-bg: #202327;
    --accent: #c1c7d0;
    --accent-hov: #e1e4e9;
    --flow-rule: #545b64;
    --hero-bg: #3b4149;
  }
}

@media (max-width: 1050px) {
  :root { --pad: 40px; }
  .chip-block { grid-template-columns: 140px minmax(0, 1fr); gap: 16px 32px; }
  #services .sec-head h2 { font-size: 30px; }
  .cards { column-gap: 40px; }
  .card { padding: 26px 0; }
  .card:first-child { padding-top: 26px; }
  .stat-num { font-size: 23px; }
  .stat-num .metric { font-size: 58px; }
  .stat:last-child .stat-num { font-size: 26px; }
  .card-main { grid-template-columns: 1fr; gap: 10px; }
  #contact > .wrap > .inner { column-gap: 40px; }
  .flow-grid { grid-template-columns: 1fr; gap: 0; }
  .flow-item { padding: 0 0 38px 88px; }
  .flow-item:last-child { padding-bottom: 0; }
  .flow-body { gap: 10px; min-height: 64px; }
  .flow-step { position: absolute; top: 0; left: 0; margin: 0; }
  .flow-title { padding-top: 14px; }
  .flow-text { max-width: 640px; }
  .flow-item:not(:last-child)::before {
    top: 64px; left: 32px; right: auto; bottom: 20px;
    width: 1px; height: auto;
  }
  .flow-item:not(:last-child)::after {
    top: auto; left: 28.5px; right: auto; bottom: 14px;
    border-top: 7px solid var(--flow-rule);
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
  }
}

@media (max-width: 767px) {
  :root { --pad: 24px; }
  .site-head .wrap { gap: 22px; padding-top: 24px; padding-bottom: 18px; }
  .wordmark { font-size: 22px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 11px; }
  .site-nav a:last-child { padding: 9px 12px; }
  .hero > .wrap { padding: 0; }
  .hero-inner { gap: 24px; padding: 44px 32px; }
  .hero h1 { font-size: clamp(21px, 5.4vw, 36px); letter-spacing: -.04em; line-height: 1.8; }
  .hero .lede { grid-column: 1; max-width: 520px; font-size: 14px; line-height: 2; text-align: left; }
  .hero .actions { grid-column: 1; margin-top: 0; align-items: flex-start; }
  .hero .btn-primary { width: auto; min-width: 210px; font-size: 13px; }
  section > .wrap > .inner { padding: 56px 0; gap: 32px; }
  #services > .wrap > .inner { grid-template-columns: minmax(0, 1fr); }
  #services .sec-head h2 { font-size: 24px; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .sec-label { grid-column: 1; grid-row: auto; font-size: 11px; }
  .sec-head h2 { grid-column: 1; font-size: 24px; line-height: 1.7; text-wrap: wrap; }
  .heading-phrase { display: block; }
  .section-lede { grid-column: 1; font-size: 14px; }
  .cards, .channels, .note-line { margin-left: 0; }
  .cards { grid-template-columns: 1fr; gap: 0; }
  .card { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .card:first-child { padding-top: 24px; }
  .card-title { font-size: 18px; }
  .card-text { font-size: 14px; line-height: 2; }
  .stats { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .stat { padding: 26px 0 30px; gap: 12px; }
  .stat-num { font-size: 23px; min-height: 64px; }
  .stat-num .metric { font-size: 52px; }
  .stat-text { font-size: 14px; }
  .stat:last-child .stat-num { font-size: 25px; }
  .chip-block { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .chip { font-size: 11px; padding: 0 10px; }
  .flow-item { padding-left: 76px; }
  .flow-body { padding-top: 0; }
  .flow-step { width: 56px; height: 56px; font-size: 20px; }
  .flow-title { font-size: 15px; padding-top: 10px; }
  .flow-item:not(:last-child)::before { top: 56px; left: 28px; }
  .flow-item:not(:last-child)::after { left: 24.5px; }
  #contact > .wrap > .inner { grid-template-columns: 1fr; padding: 44px 0; gap: 32px; }
  #contact .sec-head { gap: 16px; }
  #contact .sec-head h2 { font-size: 24px; }
  #contact .section-lede { font-size: 14px; }
  .contact-alt { grid-column: 1; }
  #posts > .wrap > .inner { padding: 44px 0 28px; }
  .channels { grid-template-columns: 1fr; gap: 28px; }
  .ch { padding-top: 22px; gap: 16px; }
  .site-foot { padding: 28px 0; }
}
