:root {
  --color-ink: #1e1e1e;
  --color-blue: #1971c2;
  --color-green: #199e27;
  --color-red: #e03131;
  --color-blue-tint: #a5d8ff;
  --color-green-tint: #b2f2bb;
  --color-paper: #ffffff;
  --font-hand: "Excalifont", cursive;
  --font-label: "Comic Shanns", monospace;
  --font-brand: "Nunito", sans-serif;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-label);
  line-height: 1.5;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 16px 0;
  background: var(--color-paper);
}

.section-arrow {
  display: block;
  width: 40px;
  height: auto;
  margin: 0 0 -8px;
}

.section-arrow path {
  fill: none;
  stroke: var(--color-red);
  stroke-width: 2;
  stroke-linecap: round;
}

.section-arrow--dotted path {
  stroke-dasharray: 2 5;
}

.nav__list {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 8px 20px;
  border: 1.5px solid var(--color-ink);
  border-radius: 10px;
}

.nav__link {
  color: var(--color-ink);
  text-decoration: none;
  font-family: var(--font-label);
}

.nav__link.is-active {
  color: var(--color-red);
}

.section {
  padding: 64px 0;
}

.section--hero {
  text-align: center;
}

.eyebrow {
  font-family: var(--font-label);
  margin-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand__wordmark {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--color-blue);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin: 0;
}

.brand-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-bar {
  width: 90px;
  height: 14px;
  border-radius: 4px;
}

.brand-bar--ink { background: var(--color-ink); }
.brand-bar--blue { background: var(--color-blue); }
.brand-bar--green { background: var(--color-green); }
.brand-bar--red { background: var(--color-red); }

.tagline {
  font-family: var(--font-label);
  max-width: 46ch;
  margin: 32px auto;
}

.chart-frame {
  margin: 56px 0 0;
}

.chart {
  width: 100%;
  height: auto;
}

.corner, .axis {
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 2;
}

.axis-label {
  font-family: var(--font-hand);
  font-size: 18px;
  fill: var(--color-ink);
}

.curve {
  fill: none;
  stroke-width: 2.5;
}

.curve--ink { stroke: var(--color-ink); }
.curve--muted { stroke: #adb5bd; }
.curve--blue { stroke: var(--color-blue); }

.contact-dot {
  fill: var(--color-ink);
}

.contact-arrow {
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 1.5;
}

.hand-label {
  font-family: var(--font-hand);
  font-size: 16px;
}

.hand-label--blue { fill: var(--color-blue); }

.chart-caption {
  font-family: var(--font-hand);
  margin: 8px 0 0;
}

.section-heading {
  font-family: var(--font-label);
  font-size: 1.5rem;
  margin-bottom: 32px;
}

.section-heading--red {
  color: var(--color-red);
}

.process-diagram {
  position: relative;
  padding-left: 48px;
}

.process-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connector {
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 2;
}

.timeline-label {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-hand);
}

.cycles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cycle {
  border: 1.5px dashed var(--color-ink);
  border-radius: 12px;
  padding: 20px;
  max-width: 260px;
  text-align: center;
}

.cycle--first {
  border-color: var(--color-blue);
  background: color-mix(in srgb, var(--color-blue-tint) 40%, transparent);
}

.cycle--recurring {
  border-color: var(--color-green);
  background: color-mix(in srgb, var(--color-green-tint) 40%, transparent);
}

.cycle__contact {
  font-family: var(--font-label);
  color: var(--color-blue);
  margin: 0 0 8px;
}

.cycle__step {
  font-family: var(--font-label);
  margin: 4px 0;
}

.cycle__hand {
  font-family: var(--font-hand);
  margin: 4px 0;
}

.cycle__hand--muted {
  color: #adb5bd;
}

.cycle__output {
  font-family: var(--font-label);
  font-weight: bold;
  margin: 8px 0;
}

.cycle__output--blue { color: var(--color-blue); }
.cycle__output--green { color: var(--color-green); }

.cycles__ellipsis {
  text-align: center;
  color: #868e96;
}

.annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.annotation, .legend {
  position: absolute;
  max-width: 180px;
  margin: 0;
}

.annotation {
  font-family: var(--font-hand);
  color: var(--color-ink);
}

.annotation--free {
  left: 63%;
  top: 8%;
}

.annotation--guarantee {
  left: 62%;
  top: 26%;
  max-width: 120px;
}

.legend {
  font-family: var(--font-label);
  font-weight: bold;
}

.legend--blue {
  left: 84%;
  top: 5%;
}

.legend--green {
  left: 84%;
  top: 31%;
}

.legend--blue { color: var(--color-blue); }
.legend--green { color: var(--color-green); }

.section--career, .section--contact {
  text-align: center;
  border-top: 1px solid #dee2e6;
}

.mail-link {
  color: var(--color-ink);
  font-family: var(--font-label);
}

.closing {
  padding: 64px 0;
  text-align: right;
  border-top: 1px solid #dee2e6;
}

.closing__tagline {
  font-family: var(--font-hand);
  color: var(--color-ink);
}

.closing__figure {
  margin: 24px 0 0;
}

.closing__image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.closing__caption {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  color: #868e96;
  margin-top: 8px;
}

@media (max-width: 640px) {
  :root {
    --max-width: 100%;
  }

  main {
    padding: 0 16px;
  }

  .nav__list {
    gap: 12px;
    padding: 8px 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 40px 0;
  }

  .brand {
    flex-direction: column;
    gap: 12px;
  }

  .brand-bar {
    width: 70vw;
    max-width: 220px;
  }

  .cycle {
    max-width: 100%;
  }

  .process-diagram {
    padding-left: 28px;
  }

  .process-connectors {
    display: none;
  }

  .annotations {
    position: static;
    margin-top: 24px;
  }

  .annotation, .legend {
    position: static;
    max-width: 100%;
  }

  .closing {
    text-align: left;
  }
}

.draw-in {
  transition: stroke-dashoffset 1.2s ease-out;
}

.revealed .draw-in {
  stroke-dashoffset: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .draw-in {
    transition: none;
  }
}
