:root {
  color-scheme: light;
  --paper: #fcf7e9;
  --paper-deep: #f1dda7;
  --ink: #1f1805;
  --muted: #6d5922;
  --line: #d9bd68;
  --gold: #ddab22;
  --gold-dark: #846715;
  --green: #34402b;
  --button-text: #fffdf7;
  --radius: 0;
  --page: min(1380px, calc(100% - 72px));
  --sans: "Aptos", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--button-text);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 74px;
  padding-inline: max(36px, calc((100% - 1380px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgb(252 247 233 / 94%);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: baseline; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand strong { font-size: 1.1rem; letter-spacing: 0.03em; }
.brand span { color: var(--muted); font-size: 0.88rem; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { color: var(--ink); font-size: 0.88rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover { color: var(--gold-dark); }
.nav-cta { padding: 8px 14px; border: 1px solid var(--ink); }
.nav-cta:active, .button:active { transform: translateY(1px); }
.menu-button { display: none; width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; }
.menu-button span { display: block; width: 22px; height: 1px; margin: 6px 0; background: var(--ink); }

.hero {
  width: var(--page);
  min-height: calc(100dvh - 74px);
  margin-inline: auto;
  padding-block: clamp(52px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.6fr);
  grid-template-rows: auto minmax(360px, 1fr);
  column-gap: clamp(44px, 8vw, 124px);
  row-gap: clamp(42px, 6vw, 80px);
}
.hero-title { align-self: end; }
.kicker {
  margin: 0 0 20px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.8rem, 8vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.86;
}
.hero-action { align-self: end; padding-bottom: 8px; }
.hero-action p { max-width: 27ch; margin: 0 0 28px; color: var(--muted); font-size: 1.06rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 18px;
  background: var(--green);
  color: var(--button-text);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, transform 120ms ease;
}
.button:hover { background: #20291b; }
.hero-image { grid-column: 1 / -1; margin: 0; min-width: 0; height: clamp(390px, 48vw, 680px); overflow: hidden; background: var(--paper-deep); }
.hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 48%; filter: saturate(0.78) contrast(1.03); }

.about, .services, .offices, .visit, footer { width: var(--page); margin-inline: auto; }
.section-name { margin: 0; color: var(--gold-dark); font-size: 0.9rem; font-weight: 750; }
.about {
  padding-block: clamp(100px, 13vw, 180px);
  display: grid;
  grid-template-columns: 0.45fr 1.55fr;
  column-gap: clamp(44px, 9vw, 140px);
  border-bottom: 1px solid var(--line);
}
.about-statement h2, .section-heading h2, .office-intro h2, .visit h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.2vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.95;
}
.about-statement > p { max-width: 60ch; margin: 36px 0 0; color: var(--muted); font-size: 1.13rem; }
.about-note {
  grid-column: 2;
  max-width: 30ch;
  margin: 76px 0 0 auto;
  padding: 18px 0 0 28px;
  border-top: 3px solid var(--gold);
  color: var(--muted);
}

.services { padding-block: clamp(100px, 12vw, 164px); }
.section-heading { display: grid; grid-template-columns: 0.45fr 1fr 0.65fr; gap: clamp(32px, 6vw, 90px); align-items: end; margin-bottom: 76px; }
.section-heading > p:last-child { max-width: 34ch; margin: 0; color: var(--muted); }
.service-layout { display: grid; grid-template-columns: 1.18fr 0.82fr; border-top: 1px solid var(--ink); }
.service { min-height: 230px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.service:not(.service-primary) { padding-left: clamp(28px, 5vw, 76px); border-left: 1px solid var(--line); }
.service-primary { grid-row: span 2; min-height: 460px; padding-right: clamp(36px, 8vw, 120px); display: flex; flex-direction: column; justify-content: space-between; }
.service h3 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 4.2rem); font-weight: 520; letter-spacing: -0.05em; line-height: 1; }
.service-primary h3 { max-width: 8ch; font-size: clamp(3rem, 6vw, 7rem); }
.service p { max-width: 42ch; margin: 28px 0 0; color: var(--muted); }

.offices { padding-block: clamp(100px, 12vw, 164px); border-top: 1px solid var(--line); }
.office-intro { display: grid; grid-template-columns: 0.45fr 1.55fr; gap: clamp(44px, 9vw, 140px); margin-bottom: 72px; }
.office-intro h2 { max-width: 12ch; }
.office-list { margin-left: min(25%, 340px); border-top: 1px solid var(--ink); }
.office { min-height: 156px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.office h3 { margin: 0; font-size: clamp(2.3rem, 5vw, 5.4rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1; }
.office p { margin: 8px 0 0; color: var(--muted); }
.office a, .text-link { color: var(--ink); font-size: 0.9rem; font-weight: 750; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.office a:hover, .text-link:hover { color: var(--gold-dark); }

.visit {
  margin-bottom: 72px;
  padding: clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 10vw, 150px);
  background: var(--paper-deep);
}
.visit h2 { max-width: 8ch; }
.visit-copy p { max-width: 51ch; margin: 0 0 18px; color: #58440e; font-size: 1.06rem; }
.visit-copy .text-link { display: inline-block; margin-top: 16px; }
footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.83rem; }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms ease, transform 420ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  :root { --page: calc(100% - 40px); }
  .site-header { padding-inline: 20px; }
  .menu-button { display: block; }
  .site-header nav { position: absolute; top: 74px; left: 0; right: 0; display: none; padding: 22px; flex-direction: column; align-items: stretch; gap: 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-header nav.open { display: flex; }
  .nav-cta { width: fit-content; }
  .hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto; padding-block: 60px 90px; }
  .hero-title, .hero-action { align-self: auto; }
  .hero-action p { max-width: 40ch; }
  .hero-image { grid-column: 1; height: 500px; }
  .about { grid-template-columns: 0.35fr 1.65fr; }
  .section-heading { grid-template-columns: 0.35fr 1.65fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .service-layout { grid-template-columns: 1fr; }
  .service-primary { grid-row: auto; min-height: 330px; }
  .service:not(.service-primary) { padding-left: 0; border-left: 0; }
  .office-list { margin-left: 0; }
  .visit { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; padding-block: 48px; }
  footer > p:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 32px); }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5.6rem); }
  .hero-image { height: 420px; }
  .about, .section-heading, .office-intro, .visit, footer { grid-template-columns: 1fr; }
  .about-note, .section-heading > p:last-child { grid-column: 1; margin-left: 0; }
  .office { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 30px; }
  .visit { width: 100%; margin-bottom: 0; padding: 70px 24px; }
  footer { gap: 14px; }
  footer > p:last-child { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .button { opacity: 1; transform: none; transition: none; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1f1805;
    --paper-deep: #3a2e0b;
    --ink: #fcf7e9;
    --muted: #eacd7b;
    --line: #58440e;
    --gold: #ddab22;
    --gold-dark: #f1dda7;
    --green: #667653;
    --button-text: #ffffff;
  }
  .site-header { background: rgb(31 24 5 / 94%); }
  .button:hover { background: #778a61; }
  .hero-image img { filter: saturate(0.68) brightness(0.78) contrast(1.08); }
  .visit-copy p { color: var(--muted); }
}
