:root {
  --bg: #f6f1e8;
  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: #fffdf8;
  --ink: #14211a;
  --muted: #5c685f;
  --line: rgba(20, 33, 26, 0.12);
  --brand: #163b2b;
  --brand-soft: #234d3a;
  --accent: #b38338;
  --shadow: 0 18px 40px rgba(22, 32, 25, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: min(1120px, calc(100vw - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(179, 131, 56, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg) 100%);
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(246, 241, 232, 0.8);
  border-bottom: 1px solid rgba(20, 33, 26, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

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

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(22, 59, 43, 0.12);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(20, 33, 26, 0.08);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--brand);
}

.site-nav a.active::after,
.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.hero,
.page-hero {
  padding: 5.5rem 0 3rem;
}

.hero {
  position: relative;
}

.hero-home {
  min-height: 42rem;
  padding: 7rem 0 4.5rem;
  overflow: hidden;
  background: #14211a;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: end;
  position: relative;
  z-index: 1;
  min-height: 30rem;
}

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

.hero-media {
  overflow: hidden;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 21, 17, 0.74) 0%, rgba(11, 21, 17, 0.46) 45%, rgba(11, 21, 17, 0.62) 100%),
    linear-gradient(180deg, rgba(11, 21, 17, 0.16) 0%, rgba(11, 21, 17, 0.58) 100%);
  z-index: 0;
}

.hero-copy h1,
.page-hero h1,
.section h2,
.service-card h3,
.team-card h3,
.profile-card h2,
.practice-list h3,
.contact-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
  max-width: 12ch;
  margin-bottom: 1rem;
}

.eyebrow,
.panel-label,
.service-type,
.profile-kicker {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-soft);
}

.lede {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions,
.cta-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #0f2f22;
}

.button-secondary {
  background: transparent;
  color: var(--brand);
  border-color: rgba(22, 59, 43, 0.18);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(22, 59, 43, 0.35);
  background: rgba(255, 255, 255, 0.45);
}

.hero-home .eyebrow,
.hero-home .lede,
.hero-home h1 {
  color: #f8f2e7;
}

.hero-home .eyebrow {
  color: rgba(248, 242, 231, 0.82);
}

.hero-home .lede {
  color: rgba(248, 242, 231, 0.84);
}

.hero-home .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-home .button-secondary:hover,
.hero-home .button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
}

.hero-panel,
.service-card,
.team-card,
.profile-card,
.practice-panel,
.contact-card,
.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel {
  padding: 1.5rem;
  align-self: end;
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: blur(16px);
}

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

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list-large a {
  font-size: 1.1rem;
  font-weight: 700;
}

.section {
  padding: 2rem 0 4rem;
}

.section-soft {
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(20, 33, 26, 0.05);
  border-bottom: 1px solid rgba(20, 33, 26, 0.05);
}

.split-section,
.section-heading,
.cta-box,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2,
.split-section h2,
.cta-box h2 {
  margin-bottom: 0.75rem;
}

.split-section,
.section-heading,
.cta-box {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.flow > * {
  margin: 0;
}

.flow > * + * {
  margin-top: 1rem;
}

.text-link {
  justify-self: end;
  align-self: end;
  text-decoration: none;
  color: var(--brand);
  font-weight: 800;
}

.inline-link {
  display: inline-flex;
  margin-top: 0.85rem;
}

.card-grid,
.team-preview,
.stats-grid,
.profile-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid,
.team-preview,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.team-card,
.profile-card {
  padding: 1.4rem;
}

.team-photo,
.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: calc(var(--radius) - 8px);
  margin-bottom: 1rem;
  background: rgba(22, 59, 43, 0.08);
}

.service-card h3,
.team-card h3 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}

.role {
  margin: 0 0 0.65rem;
  color: var(--brand-soft);
  font-weight: 800;
}

.accent-band {
  padding: 1rem 0 2rem;
}

.stats-grid article {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(22, 59, 43, 0.95), rgba(15, 41, 31, 0.95));
  color: #f9f3e7;
}

.stats-grid strong {
  display: block;
  font-size: 2.25rem;
  margin-bottom: 0.4rem;
  font-family: "Cormorant Garamond", serif;
}

.section-cta {
  padding-bottom: 5rem;
}

.cta-box {
  padding: 1.7rem;
}

.page-hero-shell {
  max-width: 48rem;
}

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

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card h2,
.practice-heading h2,
.contact-card h2 {
  font-size: 2.6rem;
  margin-bottom: 0.9rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.pill-list li {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(22, 59, 43, 0.08);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.92rem;
}

.practice-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.practice-panel {
  padding: 1.5rem;
}

.practice-heading .inline-link {
  margin-top: 0.1rem;
}

.practice-list {
  display: grid;
  gap: 1rem;
}

.practice-list article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.practice-list h3 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.85rem;
}

.contact-card {
  padding: 1.5rem;
}

.service-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-overview-card,
.detail-side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.service-overview-card {
  padding: 1.5rem;
}

.service-overview-card h2,
.detail-side-card h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.detail-article,
.detail-side-card {
  padding: 1.6rem;
}

.detail-article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  text-decoration: none;
}

.detail-copy {
  display: grid;
  gap: 1rem;
}

.detail-copy p {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(22, 59, 43, 0.15);
  background: rgba(255, 255, 255, 0.8);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(179, 131, 56, 0.4);
  outline-offset: 2px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid rgba(20, 33, 26, 0.08);
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 1rem;
}

.footer-grid p {
  margin: 0.2rem 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .split-section,
  .section-heading,
  .cta-box,
  .practice-columns,
  .detail-layout,
  .contact-grid,
  .footer-grid,
  .profile-grid,
  .card-grid,
  .team-preview,
  .stats-grid,
  .service-overview-grid {
    grid-template-columns: 1fr;
  }

  .text-link {
    justify-self: start;
  }

  .profile-grid .profile-card:last-child {
    grid-column: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 248, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-home {
    min-height: auto;
    padding: 6.5rem 0 3rem;
  }

  .hero-grid {
    min-height: auto;
  }
}
