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

:root {
  --ink: #231f20;
  --muted: #615b58;
  --paper: #ffffff;
  --surface: #fbeec9;
  --surface-soft: #f8f4ed;
  --accent: #8a4939;
  --accent-display: #a5644e;
  --accent-2: #f0a22e;
  --line: #d8c5b9;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --nav-text: #8a4939;
  --card-bg: #ffffff;
  --card-border: transparent;
  --radius: 1.25rem;
  --shadow: 0 24px 60px rgba(78, 59, 48, 0.11);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--sans);
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}

body,
button,
input,
textarea {
  font: inherit;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  text-wrap: balance;
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.45rem, 5.3vw, 4.8rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid #1677b8;
  outline-offset: 4px;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.section-shell,
.nav-shell {
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.8rem 1.3rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--small {
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* Header and navigation */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid color-mix(in srgb, var(--nav-text) 18%, transparent);
  background: var(--nav-bg);
  color: var(--nav-text);
  backdrop-filter: blur(14px);
}

.nav-shell {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 0.35rem;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
}

.primary-nav a {
  font-size: 0.88rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.primary-nav a:not(.nav-cta):hover {
  text-decoration: underline;
}

.primary-nav .nav-cta {
  padding: 0.65rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0.6rem;
  border: 0;
  background: transparent;
  color: inherit;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

/* Hero */
.hero {
  position: relative;
  min-height: 47rem;
  padding-top: clamp(9rem, 16vw, 13rem);
  padding-bottom: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--paper) 60%, var(--surface-soft));
}

.hero::before {
  position: absolute;
  width: 35rem;
  height: 35rem;
  top: 4rem;
  right: -16rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.65fr);
  gap: 5rem;
  align-items: center;
}

.hero-copy .lede {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.hero-mark {
  position: relative;
  display: grid;
  min-height: 23rem;
  place-items: center;
  border-radius: 50% 50% 8% 50%;
  background: var(--surface);
}

.hero-mark img {
  width: 55%;
  mix-blend-mode: multiply;
}

.hero-mark span {
  position: absolute;
  right: -1rem;
  bottom: 1.25rem;
  padding: 0.8rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--accent);
}

.stat-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(5rem, 10vw, 8rem);
  margin-bottom: 0;
  padding-left: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.stat-strip li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--line);
}

.stat-strip li:first-child {
  padding-left: 0;
}

.stat-strip li:last-child {
  border-right: 0;
}

.stat-strip strong {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Services */
.services {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 3.25rem;
}

.section-heading > p:last-child {
  max-width: 40rem;
  color: var(--muted);
}

.service-grid,
.case-grid,
.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.service-card {
  position: relative;
  min-height: 26rem;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card-bg);
}

.service-card:nth-child(2) {
  transform: translateY(1.5rem);
}

.card-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
}

.service-icon {
  width: 3.5rem;
  margin: 2.7rem 0 2.3rem;
  fill: none;
  stroke: var(--accent-display);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  position: absolute;
  bottom: 2rem;
  font-weight: 800;
}

/* Service deep dives */
.deep-dive {
  border-bottom: 1px solid var(--line);
}

.deep-dive:nth-of-type(2n) {
  background: var(--surface-soft);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.25fr 1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.section-index {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.8;
  color: #76655c;
}

.deep-copy p:last-child {
  color: var(--muted);
}

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

.feature-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

.feature-list span {
  font-size: 0.72rem;
  color: var(--accent);
}

/* Founder */
.founder {
  background: var(--surface);
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) 1.15fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}

.portrait-placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  place-items: center;
  overflow: hidden;
  border-radius: 48% 48% var(--radius) var(--radius);
  background: var(--paper);
}

.portrait-placeholder img {
  width: 54%;
  opacity: 0.24;
  mix-blend-mode: multiply;
}

.portrait-placeholder span {
  position: absolute;
  bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.founder-role {
  margin-top: -0.6rem;
  font-weight: 800;
  color: var(--accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  padding-left: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 750;
}

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

/* About and case studies */
.differentiator-grid article {
  padding: 2rem 0;
  border-top: 3px solid var(--accent-display);
}

.differentiator-grid article > span {
  display: block;
  margin-bottom: 3rem;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
}

.differentiator-grid p,
.case-card > p {
  color: var(--muted);
}

.case-studies {
  background: var(--surface-soft);
}

.heading-row {
  display: grid;
  max-width: none;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 3rem;
  align-items: end;
}

.case-card {
  display: flex;
  min-height: 27rem;
  padding: 2rem;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.case-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.case-card dl div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.case-card dt {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.case-card dd {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  overflow-wrap: anywhere;
  font-size: clamp(1.25rem, 2vw, 2.2rem);
  line-height: 1.1;
}

/* Testimonial */
.testimonial {
  color: #fff;
  background: #4e3b30;
}

.testimonial .eyebrow {
  color: #f7c97d;
}

.quote-shell {
  display: grid;
  max-width: 62rem;
  grid-template-columns: 0.25fr 1fr;
  gap: 2rem;
}

.quote-mark {
  font-family: var(--serif);
  font-size: clamp(7rem, 17vw, 14rem);
  line-height: 0.8;
  color: var(--accent-2);
}

blockquote {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 1.25;
}

.attribution {
  font-weight: 800;
}

.attribution span {
  display: block;
  color: #e9ddd4;
  font-size: 0.9rem;
  font-weight: 400;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.contact-intro {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.contact-intro > p {
  max-width: 30rem;
  color: var(--muted);
}

.contact-intro > a {
  display: block;
  margin: 2.5rem 0 0.4rem;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.contact-form input {
  min-height: 3rem;
}

.contact-form textarea {
  padding-top: 0.7rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 20%, transparent);
}

.contact-form .button {
  justify-self: start;
  margin-top: 1rem;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.form-status {
  min-height: 1.65rem;
  margin: 0;
  font-weight: 700;
}

.form-status.is-success {
  color: #25643b;
}

.form-status.is-error {
  color: #a11e22;
}

/* Footer */
.site-footer {
  padding: 4rem 0 7rem;
  color: #fff;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 3rem;
}

.brand--footer {
  color: #fff;
}

.brand--footer + p {
  max-width: 24rem;
  margin-top: 1rem;
  color: #d9d4d3;
}

.site-footer nav,
.footer-meta {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.site-footer a {
  color: #fff;
}

.footer-meta span {
  color: #d9d4d3;
}

/* Consent */
.cookie-banner {
  position: fixed;
  z-index: 300;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border: 1px solid #776b64;
  border-radius: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  background: #231f20;
  color: #fff;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin-bottom: 0.25rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.cookie-banner p {
  margin-bottom: 0;
  color: #eee8e5;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
  align-items: center;
}

.cookie-banner .button {
  border-color: #f0a22e;
  background: #f0a22e;
  color: #231f20;
}

.text-button {
  padding: 0.5rem;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  background: transparent;
  color: #fff;
}

/* Standalone pages */
.legal-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-shell {
  width: min(100% - 2.5rem, 48rem);
  margin-inline: auto;
}

.legal-main {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.legal-main h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.legal-main h2 {
  margin-top: 3rem;
  font-size: 1.75rem;
  font-family: var(--sans);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.legal-notice {
  padding: 1rem;
  border-left: 4px solid var(--accent-display);
  background: var(--surface-soft);
  font-weight: 700;
}

.legal-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.error-page img {
  width: 8rem;
  margin: 0 auto 1.5rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 1.5rem;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: var(--nav-bg);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    padding: 0.5rem;
  }

  .hero-grid,
  .founder-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    width: min(100%, 26rem);
    min-height: 22rem;
    margin-inline: auto;
  }

  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 22rem;
  }

  .service-card:nth-child(2) {
    transform: none;
  }

  .split-layout {
    grid-template-columns: 0.2fr 1fr;
  }

  .feature-list {
    grid-column: 2;
  }

  .contact-intro {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.6fr;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .section-shell,
  .nav-shell {
    width: min(100% - 2rem, 76rem);
  }

  .section {
    padding-block: 4.5rem;
  }

  .hero {
    padding-top: 8rem;
    padding-bottom: 0;
  }

  .hero-grid {
    gap: 3rem;
  }

  .stat-strip {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }

  .stat-strip li {
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-strip li:last-child {
    border-bottom: 0;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .section-index {
    font-size: 3rem;
  }

  .feature-list {
    grid-column: auto;
  }

  .differentiator-grid {
    grid-template-columns: 1fr;
  }

  .differentiator-grid article > span {
    margin-bottom: 1rem;
  }

  .heading-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .quote-shell {
    grid-template-columns: 1fr;
  }

  .quote-mark {
    height: 4rem;
  }

  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    grid-column: auto;
  }

  .cookie-banner {
    display: grid;
    gap: 1rem;
  }

  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
