/* Layout: sticky white header, full-bleed navy/photo bands, 1120px content column, cards only for team + case files */
:root {
  --navy: #243c60;
  --navy-deep: #182a45;
  --orange: #e4540c;
  --orange-ink: #c4460a;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --fg: #15223a;
  --muted: #56637a;
  --line: #d9e0ea;
  --band: #243c60;
  --band-fg: #f2f5f9;
  --band-muted: #b9c5d6;
  --plate: #ffffff;
  --shadow: 0 1px 2px rgba(21, 34, 58, .06), 0 8px 24px rgba(21, 34, 58, .06);

  --f-display: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;
  --f-body: "Libre Baskerville", Baskerville, "Baskerville Old Face", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1120px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #9db6db; --navy-deep: #0b1424; --orange: #f27a3e; --orange-ink: #c4460a;
    --bg: #0e1828; --surface: #152338; --fg: #e7ecf3; --muted: #9eacc0; --line: #263752;
    --band: #172a47; --band-fg: #eef2f8; --band-muted: #a9b8cc; --plate: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #9db6db; --navy-deep: #0b1424; --orange: #f27a3e; --orange-ink: #c4460a;
  --bg: #0e1828; --surface: #152338; --fg: #e7ecf3; --muted: #9eacc0; --line: #263752;
  --band: #172a47; --band-fg: #eef2f8; --band-muted: #a9b8cc; --plate: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-body); font-size: 1rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.wrap.pad { padding-block: clamp(48px, 7vw, 88px); }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.15rem); font-weight: 700; color: var(--navy); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; max-width: 66ch; }
.eyebrow {
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange); font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.55; }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 28px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 78px; width: auto; background: var(--plate); border-radius: 6px; padding: 2px 6px; }
@media (max-width: 600px) { .site-header .wrap { min-height: 76px; } .brand img { height: 58px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-weight: 400; font-size: .92rem; color: var(--fg);
  padding: 8px 12px; border-radius: 4px; position: relative;
}
.nav a:hover { color: var(--orange); }
.nav a[aria-current="page"] { color: var(--orange); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--orange); }
.nav a.nav-cta { background: var(--orange-ink); color: #fff; margin-left: 8px; }
.nav a.nav-cta:hover { background: var(--navy-deep); color: #fff; }
.nav a.nav-cta[aria-current="page"]::after { display: none; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 6px;
  font: 600 .95rem var(--f-body); padding: 8px 12px; cursor: pointer; align-items: center; gap: 8px;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter-r) 16px var(--gutter-l);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a.nav-cta { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700;
  font-size: 1rem; padding: 13px 22px; border-radius: 4px; border: 2px solid transparent; transition: background .2s, color .2s;
}
.btn-primary { background: var(--orange-ink); color: #fff; }
.btn-primary:hover { background: #a63a07; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.arrow { transition: transform .2s; }
.btn:hover .arrow, .more:hover .arrow { transform: translateX(3px); }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14, 26, 45, .94) 0%, rgba(20, 36, 62, .82) 45%, rgba(20, 36, 62, .25) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(64px, 10vw, 128px); display: grid; gap: 22px; }
.hero h1 { max-width: 17ch; line-height: 1.15; }
.hero h1 em { font-style: italic; font-weight: 400; color: #ff8a4c; }
.hero p { color: #d7e0ec; font-size: 1.2rem; max-width: 52ch; }
.hero .eyebrow { color: #ff8a4c; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.modes li {
  list-style: none; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.35); padding: 6px 12px; border-radius: 2px; color: #eef3f9;
}
.modes { padding: 0; margin-block: 4px 0; }

/* Page hero (inner pages) */
.page-hero { background: var(--band); color: var(--band-fg); position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: clamp(44px, 6vw, 72px); display: grid; gap: 14px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 20ch; }
.page-hero p { color: var(--band-muted); font-size: 1.15rem; }
.page-hero .eyebrow { color: #ff8a4c; }
.rose { position: absolute; right: -60px; top: 50%; translate: 0 -50%; width: 360px; height: 360px; opacity: .09; color: #fff; pointer-events: none; }

/* Sections */
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split > * { min-width: 0; }
.split-wide { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 820px) { .split, .split-wide { grid-template-columns: 1fr; } }

.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); margin: 0; padding: 0; }
.clients li { list-style: none; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.clients li:nth-child(odd) { padding-right: 16px; }
.clients li::before { content: ""; flex: 0 0 8px; height: 8px; background: var(--orange); transform: rotate(45deg) translateY(-1px); }
@media (max-width: 520px) { .clients { grid-template-columns: 1fr; } }

.mission { margin: 0; padding: 0; counter-reset: m; display: grid; gap: 0; border-top: 1px solid var(--line); }
.mission li { list-style: none; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.mission li::before { counter-increment: m; content: counter(m, decimal-leading-zero); font-family: var(--f-mono); color: var(--orange); font-size: .9rem; }
.mission strong { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; display: block; color: var(--fg); }
.mission span { color: var(--muted); }

/* Teaser tiles on home */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--surface); padding: 28px; display: grid; gap: 12px; align-content: start; text-decoration: none; transition: background .2s; }
.tile:hover { background: var(--bg); }
.tile h3 { color: var(--navy); }
.tile p { color: var(--muted); }
.more { font-weight: 700; color: var(--orange-ink); display: inline-flex; gap: 8px; align-items: center; margin-top: 4px; }
:root[data-theme="dark"] .more { color: var(--orange); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .more { color: var(--orange); } }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }

.offices { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--f-mono); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.offices b { color: var(--fg); font-weight: 500; }

/* Case files */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: grid; grid-template-rows: auto 1fr;
  padding: 0; text-align: left; font: inherit; color: inherit; cursor: zoom-in; transition: transform .2s, box-shadow .2s;
}
.case:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.case-img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; max-width: 100%; background: var(--line); }
.case-body { padding: 14px 16px 18px; display: grid; gap: 8px; align-content: start; }
.case-tag { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
:root[data-theme="dark"] .case-tag { color: var(--orange); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .case-tag { color: var(--orange); } }
.case-text { font-size: .98rem; line-height: 1.45; }
.cases-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cases-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cases-4 { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: 600 .92rem var(--f-body); padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line);
}
.filter:hover { border-color: var(--orange); }
.filter[aria-pressed="true"] { background: var(--band); color: var(--band-fg); border-color: var(--band); }
.filter .n { font-family: var(--f-mono); font-size: .78rem; opacity: .7; margin-left: 4px; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; color: #fff; }
dialog.lightbox::backdrop { background: rgba(8, 14, 26, .88); }
.lightbox figure { margin: 0; display: grid; gap: 12px; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 3px; }
.lightbox figcaption { text-align: center; font-size: 1rem; color: #e6ecf4; max-width: 70ch; margin: 0 auto; }
.lb-close {
  position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px));
  background: #fff; color: #15223a; border: 0; border-radius: 999px; width: 44px; height: 44px; font-size: 1.5rem; cursor: pointer; line-height: 1;
}

/* Lists on expertise page */
.checklist { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.checklist li { list-style: none; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border: 2px solid var(--orange); transform: rotate(45deg); }
@media (max-width: 600px) { .checklist { grid-template-columns: 1fr; } }
.figure-plate { background: var(--plate); border-radius: 6px; padding: 12px; border: 1px solid var(--line); }

/* Team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start; }
.person > * { min-width: 0; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }
.portrait { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; max-width: 100%; }
.monogram {
  width: 150px; max-width: 100%; aspect-ratio: 3 / 4; border-radius: 3px; background: var(--band); color: var(--band-fg);
  display: grid; place-items: center; font-family: var(--f-display); font-size: 3rem; font-weight: 600; letter-spacing: .04em;
}
.person h3 { font-size: 1.6rem; color: var(--navy); }
.role { color: var(--muted); font-weight: 600; }
.creds { margin: 0; padding: 0; display: grid; gap: 6px; }
.creds li { list-style: none; padding-left: 16px; position: relative; }
.creds li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 2px; background: var(--orange); }
.mono { font-family: var(--f-mono); font-size: .85em; }
.sub { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.logos span { background: var(--plate); border: 1px solid var(--line); border-radius: 4px; height: 64px; padding: 8px 14px; display: grid; place-items: center; }
.logos img { max-height: 46px; width: auto; }

/* Maps */
.map { margin: 0; display: grid; gap: 10px; }
.map img { border-radius: 4px; border: 1px solid var(--line); background: var(--plate); width: 100%; }
.map figcaption { font-size: .92rem; color: var(--muted); }
.maps-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .maps-2 { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.office { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.office h3 { color: var(--navy); }
.office address { font-style: normal; line-height: 1.55; }
.office .tag { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.direct { background: var(--band); color: var(--band-fg); border-radius: 4px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.direct > div { display: grid; gap: 6px; min-width: 0; }
.direct .k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); }
.direct .v { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; overflow-wrap: anywhere; }
.direct a { text-decoration: none; }
.direct a:hover { color: #ff8a4c; }
@media (max-width: 820px) { .direct { grid-template-columns: 1fr; } }
.link { color: var(--orange-ink); font-weight: 600; overflow-wrap: anywhere; }
:root[data-theme="dark"] .link { color: var(--orange); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .link { color: var(--orange); } }

/* CTA band */
.cta-band { background: var(--band); color: var(--band-fg); }
.cta-band .wrap { padding-block: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { color: var(--band-fg); }
.cta-band p { color: var(--band-muted); margin-top: 8px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c3cedd; font-size: .95rem; }
.site-footer .wrap { padding-block: 48px 28px; display: grid; gap: 32px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid > * { min-width: 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 10px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #ff8a4c; font-weight: 500; }
.site-footer a { color: #e8eef6; text-decoration: none; }
.site-footer a:hover { color: #ff8a4c; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.site-footer address { font-style: normal; }
.foot-brand img { height: 54px; width: auto; background: #fff; border-radius: 6px; padding: 4px 8px; }
.foot-brand p { margin-top: 14px; color: #a9b7ca; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .85rem; color: #8f9fb5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Language switch */
.head-right { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; }
.lang a, .lang span { padding: 7px 10px; text-decoration: none; line-height: 1; }
.lang span { background: var(--band); color: var(--band-fg); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--orange); }
@media (min-width: 901px) { .head-right { order: 3; } }

/* Legal page */
.legal { display: grid; gap: 0; border-top: 1px solid var(--line); }
.legal section { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal section > * { min-width: 0; }
.legal h2 { font-size: 1.35rem; }
.legal .body { display: grid; gap: 12px; }
.legal dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; overflow-wrap: anywhere; }
.legal mark { background: #ffe1cc; color: #7a2b05; padding: 0 4px; border-radius: 2px; }
@media (max-width: 720px) { .legal section { grid-template-columns: 1fr; gap: 12px; } .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 8px; } }
.foot-legal { display: flex; gap: 16px; flex-wrap: wrap; }

/* Expert contact box */
.pcontact { margin: 4px 0 0; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 3px; display: grid; gap: 8px; }
.pcontact div { display: grid; grid-template-columns: 84px 1fr; gap: 4px 12px; align-items: baseline; }
.pcontact dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pcontact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.pcontact a { text-decoration: none; }
.pcontact a:hover { color: var(--orange); }
.person > .pcontact { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: start; column-gap: 40px; }
@media (max-width: 1100px) and (min-width: 861px) { .person { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pcontact div { grid-template-columns: 1fr; } .pcontact dd { overflow-wrap: anywhere; } }
@media (max-width: 560px) { .person > .pcontact { grid-template-columns: 1fr; } }
/* contact box: final layout */
.person > .pcontact { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.person > .pcontact div { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
.person > .pcontact dd { white-space: nowrap; }
@media (max-width: 420px) { .person > .pcontact dd { white-space: normal; overflow-wrap: anywhere; } }
