:root {
  --bg: #fafaf8;
  --ink: #1c2024;
  --muted: #57606b;
  --pipe: #1c2024;
  --blue: #73bbde;
  --blue-deep: #2b6a8d;
  --coral: #de7385;
  --coral-deep: #a8435a;
  --gold: #d9c25c;
  --gold-deep: #7d6d1f;
  --bore: 10px;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.mark {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.state {
  font-size: 0.9375rem;
  font-weight: 500;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
}

/* Opening */
.opening {
  padding-top: clamp(32px, 7vw, 88px);
  padding-bottom: clamp(48px, 8vw, 104px);
}

h1 {
  margin: 0;
  max-width: 17ch;
  font-weight: 900;
  font-size: clamp(2.25rem, 6.2vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lede {
  margin: 28px 0 0;
  max-width: 46ch;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  color: var(--muted);
}

/* Manifold: one supply pipe, three outlets */
.manifold {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(24px, 4vw, 56px);
}

.supply {
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  right: 0;
  height: var(--bore);
  background: var(--pipe);
  border-radius: 0 5px 5px 0;
  transform-origin: left center;
  animation: fill-x 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.pillar {
  position: relative;
  padding-top: 104px;
  padding-bottom: 8px;
}

/* tee fitting on the supply */
.tee {
  position: absolute;
  top: -5px;
  left: 0;
  width: 34px;
  height: 20px;
  border-radius: 4px;
  background: var(--pipe);
}

/* the drop */
.drop {
  position: absolute;
  top: var(--bore);
  left: 12px;
  width: var(--bore);
  height: 52px;
  background: var(--c);
  transform-origin: center top;
  animation: fill-y 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: var(--d);
}

/* open end of the outlet */
.outlet {
  position: absolute;
  top: 60px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 8px solid var(--c);
  background: var(--bg);
  animation: appear 0.3s ease both;
  animation-delay: calc(var(--d) + 0.4s);
}

.customers   { --c: var(--blue);  --cd: var(--blue-deep);  --d: 0.45s; }
.engineers   { --c: var(--coral); --cd: var(--coral-deep); --d: 0.65s; }
.apprentices { --c: var(--gold);  --cd: var(--gold-deep);  --d: 0.85s; }

.pillar h2 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cd);
}

.claim {
  margin: 0 0 22px;
  font-weight: 900;
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.pillar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pillar li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  max-width: 38ch;
}

.pillar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}

/* Lower sections */
.lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(64px, 9vw, 120px);
}

.lower h2,
.name h2 {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.lower p {
  margin: 0 0 14px;
  max-width: 52ch;
}

.lower p:last-child { margin-bottom: 0; }

.dated {
  color: var(--muted);
  font-weight: 500;
}

/* The name: a closed circuit */
.name {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.circuit {
  position: relative;
  margin-top: 44px;
  border: var(--bore) solid var(--pipe);
  border-radius: 44px;
  padding: 52px clamp(20px, 5vw, 64px) 44px;
}

.circuit ol {
  position: absolute;
  top: 0;
  left: clamp(16px, 4vw, 56px);
  right: clamp(16px, 4vw, 56px);
  transform: translateY(calc(-50% - var(--bore) / 2));
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.circuit li {
  background: var(--bg);
  padding: 0 clamp(6px, 1.6vw, 20px);
  font-weight: 900;
  font-size: clamp(1.125rem, 3.4vw, 2.25rem);
  letter-spacing: -0.01em;
  line-height: 1;
}

.circuit p {
  margin: 0;
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
}

/* Footer */
footer {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
  padding-bottom: 48px;
  font-size: 0.875rem;
  color: var(--muted);
}

footer p { margin: 0 0 6px; max-width: 80ch; }

@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes appear { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

/* Narrow screens: the supply runs down the left, outlets branch right */
@media (max-width: 860px) {
  .manifold {
    grid-template-columns: 1fr;
    padding-left: 46px;
    row-gap: 44px;
  }

  .supply {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: var(--bore);
    height: auto;
    border-radius: 0 0 5px 5px;
    transform-origin: center top;
    animation-name: fill-y;
  }

  .pillar { padding-top: 0; padding-bottom: 0; }

  .tee {
    top: 0;
    left: -51px;
    width: 20px;
    height: 34px;
  }

  .drop {
    top: 12px;
    left: -36px;
    width: 22px;
    height: var(--bore);
    transform-origin: left center;
    animation-name: fill-x;
  }

  .outlet {
    top: 5px;
    left: -18px;
    width: 24px;
    height: 24px;
    border-width: 7px;
  }

  .pillar h2 { padding-left: 14px; }

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

  .circuit { border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .supply, .drop, .outlet { animation: none; }
}

/* Header mark links home */
a.mark { color: inherit; text-decoration: none; }
a.mark:focus-visible, .more:focus-visible, .others a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* Link from a pillar to its problem page */
.more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--cd);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.more:hover { color: var(--ink); }

/* ---- Problem pages ---- */
.problem { --d: 0.2s; }

.problem .opening { padding-bottom: clamp(40px, 6vw, 72px); }

.which {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-weight: 700;
  color: var(--cd);
}

.which::before {
  content: '';
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 7px solid var(--c);
}

.problem h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 5.2vw, 3.75rem);
}

/* One pipe down the page; each section branches off it */
.run {
  position: relative;
  padding-left: 46px;
}

.run::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--bore);
  border-radius: 5px;
  background: var(--c);
  transform-origin: center top;
  animation: fill-y 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.joint {
  position: relative;
  padding-bottom: clamp(40px, 6vw, 64px);
}

.joint:last-child { padding-bottom: 8px; }

.joint::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -36px;
  width: 22px;
  height: var(--bore);
  background: var(--c);
}

.joint h2 {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.joint p, .joint li { max-width: 62ch; }
.joint p { margin: 0 0 14px; }
.joint p:last-child { margin-bottom: 0; }

.joint ul { margin: 0 0 14px; padding-left: 20px; }
.joint li { margin-bottom: 8px; }
.joint li::marker { color: var(--c); }

.counts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px clamp(24px, 4vw, 48px);
  margin: 6px 0 22px;
  padding: 0;
  list-style: none;
  max-width: 880px;
}

.joint .counts { padding-left: 0; }

.counts li { margin: 0; max-width: none; }

.counts b {
  display: block;
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cd);
}

.counts span { display: block; margin-top: 6px; max-width: 30ch; }

.said { color: var(--muted); }

.quiet h2 { font-size: 1.125rem; }
.quiet { font-size: 0.9375rem; color: var(--muted); }

.others {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(48px, 7vw, 88px);
  font-weight: 700;
}

.others a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .more { margin-left: 0; }
  .run { padding-left: 38px; }
  .joint::before { left: -28px; width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .run::before { animation: none; }
}

/* ---- Launch page: a numbered sequence on a neutral pipe ---- */
.launch { --c: var(--ink); --cd: var(--ink); }

.steps .run { counter-reset: step; }

.steps .joint.step::before {
  counter-increment: step;
  content: counter(step);
  top: -4px;
  left: -60px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 1.125rem;
  display: grid;
  place-items: center;
}

.steps .joint.step h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 4px; }

.sub { font-weight: 700; }

.joint a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.lower .more { margin-top: 0; color: var(--ink); }

@media (max-width: 860px) {
  .steps .joint.step::before { left: -52px; width: 38px; }
}

footer a { color: inherit; }

/* ---- Call-to-action band ---- */
.band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px 56px;
  margin-top: clamp(56px, 8vw, 104px);
  padding: clamp(28px, 5vw, 60px);
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
}

.band h2 {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: clamp(1.875rem, 4.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.band p { margin: 0; max-width: 54ch; color: #d3d8de; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  font-size: 1.125rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover { background: #fff; }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---- Form ---- */
.tell { max-width: 760px; }

.tell fieldset { border: 0; margin: 0 0 32px; padding: 0; }

.tell legend, .tell label, .tell h2 { font-weight: 700; }
.tell legend { padding: 0; margin-bottom: 12px; }

.tell h2 {
  margin: 44px 0 6px;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.choices { display: flex; flex-wrap: wrap; gap: 12px; }

.choice input { position: absolute; opacity: 0; }

.choice span {
  display: block;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
}

.choice input:checked + span { background: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--blue-deep); outline-offset: 3px; }

.field { margin-bottom: 28px; }
.field label { display: block; }

.hint { margin: 4px 0 10px; color: var(--muted); font-size: 0.9375rem; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.9375rem; margin-left: 6px; }

.tell input[type="text"], .tell input[type="email"], .tell textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.tell .hint + input, .tell .hint + textarea { margin-top: 0; }
.tell textarea { min-height: 220px; resize: vertical; line-height: 1.5; }

.tell input:focus-visible, .tell textarea:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 2px;
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: end; }

.tick { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; }
.tick input { width: 22px; height: 22px; accent-color: var(--ink); }

.trap { position: absolute; left: -9999px; }

.send { margin-top: 36px; padding: 18px 44px; font-size: 1.25rem; }

.err {
  margin: 0 0 28px;
  border: 2px solid var(--coral-deep);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--coral-deep);
  font-weight: 700;
}

.after { max-width: 760px; padding-top: clamp(48px, 7vw, 80px); color: var(--muted); }
.after h2 { margin: 0 0 12px; color: var(--ink); font-weight: 900; font-size: 1.25rem; }
.after ul { margin: 0 0 14px; padding-left: 20px; }
.after li { margin-bottom: 6px; }
.after p { margin: 0; }

@media (max-width: 860px) {
  .band { grid-template-columns: 1fr; align-items: start; border-radius: 22px; }
  .pair { grid-template-columns: 1fr; }
}
