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

:root {
  --ink: #1c1610;
  --ink-soft: #3d3429;
  --paper: #f4eee4;
  --paper-2: #ebe3d4;
  --card: #faf6ee;
  --cream: #fffaf2;
  --copper: #b56a2b;
  --copper-deep: #8d4f1c;
  --copper-soft: rgba(181, 106, 43, 0.12);
  --copper-line: rgba(181, 106, 43, 0.28);
  --muted: #6b5f52;
  --faint: #8a7d6e;
  --line: #d9cfc0;
  --ink-nav: rgba(28, 22, 16, 0.86);
  --shadow: 0 18px 40px -24px rgba(28, 22, 16, 0.35);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-read: "Newsreader", "Iowan Old Style", Georgia, serif;
  font-variation-settings: "WONK" 0, "SOFT" 80, "opsz" 72;
  font-feature-settings: "ss01" 0, "swsh" 0, "dlig" 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
  --wrap: 1120px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
.flow-frame img, .hero-photo img { width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: absolute; left: 12px; top: -40px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 8px 12px;
}
.skip-link:focus { top: 12px; }

/* NAV */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: 0.04em;
  font-variation-settings: "WONK" 0, "SOFT" 80, "opsz" 72;
  font-feature-settings: "ss01" 0, "swsh" 0, "dlig" 0;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 0.92rem; font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta {
  background: var(--ink); color: var(--cream) !important;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
  font-size: 0.88rem; font-weight: 560;
}
.nav-cta:hover { background: var(--copper-deep); }
.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 5px auto; }
.mobile-nav {
  display: none; position: fixed; inset: var(--nav-h) 0 auto 0;
  background: var(--cream); border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px; z-index: 99;
  flex-direction: column; gap: 4px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  text-decoration: none; color: var(--ink-soft);
  padding: 12px 0; min-height: 44px; display: flex; align-items: center;
}

/* LAYOUT */
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.kicker {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper); font-weight: 600; margin-bottom: 14px;
}
h1, h2, h3, .display, .brand-name {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
  font-variation-settings: "WONK" 0, "SOFT" 80, "opsz" 72;
  font-feature-settings: "ss01" 0, "swsh" 0, "dlig" 0;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
.lead { color: var(--muted); max-width: 62ch; font-size: 1.12rem; font-family: var(--font-read); font-weight: 400; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.92rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border-radius: 999px; padding: 14px 22px;
  font-weight: 560; font-size: 0.94rem; border: 1px solid transparent;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--cream); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* HERO */
.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid; gap: 40px; align-items: end;
}
.hero p.lead { margin-top: 20px; }
.hero-support { margin-top: 14px; color: var(--faint); max-width: 52ch; }

.example-panel {
  background: var(--ink);
  color: #efe6d8;
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}
.example-panel .label {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #c9b8a0; margin-bottom: 16px;
}
.process-rail { display: flex; flex-direction: column; gap: 0; }
.process-node {
  display: grid; grid-template-columns: 18px 1fr; gap: 12px;
}
.process-node .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--copper); margin-top: 5px; box-shadow: 0 0 0 4px rgba(181,106,43,0.18);
}
.process-node + .process-node { margin-top: 0; }
.process-join {
  width: 1px; height: 16px; background: #4a4036; margin: 2px 0 2px 5.5px;
}
.process-node p { font-size: 0.95rem; }

/* TRUST / PROOF */
.trust { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid, .card-grid, .industry-grid, .deliver-grid {
  display: grid; gap: 18px; margin-top: 36px;
}
.trust-grid { grid-template-columns: 1fr; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
}
.problem-list { display: grid; gap: 22px; margin-top: 32px; }
.problem-list article h3 { font-size: 1.15rem; }
.fail-list { display: grid; gap: 14px; margin-top: 28px; }
.fail-list li {
  list-style: none;
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}
.fail-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper);
}

/* SERVICES */
.service-grid { display: grid; gap: 16px; margin-top: 36px; }
.service-card .fit { margin-top: 14px; font-size: 0.88rem; color: var(--faint); }
.service-card .fit strong { color: var(--muted); font-weight: 560; }
.num {
  font-family: var(--font-display);
  color: var(--copper);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* TIMELINE */
.timeline { background: var(--ink); color: #efe6d8; }
.timeline h2 { color: #fffaf2; }
.timeline .lead { color: #c9b8a0; }
.steps {
  display: grid; gap: 28px; margin-top: 40px;
  counter-reset: step;
}
.steps article { position: relative; padding-left: 0; }
.steps h3 { color: #fff; }
.step-index {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--copper);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

/* AUDIT */
.audit-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 28px;
}
.checks { list-style: none; display: grid; gap: 12px; margin: 22px 0 28px; }
.checks li {
  padding-left: 28px; position: relative; color: var(--ink-soft);
}
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23f4eee4' stroke='%23b56a2b'/%3E%3Cpath d='M5 8.2l2 2 4-4' fill='none' stroke='%238d4f1c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* INDUSTRIES */
.industry-card figure {
  height: 140px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(160deg, #2a221b 0%, #5a3d24 55%, #c0844a 130%);
  overflow: hidden; position: relative;
}
.industry-card figure.garage { background: linear-gradient(150deg, #211c17, #6a4a2a 70%, #d2a06a); }
.industry-card figure.trades { background: linear-gradient(150deg, #1d211c, #3f4a32 70%, #c4b07a); }
.industry-card figure.service { background: linear-gradient(150deg, #241c1a, #6b3c32 70%, #e0b48a); }
.industry-card figure.pro { background: linear-gradient(150deg, #1b1d22, #3a3f4a 70%, #c4b8a0); }
.ph-caption {
  position: absolute; inset: auto 12px 10px;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,250,242,0.72);
}

/* OUTCOMES */
.outcomes { background: var(--paper-2); }
.outcomes ul { list-style: none; display: grid; gap: 12px; margin: 24px 0; }
.outcomes li { padding-left: 22px; position: relative; }
.outcomes li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 8px; background: var(--copper); border-radius: 2px;
}

/* FAQ */
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 18px 0;
  font-weight: 560;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--copper); font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding-bottom: 18px; color: var(--muted); max-width: 65ch; }

/* PAGE HERO */
.page-hero { padding: 48px 0 24px; }
.crumb { font-size: 0.82rem; color: var(--faint); margin-bottom: 22px; }
.crumb a { color: var(--faint); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* CTA BAND */
.cta-band { background: var(--ink); color: #efe6d8; padding: 88px 0; text-align: center; }
.cta-band h2 { color: #fffaf2; max-width: 18ch; margin: 0 auto 16px; }
.cta-band p { max-width: 52ch; margin: 0 auto; color: #c9b8a0; }
.cta-band .actions { justify-content: center; }

/* FOOTER */
.site-footer {
  background: #14110e;
  color: #c9b8a0;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: 40px;
}
.site-footer .brand-name, .site-footer a { color: #efe6d8; text-decoration: none; }
.site-footer p { max-width: 30ch; margin-top: 12px; }
.site-footer h4 {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #8a7d6e; margin-bottom: 14px; font-family: var(--font-body);
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2b241c; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.82rem; color: #8a7d6e;
}

/* FORMS */
.form-grid { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 540; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--cream);
  border-radius: 10px; padding: 12px 14px; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--copper); outline-offset: 1px;
}
.form-note { margin-top: 14px; }
.form-result { margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 0.92rem; }
.form-success { background: rgba(34,197,94,0.12); color: #166534; }
.form-error { background: rgba(239,68,68,0.12); color: #991b1b; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,17,14,0.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative; z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 28px;
  width: 100%; max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 24px 60px -20px rgba(20,17,14,0.5);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--cream);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--ink-soft); line-height: 1;
}
.modal-close:hover { background: var(--paper-2); }
.modal-panel h2 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-panel .lead { font-size: 0.95rem; margin-bottom: 20px; }

/* ABOUT / PRIVACY */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 16px; }
.prose h2 { margin-top: 36px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.note-box {
  background: var(--copper-soft); border: 1px solid var(--copper-line);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}

/* PHOTO SLOT */
.photo-slot {
  border-radius: 18px;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(28,22,16,0.05), rgba(28,22,16,0.18)),
    linear-gradient(135deg, #d8c4a4, #8d6a42 60%, #2b2118);
  display: flex; align-items: flex-end;
  padding: 16px 18px;
  color: #fffaf2;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid, .deliver-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .problem-list { grid-template-columns: 1fr 1fr; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}
@media (min-width: 980px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* PHOTOS */
.hero-photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  min-height: 360px;
}
.hero-photo .caption,
.flow-frame .caption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(20, 17, 14, 0.78);
  color: #efe6d8;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
}
.flow-section { padding: 72px 0; }
.flow-section + .flow-section { padding-top: 0; }
.flow-copy { max-width: 58ch; margin-bottom: 28px; }
.flow-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.flow-frame img { width: 100%; height: auto; display: block; }
.flow-frame.ink {
  background: #14110e;
  border-color: #2b241c;
}
.photo-wide {
  border-radius: 20px;
  overflow: hidden;
  margin: 28px 0 0;
}
.photo-wide img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.industry-card figure img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.industry-card figure { padding: 0; height: auto; }
.page-photo {
  border-radius: 18px;
  overflow: hidden;
  margin-top: 32px;
}
.page-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
@media (min-width: 720px) {
  .hero-photo img { aspect-ratio: 1 / 1.05; min-height: 420px; }
  .photo-wide img { height: 420px; }
}


/* ENGINE DIAGRAM */
.engine-section { padding: 24px 0 72px; }
.engine-board {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 20px 16px;
  position: relative;
  overflow: hidden;
}
.engine-board::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(28,22,16,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,22,16,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.engine-svg { width: 100%; height: auto; display: block; position: relative; }
.engine-caption {
  text-align: center;
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.engine-copy { margin-bottom: 22px; max-width: 60ch; }
