:root {
  --home-paper: #f5f1eb;
  --home-ink: #271f22;
  --home-gold: #b99869;
}

.hero {
  min-height: 610px;
  align-items: stretch;
  background: var(--home-paper);
  border-radius: 20px;
}
.hero::after { display: none; }
.hero-image {
  inset-inline-start: 51%;
  width: 49%;
  object-position: center 25%;
}
.hero-card {
  width: 55%;
  margin: 0;
  padding: clamp(2.5rem, 5vw, 5.2rem);
  align-self: center;
  background: transparent;
  border-radius: 0;
}
.hero-card .eyebrow, .home-services .eyebrow, .home-founder .eyebrow, .home-reach .eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-card .eyebrow::before, .home-services .eyebrow::before, .home-founder .eyebrow::before, .home-reach .eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  flex: none;
  background: var(--wine);
}
.hero-card h1 {
  max-width: 13ch;
  color: var(--home-ink);
  font-size: clamp(2.65rem, 1.65rem + 2.6vw, 4.5rem);
  line-height: 1.02;
}
.hero-card p:not(.eyebrow) { max-width: 29rem; margin-top: 1.6rem; font-size: 1.04rem; }
.hero-card .button { margin-top: 1.1rem; }
.hero-caption {
  position: absolute;
  z-index: 1;
  inset-inline-end: 2rem;
  inset-block-end: 2rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.2rem;
  background: rgba(37, 27, 30, .88);
  border-radius: 6px;
  color: #fff;
  font-size: .75rem;
  line-height: 1.5;
}
.hero-caption strong { font-size: .84rem; }
.hero-caption-line { height: 2rem; width: 2px; background: #d7b986; }

.home-services, .home-founder, .home-reach { color: var(--home-ink); }
.home-services h2, .home-work h2, .home-founder h2, .home-values h2, .home-reach h2,
.home-services h3, .home-work h3, .home-values h3, .hero-card h1 { text-wrap: balance; }
.home-services .home-services-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.home-services .home-services-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 315px;
  padding: 1.25rem;
  border: 1px solid #e8dfd8;
  border-radius: 10px;
  background: #fbf9f6;
}
.home-services .home-services-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 1.25rem;
  width: 2.4rem;
  height: 3px;
  background: var(--wine);
}
.home-services .service-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.home-services .service-number { margin: .5rem 0 0; color: #8d5a5e; font-size: .72rem; }
.service-icon { display: grid; flex: none; place-items: center; width: 3.5rem; height: 3.5rem; border: 1px solid #e8d5d4; border-radius: 12px; background: #f5ebe9; color: var(--wine); }
.service-icon svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-services .home-services-card h3 { max-width: 18ch; font-size: 1.35rem; }
.home-services .home-services-card p { max-width: 38rem; }
.home-services .home-services-card .text-link { margin-top: auto; padding-top: 1rem; font-size: .88rem; }

.home-work { background: #eee8e0; }
.home-work .home-work-grid { gap: 1rem; }
.home-work .home-work-card { min-height: 420px; border-radius: 10px; }
.home-work .home-work-card::after { background: linear-gradient(180deg, rgba(28, 22, 24, .08) 15%, rgba(28, 22, 24, .94) 100%); pointer-events: none; }
.home-work .case-card-content { padding: 2rem; }
.home-work .home-work-card h3 { font-size: 1.7rem; }
.home-work .home-work-card .eyebrow { color: #f1d8bd; }
.home-work .home-work-card a { display: inline-block; margin-top: .8rem; font-size: .88rem; }

.home-founder .split { gap: clamp(3rem, 7vw, 7rem); }
.portrait-frame { position: relative; padding: 0 2.5rem 2.5rem 0; }
.portrait-frame::before { content: ""; position: absolute; inset: 2.5rem 0 0 2.5rem; border: 1px solid #c9ab91; border-radius: 12px; }
.home-founder .portrait { position: relative; height: auto; aspect-ratio: 4 / 4.6; border-radius: 12px; }
.portrait-caption {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  display: grid;
  gap: .15rem;
  padding: 1.1rem 1.4rem;
  background: var(--wine-dark);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(40, 25, 30, .16);
}
.portrait-caption span { color: #f1d7dc; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.portrait-caption strong { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 1.05rem; }
.home-founder .lead { color: var(--wine); }

.home-values { position: relative; background: #3a2029; color: #fff; overflow: hidden; }
.home-values::before {
  content: "";
  position: absolute;
  width: 28rem;
  aspect-ratio: 1;
  inset: -12rem -8rem auto auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255,255,255,.025), 0 0 0 8rem rgba(255,255,255,.025);
  pointer-events: none;
}
.home-values .wrap { position: relative; }
.home-values .eyebrow { color: #e8c6b1; }
.home-values .section-heading p:last-child { color: #ecdee1; }
.home-values .principles { gap: 0; border-top: 1px solid rgba(255,255,255,.3); counter-reset: principle; }
.home-values .principles > div { padding: 1.5rem 1rem 0 0; counter-increment: principle; }
.home-values .principles > div::before { content: "0" counter(principle); display: block; margin-bottom: 2rem; color: #e8c6b1; font-size: .75rem; letter-spacing: .12em; }
.home-values .principles h3 { font-size: 1.28rem; }
.home-values .principles p { color: #e8dade; }

.home-reach .band { position: relative; overflow: hidden; background: var(--wine-dark); }
.home-reach .band::after { content: ""; position: absolute; width: 22rem; aspect-ratio: 1; inset: -10rem 8% auto auto; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; pointer-events: none; }
.home-reach .band > * { position: relative; z-index: 1; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-services .home-services-card { transition: transform .2s ease, box-shadow .2s ease; }
  .home-services .home-services-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(56, 35, 38, .08); }
  .home-work .home-work-card img { transition: transform .35s ease; }
  .home-work .home-work-card:hover img, .home-work .home-work-card:focus-within img { transform: scale(1.035); }
}

@media (max-width: 1100px) {
  .home-services .home-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { min-height: 560px; }
  .hero-card { width: 57%; padding: 2.5rem; }
  .hero-image { inset-inline-start: 55%; width: 45%; }
  .hero-card h1 { font-size: clamp(2.5rem, 1.5rem + 3vw, 3.8rem); }
  .hero-caption { inset-inline-end: 1rem; inset-block-end: 1rem; }
  .home-work .home-work-card { min-height: 350px; }
  .home-values .principles { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 600px) {
  .hero { min-height: 0; display: flex; flex-direction: column-reverse; }
  .hero-image { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .hero-card { width: 100%; margin: 0; padding: 2.1rem 1.5rem 2.5rem; }
  .hero-card h1 { max-width: none; font-size: clamp(2.5rem, 1.6rem + 3.5vw, 3.5rem); }
  .hero-card p:not(.eyebrow) { margin-top: 1rem; }
  .hero-caption { display: none; }
  .home-services .home-services-grid, .home-values .principles { grid-template-columns: 1fr; }
  .home-services .home-services-card { min-height: 0; }
  .home-work .home-work-card { min-height: 360px; }
  .home-founder .portrait { aspect-ratio: 4 / 4.5; }
  .portrait-frame { padding: 0 1.4rem 1.4rem 0; }
  .portrait-frame::before { inset: 1.4rem 0 0 1.4rem; }
  .home-values .principles { gap: 0; }
  .home-values .principles > div { padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .home-values .principles > div::before { margin-bottom: .65rem; }
}
