:root {
  --navy: #0e3051;
  --navy-soft: #173a57;
  --ink: #0e3051;
  --muted: #60717d;
  --line: #d4dadd;
  --paper: #ffffff;
  --mist: #f1f3f3;
  --max: 76rem;
  --gutter: clamp(1.35rem, 4vw, 4.5rem);
  --section-space: clamp(4.5rem, 9vw, 8rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.8rem; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--navy-soft); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7fa4bd; outline-offset: 4px; }

.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 100; background: var(--paper); color: var(--navy); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  width: 100%;
  padding: .9rem var(--gutter);
  background: var(--navy);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  border: 0;
  outline: 0;
}
.site-header > *:first-child { margin-left: var(--gutter); transform: translateX(-2.9rem); }
.site-header > *:last-child { margin-right: max(0px, calc((100vw - var(--max)) / 2)); }
.site-header.is-scrolled, .site-header.menu-open {
  background: var(--navy);
}
.wordmark { display: inline-flex; width: 15rem; height: 4.5rem; color: inherit; text-decoration: none; }
.wordmark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wordmark span { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; letter-spacing: .16em; line-height: 1; }
.wordmark small { display: inline-flex; align-items: center; gap: .55rem; font-size: .48rem; letter-spacing: .55em; margin-left: .55em; }
.wordmark small::before, .wordmark small::after { content: ""; display: block; width: 1.65rem; height: 1px; background: currentColor; opacity: .8; }
.site-nav { display: flex; align-items: center; gap: clamp(.8rem, 1.8vw, 1.7rem); font-size: .7rem; text-transform: uppercase; letter-spacing: .11em; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: #c5d3dc; }
.language { display: inline-flex; gap: .45rem; align-items: center; margin-left: .35rem; }
.menu-button { display: none; color: var(--paper); background: transparent; border: 1px solid rgba(255,255,255,.4); padding: .5rem .75rem; font: inherit; }

.hero { min-height: min(52rem, 92vh); background: var(--navy); color: var(--paper); display: flex; align-items: center; padding: 9rem var(--gutter) 6rem; }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; }
.eyebrow, .section-label { margin: 0 0 1.25rem; font-size: .69rem; font-weight: 700; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { color: #aebfcb; }
.hero h1 { max-width: 59rem; margin: 0; color: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6.3vw, 6rem); font-weight: 400; line-height: 1.03; letter-spacing: -.035em; }
.hero-copy { max-width: 50rem; margin: 2rem 0 0; color: #d9e1e6; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.55; }

.section { padding: var(--section-space) var(--gutter); }
.section > * { max-width: var(--max); }
.split-section { display: grid; grid-template-columns: minmax(9rem, .58fr) minmax(0, 1.42fr); gap: clamp(2rem, 4vw, 4rem); }
.split-section > *:first-child { justify-self: end; width: 100%; max-width: calc(var(--max) * .28); padding-left: 2rem; }
.split-section > *:last-child { width: 100%; max-width: calc(var(--max) * .68); }
.section h2 { margin: 0 0 1.7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4vw, 4rem); font-weight: 400; line-height: 1.1; letter-spacing: -.025em; }
.prose p { max-width: 48rem; margin: 0 0 1.15rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.section-muted { background: var(--mist); }
.section-heading { max-width: var(--max); margin: 0 auto 3.6rem; }
.section-heading h2 { max-width: 52rem; }
.section-heading > p:last-child { max-width: 45rem; color: inherit; opacity: .75; }

.expertise-grid, .cases-grid { max-width: var(--max); margin: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.3rem, 3vw, 2.6rem); }
.expertise-card { padding-top: 1.2rem; border-top: 2px solid var(--navy-soft); }
.expertise-card > span, .case-card > span { color: var(--muted); font-size: .68rem; letter-spacing: .15em; }
.expertise-card h3, .case-card h3, .experience-list h3 { margin: .7rem 0 .8rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 400; line-height: 1.25; }
.expertise-card p, .case-card p { margin: 0; color: #455966; font-size: .94rem; }

.experience-list { margin-top: 3rem; }
.experience-list article { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.experience-list article:last-child { border-bottom: 1px solid var(--line); }
.experience-list h3 { margin: 0 0 .25rem; }
.experience-list p { margin: 0; color: var(--muted); }
.experience-list article > p { color: var(--ink); }

.cases-section { background: var(--navy); color: var(--paper); }
.cases-section .section-label, .cases-section .case-card > span { color: #aebfcb; }
.cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-card { min-height: 21rem; padding: 1.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.38); }
.case-card h3 { color: var(--paper); font-size: clamp(1.5rem, 2.2vw, 2rem); }
.case-card p { max-width: 31rem; margin: 1rem 0 0; color: #d8e1e7; }
.case-card strong { display: block; margin-bottom: .2rem; color: #aebfcb; font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; }

.contact-section {
  min-height: clamp(31rem, 65vh, 37.5rem);
  max-width: none;
  margin: 0;
  padding-top: 5rem;
  padding-right: var(--gutter);
  padding-bottom: 4rem;
  padding-left: calc(var(--gutter) + 3.25rem);
}
.contact-section h2 { margin-bottom: .7rem; }
.contact-section > p:not(.section-label) { color: var(--muted); }
.contact-links { margin-top: 2.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; font-size: clamp(1.05rem, 2vw, 1.35rem); }

.site-footer { padding: 2.25rem var(--gutter); background: var(--mist); color: var(--navy); }
.site-footer > * { width: calc(100% - 3.25rem); max-width: none; margin-left: 3.25rem; margin-right: 0; }
.footer-wordmark { align-items: flex-start; height: 4.75rem; margin-left: 2.2rem; }
.footer-wordmark img { width: 10rem; transform: none; }
.site-footer > p { margin-top: .9rem; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer > div:last-child { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); font-size: .78rem; }

.legal-page { min-height: 100vh; background: var(--mist); }
.legal-header, .legal-content, .legal-footer { width: min(100% - 2 * var(--gutter), 58rem); margin: auto; }
.legal-header { padding: 2.2rem 0 1.8rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.legal-wordmark { display: block; width: clamp(10rem, 20vw, 13rem); line-height: 0; }
.legal-wordmark img { display: block; width: 100%; height: auto; }
.legal-language { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
.legal-content { margin-top: clamp(3rem, 6vw, 5rem); margin-bottom: clamp(4rem, 8vw, 7rem); }
.legal-content h1 { margin: 0 0 2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 400; line-height: 1; }
.legal-content h2 { margin-top: 2.5rem; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.legal-content p { max-width: 46rem; font-size: 1.05rem; }
.legal-footer { padding: 2rem 0; border-top: 1px solid var(--line); display: flex; gap: 2rem; font-size: .8rem; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .site-header > *:first-child, .site-header > *:last-child { margin-left: 0; margin-right: 0; }
  .site-header > *:first-child { transform: none; }
  .footer-wordmark img { transform: none; }
  .contact-section { padding-left: var(--gutter); }
  .site-footer > * { width: 100%; margin-left: 0; }
  .menu-button { display: block; }
  .site-nav { display: none; width: 100%; margin-top: 1.25rem; padding: 1.25rem 0; border-top: 1px solid rgba(255,255,255,.25); flex-direction: column; align-items: flex-start; gap: 1rem; }
  .site-nav.is-open { display: flex; }
  .language { margin-left: 0; }
  .hero { min-height: 42rem; }
  .split-section { display: block; }
  .split-section > *:first-child, .split-section > *:last-child { max-width: var(--max); }
  .split-section > .section-label { margin-bottom: 2rem; }
  .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hero { min-height: 38rem; align-items: flex-end; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .expertise-grid, .cases-grid { grid-template-columns: 1fr; }
  .experience-list article { grid-template-columns: 1fr; gap: .75rem; }
  .case-card { min-height: 0; }
  .contact-links { flex-direction: column; }
}

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