:root {
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-script: "Segoe Script", "Bradley Hand", "Lucida Handwriting", cursive;
  --bg: #f3ece3;
  --bg-soft: #e9ddd0;
  --surface: #fff8f0;
  --surface-2: #f8eee2;
  --surface-3: #f1e2d1;
  --text: #2d231b;
  --text-strong: #1f1712;
  --muted: #6f5c4e;
  --accent: #b35a3f;
  --accent-hover: #9f4c33;
  --accent-2: #8f6a3f;
  --line: rgba(45, 35, 27, 0.14);
  --line-strong: rgba(45, 35, 27, 0.24);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 8px 20px rgba(53, 33, 20, 0.07);
  --shadow-strong: 0 14px 34px rgba(53, 33, 20, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 520px at 8% -12%, rgba(179, 90, 63, 0.2), transparent 64%),
    radial-gradient(760px 480px at 120% 22%, rgba(143, 106, 63, 0.16), transparent 60%),
    linear-gradient(180deg, #f7f0e8 0%, #f1e7dc 52%, #ede1d3 100%);
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 100%;
  height: 5px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #d7613e 0%, #c95839 45%, #a67542 100%);
  background-size: 170% 100%;
  box-shadow: 0 0 0 1px rgba(215, 97, 62, 0.18), 0 4px 14px rgba(179, 90, 63, 0.35);
  transition: transform 70ms linear;
}

.site-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 18px auto 64px;
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 248, 240, 0.6);
  background: rgba(255, 248, 240, 0.72);
  backdrop-filter: blur(8px) saturate(118%);
  box-shadow: 0 14px 26px rgba(53, 33, 20, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 180ms ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.55);
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(179, 90, 63, 0.18);
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--text-strong);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.nav-toggle {
  display: none;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.main-nav a {
  position: relative;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 9px 10px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.main-nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.34) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 340ms ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.main-nav a:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.main-nav a:hover::before,
.main-nav a:focus-visible::before {
  transform: translateX(130%);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--text-strong);
}

.main-nav a.is-active {
  border-color: rgba(179, 90, 63, 0.35);
  background: rgba(179, 90, 63, 0.1);
}

.nav-title {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
}

.nav-meta {
  color: var(--muted);
  font-size: 11px;
}

.content {
  display: grid;
  gap: 20px;
}

.section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 248, 240, 0.72);
  box-shadow: 0 16px 32px rgba(53, 33, 20, 0.13);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 20px;
  min-height: 430px;
}

.hero-copy,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 18px;
}

.hero-panel[data-parallax] {
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease;
}

.hero-panel[data-parallax]:hover {
  box-shadow: var(--shadow-strong);
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b8467;
  font-family: var(--font-script);
  font-size: 24px;
  font-weight: 600;
}

.eyebrow::before {
  content: '';
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* Keep section eyebrows visually identical across key blocks. */
#process .eyebrow,
#proof .eyebrow,
#contact .eyebrow,
#legal .eyebrow {
  color: #4b8467;
  font-family: var(--font-script);
  font-size: 24px;
  font-weight: 600;
}

.hero-title,
.section h2,
.spotlight-card h2,
.contact-copy h2,
.proof-card h2,
.legal h2 {
  margin: 10px 0;
  color: var(--text-strong);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero-title {
  font-size: clamp(36px, 4vw, 56px);
  max-width: 14ch;
}

.hero-lede,
.lede,
.case-card p,
.expertise-card p,
.process-step p,
.proof-card p:not(.eyebrow),
.contact-copy p:not(.eyebrow),
.contact-facts li,
.legal .muted,
.footer-note p,
.spotlight-card p {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 180ms ease, border-color 150ms ease, background 150ms ease;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: -120% 45% 45% -120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 65%);
  transform: translate3d(0, 0, 0) scale(0.2);
  opacity: 0;
  transition: transform 260ms ease, opacity 200ms ease;
  pointer-events: none;
}

.btn.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(179, 90, 63, 0.22);
}

.btn.primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 20px rgba(179, 90, 63, 0.25);
  background: var(--accent-hover);
}

.btn:hover::before,
.btn:focus-visible::before {
  opacity: 1;
  transform: translate3d(12%, 12%, 0) scale(1);
}

.btn.ghost {
  color: var(--text-strong);
  border-color: var(--line);
  background: var(--surface-2);
}

.btn.ghost:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #fff;
}

.hero-metrics {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
  padding: 12px;
  display: grid;
  gap: 4px;
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hero-metrics li:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 22px rgba(53, 33, 20, 0.12);
}

.hero-metrics strong {
  color: var(--text-strong);
  font-size: 18px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.spotlight-card,
.spotlight-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-3);
  padding: 14px;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spotlight-card h2 {
  margin-top: 8px;
  font-size: clamp(22px, 2.6vw, 30px);
}

.spotlight-list h3 {
  margin: 0 0 8px;
  color: var(--text-strong);
  font-family: var(--font-serif);
}

.spotlight-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.spotlight-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
}

.spotlight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-head {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
}

.section-head h2::after,
.contact-copy h2::after,
.proof-card h2::after,
.legal h2::after {
  content: '';
  display: block;
  width: 76px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.lede {
  max-width: 62ch;
}

.case-grid,
.expertise-grid,
.process-grid {
  display: grid;
  gap: 12px;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card,
.expertise-card,
.process-step,
.proof-card,
.proof-quote,
.contact-facts,
.legal,
.footer-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.case-card,
.expertise-card,
.process-step,
.proof-card,
.proof-quote,
.contact-facts {
  position: relative;
  padding: 14px;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 220ms ease;
}

.case-card::before,
.expertise-card::before,
.process-step::before,
.proof-card::before,
.proof-quote::before,
.contact-facts::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transform: scaleY(0.2);
  transition: opacity 200ms ease, transform 200ms ease;
}

.case-card:hover,
.expertise-card:hover,
.process-step:hover,
.proof-card:hover,
.proof-quote:hover,
.contact-facts:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 20px rgba(53, 33, 20, 0.1);
}

.case-card:hover::before,
.case-card:focus-within::before,
.expertise-card:hover::before,
.expertise-card:focus-within::before,
.process-step:hover::before,
.process-step:focus-within::before,
.proof-card:hover::before,
.proof-card:focus-within::before,
.proof-quote:hover::before,
.proof-quote:focus-within::before,
.contact-facts:hover::before,
.contact-facts:focus-within::before {
  opacity: 1;
  transform: scaleY(1);
}

.case-card h3,
.expertise-card h3,
.process-step h3,
.contact-facts h3 {
  margin: 7px 0 6px;
  color: var(--text-strong);
  font-family: var(--font-serif);
  font-size: 23px;
}

.case-card dl {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.case-card dl div {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.case-card dt {
  font-size: 12px;
  color: #876d59;
}

.case-card dd {
  margin: 0;
  font-size: 13px;
  color: #4f3f33;
}

.expertise-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.expertise-card ul,
.contact-facts ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.expertise-card li,
.contact-facts li {
  position: relative;
  padding-left: 14px;
}

.expertise-card li::before,
.contact-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 7px;
  height: 2px;
  border-radius: 99px;
  background: var(--accent);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-step span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 99px;
  border: 1px solid rgba(179, 90, 63, 0.35);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.proof-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 0.8fr;
}

.proof-grid > .proof-card:only-child {
  grid-column: 1 / -1;
  width: min(100%, 980px);
  justify-self: center;
}

.proof-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 2.9vw, 40px);
}

.proof-quote {
  display: grid;
  align-content: center;
  gap: 10px;
}

.proof-quote p {
  color: var(--text-strong);
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1.24;
}

.proof-quote span {
  color: #7d6552;
  font-size: 13px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.contact-copy h2 {
  margin: 10px 0;
  font-size: clamp(28px, 2.9vw, 40px);
}

.legal {
  padding: 16px;
}

.legal h2 {
  margin: 8px 0 12px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-note {
  padding: 14px 16px;
  text-align: center;
  background: var(--surface-2);
}

.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;
}

.text-link,
.btn,
.main-nav a,
.nav-toggle,
.brand {
  outline: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 160ms ease, transform 160ms ease;
}

.text-link:hover {
  color: var(--accent-hover);
  transform: translateX(2px);
}

.text-link:focus-visible,
.btn:focus-visible,
.main-nav a:focus-visible,
.nav-toggle:focus-visible,
.brand:focus-visible {
  box-shadow: 0 0 0 2px rgba(143, 106, 63, 0.36);
}

body.motion-enabled .reveal,
body.motion-enabled .hero-panel[data-parallax],
body.motion-enabled .topbar {
  will-change: transform, opacity;
}

.reveal {
  opacity: 1;
  transform: none;
}

body.motion-enabled .reveal {
  opacity: 0;
  transform: translateY(12px);
}

body.motion-enabled .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--stagger, 0ms),
    transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--stagger, 0ms);
}

body.motion-enabled .topbar {
  animation: topbar-in 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes topbar-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


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

@media (max-width: 1100px) {
  .site-shell {
    width: min(1280px, calc(100% - 24px));
    gap: 16px;
  }

  .topbar {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text-strong);
    cursor: pointer;
  }

  .nav-toggle > span:not(.sr-only) {
    position: relative;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: background 160ms ease;
  }

  .nav-toggle > span:not(.sr-only)::before,
  .nav-toggle > span:not(.sr-only)::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: top 160ms ease, transform 160ms ease;
  }

  .nav-toggle > span:not(.sr-only)::before {
    top: -6px;
  }

  .nav-toggle > span:not(.sr-only)::after {
    top: 6px;
  }

  .topbar.nav-open .nav-toggle > span:not(.sr-only) {
    background: transparent;
  }

  .topbar.nav-open .nav-toggle > span:not(.sr-only)::before {
    top: 0;
    transform: rotate(45deg);
  }

  .topbar.nav-open .nav-toggle > span:not(.sr-only)::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 240ms ease, opacity 170ms ease;
  }

  .topbar.nav-open .main-nav {
    max-height: 380px;
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    justify-items: start;
    text-align: left;
    padding-inline: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-title {
    max-width: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .case-grid,
  .expertise-grid,
  .process-grid,
  .proof-grid,
  .contact-layout,
  .legal-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .site-shell {
    width: calc(100% - 16px);
    margin-top: 10px;
  }

  .section {
    padding: 16px;
    border-radius: 16px;
  }

  .hero-copy,
  .hero-panel,
  .case-card,
  .expertise-card,
  .process-step,
  .proof-card,
  .proof-quote,
  .contact-facts,
  .legal,
  .footer-note {
    border-radius: 12px;
  }

  .hero-title {
    font-size: clamp(30px, 11vw, 42px);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
