:root {
  --paper: #eef1f2;
  --ink: #292a28;
  --muted: #74746e;
  --hairline: rgba(41, 42, 40, 0.16);
  --blue: #155f98;
  --blue-deep: #124f7d;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(86.2%, 1600px);
  margin: 0 auto;
  padding: clamp(20px, 2.3vw, 42px) 0 0;
}

.masthead h1 {
  margin: 0;
  font-size: clamp(5.4rem, 9.25vw, 10.55rem);
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 0.82;
}

.masthead h1 span { display: block; }
.masthead h1 span + span { margin-top: 0.16em; }

.process {
  margin-top: clamp(62px, 5.2vw, 92px);
}

.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: clamp(350px, 35vh, 410px);
}

.stage {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  margin: 0;
  padding: 0 clamp(18px, 2.4vw, 38px) 18px;
}

.stage + .stage { border-left: 1px solid var(--hairline); }

.field {
  position: relative;
  width: 100%;
  min-height: 285px;
  overflow: hidden;
}

.field::before,
.field::after {
  content: "";
  position: absolute;
  z-index: 0;
  background: rgba(41, 42, 40, 0.11);
  pointer-events: none;
}

.field::before {
  top: 7%;
  bottom: 7%;
  left: 50%;
  width: 1px;
}

.field::after {
  left: 7%;
  right: 7%;
  top: 50%;
  height: 1px;
}

.dot {
  position: absolute;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--dot-color, var(--ink));
  opacity: var(--opacity, 1);
  z-index: 1;
}

.stage-data .field { filter: contrast(1.04); }
.stage-signal .field { width: 88%; margin-inline: auto; }
.stage-insight .field { width: 88%; margin-inline: auto; }

.action-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(36px, 3.5vw, 58px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(18, 79, 125, 0.12);
}

figcaption {
  padding-top: 12px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.86rem, 1.05vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: lowercase;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  width: min(92.6%, 1710px);
  margin: 0 auto;
  padding: 30px 0 26px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.68rem, 0.8vw, 0.86rem);
  letter-spacing: 0.1em;
  line-height: 1.55;
}

footer p { margin: 0; }
.footer-name { color: var(--ink); font-weight: 650; }
footer a { color: inherit; text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; text-underline-offset: 0.2em; }
.footer-email { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  main, footer { width: min(100% - 36px, 1440px); }
  main { padding-top: 34px; }
  .masthead h1 { font-size: clamp(4rem, 20.5vw, 7.4rem); line-height: 0.8; }
  .process { margin-top: 58px; }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .stage { min-height: 248px; padding: 0 20px 18px; }
  .stage:nth-child(3) { border-left: 0; }
  .stage:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .field { min-height: 180px; }
  footer { align-items: flex-start; flex-direction: column; gap: 18px; padding-bottom: 28px; }
}

@media (max-width: 420px) {
  .masthead h1 { font-size: 20.5vw; }
  .stage { padding-inline: 15px; }
}

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