:root {
  --paper: #f3eee6;
  --paper-2: #ebe4d8;
  --ink: #1c1917;
  --ink-soft: #4f4944;
  --line: #d6cdc0;
  --fox: #e24a1b;
  --fox-deep: #c03d16;
  --fox-soft: #fde8e0;
  --header: rgba(243, 238, 230, 0.88);
  --shadow: 0 18px 40px rgba(28, 25, 23, 0.08);
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --wide: 1120px;
  --radius: 1.15rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 1px 1px, rgba(28, 25, 23, 0.035) 1px, transparent 0) 0 0 / 18px 18px,
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.7em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  max-width: 18ch;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45em;
}

p {
  margin: 0 0 1rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: var(--header);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner,
.site-footer__inner,
.hero,
.section,
.error-page {
  width: min(var(--wide), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  min-height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.brand__logo {
  height: 2.15rem;
  width: auto;
  max-width: min(13.5rem, 58vw);
}

.nav {
  display: flex;
  gap: 1rem;
  order: 3;
  width: 100%;
  margin: 0;
  padding-bottom: 0.65rem;
  font-size: 0.92rem;
  font-weight: 550;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--fox);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fox);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid var(--fox);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--fox-deep);
}

.button--small {
  padding: 0.5rem 0.95rem;
  font-size: 0.92rem;
  margin-left: auto;
}

.button--large {
  font-size: 1.15rem;
  padding: 0.95rem 1.4rem;
}

.text-link {
  font-weight: 650;
  color: var(--fox-deep);
}

.hero {
  padding: clamp(3.5rem, 10vw, 7.5rem) 0 clamp(4rem, 9vw, 7rem);
  position: relative;
}

.hero::after {
  content: "{  }";
  position: absolute;
  right: -0.2em;
  top: 12%;
  font-family: var(--serif);
  font-size: clamp(8rem, 16vw, 13rem);
  color: rgba(226, 74, 27, 0.09);
  pointer-events: none;
  letter-spacing: 0.18em;
  line-height: 0.8;
}

.eyebrow {
  color: var(--fox);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.lede {
  max-width: 42rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.6rem;
  margin-top: 2rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  scroll-margin-top: 4.75rem;
}

.section--alt {
  background: var(--paper-2);
  width: 100%;
  padding-inline: var(--space);
}

.section--alt .section__intro,
.section--alt .capability-list,
.section--alt .about-grid {
  width: min(var(--wide), 100%);
  margin-inline: auto;
}

.section__intro {
  margin-bottom: 2.4rem;
  max-width: 40rem;
}

.section__intro p,
.about-copy p {
  color: var(--ink-soft);
}

.work-grid,
.capability-list {
  display: grid;
  gap: 1rem;
}

.work-card,
.capability-list li,
.steps li {
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.3rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: #c9b8a6;
}

.work-card:hover .work-card__tags {
  color: var(--fox) !important;
}

.work-card__meta {
  color: var(--fox);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.work-card p,
.capability-list p,
.steps p {
  color: var(--ink-soft);
}

.work-card__tags {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink) !important;
}

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

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 4.4rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem;
  top: 1.3rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--fox-soft);
  color: var(--fox-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about-copy {
  max-width: 40rem;
}

.contact {
  text-align: center;
  padding-bottom: 6rem;
}

.contact .lede {
  margin-inline: auto;
  margin-bottom: 2rem;
}

.contact h2 {
  max-width: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.error-page {
  min-height: 70vh;
  padding: 6rem 0;
}

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

@media (max-width: 719px) {
  .hero::after {
    display: none;
  }
}

@media (min-width: 720px) {
  .nav {
    width: auto;
    order: 0;
    margin-left: auto;
    margin-right: 1rem;
    padding-bottom: 0;
    gap: 1.4rem;
    font-size: 0.95rem;
  }

  .button--small {
    margin-left: 0;
  }

  .work-grid,
  .capability-list {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .site-footer__inner {
    grid-template-columns: 1fr 1.2fr;
    display: grid;
    align-items: start;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .capability-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps li {
    padding: 1.6rem 1.4rem 1.4rem;
  }

  .steps li::before {
    position: static;
    margin-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work-card,
  .button,
  .site-header {
    transition: none;
  }
}
