:root {
  --bg-cream: #F7F3EC;
  --bg-cream-92: rgba(247, 243, 236, 0.92);
  --ink: #0F1E2D;
  --ink-80: rgba(15, 30, 45, 0.80);
  --ink-60: rgba(15, 30, 45, 0.60);
  --ink-30: rgba(15, 30, 45, 0.30);
  --brass: #B38E4A;
  --ocean: #0A1620;
  --ocean-85: rgba(10, 22, 32, 0.85);
  --divider: #C8BFAE;
  --cream-on-dark: #F7F3EC;
  --cream-70: rgba(247, 243, 236, 0.70);
  --cream-85: rgba(247, 243, 236, 0.85);

  --ff-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --page-pad: clamp(20px, 5vw, 64px);
  --gutter: clamp(24px, 4vw, 48px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

::selection { background: var(--brass); color: var(--bg-cream); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream-on-dark);
  padding: 12px 18px; z-index: 1000;
  font-family: var(--ff-body); font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin: 0 0 22px;
}
.eyebrow-brass { color: var(--brass); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-cream-92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--divider);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--page-pad);
  max-width: 1240px;
  margin: 0 auto;
}
.brand img { height: 28px; width: auto; }

.nav { display: none; align-items: center; gap: 40px; }
.nav-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-80);
  position: relative;
  padding: 4px 0;
  transition: color 200ms var(--ease);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 280ms var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-contact {
  display: flex; align-items: center; gap: 18px;
  font-size: 13px;
  color: var(--ink-80);
}
.nav-contact a { transition: color 200ms var(--ease); }
.nav-contact a:hover,
.nav-contact a:focus-visible { color: var(--ink); }
.nav-phone { font-variant-numeric: tabular-nums; }
.nav-email::before {
  content: "";
  display: inline-block;
  width: 1px; height: 12px;
  background: var(--divider);
  margin-right: 18px; vertical-align: middle;
}

/* Mobile hamburger */
.nav-toggle {
  background: transparent;
  border: 0;
  padding: 10px;
  margin: -10px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-cream);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--page-pad) 40px;
  opacity: 0;
  transition: opacity 240ms var(--ease);
}
.nav-overlay[hidden] { display: none; }
body.nav-open .nav-overlay { opacity: 1; }
.nav-overlay ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 22px;
  text-align: center;
}
.nav-overlay a {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 32px;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream-on-dark);
  padding: clamp(80px, 15vh, 140px) var(--page-pad) clamp(100px, 14vh, 140px);
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 50% 55%;
  animation: kenburns 14s var(--ease) 0s infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.00); }
  to   { transform: scale(1.08); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(10,22,32,0.55) 0%,
      rgba(10,22,32,0.35) 45%,
      rgba(10,22,32,0.72) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  text-align: left;
}
.hero .eyebrow { color: var(--brass); margin-bottom: 28px; }
.hero-headline {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--cream-on-dark);
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--cream-on-dark);
}
.hero-sub {
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--cream-85);
  max-width: 560px;
  margin: 0 0 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--brass);
  color: var(--cream-on-dark);
  transition: background 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
  cursor: pointer;
}
.btn-ghost { background: transparent; }
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--brass);
  color: var(--ocean);
  border-color: var(--brass);
}
.btn-arrow {
  display: inline-block;
  transition: transform 260ms var(--ease);
}
.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow { transform: translateX(4px); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5vh, 52px);
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--cream-85);
}
.scroll-cue-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.scroll-cue-line {
  width: 1px; height: 48px;
  background: var(--cream-70);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute; left: 0; top: -50%;
  width: 1px; height: 50%;
  background: var(--brass);
  animation: scroll-fall 2.4s var(--ease) infinite;
}
@keyframes scroll-fall {
  0% { top: -50%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Philosophy ---------- */
.philosophy {
  padding: clamp(96px, 14vh, 160px) 0 clamp(88px, 12vh, 140px);
}
.philosophy-inner {
  max-width: 840px;
  text-align: left;
}
.philosophy-body {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 56px;
  max-width: 720px;
}
.rule-brass {
  width: 64px;
  height: 1px;
  background: var(--brass);
}

/* ---------- Services ---------- */
.services {
  padding: 0 0 clamp(60px, 10vh, 120px);
}
.service {
  padding: clamp(40px, 6vh, 72px) 0;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.service-figure {
  margin: 0;
  overflow: hidden;
}
.service-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}
.service:hover .service-figure img {
  transform: scale(1.03);
}
.service-body h3 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--ink);
}
.service-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-80);
  margin: 0 0 28px;
  max-width: 52ch;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--divider);
}
.checklist li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--divider);
  font-size: 15px;
  color: var(--ink-80);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 24px;
  width: 12px; height: 1px;
  background: var(--brass);
}

/* ---------- Areas (dark) ---------- */
.areas {
  background: var(--ocean);
  color: var(--cream-on-dark);
  padding: clamp(96px, 14vh, 160px) 0 clamp(96px, 14vh, 160px);
  position: relative;
  overflow: hidden;
}
.areas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(179,142,74,0.12), transparent 70%),
    radial-gradient(900px 400px at 10% 100%, rgba(179,142,74,0.08), transparent 70%);
  pointer-events: none;
}
.areas > .container { position: relative; z-index: 1; }
.areas-headline {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 clamp(48px, 7vh, 80px);
  max-width: 880px;
  color: var(--cream-on-dark);
}
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 64px);
}
.county {
  border-top: 1px solid rgba(200,191,174,0.25);
  padding-top: 22px;
}
.county-label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 22px;
}
.county ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.county li {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.7;
  color: var(--cream-on-dark);
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(100px, 15vh, 180px) 0 clamp(80px, 12vh, 140px);
  text-align: left;
}
.contact-headline {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(56px, 11vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(56px, 8vh, 96px);
  color: var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--divider);
  padding-top: clamp(32px, 4vw, 48px);
}
.contact-block {}
.contact-block .eyebrow { margin-bottom: 14px; }
.contact-value {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--ink);
  font-style: normal;
  transition: color 200ms var(--ease);
}
a.contact-value:hover,
a.contact-value:focus-visible { color: var(--brass); }
.contact-address { font-weight: 400; font-style: normal; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ocean);
  color: var(--cream-70);
  padding: clamp(48px, 6vh, 80px) 0 clamp(40px, 5vh, 60px);
  border-top: 1px solid rgba(179,142,74,0.35);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.footer-brand img { height: 22px; }
.footer-meta {
  font-size: 13px;
  line-height: 1.7;
}
.footer-meta p { margin: 0; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }

  .hero-content { padding-left: clamp(0px, 4vw, 48px); }

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

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

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .footer-meta { text-align: right; }
}

@media (min-width: 1280px) {
  .service-grid { gap: 72px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue-line::after { display: none; }
}
