:root {
  --paper: #f3efe6;
  --paper-2: #e9e3d6;
  --ink: #17160f;
  --ink-soft: #55524a;
  --line: #cfc8b8;
  --accent: #b8472a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
}
.brand em { color: var(--accent); font-style: italic; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; font-size: 14px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); }
.btn {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: var(--paper) !important;
  padding: 13px 24px; border-radius: 999px;
  font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink) !important; }
.btn.ghost:hover { background: var(--ink); color: var(--paper) !important; border-color: var(--ink); }
.nav .btn { padding: 10px 20px; }

/* Hero */
.hero { padding: 110px 0 90px; border-bottom: 1px solid var(--line); }
.eyebrow {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 26px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(46px, 8.2vw, 116px); line-height: 0.98; max-width: 12ch; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
.hero-foot {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: end; margin-top: 64px;
}
.lede { font-size: 21px; line-height: 1.5; color: var(--ink-soft); max-width: 34em; margin: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

/* Marquee strip */
.strip { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--paper-2); }
.strip-track {
  display: flex; gap: 48px; width: max-content; padding: 18px 0;
  animation: slide 38s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 22px; white-space: nowrap;
}
.strip-track span::after { content: "✳"; margin-left: 48px; color: var(--accent); font-style: normal; font-size: 16px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* Sections */
section { padding: 110px 0; }
.sec-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px;
  align-items: end; margin-bottom: 64px;
}
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; }
.sec-head p { margin: 0; color: var(--ink-soft); font-size: 19px; max-width: 32em; }

/* Services */
.services { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 30px;
  padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline;
  transition: padding .25s, background .25s;
}
.service:hover { padding-left: 14px; background: var(--paper-2); }
.service .num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 19px; }
.service h3 { font-size: 30px; line-height: 1.1; }
.service p { margin: 0; color: var(--ink-soft); }

/* Approach */
.dark { background: var(--ink); color: var(--paper); }
.dark .sec-head p, .dark .step p { color: #b9b4a6; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid #3a3830; }
.step { padding: 34px 28px 10px 0; border-right: 1px solid #3a3830; margin-right: 28px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step .num { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--accent); display: block; margin-bottom: 26px; }
.step h3 { font-size: 25px; margin-bottom: 12px; }
.step p { margin: 0; font-size: 16px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px 38px; background: var(--paper); }
.card h3 { font-size: 26px; margin-bottom: 14px; }
.card p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact { border-top: 1px solid var(--line); text-align: center; padding: 130px 0; }
.contact h2 { font-size: clamp(42px, 7vw, 96px); max-width: 14ch; margin: 0 auto 30px; }
.contact p { color: var(--ink-soft); font-size: 20px; max-width: 30em; margin: 0 auto 40px; }
.mail {
  font-family: var(--serif); font-size: clamp(22px, 3.2vw, 38px);
  text-decoration-color: var(--accent); text-underline-offset: 8px; text-decoration-thickness: 1px;
}
.mail:hover { color: var(--accent); }

/* Footer */
.site-footer { background: var(--ink); color: #b9b4a6; padding: 70px 0 34px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid #3a3830; }
.site-footer .brand { color: var(--paper); font-size: 26px; }
.site-footer h4 {
  margin: 0 0 16px; font-family: var(--sans); font-weight: 500;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8b8678;
}
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.foot-note { padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #8b8678; }
.foot-tag { margin: 14px 0 0; max-width: 26em; }

/* Legal pages */
.legal { padding: 90px 0 120px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); max-width: none; margin-bottom: 14px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 56px; }
.legal h2 { font-size: 28px; margin: 48px 0 14px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #34322b; }
.legal ul { padding-left: 22px; }
.legal address { font-style: normal; padding: 22px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); line-height: 1.7; display: inline-block; }
.legal a { color: var(--accent); }

/* Case studies */
.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cases { display: grid; gap: 28px; }
.case {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 44px;
}
.case .tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 22px; }
.case .big { font-family: var(--serif); font-size: clamp(44px, 6vw, 84px); line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.case .big small { display: block; font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--ink-soft); margin-top: 12px; line-height: 1.4; }
.case h3 { font-size: 30px; line-height: 1.12; margin-bottom: 20px; }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.case dd { margin: 3px 0 0; color: var(--ink-soft); }
.flow { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; align-items: center; font-size: 14px; }
.flow b { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--ink); display: block; }
.flow span { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--ink-soft); background: var(--paper-2); }
.flow i { color: var(--accent); font-style: normal; }
.case-note { margin: 28px 0 0; font-size: 14px; color: var(--ink-soft); }

/* Audit funnel */
.audit-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: start; }
.audit-copy h2 { margin-bottom: 24px; }
.audit-copy > p { color: var(--ink-soft); font-size: 19px; margin: 0 0 30px; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: "✳"; position: absolute; left: 2px; color: var(--accent); }
.ticks strong { font-weight: 600; }
.funnel {
  background: var(--ink); color: var(--paper); border-radius: 24px; padding: 40px;
  position: sticky; top: 92px;
}
.funnel .progress { display: flex; gap: 6px; margin-bottom: 26px; }
.funnel .progress i { flex: 1; height: 3px; background: #3a3830; border-radius: 3px; transition: background .3s; }
.funnel .progress i.on { background: var(--accent); }
.funnel .count { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8b8678; margin: 0 0 8px; }
.funnel h3 { font-size: 30px; line-height: 1.12; margin-bottom: 24px; }
.funnel fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.funnel fieldset[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 11px 18px; border: 1px solid #55524a; border-radius: 999px;
  font-size: 15px; transition: background .15s, border-color .15s, color .15s;
}
.chips input:checked + span { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #b9b4a6; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: #211f17; color: var(--paper); border: 1px solid #45423a; border-radius: 12px;
  padding: 13px 15px; font: inherit; font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.funnel .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.funnel .btn { background: var(--paper); color: var(--ink) !important; border-color: var(--paper); cursor: pointer; font-family: inherit; }
.funnel .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper) !important; }
.funnel .back { background: none; border: 0; color: #b9b4a6; font: inherit; font-size: 14px; cursor: pointer; padding: 8px 0; white-space: nowrap; }
.funnel .back:hover { color: var(--paper); }
.funnel .err { color: #f0a58f; font-size: 14px; margin: 14px 0 0; min-height: 1.4em; }
.funnel .fine { font-size: 13px; color: #8b8678; margin: 18px 0 0; }
.funnel .fine a { color: #b9b4a6; }
.funnel .done p { color: #b9b4a6; margin: 0; }
.hp { position: absolute; left: -9999px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative;
  font-family: var(--serif); font-size: 25px; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 22px; font-size: 30px; color: var(--accent); font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 28px; color: var(--ink-soft); max-width: 46em; }

@media (max-width: 900px) {
  .case, .audit-grid { grid-template-columns: 1fr; gap: 30px; }
  .case { padding: 28px; }
  .funnel { position: static; padding: 28px; }
  .faq summary { font-size: 21px; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 70px 0 60px; }
  .hero-foot, .sec-head { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-content: flex-start; }
  section { padding: 76px 0; }
  .service { grid-template-columns: 44px 1fr; gap: 6px 16px; }
  .service p { grid-column: 2; }
  .service h3 { font-size: 25px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 0; margin-right: 0; padding-right: 20px; border-bottom: 1px solid #3a3830; padding-bottom: 30px; }
  .principles, .foot-grid { grid-template-columns: 1fr; }
  .contact { padding: 90px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}
