:root {
  --ink: #101214;
  --paper: #f6f1e8;
  --white: #fffaf1;
  --muted: #68615a;
  --line: #d8cec0;
  --line-dark: rgba(255, 250, 241, 0.18);
  --brand: #bb0907;
  --brand-dark: #940705;
  --blue: #254fd8;
  --green: #126b55;
  --rust: #a23d21;
  --dark: #14181d;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main[id],
section[id] {
  scroll-margin-top: 68px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 18, 20, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav a,
.nav-cta {
  border-radius: 4px;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 760;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(16, 18, 20, 0.06);
  outline: none;
}

.nav-cta {
  color: var(--white);
  background: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 390px;
}

.hero-main {
  display: flex;
  min-height: calc(100vh - 68px);
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid var(--line);
  padding: clamp(48px, 7vh, 72px) 58px 56px 0;
}

.section-code {
  margin: 0;
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin: 18px 0 24px;
  font-size: clamp(44px, 6.6vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: #373533;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 16px;
  font-weight: 820;
}

.button.solid {
  color: var(--white);
  background: var(--brand);
}

.button.solid:hover,
.button.solid:focus-visible {
  background: var(--brand-dark);
  outline: none;
}

.button.line {
  border: 1px solid var(--ink);
  background: transparent;
}

.brief {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 68px);
  padding: 72px 0 72px 34px;
}

.brief-head {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brief-head img {
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--white);
}

.brief-head p {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;
}

.brief-head span {
  color: var(--muted);
  font-size: 14px;
}

.brief-list {
  margin: 20px 0 0;
}

.brief-list div {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.brief-list div:last-child {
  border-bottom: 1px solid var(--line);
}

.brief-list dt {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.brief-list dd {
  margin: 0;
  font-size: 18px;
  font-weight: 760;
}

.statement {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.statement-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  padding: 38px 0;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  display: grid;
  gap: 6px;
  border-left: 1px solid var(--line);
  padding: 0 20px;
}

.audience-list li:first-child {
  border-left: 0;
  padding-left: 0;
}

.audience-list strong {
  font-size: 19px;
}

.audience-list span {
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  margin-bottom: 42px;
}

.work-rows {
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.work-row > span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 850;
}

.work-row p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.dark {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--dark);
}

.dark .section-code {
  color: #f0a28f;
}

.evidence-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) 1.15fr;
  gap: 54px;
}

.evidence-copy {
  position: sticky;
  top: 108px;
  align-self: start;
}

.evidence-copy p:not(.section-code) {
  margin-top: 24px;
  color: #d7d2c9;
  font-size: 18px;
}

.ledger {
  border-top: 1px solid var(--line-dark);
}

.ledger article {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
  padding: 24px 0;
}

.ledger p {
  margin: 0;
  color: #94d8c5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ledger h3 {
  margin-bottom: 8px;
}

.ledger span {
  display: block;
  max-width: 620px;
  color: #d7d2c9;
}

.diagnostic {
  background: var(--white);
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: start;
}

.diagnostic-table {
  border-top: 1px solid var(--line);
}

.diagnostic-table div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.diagnostic-table span {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.diagnostic-table p {
  margin: 0;
  color: #373533;
  font-size: 19px;
}

.engage-heading > div > p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.engagement-option {
  --engagement-accent: var(--blue);
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid var(--engagement-accent);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
}

.engagement-option:nth-child(2) {
  --engagement-accent: var(--green);
}

.engagement-option:nth-child(3) {
  --engagement-accent: var(--brand);
}

.engagement-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.engagement-topline span:first-child {
  color: var(--engagement-accent);
}

.engagement-option h3 {
  margin: 32px 0 20px;
}

.engagement-for {
  margin: 0;
  color: #373533;
  font-size: 17px;
}

.engagement-for strong,
.engagement-includes > p {
  display: block;
  margin-bottom: 8px;
  color: var(--engagement-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.engagement-includes {
  margin: 26px 0;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.engagement-includes > p {
  margin-top: 0;
}

.engagement-includes ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.engagement-includes li + li {
  margin-top: 10px;
}

.engagement-includes li::marker {
  color: var(--engagement-accent);
}

.engagement-cta {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  border-radius: 4px;
  padding: 0 15px;
  color: var(--white);
  background: var(--ink);
  font-weight: 820;
}

.engagement-cta:hover,
.engagement-cta:focus-visible {
  background: var(--engagement-accent);
  outline: none;
}

.engagement-cta:focus-visible {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--engagement-accent);
}

.contact {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 6vh, 64px) 0;
  background: #e7f0e6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-copy p {
  max-width: 620px;
  margin-top: 0;
  color: #303c34;
  font-size: 19px;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  border-bottom: 2px solid var(--brand);
  color: var(--ink);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 850;
  line-height: 1.1;
  overflow-wrap: normal;
  white-space: nowrap;
}

.footer {
  padding: 28px 0;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer p:first-child {
  color: var(--ink);
  font-weight: 850;
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero-main {
    padding-top: 38px;
    padding-bottom: 38px;
  }

  h1 {
    max-width: 760px;
    font-size: 68px;
  }

  .lede {
    margin-bottom: 22px;
    font-size: 20px;
  }
}

@media (min-width: 981px) and (max-height: 620px) {
  .contact h2 {
    font-size: 48px;
  }

  .contact-copy p {
    font-size: 19px;
  }

  .contact-email {
    font-size: 38px;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: fixed;
    inset: 68px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    background: var(--white);
    box-shadow: 0 18px 42px rgba(16, 18, 20, 0.18);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .hero-layout,
  .evidence-layout,
  .diagnostic-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .brief {
    min-height: auto;
  }

  .hero-main {
    border-right: 0;
    padding: 70px 0 46px;
  }

  .brief {
    border-top: 1px solid var(--line);
    padding: 34px 0 54px;
  }

  .statement-grid,
  .section-heading,
  .work-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .evidence-copy {
    position: static;
  }

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

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .hero-links,
  .button {
    width: 100%;
  }

  .audience-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .audience-list li,
  .audience-list li:first-child {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 14px 0 0;
  }

  .statement-grid p:last-child {
    font-size: 26px;
  }

  .section {
    padding: 70px 0;
  }

  .ledger article,
  .diagnostic-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .engagement-option {
    padding: 22px;
  }

  .engagement-cta {
    min-height: 56px;
    line-height: 1.2;
  }

  .brief-head {
    grid-template-columns: 72px 1fr;
  }

  .brief-head img {
    width: 72px;
    height: 72px;
  }

  .contact-email {
    font-size: clamp(25px, 7.2vw, 32px);
  }

  .footer-layout {
    flex-direction: column;
  }
}
