@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2-variations"), url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #EEF1F3;
  --paper-2: #E3E8EB;
  --ink: #16202C;
  --slate: #55606D;
  --rule: #C7CED4;
  --hi: #F2DF3F;

  --measure: 38rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --margin-col: 15rem;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-4: clamp(2.6rem, 7.2vw, 5.4rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--hi); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

h1, h2, h3 { margin: 0; font-stretch: 125%; line-height: 1.1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-stretch: 125%; font-size: 1.15rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.mark { width: 1.35rem; height: 1.35rem; fill: var(--ink); }
.site-header ul { display: flex; gap: clamp(0.75rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; font-size: 0.98rem; }
.site-header nav a:hover { text-decoration: underline; }
.nav-cta { font-weight: 650; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4rem, 12vw, 9rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
  max-width: 76rem;
}
.hero h1 {
  font-size: var(--step-4);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 15ch;
  text-wrap: balance;
}
.redact { position: relative; display: inline; }
.redact::after {
  content: "";
  position: absolute; left: -0.06em; right: -0.06em; top: 0.08em; bottom: 0.02em;
  background: var(--ink);
  transform-origin: right center;
  animation: declassify 0.7s cubic-bezier(.7,0,.2,1) forwards;
  animation-delay: 0.45s;
}
.redact:nth-child(2)::after { animation-delay: 0.77s; }
.redact:nth-child(3)::after { animation-delay: 1.09s; }
@keyframes declassify { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .redact::after { display: none; } }

.lede {
  max-width: var(--measure);
  margin: 2rem 0 0;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero-meta { margin: 1.5rem 0 0; color: var(--slate); font-size: var(--step--1); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  border: 2px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.button:hover { background: var(--paper-2); text-decoration: none; }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--hi); color: var(--ink); }
.button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Sections with marginalia ---------- */
.block {
  display: grid;
  grid-template-columns: var(--margin-col) minmax(0, 1fr);
  gap: 2rem var(--gutter);
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  border-top: 1px solid var(--rule);
}
.block > h2 {
  font-size: var(--step-1);
  font-weight: 750;
  letter-spacing: -0.01em;
  padding-top: 0.2rem;
  position: sticky; top: 5.5rem; align-self: start;
}
.block-body { max-width: 46rem; }
.intro { margin: 0 0 2.25rem; font-size: var(--step-1); line-height: 1.45; max-width: var(--measure); }

/* Services */
.services { margin: 0; }
.service {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.5rem 2rem;
  padding: 1.6rem 0; border-top: 1px solid var(--rule);
}
.service:last-child { border-bottom: 1px solid var(--rule); }
.service dt { font-weight: 720; font-stretch: 112%; font-size: 1.15rem; line-height: 1.25; }
.service dd { margin: 0; }
.service dd p { margin: 0; max-width: var(--measure); }
.deliverable { margin-top: 0.7rem !important; color: var(--slate); }
.deliverable span { color: var(--ink); font-weight: 650; }

/* Process: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 1rem;
  padding: 0 0 2rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-stretch: 125%; font-weight: 820; font-size: 2.2rem; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 0.75rem; top: 2.8rem; bottom: 0.6rem;
  border-left: 2px solid var(--rule);
}
.steps h3 { font-size: 1.15rem; font-weight: 720; font-stretch: 112%; padding-top: 0.35rem; }
.steps p { margin: 0.4rem 0 0; max-width: var(--measure); }

/* Background */
.facts, .certs { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 0.9rem 0 0.9rem 1.6rem; border-top: 1px solid var(--rule); position: relative; max-width: var(--measure); }
.facts li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 0.7rem; height: 0.3rem; background: var(--ink); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.sub { font-size: 1.15rem; font-weight: 720; font-stretch: 112%; margin: 2.5rem 0 1rem; }
.certs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.certs li { border: 2px solid var(--ink); padding: 0.35rem 0.8rem; font-weight: 600; font-size: 0.98rem; }

.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.badges li { display: flex; flex-direction: column; gap: 0.5rem; }
.verify { font-size: var(--step--1); }
.credly { display: block; width: 150px; height: 270px; border: 0; background: transparent; }

/* Things Travis still needs to fill in */
.placeholder { background: var(--hi) !important; outline: 2px dashed var(--ink); outline-offset: -2px; }
.facts li.placeholder::before { display: none; }
.facts li.placeholder { padding-left: 0.8rem; }

/* Contact */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; max-width: 42rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.wide { grid-column: 1 / -1; }
label { font-weight: 620; font-size: 0.98rem; }
.opt { font-weight: 400; color: var(--slate); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--slate); border-radius: 0;
  padding: 0.7rem 0.8rem; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: #A3271D; border-width: 2px; }
textarea { resize: vertical; min-height: 8rem; }
.hint { margin: 0.2rem 0 0; font-size: var(--step--1); color: var(--slate); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.status { margin: 0; font-size: 0.98rem; }
.status.error { color: #A3271D; font-weight: 600; }

.direct { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: grid; gap: 0.5rem; }
.direct p { margin: 0; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; }
.k { color: var(--slate); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding: 2rem var(--gutter); border-top: 1px solid var(--rule);
  color: var(--slate); font-size: var(--step--1);
}
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .block { grid-template-columns: 1fr; }
  .block > h2 { position: static; font-size: var(--step-2); }
  .service { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { width: 100%; }
  .site-header ul { justify-content: space-between; }
  .form { grid-template-columns: 1fr; }
  .direct p { grid-template-columns: 1fr; gap: 0; }
}
