:root {
  color-scheme: light;
  --ink: #1d201e;
  --muted: #5f625c;
  --paper: #f3efe7;
  --paper-strong: #fbf8f2;
  --line: #cec7ba;
  --accent: #a44f33;
  --accent-dark: #7f3925;
  --forest: #29443d;
  --motion-fast: 180ms;
  --motion-stage: 520ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --type-label: 0.75rem;
  --type-small: 0.875rem;
  --type-body: 1rem;
  --type-lead: 1.125rem;
  --type-title: 1.125rem;
  --type-heading: clamp(2.35rem, 4vw, 3.75rem);
  --type-display: clamp(3rem, 5.2vw, 4.75rem);
  --type-display-mobile: clamp(2.75rem, 10.5vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  font-weight: 600;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: var(--type-title);
  line-height: 1;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a,
.text-link,
.email-link {
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

.nav a {
  color: var(--muted);
  font-size: var(--type-small);
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  font-size: var(--type-small);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

.button-small {
  justify-self: end;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 0.75fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  max-width: 90rem;
  margin: 0 auto;
  min-height: 38rem;
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 4rem);
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--accent-dark);
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: var(--type-display);
}

h2 {
  max-width: 18ch;
  margin: 0;
  font-size: var(--type-heading);
}

h3 {
  margin: 0;
  font-size: var(--type-title);
  font-weight: 600;
  line-height: 1.3;
}

.hero-summary {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: var(--type-lead);
  line-height: 1.55;
}

.pain-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 44rem;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.pain-signals li {
  padding: 0.85rem 1.25rem 0.85rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' r='3' fill='%23a44f33'/%3E%3C/svg%3E") no-repeat 0 1.35rem;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.text-link {
  font-weight: 500;
}

.signal-panel {
  border: 1px solid var(--ink);
  background: var(--paper-strong);
}

.signal-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status {
  color: var(--accent-dark);
}

.delivery-chain {
  position: relative;
  padding: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%23e1dbd0' stroke-width='1'/%3E%3C/svg%3E");
}

.delivery-chain::before {
  position: absolute;
  top: 3.15rem;
  bottom: 3.15rem;
  left: 2.22rem;
  width: 1px;
  background: var(--accent);
  content: "";
}

.chain-stage {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 4.4rem;
  padding: 0.65rem 0;
  transition: opacity var(--motion-stage) var(--motion-ease), transform var(--motion-stage) var(--motion-ease);
}

.signal-panel.is-sequencing .chain-stage {
  opacity: 0.38;
  transform: translateX(-0.35rem);
}

.signal-panel.is-sequencing .chain-stage.is-active,
.signal-panel.is-sequencing .chain-stage.is-complete {
  opacity: 1;
  transform: translateX(0);
}

.signal-panel.is-sequencing .chain-stage.is-active .chain-number {
  background: var(--accent);
  color: white;
}

.signal-panel.is-sequencing .chain-stage.is-complete .chain-number {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.signal-panel.is-sequencing .chain-stage.is-active .chain-control {
  background: var(--accent);
}

.chain-number {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--paper-strong);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  font-size: var(--type-label);
  font-weight: 600;
}

.chain-stage div {
  display: grid;
  gap: 0.1rem;
}

.chain-stage strong {
  font-size: var(--type-body);
  font-weight: 600;
  line-height: 1.2;
}

.chain-stage small {
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.35;
}

.chain-control {
  min-width: 3.25rem;
  padding: 0.28rem 0.4rem;
  background: var(--forest);
  color: white;
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.chain-outcome {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper-strong);
}

.chain-outcome span {
  color: #d28b70;
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chain-outcome strong {
  font-size: var(--type-body);
  font-weight: 500;
  line-height: 1.35;
}

.process span,
.review-list span {
  color: var(--accent-dark);
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 90rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credibility-strip p {
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  margin: 0;
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--line);
  font-size: var(--type-small);
  font-weight: 500;
}

.credibility-strip p:first-child { padding-left: 0; }
.credibility-strip p:last-child { border-right: 0; }

.section {
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) clamp(1.25rem, 4vw, 4rem);
}

.section-intro > p:last-child {
  max-width: 48rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: var(--type-lead);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink);
}

.problem-copy {
  max-width: 42rem;
  font-size: var(--type-lead);
  line-height: 1.6;
}

.problem-copy p {
  margin: 0 0 1.5rem;
}

.fit-list {
  padding: 2rem;
  background: var(--forest);
  color: #f7f2e9;
}

.fit-list h3 {
  margin-bottom: 1.5rem;
  color: #d8b5a5;
}

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

.fit-list li {
  padding: 0.85rem 0 0.85rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  background: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 6h10M6 1v10' stroke='%23d8b5a5' stroke-width='1'/%3E%3C/svg%3E") no-repeat 0 1.15rem;
}

.sprint-section {
  max-width: none;
  background: var(--ink);
  color: var(--paper-strong);
}

.sprint-section > * {
  max-width: 82rem;
  margin-right: auto;
  margin-left: auto;
}

.sprint-section .eyebrow,
.deliverable-label {
  color: #d28b70;
}

.sprint-section .section-intro > p:last-child,
.deliverables p,
.process p {
  color: #b9b8b1;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 5rem;
  border-top: 1px solid #50534f;
  border-bottom: 1px solid #50534f;
}

.deliverables article {
  min-height: 17rem;
  padding: 2rem;
  border-right: 1px solid #50534f;
}

.deliverables article:nth-child(3n) { border-right: 0; }
.deliverables article:nth-child(-n+3) { border-bottom: 1px solid #50534f; }
.deliverables h3 { font-size: var(--type-title); }
.deliverables p:last-child { font-size: var(--type-small); }

.deliverable-label {
  margin: 0 0 3rem;
  font-size: var(--type-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 5rem;
}

.process div {
  position: relative;
  padding-top: 1.5rem;
}

.process div::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  content: "";
}

.process h3 { margin-top: 1rem; }
.process p { margin-bottom: 0; font-size: var(--type-small); }

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 5rem;
  border: 1px solid #50534f;
}

.scope-grid > div {
  padding: 2rem;
}

.scope-grid > div + div {
  border-left: 1px solid #50534f;
}

.scope-grid h3 {
  max-width: 32rem;
  font-size: var(--type-title);
}

.scope-grid p:last-child {
  max-width: 38rem;
  margin-bottom: 0;
  color: #b9b8b1;
  font-size: var(--type-small);
}

.review-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(4rem, 10vw, 10rem);
}

.review-list {
  border-top: 1px solid var(--ink);
}

.review-list div {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.review-list p {
  margin: 0;
  font-size: var(--type-lead);
  line-height: 1.5;
}

.about-section {
  padding-top: 0;
}

.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--ink);
  background: var(--paper-strong);
}

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

.about-copy p:first-child {
  margin-top: 0;
  font-size: var(--type-lead);
  font-weight: 500;
}

.cta-section {
  padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 4vw, 4rem);
  background: var(--accent);
  color: white;
}

.cta-section > div {
  max-width: 82rem;
  margin: 0 auto;
}

.cta-section .eyebrow {
  color: #f0d2c6;
}

.cta-section h2 { max-width: 17ch; }

.cta-section p:not(.eyebrow) {
  max-width: 40rem;
  margin: 2rem 0;
  font-size: var(--type-lead);
}

.button-light {
  margin-right: 1.5rem;
  background: var(--paper-strong);
  border-color: var(--paper-strong);
  color: var(--ink);
}

.button-light:hover {
  background: white;
  border-color: white;
}

.email-link {
  display: inline-block;
  padding: 0.75rem 0;
}

footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 90rem;
  margin: 0 auto;
  padding: 2.25rem clamp(1.25rem, 4vw, 4rem);
  font-size: var(--type-small);
}

footer p {
  margin: 0;
}

footer p:nth-child(2) { text-align: center; color: var(--muted); }
footer p:last-child { text-align: right; }

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 64rem) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .signal-panel { max-width: 38rem; }
  .credibility-strip { grid-template-columns: repeat(2, 1fr); }
  .credibility-strip p:nth-child(2) { border-right: 0; }
  .credibility-strip p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .deliverables { grid-template-columns: repeat(2, 1fr); }
  .deliverables article:nth-child(3n) { border-right: 1px solid #50534f; }
  .deliverables article:nth-child(2n) { border-right: 0; }
  .deliverables article:nth-child(-n+4) { border-bottom: 1px solid #50534f; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .review-section { grid-template-columns: 1fr; }
}

@media (max-width: 44rem) {
  .site-header { padding: 1rem 1.25rem; }
  .wordmark { font-size: var(--type-small); }
  .button-small { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 4rem; padding-top: 4rem; padding-bottom: 5rem; }
  h1 { max-width: 14ch; font-size: var(--type-display-mobile); }
  .pain-signals { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { width: fit-content; }
  .signal-panel-head { align-items: flex-start; flex-direction: column; }
  .delivery-chain { padding: 1rem; }
  .delivery-chain::before { left: 1.97rem; }
  .chain-stage { grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.65rem; }
  .credibility-strip { grid-template-columns: 1fr; }
  .credibility-strip p { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .credibility-strip p:last-child { border-bottom: 0; }
  .problem-grid,
  .about-card { grid-template-columns: 1fr; }
  .deliverables { grid-template-columns: 1fr; }
  .deliverables article,
  .deliverables article:nth-child(2) { min-height: auto; padding: 2rem 0; border-right: 0; border-bottom: 1px solid #50534f; }
  .deliverables article:last-child { border-bottom: 0; }
  .deliverable-label { margin-bottom: 1.5rem; }
  .process { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
  .scope-grid > div { padding: 2rem 0; border-right: 0; }
  .scope-grid > div + div { border-top: 1px solid #50534f; border-left: 0; }
  .about-card { padding: 2rem 1.25rem; }
  .button-light { margin-right: 0; }
  .email-link { display: block; margin-top: 1rem; overflow-wrap: anywhere; }
  footer { grid-template-columns: 1fr; }
  footer p:nth-child(2),
  footer p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .signal-panel.is-sequencing .chain-stage { opacity: 1; transform: none; }
}
