:root {
  color-scheme: light;
  /* Core colors from Brand/brand.json. */
  --ink: #233745;
  --muted: #657a7e;
  --paper: #ffffff;
  --reverse: var(--paper);
  --dark: var(--ink);
  --teal: #4a7f79;
  --copper: #b98766;
  --line: #d8e3e3;
  --dark-line: #54707b;
  --reverse-muted: #dde6e8;
  --teal-surface: #f1f6f5;
  --teal-line: #9eb7b4;
  --teal-text: #3e6c68;
  --copper-light: #e3c8b6;
  --copper-ink: #15242d;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --page: 80rem;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
p, ul, ol, h1, h2, h3, dl, dd { margin: 0; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.025em; }

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

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 7vw, 6.75rem); }

.skip {
  position: absolute;
  z-index: 2;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-200%);
}

.skip:focus { transform: none; }

.site-header, .hero, .contact {
  color: var(--reverse);
  background: var(--dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  min-height: 5.25rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--dark-line);
}

.wordmark { display: block; max-width: 100%; }

.wordmark img {
  display: block;
  width: clamp(15rem, 22vw, 18rem);
  max-width: 100%;
  height: auto;
}

nav { display: flex; gap: clamp(0.85rem, 2.4vw, 2rem); align-items: center; }
nav a { font-size: 0.9rem; text-decoration: none; padding-block: 0.45rem; }
nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.nav-contact { color: var(--copper-light); font-weight: 700; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 5.3vw, 5.5rem);
  padding-block: clamp(2.5rem, 5vw, 5.5rem);
}

.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 1.5rem;
  height: 2px;
  flex: none;
  background: currentColor;
}

.hero .eyebrow { color: var(--copper-light); }
.hero .eyebrow span { background: var(--copper); }

h1 {
  font-size: clamp(2.75rem, 5.15vw, 4.85rem);
  line-height: 0.99;
  letter-spacing: -0.06em;
}

h1 span { display: block; font-size: 0.86em; }

.hero-intro {
  max-width: 34rem;
  color: var(--reverse-muted);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.workflow-demo {
  --workflow-cycle: 9.5s;
  --workflow-row-width: calc(100% - 2rem);
  margin: 0;
  min-width: 0;
  color: var(--ink);
  border: 1px solid var(--teal-line);
  background: var(--paper);
}

.workflow-demo-phase {
  display: grid;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.35rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.83rem;
  font-weight: 700;
}

.workflow-demo-phase span { grid-area: 1 / 1; }

.workflow-board {
  position: relative;
  height: clamp(16rem, 25vw, 19rem);
  overflow: hidden;
  background: repeating-linear-gradient(#faf9f5 0 23px, #e9e7df 23px 24px);
}

.workflow-step {
  position: absolute;
  z-index: 1;
  top: var(--ordered-top);
  left: 50%;
  display: grid;
  width: var(--workflow-row-width);
  height: 2.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.workflow-intake  { --ordered-top: 10%; --note-top: 15%; --note-left: 30%; --note-tilt: -8deg; --run-at: 3s; }
.workflow-capture { --ordered-top: 30%; --note-top: 29%; --note-left: 72%; --note-tilt: 7deg; --run-at: 3.8s; }
.workflow-assign  { --ordered-top: 50%; --note-top: 49%; --note-left: 33%; --note-tilt: -4deg; --run-at: 4.6s; }
.workflow-review  { --ordered-top: 70%; --note-top: 63%; --note-left: 70%; --note-tilt: 5deg; --run-at: 5.4s; }
.workflow-confirm { --ordered-top: 90%; --note-top: 84%; --note-left: 38%; --note-tilt: -6deg; --run-at: 6.45s; }

.workflow-action, .workflow-note {
  grid-area: 1 / 1;
  min-width: 0;
}

.workflow-action {
  --step-highlight: #eff1f2;
  display: grid;
  grid-template-columns: 1.05rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.5rem;
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  font-weight: 650;
  white-space: nowrap;
}

.workflow-index, .workflow-owner { color: var(--muted); font-size: 0.69rem; }
.workflow-index { font-variant-numeric: tabular-nums; }
.workflow-automated .workflow-action { --step-highlight: #e1eeec; }
.workflow-automated .workflow-owner { color: var(--teal-text); }
.workflow-human .workflow-action { --step-highlight: #f2e5db; }
.workflow-human .workflow-owner { color: #754828; }

.workflow-note, .workflow-rough-title {
  opacity: 0;
}

.workflow-note {
  place-self: center;
  font-family: "Bradley Hand", "Segoe Print", cursive;
  font-size: clamp(0.96rem, 2.1vw, 1.16rem);
  font-weight: 700;
  white-space: nowrap;
}

.workflow-track, .workflow-scribble { position: absolute; }

.workflow-track {
  inset: 10% auto 10% 2rem;
  width: 1px;
  background: var(--teal-line);
}

.workflow-scribble {
  width: 33%;
  height: 24%;
  border: 2px dashed var(--muted);
  border-top: 0;
  border-left: 0;
  border-radius: 12% 55% 34% 48%;
  opacity: 0;
}

.workflow-scribble-first { top: 13%; left: 41%; transform: rotate(-18deg); }
.workflow-scribble-second { top: 55%; left: 40%; transform: rotate(27deg); }

@media (prefers-reduced-motion: no-preference) {
  .workflow-step {
    animation: workflow-arrange var(--workflow-cycle) ease-in-out infinite;
  }

  :is(.workflow-note, .workflow-scribble, .workflow-rough-title) {
    animation: workflow-show-notes var(--workflow-cycle) linear infinite;
  }

  :is(.workflow-order-title, .workflow-track) {
    animation: workflow-show-order var(--workflow-cycle) linear infinite;
  }

  .workflow-action {
    animation:
      workflow-show-order var(--workflow-cycle) linear infinite,
      workflow-run-step var(--workflow-cycle) linear var(--run-at) infinite;
  }
}

@keyframes workflow-arrange {
  0%, 20%, 96.01%, 100% {
    top: var(--note-top);
    left: var(--note-left);
    width: min(48%, 10.25rem);
    border-color: var(--copper);
    background: #f8eddf;
    transform: translate(-50%, -50%) rotate(var(--note-tilt));
  }
  31%, 96% {
    top: var(--ordered-top);
    left: 50%;
    width: var(--workflow-row-width);
    border-color: var(--line);
    background: var(--paper);
    transform: translate(-50%, -50%);
  }
  0%, 91%, 100% { opacity: 1; }
  96%, 96.01% { opacity: 0; }
}

@keyframes workflow-show-notes {
  0%, 20%, 100% { opacity: 1; }
  25%, 96% { opacity: 0; }
}

@keyframes workflow-show-order {
  0%, 24%, 96%, 100% { opacity: 0; }
  31%, 91% { opacity: 1; }
}

@keyframes workflow-run-step {
  0%, 8%, 100% { background: transparent; }
  2%, 6% { background: var(--step-highlight); }
}

.button {
  display: inline-flex;
  gap: 1.35rem;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0.75rem 1.05rem;
  background: var(--copper);
  color: var(--copper-ink);
  border: 0;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
}

.button:hover { background: var(--copper-light); }
.button:disabled { opacity: 0.65; }
.site-header a:focus-visible, .hero a:focus-visible, .contact :focus-visible {
  outline-color: var(--copper-light);
}

.example-list, .process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3.5vw, 3.5rem);
  padding: 0;
  margin-top: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none;
}

.example-list li, .process-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.example-list p, .process-list p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.walkthrough { background: var(--teal-surface); }

.walkthrough-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5.5vw, 6rem);
  align-items: center;
}

.walkthrough .eyebrow { color: var(--teal-text); margin-bottom: 1rem; }
.walkthrough .eyebrow span { background: var(--teal); }
.walkthrough h2 + p { margin-top: 1rem; max-width: 38rem; }
.workflow-record { background: var(--paper); border: 1px solid var(--teal-line); }
.packet-header { padding: 1.15rem 1.35rem; border-bottom: 1px solid var(--line); }

.packet-label {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.packet-list { padding-inline: 1.35rem; }
.packet-list div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 0.4rem;
  padding-block: 0.72rem;
  font-size: 0.9rem;
}
.packet-list div + div { border-top: 1px solid var(--line); }
.packet-list dt { color: var(--muted); }
.packet-list dd { font-weight: 650; }

.pending { display: flex; align-items: baseline; gap: 0.42rem; }
.pending span { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--copper); }

.process-list { counter-reset: process; }
.process-list li { counter-increment: process; }
.process-list li::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  color: var(--teal-text);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 5rem);
  padding-block: clamp(2.75rem, 5.5vw, 5rem);
}

.contact-inner > div p { margin-top: 0.8rem; max-width: 35rem; color: var(--reverse-muted); }
.contact-form, .contact-form label { display: grid; gap: 0.5rem; }
.contact-form { gap: 1rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-form label { min-width: 0; font-size: 0.92rem; font-weight: 650; }

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--dark-line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.contact-form textarea { resize: vertical; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1rem; }
.contact-actions p, .contact-use { color: var(--reverse-muted); font-size: 0.84rem; }
#contact-verification:empty { display: none; }
.site-footer { background: var(--paper); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 740px) {
  .hero-grid, .walkthrough-grid, .contact-inner { grid-template-columns: 1fr; }
  .hero-copy { gap: 1.1rem; }
  h1 { max-width: 34rem; }
  .example-list, .process-list { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  nav { flex-wrap: wrap; }
  h1 { font-size: clamp(2.375rem, 11.5vw, 2.75rem); }
  .contact-fields { grid-template-columns: 1fr; }
}
