:root {
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, "Cascadia Code", monospace;
  --paper: #f4f2ed;
  --ink: #16140e;
  --muted: #6a6353;
  --faint: #736959;
  --delim: #7a7264;
  --green: #3c8c5a;
  --header-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

/* Keyboard focus */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 300;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  background: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

body {
  font-family: var(--sans);
  background: var(--paper);
  background-image: radial-gradient(circle at 88% -10%, rgba(22,20,14,0.05), transparent 55%);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251,250,247,0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(22,20,14,0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  border-color: rgba(22,20,14,0.08);
  box-shadow: 0 1px 12px rgba(22,20,14,0.07);
}
.header-inner {
  width: 100%;
  max-width: 980px;
  padding-inline: clamp(24px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(16px, 2.4vw, 19px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  /* optical nudge: the mono nav's caps read high against the lowercase
     wordmark, so the box-centered text needs a hair down to look centered */
  transform: translateY(1px);
}
.site-nav a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: var(--ink); }
.site-nav .nav-sep {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  user-select: none;
}

.status {
  font-family: var(--mono);
  font-size: 12px;
  color: #726857;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(60,140,90,0.18);
  flex-shrink: 0;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 980px;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) clamp(24px, 5vw, 60px) clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero {
  max-width: 760px;
  transition: opacity 0.4s ease;
}
.delim {
  font-family: var(--mono);
  color: var(--delim);
  font-size: clamp(14px, 1.8vw, 16px);
  letter-spacing: 0.3em;
  user-select: none;
  overflow: hidden;
}
.delim span {
  display: inline-block;
  opacity: 0;
  transform: translateX(-8px);
  animation: delim-in 0.4s cubic-bezier(.2,.6,.2,1) forwards;
}
.delim span:nth-child(1) { animation-delay: 0.1s; }
.delim span:nth-child(2) { animation-delay: 0.2s; }
.delim span:nth-child(3) { animation-delay: 0.3s; }
.delim.bottom span:nth-child(1) { animation-delay: 0.7s; }
.delim.bottom span:nth-child(2) { animation-delay: 0.8s; }
.delim.bottom span:nth-child(3) { animation-delay: 0.9s; }
@keyframes delim-in {
  to { opacity: 1; transform: translateX(0); }
}
.delim.bottom { margin-top: clamp(16px, 2vw, 22px); }

.slogan {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: clamp(12px, 1.6vw, 18px) 0 clamp(14px, 1.6vw, 18px);
}
.slogan em { font-style: normal; }

.sub {
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  letter-spacing: -0.01em;
}

/* Hero footer */
.hero-foot {
  position: absolute;
  bottom: clamp(28px, 5vw, 56px);
  left: clamp(24px, 5vw, 60px);
  transition: opacity 0.4s ease;
}
.colophon {
  font-family: var(--mono);
  font-size: 12px;
  /* lighter, de-yellowed taupe so the wordmark below pops against it */
  color: #a19c91;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.colophon-name { color: var(--muted); }

/* Page sections */
.page-section {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 5vw, 60px) clamp(48px, 6vw, 72px);
}

.section-delim {
  font-family: var(--mono);
  color: var(--delim);
  font-size: clamp(14px, 1.8vw, 16px);
  letter-spacing: 0.3em;
  user-select: none;
  margin-bottom: clamp(20px, 3vw, 28px);
}

/* How we work */
.how-header {
  margin-bottom: clamp(36px, 5vw, 52px);
}
.how-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: clamp(12px, 2vw, 16px);
}
.how-intro {
  font-family: var(--sans);
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}
.how-intro strong {
  color: var(--ink);
  font-weight: 600;
}

/* Step rows */
.step-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 clamp(32px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(22,20,14,0.07);
}
.step-row:last-child {
  border-bottom: 1px solid rgba(22,20,14,0.07);
}
.step-left {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.step-num::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin-bottom: 12px;
}
.step-title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.step-body {
  font-family: var(--sans);
  font-size: clamp(14px, 1.6vw, 15.5px);
  line-height: 1.65;
  color: var(--muted);
}
.step-body p { margin-bottom: 12px; }
.step-body p:last-child { margin-bottom: 0; }
.step-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: 16px;
  line-height: 1.5;
  padding-left: 14px;
  border-left: 2px solid rgba(22,20,14,0.06);
}

/* Why this matters */
.why {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0 clamp(32px, 4vw, 56px);
}
.why-title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(16px, 2vw, 18px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}
.why-body {
  font-family: var(--sans);
  font-size: clamp(14px, 1.6vw, 15.5px);
  line-height: 1.65;
  color: var(--muted);
}
.why-body p { margin-bottom: 10px; }
.why-body p:last-child { margin-bottom: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-card {
  background: rgba(22,20,14,0.035);
  border: 1px solid rgba(22,20,14,0.1);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px);
}
.contact-aside {
  padding-top: clamp(16px, 2vw, 24px);
}
.contact-aside-heading {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-aside-body {
  font-family: var(--sans);
  font-size: clamp(14px, 1.6vw, 15.5px);
  line-height: 1.65;
  color: var(--muted);
}
.contact-aside-body p { margin-bottom: 12px; }
.contact-aside-body p:last-child { margin-bottom: 0; }
.contact-aside-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  margin-top: 24px;
  line-height: 1.5;
  padding-left: 14px;
  border-left: 2px solid rgba(22,20,14,0.06);
}
.contact-heading {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 24px);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}
.contact-sub {
  font-family: var(--sans);
  font-size: clamp(14px, 1.6vw, 15.5px);
  color: var(--muted);
  margin-bottom: clamp(24px, 3vw, 32px);
  line-height: 1.65;
}

/* Form */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-field label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.form-field input,
.form-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(22,20,14,0.12);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(22,20,14,0.3);
  box-shadow: 0 0 0 3px rgba(22,20,14,0.04);
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
}
.form-submit {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  padding: 13px 24px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease;
  width: 100%;
  margin-top: 4px;
}
.form-submit:hover { background: #322d22; transform: translateY(-1px); }
.form-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.form-submit:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
.form-success {
  display: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
  padding: 16px 0;
  line-height: 1.5;
  text-align: center;
}
.form-error {
  display: none;
  font-family: var(--mono);
  font-size: 13px;
  color: #b04a2f;
  margin-top: 14px;
  line-height: 1.5;
}

/* Footer */
.site-foot {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 5vw, 60px) clamp(40px, 5vw, 60px);
}

/* Entrance animation */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s cubic-bezier(.2,.6,.2,1) forwards;
}
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.15s; }
.reveal.d3 { animation-delay: 0.28s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .delim span { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive: mobile */
@media (max-width: 600px) {
  .hero-section { padding: calc(var(--header-h) + 24px) 20px 24px; }
  .header-inner { padding-inline: 20px; }
  .header-left { gap: 16px; }
  .status { display: none; }
  .slogan { font-size: clamp(26px, 7.5vw, 34px); }
  .sub { font-size: 13px; max-width: 100%; }
  .hero-foot { left: 20px; bottom: 24px; }
  .site-nav a { font-size: 12px; }
  .step-row { grid-template-columns: 1fr; gap: 12px; }
  .step-left { position: static; }
  .why { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; border-radius: 12px; }
  .contact-aside { padding-top: 0; }
  .form-submit { padding: 14px 22px; }
}

/* Responsive: tablet */
@media (min-width: 601px) and (max-width: 768px) {
  .slogan { font-size: clamp(28px, 4.8vw, 40px); }
  .step-row { grid-template-columns: 160px 1fr; }
  .why { grid-template-columns: 160px 1fr; }
}
