:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --bg-soft: #eee8df;
  --ink: #171717;
  --muted: #5f5a52;
  --line: #ddd5ca;
  --panel: #fffaf2;
  --charcoal: #151515;
  --gold: #a67c3d;
  --gold-dark: #6e5229;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(20, 20, 20, 0.12);
  --radius: 8px;
  --shell: min(1120px, calc(100% - 40px));
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  color: var(--white);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-bottom: 1px solid rgba(221, 213, 202, 0.85);
  background: rgba(247, 244, 239, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.06);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0;
}

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

.brand strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand small {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.74;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-menu a {
  position: relative;
  padding-block: 8px;
}

.nav-menu a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  scale: 0 1;
  transform-origin: left;
  transition: scale 180ms ease;
}

.institutional-menu {
  position: relative;
}

.institutional-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 8px;
  cursor: pointer;
  list-style: none;
}

.institutional-menu summary::-webkit-details-marker {
  display: none;
}

.institutional-menu summary::after {
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  rotate: 45deg;
  translate: 0 -2px;
  transition: rotate 180ms ease, translate 180ms ease;
}

.institutional-menu[open] summary::after {
  rotate: 225deg;
  translate: 0 2px;
}

.institutional-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  display: grid;
  min-width: max-content;
  translate: -50% 0;
}

.institutional-popover a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  padding: 7px 12px;
  background: rgba(21, 21, 21, 0.16);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.institutional-popover a:hover,
.institutional-popover a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.site-header.is-scrolled .institutional-popover a,
.site-header.menu-open .institutional-popover a {
  background: var(--panel);
}

.site-header.is-scrolled .institutional-popover a:hover,
.site-header.is-scrolled .institutional-popover a:focus-visible,
.site-header.menu-open .institutional-popover a:hover,
.site-header.menu-open .institutional-popover a:focus-visible {
  background: var(--bg-soft);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  scale: 1 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  align-items: end;
  padding-block: calc(var(--header-height) + 86px) 82px;
  background: #252321;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 11, 10, 0.88), rgba(11, 11, 10, 0.62) 43%, rgba(11, 11, 10, 0.16)),
    linear-gradient(0deg, rgba(11, 11, 10, 0.58), rgba(11, 11, 10, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: max(20px, calc((100% - 1120px) / 2)) auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d5b277;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 2vw, 1.26rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    translate 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  translate: 0 -2px;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--gold-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.contact .button.secondary,
.section .button.secondary {
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.split,
.method-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.intro-text {
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.intro-text p:last-child,
.section-copy p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 7vw, 76px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.fact {
  min-height: 136px;
  padding: 26px;
  background: var(--panel);
}

.fact strong,
.fact span {
  display: block;
}

.fact strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
}

.fact span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.practice {
  background: var(--charcoal);
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(36px, 6vw, 60px);
}

.section-heading > p:last-child {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.practice-item {
  min-height: 252px;
  padding: clamp(24px, 4vw, 34px);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.practice-item span {
  display: inline-block;
  margin-bottom: 36px;
  color: #d5b277;
  font-size: 0.78rem;
  font-weight: 800;
}

.practice-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.service-detail {
  min-height: 100%;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.detail-label,
.step-number {
  margin-bottom: 20px;
  color: #d5b277;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-detail h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 500;
}

.service-detail ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
}

.service-detail li {
  position: relative;
  padding-left: 16px;
}

.service-detail li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d5b277;
  content: "";
}

.section-copy > p:not(.eyebrow),
.contact-copy > p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.steps strong {
  font-size: 1.04rem;
}

.steps span {
  color: var(--muted);
}

.steps .step-number {
  margin: 0 0 2px;
  color: var(--gold-dark);
}

.support {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 92px);
}

.support-list {
  border-top: 1px solid var(--line);
}

.support-list article {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.support-list h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 500;
}

.support-list p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  padding-block: clamp(72px, 10vw, 120px);
  background: var(--bg-soft);
}

.contact-panel {
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

address {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-style: normal;
}

address span:first-child {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.74);
}

.footer-layout {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-layout p {
  margin: 0;
}

.footer-layout a {
  color: var(--white);
  font-weight: 700;
}

.reveal {
  opacity: 1;
  translate: 0 0;
}

.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 520ms ease,
    translate 520ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 28px, 680px);
    --header-height: 68px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    translate: 0 -10px;
    transition:
      opacity 180ms ease,
      translate 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    translate: 0 0;
  }

  .nav-menu a {
    padding: 14px 10px;
  }

  .institutional-menu {
    padding: 4px 10px;
  }

  .institutional-menu summary {
    width: 100%;
    justify-content: space-between;
    padding-block: 10px;
  }

  .institutional-popover {
    position: static;
    justify-content: start;
    margin: 2px 0 6px;
    translate: 0;
  }

  .hero {
    min-height: 88svh;
    padding-block: calc(var(--header-height) + 74px) 62px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(11, 11, 10, 0.86), rgba(11, 11, 10, 0.54)),
      linear-gradient(0deg, rgba(11, 11, 10, 0.68), rgba(11, 11, 10, 0.12));
  }

  .split,
  .method-layout,
  .contact-layout,
  .support-layout {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-actions,
  .contact-actions,
  .footer-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .facts,
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-item {
    min-height: auto;
  }
}
