:root {
  --ink: #171713;
  --panel: #20201c;
  --panel-2: #292923;
  --paper: #fff;
  --paper-deep: #f5f5f1;
  --accent: #b93616;
  --accent-light: #f06a40;
  --thermal-light: #ffd4c2;
  --thermal-mid: #d95f35;
  --thermal-deep: #741812;
  --muted: #6d6d64;
  --rule: #deded7;
  --rule-dark: #45453d;
  --sans: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: -9999px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  left: 10px;
}

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

.dots {
  height: 1px;
  background: var(--rule);
}

header {
  position: sticky;
  top: 12px;
  z-index: 100;
  height: 0;
}

.nav {
  position: relative;
  top: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  padding: 6px 8px 6px 18px;
  border: 1px solid rgba(23, 23, 19, .14);
  border-radius: 5px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(23, 23, 19, .06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo {
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
}

.logo-mark {
  margin-right: 6px;
  color: var(--accent);
  font-family: var(--mono);
}

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

.nav-links a {
  color: #4d4d46;
  font-size: 13px;
  text-decoration: none;
  transition: color .18s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.nav-cta {
  justify-self: end;
  min-height: 40px;
  padding: 8px 14px;
}

.nav-cta::after,
.btn::after {
  content: "↗";
  margin-left: 12px;
  font-family: var(--mono);
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

header + .dots {
  display: none;
}

.case-hero {
  padding-top: clamp(152px, 15vw, 210px);
  padding-bottom: clamp(82px, 8vw, 116px);
}

.kicker,
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 20px;
  color: var(--accent);
}

h1,
h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  max-width: 1120px;
  font-size: clamp(52px, 6.8vw, 88px);
  line-height: .95;
  letter-spacing: -.052em;
}

h1 .accent {
  color: var(--accent);
}

.standfirst {
  max-width: 780px;
  margin: 30px 0 0;
  color: #3f3f38;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin-top: clamp(46px, 5vw, 64px);
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 16px 45px rgba(23, 23, 19, .07);
}

.metric {
  position: relative;
  min-width: 0;
  min-height: 122px;
  padding: 22px 22px 20px 40px;
}

.metric::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(240, 106, 64, .1);
}

.metric + .metric {
  border-left: 1px solid var(--rule);
}

.metric strong {
  display: block;
  overflow-wrap: break-word;
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.metric span {
  display: block;
  max-width: 24ch;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.case-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: clamp(100px, 11vw, 170px) 0;
}

.section-label {
  align-self: start;
  position: sticky;
  top: 92px;
  margin: 0;
  padding-top: 7px;
  color: var(--accent);
}

.section-body {
  width: 100%;
  max-width: 680px;
  padding-left: clamp(28px, 5vw, 72px);
}

h2 {
  max-width: 720px;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
}

.section-body > p {
  max-width: 66ch;
  margin: 25px 0 0;
  color: #46463f;
  font-size: 18px;
  line-height: 1.68;
  text-wrap: pretty;
}

.build-list,
.outcome-list {
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
  counter-reset: item;
}

.build-list li,
.outcome-list li {
  counter-increment: item;
  position: relative;
  padding: 18px 8px 18px 46px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.6;
}

.build-list li::before,
.outcome-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  top: 21px;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
}

.workflow-section {
  padding: clamp(88px, 10vw, 150px) 0;
  background: var(--paper-deep);
}

.workflow-section .wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #37372f;
  border-radius: 7px;
  background: var(--panel);
  color: #f4f4ed;
  box-shadow: 0 30px 80px rgba(23, 23, 19, .18);
}

.workflow-section .wrap::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  height: 62%;
  background: radial-gradient(circle at 18% 22%, rgba(255, 212, 194, .95), transparent 34%), radial-gradient(circle at 82% 70%, rgba(116, 24, 18, .72), transparent 46%), linear-gradient(135deg, #f5b49a 0%, var(--thermal-mid) 52%, var(--thermal-deep) 100%);
}

.workflow-section .wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 62%;
  background-image: radial-gradient(rgba(255, 255, 255, .22) .7px, transparent .7px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
  opacity: .55;
}

.workflow-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  padding: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--rule-dark);
  background: var(--panel);
}

.workflow-head::before {
  content: "SYSTEM TRACE / LIVE";
  grid-column: 1 / -1;
  margin-bottom: 18px;
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workflow-head h2 {
  max-width: 720px;
  font-size: clamp(34px, 4.2vw, 58px);
}

.workflow-head p {
  max-width: 360px;
  margin: 0;
  padding-left: clamp(28px, 5vw, 72px);
  color: #a9a99e;
  font-size: 15px;
  line-height: 1.55;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 42px clamp(28px, 4vw, 52px) 30px;
  scroll-padding-inline: clamp(28px, 4vw, 52px);
  scroll-snap-type: x proximity;
  scrollbar-color: var(--accent-light) var(--panel-2);
  scrollbar-width: thin;
  touch-action: pan-x;
}

.flow:focus-visible {
  outline-color: var(--accent-light);
  outline-offset: -4px;
}

.flow-step {
  position: relative;
  flex: 0 0 168px;
  width: 168px;
  min-height: 148px;
  padding: 17px;
  border: 1px solid #48473f;
  border-radius: 5px;
  background: rgba(32, 32, 28, .94);
  box-shadow: 0 18px 42px rgba(57, 14, 8, .18);
  scroll-snap-align: start;
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 21px;
  right: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px currentColor;
  opacity: .18;
}

.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  top: 73px;
  left: -25px;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, .45);
}

.flow-step.agent {
  border-color: #8e3c24;
  color: var(--accent-light);
}

.flow-step.auto {
  color: var(--thermal-light);
}

.flow-step.human {
  border-color: #d8d8ce;
  color: var(--paper);
}

.flow-step .type {
  display: block;
  padding-right: 16px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.flow-step strong {
  display: block;
  margin-top: 34px;
  color: #f4f4ed;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: uppercase;
}

.workflow-key {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-inline: clamp(28px, 4vw, 52px);
  padding: 18px 0;
  border-block: 1px solid rgba(255, 255, 255, .28);
  color: #f4f4ed;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.key-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}

.key-agent {
  color: var(--accent-light);
}

.key-auto {
  color: var(--thermal-light);
}

.key-human {
  color: var(--paper);
}

.workflow-description {
  max-width: 72ch;
  margin: 0;
  padding: 26px clamp(28px, 4vw, 52px) clamp(30px, 4vw, 46px);
  color: #f4f4ed;
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

.claim-note {
  position: relative;
  margin-top: 30px !important;
  padding: 17px 20px 17px 46px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--paper-deep);
  color: var(--muted) !important;
  font-family: var(--mono);
  font-size: 10px !important;
  line-height: 1.7 !important;
}

.claim-note::before {
  content: "i";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: 1px 0 0 -28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  line-height: 14px;
  text-align: center;
}

.final-cta {
  padding: clamp(80px, 9vw, 130px) 0;
  background: var(--paper-deep);
}

.final-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  max-width: 940px;
}

.final-inner::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  height: 66px;
  border: 1px solid #c9c9c1;
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 16px 45px rgba(23, 23, 19, .07);
}

.final-cta .kicker,
.final-cta h2 {
  grid-column: 1 / -1;
  text-align: center;
}

.final-cta .kicker {
  margin-bottom: 18px;
}

.final-cta h2 {
  max-width: 860px;
  margin-inline: auto;
}

.final-cta p {
  position: relative;
  z-index: 1;
  margin: 34px 0 0;
  padding: 0 20px;
  color: #74746c;
  font-size: 15px;
  line-height: 1.45;
}

.btn {
  position: relative;
  z-index: 1;
  min-height: 44px;
  margin: 44px 10px 11px 0;
  white-space: nowrap;
}

footer {
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}

.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--accent);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 900px) {
  :root {
    --gutter: clamp(20px, 4vw, 36px);
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .case-hero {
    padding-top: 150px;
  }

  .case-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-label {
    position: static;
    padding-top: 0;
  }

  .section-body {
    max-width: 720px;
    padding-left: 0;
  }

  .workflow-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .workflow-head p {
    max-width: 600px;
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    display: grid;
    grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 84px;
    padding: 16px 16px 16px 36px;
  }

  .metric::before {
    top: 25px;
    left: 15px;
  }

  .metric + .metric {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .metric span {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .nav {
    top: 8px;
    min-height: 50px;
    padding-left: 13px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .case-hero {
    padding-top: 112px;
    padding-bottom: 88px;
  }

  h1 {
    font-size: clamp(43px, 12vw, 60px);
    overflow-wrap: break-word;
  }

  .standfirst {
    margin-top: 26px;
  }

  .case-section {
    padding: 88px 0;
  }

  h2,
  .workflow-head h2 {
    font-size: clamp(34px, 9.5vw, 44px);
  }

  .section-body > p {
    font-size: 17px;
  }

  .build-list li,
  .outcome-list li {
    padding-right: 0;
    padding-left: 38px;
  }

  .workflow-section {
    padding: 14px 0;
  }

  .workflow-section .wrap {
    width: calc(100% - 16px);
  }

  .workflow-head {
    padding: 26px 20px;
  }

  .flow {
    padding: 32px 20px 24px;
    scroll-padding-inline: 20px;
  }

  .flow-step {
    flex-basis: 152px;
    width: 152px;
  }

  .workflow-key {
    margin-inline: 20px;
  }

  .workflow-description {
    padding: 23px 20px 28px;
  }

  .final-inner {
    grid-template-columns: 1fr;
  }

  .final-inner::after {
    height: 148px;
  }

  .final-cta p {
    grid-column: 1;
    margin-top: 34px;
    padding: 16px 16px 8px;
  }

  .btn {
    grid-column: 1;
    width: calc(100% - 32px);
    margin: 8px 16px 16px;
  }

  .foot {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (min-width: 1800px) {
  :root {
    --max: 1440px;
  }
}

@media (min-width: 3000px) {
  :root {
    --max: 2000px;
    --gutter: 120px;
  }

  h1 {
    max-width: 1500px;
    font-size: 108px;
  }

  .section-body {
    max-width: 820px;
  }

  h2 {
    max-width: 920px;
    font-size: 76px;
  }

  .flow-step {
    flex-basis: 184px;
    width: 184px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
