:root {
  --ivory: #f3eee4;
  --paper: #fbf8f1;
  --ink: #171622;
  --muted: #67616a;
  --line: rgba(23, 22, 34, 0.18);
  --blue: #1d246d;
  --blue-deep: #111640;
  --red: #df2e24;
  --yellow: #edbe54;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Century Gothic", Futura, sans-serif;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -4rem; background: var(--ink); color: white; padding: 0.8rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: var(--max);
  margin: auto;
  min-height: 86px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 0.85rem; width: fit-content; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 39px; height: 39px; object-fit: contain; }
.brand span { display: grid; gap: 0.1rem; }
.brand small { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -0.45rem; height: 1px; background: var(--ink); transition: right 180ms ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.nav-cta { padding: 0.8rem 1.1rem; border: 1px solid var(--ink); transition: color 180ms, background 180ms; }
.nav-cta:hover { background: var(--ink); color: white; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 7px 0; background: var(--ink); transition: transform 180ms; }

.hero {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  min-height: min(780px, calc(100vh - 86px));
  margin: auto;
  padding: clamp(5rem, 10vw, 9rem) 4vw 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.7fr);
  gap: 8vw;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; z-index: -1; width: min(48vw, 660px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; right: -12%; top: -17%; }
.hero-copy { align-self: center; max-width: 940px; }
.kicker, .section-index { margin: 0 0 1.4rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.kicker::before { content: ""; display: inline-block; width: 2.5rem; height: 1px; margin: 0 0.8rem 0.22rem 0; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.048em; }
h1 { max-width: 1000px; margin-bottom: 2rem; font-size: clamp(4.2rem, 8.4vw, 8.2rem); line-height: 0.88; }
h1 em { color: var(--red); font-weight: inherit; }
.hero-lede { max-width: 700px; color: var(--muted); font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.48; }
.hero-actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.5rem; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border: 1px solid transparent; padding: 0.9rem 1.35rem; cursor: pointer; text-decoration: none; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; transition: transform 180ms, box-shadow 180ms, background 180ms; }
.button:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--yellow); }
.button-primary { color: white; background: var(--blue); }
.text-link { font-size: 0.78rem; font-weight: 800; text-underline-offset: 5px; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-note { align-self: end; margin-bottom: 2rem; padding: 1.5rem 0 0 1.5rem; border-left: 1px solid var(--ink); }
.note-number { color: var(--red); font-size: 0.7rem; font-weight: 800; }
.note-title { max-width: 17ch; font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; }
.hero-note > p:not(.note-number, .note-title) { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.hero-stats { margin: 2rem 0 0; }
.hero-stats div { padding: 0.85rem 0; display: grid; grid-template-columns: 5.5rem 1fr; border-top: 1px solid var(--line); }
.hero-stats dt { font-family: var(--serif); font-size: 1.4rem; }
.hero-stats dd { margin: 0; align-self: center; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-mark { position: absolute; z-index: -1; left: 3vw; bottom: -0.21em; color: transparent; -webkit-text-stroke: 1px rgba(29, 36, 109, 0.16); font-family: var(--serif); font-size: clamp(10rem, 27vw, 29rem); line-height: 0.7; letter-spacing: -0.12em; }

.client-line { max-width: var(--max); margin: auto; display: grid; grid-template-columns: 220px 1fr; border-block: 1px solid var(--line); }
.client-line p { margin: 0; padding: 1.5rem 4vw; border-right: 1px solid var(--line); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.client-line div { padding: 1.5rem 3vw; display: flex; gap: 2.1rem; align-items: center; overflow: hidden; white-space: nowrap; color: var(--muted); font-family: var(--serif); font-style: italic; }

.section { max-width: var(--max); margin: auto; padding: clamp(6rem, 10vw, 10rem) 4vw; }
.section-intro { display: grid; grid-template-columns: 0.45fr 1.2fr 0.8fr; gap: 4vw; align-items: start; margin-bottom: clamp(4rem, 7vw, 7rem); }
.section-index { color: var(--muted); }
.section-intro h2, .founder h2, .contact h2 { margin: 0; font-size: clamp(3.2rem, 5.8vw, 6.4rem); line-height: 0.95; }
.section-summary { color: var(--muted); font-size: 1rem; line-height: 1.75; }

.diagnostic { background: var(--paper); }
.diagnostic-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 9vw; }
.process-list article { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.process-list article > span { color: var(--red); font-family: var(--serif); font-size: 1.15rem; }
.process-list h3 { margin-bottom: 0.5rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.process-list p { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.pipeline-card { position: sticky; top: 118px; align-self: start; padding: clamp(1.6rem, 3vw, 3rem); color: white; background: var(--blue); box-shadow: 18px 18px 0 var(--yellow); }
.pipeline-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 3rem; }
.pipeline-head p { font-family: var(--serif); font-size: 1.35rem; }
.pipeline-head span { height: fit-content; padding: 0.4rem 0.6rem; color: var(--blue-deep); background: var(--yellow); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.pipeline-stage { margin-bottom: 1.7rem; }
.pipeline-stage > div { display: flex; justify-content: space-between; margin-bottom: 0.55rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pipeline-stage i { display: block; width: 100%; height: 8px; background: rgba(255,255,255,0.16); }
.pipeline-stage i::after { content: ""; display: block; width: var(--bar); height: 100%; background: white; }
.pipeline-stage small { display: block; margin-top: 0.45rem; color: #f3c65c; font-size: 0.65rem; }
.pipeline-stage small::before { content: "↳ "; }
.pipeline-caption { margin: 2.5rem 0 0; color: rgba(255,255,255,0.56); font-size: 0.68rem; line-height: 1.5; }

.work { color: white; background: var(--blue-deep); }
.inverse .section-index, .inverse .section-summary { color: rgba(255,255,255,0.6); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,0.25); border-bottom: 1px solid rgba(255,255,255,0.25); }
.work-card { min-height: 440px; padding: 2.2rem; border-right: 1px solid rgba(255,255,255,0.25); transition: color 220ms, background 220ms; }
.work-card:last-child { border: 0; }
.work-card:hover { color: var(--ink); background: var(--yellow); }
.work-card > p { color: var(--red); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.work-card h3 { max-width: 13ch; margin: 5rem 0 4rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 400; line-height: 1; }
.work-card ul { margin: 0; padding: 0; list-style: none; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.work-card li { padding: 0.8rem 0; border-top: 1px solid currentColor; }

.proof { background: var(--ivory); }
.case-list { border-top: 1px solid var(--ink); }
.case-study { display: grid; grid-template-columns: 0.72fr 1.35fr 0.68fr; gap: 4vw; padding: 3rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.case-heading > p, .case-result > span, .case-sar span { display: block; margin: 0 0 0.65rem; color: var(--red); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.case-study h3 { max-width: 14ch; margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 2.5vw, 2.5rem); font-weight: 400; line-height: 1.05; }
.case-sar { display: grid; gap: 1.4rem; }
.case-sar p { margin: 0; color: var(--muted); line-height: 1.72; }
.case-sar span { margin-bottom: 0.35rem; }
.case-result strong { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; font-weight: 400; font-style: italic; }

.founder { display: grid; grid-template-columns: 0.72fr 1.28fr; padding-inline: 0; background: var(--paper); }
.founder-portrait { min-height: 760px; padding: 5vw; display: flex; flex-direction: column; justify-content: space-between; color: white; background: var(--blue); }
.monogram { width: min(100%, 450px); aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; color: var(--yellow); font-family: var(--serif); font-size: clamp(7rem, 13vw, 13rem); letter-spacing: -0.12em; }
.founder-portrait p { margin: 0; font-size: 0.72rem; line-height: 1.7; letter-spacing: 0.12em; text-transform: uppercase; }
.founder-copy { padding: clamp(5rem, 8vw, 9rem) clamp(2rem, 7vw, 8rem); }
.founder-copy h2 { margin-bottom: 2.5rem; }
.founder-lede { color: var(--blue); font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; }
.founder-copy > p:not(.kicker, .founder-lede) { color: var(--muted); line-height: 1.8; }
.founder-copy blockquote { margin: 3rem 0; padding-left: 1.5rem; border-left: 3px solid var(--red); font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
.founder-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.founder-metrics div { padding: 1.4rem 1rem 0 0; }
.founder-metrics b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.founder-metrics span { color: var(--muted); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }

.contact { max-width: var(--max); margin: auto; padding: clamp(5rem, 9vw, 9rem) 4vw; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 9vw; background: var(--yellow); }
.contact-copy h2 { margin-bottom: 2rem; }
.contact-copy > p:not(.section-index, .kicker) { max-width: 620px; line-height: 1.75; }
.contact-copy > a { font-family: var(--serif); font-size: 1.2rem; text-underline-offset: 5px; }
.contact-form { padding: clamp(1.6rem, 4vw, 3rem); background: var(--paper); box-shadow: 16px 16px 0 var(--blue); }
.contact-form label { display: grid; gap: 0.55rem; margin-bottom: 1.2rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0.8rem 0; color: var(--ink); background: transparent; outline: none; text-transform: none; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-bottom-color: var(--blue); box-shadow: 0 2px 0 var(--blue); }
.form-footer { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.form-footer p { margin: 0; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }
.honeypot { position: absolute !important; left: -9999px !important; }
.contact-form.is-success .form-footer p { color: #246536; font-weight: 700; }
.contact-form.is-error .form-footer p { color: #a3241c; font-weight: 700; }

.site-footer { max-width: var(--max); min-height: 290px; margin: auto; padding: 4rem 4vw 2rem; display: grid; grid-template-columns: 1fr 1fr; align-items: start; color: white; background: var(--ink); }
.footer-brand img { width: 68px; }
.site-footer > p { max-width: 28ch; justify-self: end; font-family: var(--serif); font-size: 1.8rem; }
.site-footer > div { grid-column: 1 / -1; align-self: end; display: flex; justify-content: space-between; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.55); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.22,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 980px) {
  .site-header { min-height: 74px; }
  .menu-toggle { display: block; justify-self: end; }
  .site-nav { position: fixed; inset: 74px 0 auto; padding: 2rem 4vw; display: none; align-items: stretch; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .nav-cta { text-align: center; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-note { max-width: 480px; margin-left: auto; }
  .section-intro { grid-template-columns: 0.3fr 1fr; }
  .section-summary { grid-column: 2; }
  .diagnostic-grid, .contact { grid-template-columns: 1fr; }
  .pipeline-card { position: static; }
  .case-study { grid-template-columns: 0.72fr 1.28fr; gap: 2rem 4vw; }
  .case-result { grid-column: 2; }
  .founder { grid-template-columns: 1fr; }
  .founder-portrait { min-height: 520px; }
}

@media (max-width: 720px) {
  .brand small { display: none; }
  h1 { font-size: clamp(3.4rem, 18vw, 5rem); }
  .hero { padding-top: 5rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-note { margin-left: 0; }
  .client-line { grid-template-columns: 1fr; }
  .client-line p { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-intro { grid-template-columns: 1fr; }
  .section-summary { grid-column: auto; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.25); }
  .work-card h3 { margin: 3rem 0; }
  .case-study { grid-template-columns: 1fr; gap: 1.2rem; }
  .case-result { grid-column: auto; }
  .founder-portrait { min-height: 400px; }
  .founder-metrics, .field-row { grid-template-columns: 1fr; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer > p { justify-self: start; }
  .site-footer > div { flex-direction: column; gap: 0.8rem; }
}
