:root {
  --paper: #f6f5f1;
  --white: #fff;
  --ink: #1d2629;
  --muted: #536166;
  --blue: #315b91;
  --deep: #142832;
  --line: #d4dad7;
  --soft: #e9eeee;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(3rem, 7vw, 6rem);
  --gap: clamp(1.5rem, 5vw, 5rem);
  --rule: 1px solid var(--line);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { font: 400 clamp(2rem, 4vw, 3.4rem)/1.1 var(--serif); letter-spacing: -.045em; text-wrap: balance; }
p, dd { color: var(--muted); }
p + p { margin-top: 1rem; }
.shell { width: min(72rem, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.eyebrow { display: block; color: var(--blue); font-size: .875rem; font-weight: 700; letter-spacing: .055em; }
.eyebrow + h1, .eyebrow + h2 { margin-top: .75rem; }
h1 + p, h2 + p { margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 10; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--white); }
.skip-link:focus { top: .75rem; }
.under-link, .inline-link { color: var(--blue); text-decoration: underline; text-underline-offset: .22em; }
.under-link { display: inline-block; font-weight: 650; }
.under-link:hover, .inline-link:hover { color: var(--ink); }

/* Header and native disclosures */
.site-header { position: relative; z-index: 2; border-bottom: var(--rule); }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-size: 1.125rem; font-weight: 700; letter-spacing: -.025em; }
.desktop-nav, .header-side { display: flex; align-items: center; gap: clamp(.875rem, 2vw, 1.6rem); }
.desktop-nav { margin-left: auto; }
.nav-item, .nav-contact, .mobile-item { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9375rem; font-weight: 600; }
.nav-item { color: var(--muted); }
.nav-item:hover, .nav-item[aria-current], .mobile-item[aria-current] { color: var(--blue); text-decoration: underline; text-underline-offset: .35em; }
.nav-contact { padding-inline: 1rem; border: 1px solid var(--ink); }
.nav-contact:hover, .nav-contact[aria-current] { background: var(--ink); color: var(--white); }
.language-picker { position: relative; font-size: .875rem; }
.site-header summary { list-style: none; }
.site-header summary::-webkit-details-marker { display: none; }
.language-picker summary { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .4rem .3rem; font-weight: 650; }
.chevron { width: .45rem; height: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.12rem) rotate(45deg); }
.language-picker[open] .chevron { transform: translateY(.12rem) rotate(225deg); }
.language-options, .mobile-nav { background: var(--white); border: var(--rule); box-shadow: 0 .5rem 1.25rem #14283212; }
.language-options { position: absolute; z-index: 1; right: 0; margin: .4rem 0 0; padding: .3rem; list-style: none; white-space: nowrap; }
.language-options a { display: flex; align-items: center; min-height: 2.75rem; padding: .35rem .75rem; }
.language-options a:hover, .language-options a[aria-current] { color: var(--blue); background: var(--soft); }
.mobile-menu { display: none; }
.mobile-menu summary { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: var(--rule); }
.mobile-menu summary i { width: 1.1rem; height: .55rem; border-block: 2px solid currentColor; }
.mobile-nav { position: absolute; inset-inline: var(--gutter); top: calc(100% + .4rem); padding: .4rem 1rem; }
.mobile-item { display: flex; }
.mobile-item + .mobile-item { border-top: var(--rule); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.25rem; text-align: center; font-weight: 650; line-height: 1.35; }
.btn-dark { border: 1px solid transparent; background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--blue); }
.btn-quiet { padding-inline: 0; border-bottom: 1px solid currentColor; color: var(--blue); }
.btn-quiet:hover { color: var(--ink); }
.btn-white { background: var(--white); color: var(--deep); }
.btn-white:hover { background: var(--soft); }

/* Homepage */
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: var(--gap); padding-block: var(--section); }
.hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 5.1vw, 5.2rem); line-height: 1.03; text-wrap: initial; }
.hero-lead, .page-intro p, .article-hero p { max-width: 55ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.75rem; }
.hero-portrait { width: min(100%, 23.5rem); justify-self: end; }
.hero-portrait img { width: 100%; }
.specialization { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-block: 1rem; border-block: var(--rule); color: var(--muted); }
.specialization a { color: var(--ink); font-weight: 650; text-underline-offset: .25em; }
.specialization a:hover { text-decoration: underline; }
.specialization span { color: var(--blue); font-size: .9375rem; font-weight: 650; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--gap); align-items: start; }
.editorial-grid .under-link { margin-top: 1.25rem; }
.page-section { background: var(--white); }
.approach-section { background: var(--soft); }
.approach-section p { font-size: 1.125rem; }
.expertise-list, .article-list, .services-detail-list, .home-index { border-block-start: var(--rule); }
.expertise-list > div, .service-detail, .home-index li { padding-block: 1rem; border-bottom: var(--rule); }
.expertise-list dt, .home-index li { font-weight: 650; }
.expertise-list dd { margin-top: .25rem; }
.home-index, .article-list { list-style: none; margin: 0; padding: 0; }

/* Interior pages and articles */
.page-intro, .article-hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.page-intro h1, .article-hero h1, .legal-document h1 { font-size: clamp(2.5rem, 5.8vw, 4.65rem); }
.page-intro h1 { max-width: 25ch; }
.page-expertise .expertise-list > div, .service-detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: baseline; gap: .35rem var(--gap); padding-block: 1.4rem; }
.page-expertise dt, .service-detail h2 { font: 650 clamp(1.125rem, 2vw, 1.35rem)/1.35 var(--sans); letter-spacing: -.02em; }
.section-link { margin-top: 1.5rem; }
.about-copy p { max-width: 64ch; }
.about-copy > .under-link, .about-copy section { margin-top: 1.5rem; }
.article-list { width: 100%; }
.article-list-item { display: grid; gap: .25rem; padding-block: 1.125rem; border-bottom: var(--rule); }
.article-category { color: var(--blue); font-size: .875rem; font-weight: 650; letter-spacing: .04em; }
.article-list-item strong { font-size: clamp(1.125rem, 2vw, 1.35rem); line-height: 1.35; }
.article-desc { color: var(--muted); }
.article-list-item:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: .15em; }
.article-layout, .legal-document { max-width: 48rem; }
.article-hero { border-bottom: var(--rule); }
.crumb { margin-bottom: 1.25rem; }
.article-byline, .legal-document .under-link { margin-top: 1rem; }
.article-prose { padding-block: 2rem var(--section); }
.article-prose section + section, .legal-document section { margin-top: 1.75rem; }
.article-prose h2, .legal-document h2 { font: 650 1.25rem/1.35 var(--sans); letter-spacing: -.015em; }
.legal-document { padding-block: var(--section); }

/* Contact and form feedback */
.contact-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: var(--gap); align-items: start; }
.contact-link-only { display: block; }
.contact-side .btn, .contact-side .under-link { margin-top: 1rem; }
.contact-form { display: grid; gap: 1.15rem; padding: clamp(1rem, 3vw, 2rem); border: var(--rule); }
.contact-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .9375rem; font-weight: 650; }
.input-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; min-height: 3rem; padding: .55rem .75rem; border: 1px solid #929fa3; border-radius: 0; background-color: var(--white); color: var(--ink); font-size: 1rem; font-weight: 400; }
.contact-form select { appearance: none; padding-right: 2.25rem; text-overflow: ellipsis; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23315b91' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right .65rem center no-repeat; }
.contact-form textarea { resize: vertical; }
.contact-form .consent-label { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; }
.consent-label input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; flex: none; accent-color: var(--blue); }
.contact-form button { justify-self: start; }
.contact-form button:disabled { opacity: .7; cursor: wait; }
.form-note, .form-status { font-size: .9375rem; }
#message-hint { margin-top: -.8rem; }
.form-status { color: var(--ink); margin-top: -.75rem; }
.form-status:empty { margin-top: -1.15rem; }

.final-section { padding-block: 0 var(--section); }
.page-section + .final-section { padding-top: var(--section); }
.final-panel { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.25rem, 5vw, 3.75rem); background: var(--deep); color: var(--white); }
.final-panel p { color: #d4dfe3; }
.final-panel .btn:focus-visible { outline-color: var(--white); }
.site-footer { background: var(--white); border-top: var(--rule); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1.5rem; min-height: 5rem; padding-block: .75rem; font-size: .875rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.not-found { display: grid; align-content: center; justify-items: start; gap: 1rem; min-height: 70vh; }

@media (max-width: 56rem) {
  .desktop-nav, .nav-contact { display: none; }
  .mobile-menu { display: block; }
  .hero { gap: 1.75rem; }
}

@media (max-width: 42rem) {
  .hero, .editorial-grid, .contact-grid, .page-expertise .expertise-list > div, .service-detail { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; gap: 2rem; }
  .hero h1 { font-size: clamp(2.6rem, 8.65vw, 3.75rem); text-wrap: balance; }
  .hero-portrait { width: min(64%, 17rem); justify-self: start; }
  .editorial-grid, .contact-grid { gap: 1.5rem; }
}

@media (max-width: 30rem) {
  .input-row { grid-template-columns: 1fr; }
  .header-side { gap: .5rem; }
}
