:root {
  --mist: #eef3f4;
  --fog: #d9e4e6;
  --ink: #2a3a3e;
  --soft: #5f7378;
  --glacier: #7fa8ae;
  --deep: #3d5c62;
  --line: rgba(42, 58, 62, 0.12);
  --serif: "Literata", Georgia, serif;
  --sans: "Figtree", sans-serif;
  --max: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(800px 480px at 0% 0%, rgba(127, 168, 174, 0.18), transparent 60%),
    linear-gradient(180deg, #f7fafb, var(--mist) 45%, var(--fog));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, .brand, .logo, .eyebrow {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 .8rem;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--deep); color: #fff; padding: .55rem 1rem;
}
.skip:focus { top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.1rem, 3.5vw, 2rem); }

.site-header {
  --fg: #f4f8f9;
  --muted: rgba(244, 248, 249, 0.75);
  --shell: rgba(61, 92, 98, 0.4);
  --border: rgba(244, 248, 249, 0.2);
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem clamp(.85rem, 2.5vw, 1.4rem) 0;
  pointer-events: none;
  transition: padding .4s var(--ease);
}
.site-header.is-scrolled {
  --fg: var(--ink);
  --muted: var(--soft);
  --shell: rgba(238, 243, 244, 0.88);
  --border: var(--line);
  padding-top: .65rem;
}
.nav-shell {
  pointer-events: auto;
  max-width: calc(var(--max) + 1rem);
  margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  min-height: 3.6rem; padding: .4rem .45rem .4rem 1.2rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--shell);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(42, 58, 62, 0.12);
  transition: background .4s, border-color .4s, color .4s, border-radius .4s;
  color: var(--fg);
}
.site-header.is-scrolled .nav-shell { border-radius: 18px; }
.logo {
  justify-self: start; text-decoration: none; font-size: 1.4rem; color: var(--fg);
}
.nav { justify-self: center; display: flex; gap: .1rem; }
.nav a {
  padding: .5rem .9rem; text-decoration: none; font-family: var(--sans);
  font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--fg); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: .4rem; }
.nav-cta {
  padding: .65rem 1.15rem; border-radius: 999px; background: var(--glacier); color: #fff;
  font-family: var(--sans); font-size: .875rem; font-weight: 600; text-decoration: none;
}
.nav-cta:hover { background: var(--deep); color: #fff; }
.nav-toggle {
  display: none; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 999px;
  background: rgba(255,255,255,.15); cursor: pointer;
}
.site-header.is-scrolled .nav-toggle { background: rgba(42,58,62,.08); }
.nav-toggle span {
  display: block; width: 1rem; height: 1.5px; margin: .32rem auto; background: var(--fg);
  transition: transform .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.nav-drawer {
  pointer-events: auto; max-width: calc(var(--max) + 1rem); margin: .55rem auto 0;
  padding: .85rem; border-radius: 20px; border: 1px solid var(--line);
  background: rgba(247, 250, 251, .96); backdrop-filter: blur(16px);
  animation: drawer .35s var(--ease);
}
.nav-drawer[hidden] { display: none; }
.nav-drawer nav { display: grid; gap: .2rem; }
.nav-drawer a {
  display: block; padding: .95rem 1rem; border-radius: 12px; text-decoration: none;
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}
.nav-drawer a:hover { background: rgba(127,168,174,.12); }
.drawer-cta {
  margin-top: .35rem !important; background: var(--glacier) !important; color: #fff !important;
  text-align: center; font-family: var(--sans) !important; font-size: 1rem !important; font-weight: 600 !important;
}

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.85);
  transform: scale(1.05); animation: drift 18s var(--ease) forwards;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(61,92,98,.25), rgba(61,92,98,.72)),
    linear-gradient(90deg, rgba(61,92,98,.45), transparent 55%);
}
.hero-copy {
  position: relative; z-index: 1; color: #f7fafb;
  max-width: var(--max); width: 100%; margin: 0 auto;
  padding: 7rem clamp(1.1rem, 3.5vw, 2rem) 4.5rem;
}
.brand {
  margin: 0 0 1rem; font-size: clamp(2.8rem, 8vw, 5rem); animation: rise .9s var(--ease) both;
}
.hero h1 { max-width: 13ch; animation: rise .9s var(--ease) .1s both; }
.lead {
  max-width: 34ch; color: rgba(247,250,251,.82); animation: rise .9s var(--ease) .2s both;
}
.btn {
  display: inline-flex; margin-top: 1.4rem; padding: .85rem 1.3rem; border: 0; border-radius: 999px;
  background: #fff; color: var(--deep); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .2s; animation: rise .9s var(--ease) .3s both;
}
.btn:hover { transform: translateY(-2px); color: var(--deep); }

.section { padding: clamp(4.5rem, 10vw, 7rem) 0; }
.soft { background: rgba(217, 228, 230, 0.45); }
.eyebrow {
  margin: 0 0 .65rem; font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--glacier);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.split p, .section-lead { color: var(--soft); }
.practices {
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.practices li { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.practices p { color: var(--soft); }
.split img, .house-grid img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px;
}
.house-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.house-grid img { aspect-ratio: 1; }

.contact { background: var(--deep); color: #f7fafb; }
.contact .eyebrow { color: #b7d4d8; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact a { color: #d7ecef; text-decoration: none; }
.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 500; }
.form input, .form textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 14px;
  border: 1px solid rgba(247,250,251,.25); background: rgba(247,250,251,.08);
  color: #fff; font: inherit;
}
.form input:focus, .form textarea:focus { outline: 2px solid rgba(127,168,174,.7); }
.form .btn { justify-self: start; animation: none; background: #fff; color: var(--deep); }
.status { color: #c8e4e8; margin: 0; }

.footer { padding: 1.5rem 0; color: var(--soft); font-size: .9rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer .logo { margin: 0; color: var(--ink); font-size: 1.2rem; }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.on { opacity: 1; transform: none; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift { to { transform: scale(1); } }
@keyframes drawer {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .brand, .hero h1, .lead, .btn, .hero-media img {
    animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important;
  }
}
@media (max-width: 900px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .split, .practices, .house-grid, .contact-grid { grid-template-columns: 1fr; }
  .split img { aspect-ratio: 16/10; }
}
