:root {
  --ink: #171717;
  --muted: #62605b;
  --paper: #f5f1ea;
  --soft: #e8e1d5;
  --line: rgba(23, 23, 23, 0.14);
  --olive: #58614a;
  --clay: #9b6046;
  --blue: #32485a;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(21, 24, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(245, 241, 234, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: currentColor;
  font-size: 12px;
  opacity: 0.76;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.8vw, 34px);
  font-size: 14px;
}

.nav a {
  opacity: 0.84;
}

.nav a:hover {
  opacity: 1;
}

.header-action,
.button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid currentColor;
  font-size: 14px;
}

i[data-lucide] {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 126px clamp(18px, 4vw, 54px) 42px;
  color: var(--white);
}

.hero-media,
.hero-media img,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(15, 16, 14, 0.82), rgba(15, 16, 14, 0.42) 48%, rgba(15, 16, 14, 0.18)),
    linear-gradient(0deg, rgba(15, 16, 14, 0.72), rgba(15, 16, 14, 0.08) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  padding-bottom: 10vh;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--clay);
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 92px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 68px);
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.1vw, 25px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  font-weight: 700;
}

.button.primary {
  background: var(--white);
  color: var(--ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: 42px;
  z-index: 3;
  width: min(360px, calc(100% - 36px));
  padding: 22px;
  border-left: 3px solid var(--clay);
  background: rgba(245, 241, 234, 0.9);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-panel strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-band {
  background: var(--soft);
}

.intro,
.services,
.common-cases,
.area,
.method,
.profile,
.contact {
  padding: clamp(72px, 10vw, 128px) 0;
}

.intro-grid,
.method-grid,
.profile-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.intro p,
.profile p,
.contact p,
.method-copy p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
}

.service-card i {
  width: 26px;
  height: 26px;
  margin-bottom: 34px;
  color: var(--olive);
}

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

.case-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.case-list article {
  display: grid;
  align-content: start;
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-list article:first-child {
  border-left: 1px solid var(--line);
}

.case-list span {
  display: block;
  margin-bottom: 32px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-list p {
  color: var(--muted);
}

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.area-grid p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.area-actions {
  display: grid;
  gap: 12px;
}

.map-button {
  justify-content: flex-start;
  background: var(--ink);
  color: var(--white);
}

.outline-dark {
  justify-content: flex-start;
  border: 1px solid var(--line);
  color: var(--ink);
}

.image-strip {
  min-height: 560px;
  overflow: hidden;
}

.image-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.steps {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.steps span {
  color: var(--blue);
  font-weight: 700;
}

.steps p {
  margin: 0;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.credentials div {
  min-height: 132px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.credentials div:last-child {
  border-right: 0;
}

.credentials span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.credentials strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  min-height: 58px;
  justify-content: flex-start;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 700;
}

.contact-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.legal-header {
  position: sticky;
  grid-template-columns: auto auto;
  justify-content: space-between;
}

.legal-page {
  padding-top: 0;
}

.legal-hero {
  padding: 150px 0 70px;
  background: var(--soft);
}

.legal-hero h1 {
  max-width: 900px;
  font-size: clamp(44px, 7vw, 88px);
}

.legal-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
}

.legal-content {
  padding: 70px 0 110px;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 900px;
}

.legal-grid article {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.legal-grid h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 42px);
}

.legal-grid p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 17px;
}

.legal-grid a {
  color: var(--blue);
  font-weight: 700;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 54px);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .header-action span {
    display: none;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  .intro-grid,
  .method-grid,
  .profile-grid,
  .contact-grid,
  .area-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

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

  .image-strip {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .brand strong {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-content {
    width: calc(100vw - 36px);
    padding-bottom: 0;
  }

  .hero .eyebrow {
    font-size: 11px;
  }

  h1 {
    max-width: 340px;
    font-size: clamp(38px, 11vw, 48px);
  }

  .hero-copy {
    max-width: 340px;
    font-size: 18px;
    line-height: 1.45;
  }

  .button,
  .contact-link {
    width: 100%;
  }

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

  .case-list article,
  .case-list article:first-child {
    min-height: auto;
    border-left: 1px solid var(--line);
  }

  .credentials div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .credentials div:last-child {
    border-bottom: 0;
  }

  .footer {
    flex-direction: column;
  }

  .legal-hero {
    padding-top: 124px;
  }
}
