/* Layout: the paintings carry the colour at full strength, edge to edge;
   everything around them is white paper and one deep ArtCase blue,
   set in Montserrat on a wide grid with generous air. One brand look, light only, by choice. */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --mist: #F1F4F9;
  --line: #D5DCE8;
  --ink: #0E1B33;
  --ink-soft: #4A5570;
  --brand: #0E1B33;
  --brand-deep: #08111F;
  --brand-hover: #263B66;
  --brand-light: #8DA4D4;
  --on-dark: #FFFFFF;
  --on-dark-soft: #CBD4E5;
  --on-dark-mute: #95A3BF;
  --error: #B42318;
  --focus: #8DA4D4;

  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 3.1vw, 3.75rem);
  --fs-display: clamp(1.5rem, 0.95rem + 2.1vw, 2.625rem);

  /* the grid grows with the screen: a steady margin of about 5% on each side up to very wide monitors */
  --gutter: clamp(16px, 5vw, 112px);
  --maxw: 1720px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--brand); color: var(--on-dark); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; color: var(--on-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 600 0.9375rem/1.2 var(--font); letter-spacing: 0.01em;
  background: var(--brand); color: var(--on-dark);
  border: 1.5px solid var(--brand); border-radius: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-dark); }
.btn--light { background: var(--paper); color: var(--brand); border-color: var(--paper); }
.btn--light:hover { background: var(--mist); border-color: var(--mist); color: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark-soft); }
.btn--ghost:hover { background: var(--paper); color: var(--brand); border-color: var(--paper); }
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: var(--on-dark); }
.btn svg { width: 20px; height: 20px; flex: none; }

.link-more {
  font-weight: 600; color: var(--brand); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-more:hover { color: var(--brand-hover); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; }
.brand .brand__word { display: none; height: 22px; }
.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding-block: 8px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand-hover); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.header-tools { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 12px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.lang span[aria-current] { color: var(--ink); }
.lang a { color: #8A96AE; text-decoration: none; }
.lang a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.header-tools .btn { min-height: 44px; padding: 0 20px; }
.menu-btn {
  display: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
  background: transparent; border: 0; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 26px; height: 26px; }
.mobile-nav { background: var(--brand); color: var(--on-dark); }
.mobile-nav ul { list-style: none; margin: 0; padding: 12px 0 28px; display: grid; }
.mobile-nav li a {
  display: block; padding: 14px 0; color: var(--on-dark); text-decoration: none;
  font-size: 1.625rem; font-weight: 600; letter-spacing: -0.01em; border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.mobile-nav__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 28px; color: var(--on-dark-soft); font-size: var(--fs-small); }
.mobile-nav__foot a { color: var(--on-dark); }

.lang--bar { display: none; }
@media (max-width: 1060px) {
  .nav, .header-tools { display: none; }
  .menu-btn { display: inline-flex; margin-left: 4px; }
  /* language switch stays in the bar next to the logo, never hidden in the menu */
  .lang--bar { display: flex; align-items: center; margin-left: auto; gap: 0; border: 1.5px solid var(--line); font-size: 0.8125rem; }
  .lang--bar > * { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 8px; }
  .lang--bar span[aria-current] { background: var(--brand); color: var(--on-dark); }
  .lang--bar a { color: var(--ink); }
  .site-header__bar { gap: 12px; }
  :root { --header-h: 68px; }
  .brand img.brand__full { display: none; }
  .brand .brand__word { display: block; height: 24px; }
}
@media (min-width: 1061px) { .mobile-nav { display: none !important; } }

/* Hero: the painting and the blue field split the screen edge to edge, top to bottom;
   the text sits on the site grid, its right edge on the same line as the header button */
.hero { position: relative; background: var(--brand); color: var(--on-dark); }
.hero__figure { position: absolute; top: 0; bottom: 0; left: 0; width: 50%; margin: 0; overflow: hidden; }
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(560px, calc(100vh - var(--header-h)), 860px); }
.hero__panel {
  grid-column: 2; align-self: center; min-width: 0;
  padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 6vw, 96px) clamp(36px, 5vw, 88px);
  display: flex; flex-direction: column; gap: 22px;
}
.hero__panel h1 { margin: 0; font-size: var(--fs-h1); line-height: 1.05; font-weight: 600; letter-spacing: -0.025em; color: var(--on-dark); }
.hero__panel p { margin: 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-dark-soft); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* The heading scales with its column, so it always breaks into the same four lines */
.hero__panel { container-type: inline-size; }
@media (min-width: 861px) { .hero__panel h1 { font-size: clamp(2.25rem, 10.2cqi, 4.75rem); } }
@media (min-width: 1600px) { .hero__panel p { font-size: 1.375rem; max-width: 34em; } }
/* Laptops (1920 screens at 125%, 1366 and 1440 panels): the first screen is short, so the heading and lead
   also scale with the screen height and the buttons stay in view. max-width in em keeps the same four lines. */
@media (min-width: 861px) { .hero__panel h1 { max-width: 9.8em; } }
@media (min-width: 861px) and (max-height: 860px) {
  .hero__panel { padding-block: clamp(32px, 5vh, 64px); gap: 18px; }
  .hero__panel h1 { font-size: clamp(2.25rem, min(10.2cqi, 7.4vh), 4.75rem); }
  .hero__panel p { font-size: clamp(1rem, 0.6rem + 1.1vh, 1.25rem); line-height: 1.5; }
}
@media (max-width: 1180px) {
  /* 40/60: the painting's edge sits exactly on the grid column line */
  .hero__figure { width: calc(40% + 0.2 * var(--gutter)); }
  .hero__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
}
@media (max-width: 860px) {
  .hero__figure { position: relative; width: 100%; aspect-ratio: 2 / 1; max-height: 36vh; }
  .hero__grid { display: block; min-height: 0; }
  .hero__panel { padding: 36px 0 44px; }
}

/* Sections */
.section { padding-block: clamp(64px, 8vw, 128px); }
.section--mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--stack { flex-direction: column; align-items: flex-start; gap: 14px; }
.section-head p { margin: 0; max-width: 40em; color: var(--ink-soft); font-size: var(--fs-lead); }
.title { margin: 0; font-size: var(--fs-h2); line-height: 1.06; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }

/* Practices (home) */
.practice-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.practice-grid li { border-top: 1px solid var(--line); padding-block: 24px 30px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.practice-grid h3 { margin: 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.practice-grid h3 a { color: var(--ink); text-decoration: none; }
.practice-grid h3 a:hover { color: var(--brand-hover); }
.practice-grid p { margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
@media (max-width: 760px) { .practice-grid { grid-template-columns: minmax(0, 1fr); } }

/* Painting bands */
.band { margin: 0; height: clamp(120px, 17vw, 260px); overflow: hidden; background: var(--ink); }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* Industries: one flowing line of large type */
.industries { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15em 0; font-size: var(--fs-display); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.industries li { color: var(--ink); }
.industries li:not(:last-child)::after { content: "/"; color: var(--brand-light); font-weight: 300; margin: 0 0.42em; }
.industries-more { margin: clamp(24px, 3vw, 36px) 0 0; font-size: var(--fs-lead); color: var(--ink-soft); }
@media (max-width: 600px) {
  .industries { display: grid; gap: 0; font-size: 1.375rem; line-height: 1.3; }
  .industries li { padding-block: 12px; border-top: 1px solid var(--line); }
  .industries li::after { content: none !important; }
}

/* Principles: a pinned painting on the left, the three chapters of the Client's path scroll past on the right.
   Same split as the first screen: the painting runs to the screen edge, the text sits on the site grid. */
.journey {
  container-type: inline-size;
  display: grid; grid-template-columns: 50% 50%;
  background: var(--ink); color: var(--on-dark);
}
.journey__art { position: relative; }
.journey__frames { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; }
@supports (height: 100svh) { .journey__frames { height: calc(100svh - var(--header-h)); } }
.journey__frame { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s ease; }
.journey__frame.is-active { opacity: 1; }
.journey__frame img { width: 100%; height: 100%; object-fit: cover; }
.journey__text {
  min-width: 0;
  padding: clamp(64px, 8vw, 120px) max(var(--gutter), calc((100cqw - var(--maxw)) / 2)) clamp(48px, 6vw, 96px) clamp(36px, 5vw, 88px);
}
.journey__head .title { color: var(--on-dark); }
.journey__head p { margin: 14px 0 0; color: var(--on-dark-soft); font-size: var(--fs-lead); max-width: 30em; }
.journey__body { margin-top: clamp(16px, 3vh, 40px); }
.journey__chapter {
  display: flex; flex-direction: column; gap: 20px;
  padding-block: clamp(56px, 9vh, 112px); scroll-margin-top: var(--header-h);
}
.journey__chapter + .journey__chapter { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.journey__mobile-art { display: none; margin: 0; }
.journey__count { margin: 0; color: var(--brand-light); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.journey__chapter h3 { margin: 0; font-size: clamp(1.875rem, 1.2rem + 2vw, 3rem); line-height: 1.06; font-weight: 600; letter-spacing: -0.02em; color: var(--on-dark); }
.journey__chapter ul { list-style: none; margin: 4px 0 0; padding: 0; max-width: 34em; }
.journey__chapter li { padding: 14px 0; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); line-height: 1.45; color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, 0.16); }
/* "На всьому шляху": the core statement leads, the other values follow as a quieter creed */
.journey__lead { margin: 0; font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; color: var(--on-dark); max-width: 22em; }
@media (prefers-reduced-motion: reduce) { .journey__frame { transition: none; } }
@media (max-width: 1180px) {
  .journey { grid-template-columns: calc(40% + 0.2 * var(--gutter)) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  /* phones and small tablets: no pinning, each chapter brings its own painting */
  .journey { display: block; }
  .journey__art { display: none; }
  .journey__text { padding: 56px var(--gutter) 24px; }
  .journey__body { margin-top: 0; }
  .journey__chapter { min-height: 0; justify-content: flex-start; padding-block: 32px 40px; gap: 16px; }
  .journey__chapter + .journey__chapter { border-top: 0; }
  .journey__mobile-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin: 0 calc(-1 * var(--gutter)) 8px; }
  .journey__mobile-art img { width: 100%; height: 100%; object-fit: cover; }
}

/* Team */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.person { min-width: 0; }
.person__link { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.person__link:hover .person__name { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 4px; }
.person__pic { aspect-ratio: 3 / 4; width: 100%; height: auto; object-fit: cover; object-position: 50% 22%; margin-bottom: 12px; background: var(--mist); }
.person__ph {
  aspect-ratio: 3 / 4; width: 100%; margin-bottom: 12px; background: var(--brand); color: var(--on-dark);
  display: flex; align-items: flex-end; padding: 18px 20px; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4rem); line-height: 1; letter-spacing: 0.02em;
}
.person__ph .l { font-weight: 300; }
.person__ph .b { font-weight: 700; }
.person__name { font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.person__role, .person__city { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.45; }
.person__note { font-size: 0.8125rem; color: #6A7792; }
@media (max-width: 1180px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  /* phones: one partner per row, head-and-shoulders crop, so faces are large */
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .person__pic { aspect-ratio: 4 / 5; object-position: 50% 0; margin-bottom: 14px; }
  .person__name { font-size: 1.375rem; }
  .person__role { font-size: 1rem; }
}

/* Advocates and lawyers: name, role, mailbox; text only for now */
.section--tight { padding-top: 0; }
.people-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.people-list li { border-top: 1px solid var(--line); padding-block: 20px 26px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.people-list__name { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.people-list__role { font-size: 0.9375rem; color: var(--ink-soft); }
.people-list__mail { margin-top: 6px; font-size: 0.9375rem; font-weight: 500; color: var(--brand); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; overflow-wrap: anywhere; }
.people-list__mail:hover { text-decoration-color: var(--brand); }
@media (max-width: 900px) { .people-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people-list { grid-template-columns: minmax(0, 1fr); } }

/* Clients: an endless, slow ribbon of logos running edge to edge */
.clients .section-head { flex-wrap: nowrap; align-items: flex-end; }
.marquee-toggle {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: transparent; color: var(--ink); border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer;
}
.marquee-toggle:hover { border-color: var(--ink); }
.marquee-toggle svg { width: 20px; height: 20px; }
.marquee {
  --logo-unit: clamp(40px, 3.4vw, 60px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; width: max-content; animation: marquee 60s linear infinite; }
.marquee__track li { flex: none; display: flex; align-items: center; height: calc(var(--logo-unit) * 1.3); padding-right: clamp(48px, 6vw, 104px); }
.marquee img { display: block; width: auto; max-width: none; height: calc(var(--logo-unit) * var(--h, 0.8)); }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee__track { animation: none; }
  .marquee__track li[aria-hidden] { display: none; }
  .marquee-toggle { display: none; }
}

/* Contact */
.contact { background: var(--brand); color: var(--on-dark); padding-block: clamp(64px, 8vw, 120px); }
.contact .title { color: var(--on-dark); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 0; align-items: start; }
/* the form starts on the same line where the page-head painting starts */
.contact__grid > :first-child { padding-right: clamp(36px, 6vw, 104px); }
@media (max-width: 1180px) { .contact__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); } }
.contact__lead { margin: 14px 0 0; color: var(--on-dark-soft); font-size: var(--fs-lead); }
.offices { display: grid; gap: 28px; margin-top: clamp(28px, 3.5vw, 44px); }
.visually-hidden + .offices { margin-top: 0; }
.office { border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 18px; display: grid; gap: 4px; }
.office h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 600; color: var(--on-dark); }
.office p { margin: 0; color: var(--on-dark-soft); font-size: 1.0625rem; }
.office a { color: var(--on-dark); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.5); text-underline-offset: 4px; }
.office a:hover { color: var(--on-dark); text-decoration-color: var(--on-dark); }
@media (max-width: 1000px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } .contact__grid > :first-child { padding-right: 0; } }

.msg-form { background: var(--paper); color: var(--ink); padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.msg-form h3 { margin: 0; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.msg-form .form-note { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font); color: var(--ink); background: var(--paper);
  border: 1.5px solid #B4C0D6; border-radius: 0; padding: 13px 15px;
}
.field textarea { resize: vertical; min-height: 132px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(14, 27, 51, 0.16); outline-offset: 0; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.875rem; font-weight: 500; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 250px; padding: 0 20px; }
.form-hint { margin: 0; color: var(--ink-soft); font-size: 0.875rem; }

/* Footer */
.site-footer { background: var(--brand-deep); color: var(--on-dark-soft); border-top: 1px solid #1D2B47; padding-block: clamp(56px, 6vw, 80px) 28px; font-size: 0.9375rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__logo { height: 58px; width: auto; }
.footer__about { margin: 18px 0 0; max-width: 32em; line-height: 1.6; }
.site-footer h2 { margin: 0 0 14px; font-size: 0.9375rem; font-weight: 600; color: var(--on-dark); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #253553; font-size: 0.8125rem; color: var(--on-dark-mute); }
@media (max-width: 1180px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* Mobile quick bar: a white, raised panel so it stands out over dark and light sections alike */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 28px rgba(8, 17, 31, 0.28), 0 1px 3px rgba(8, 17, 31, 0.18);
  }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
  .quickbar a + a { border-left: 1px solid var(--line); }
  .quickbar a:active { background: var(--mist); }
  .quickbar svg { width: 20px; height: 20px; flex: none; }
  .quickbar .qb-call svg { color: var(--brand); }
  .quickbar .qb-tg svg { color: #229ED9; }
  .quickbar .qb-wa svg { color: #1DA851; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 420px) { .quickbar a { gap: 6px; padding: 0 4px; font-size: 0.875rem; } .quickbar svg { width: 18px; height: 18px; } }
@media (max-width: 360px) { .quickbar a { font-size: 0.8125rem; } }

/* Inner pages */
/* Inner page heads: the same split as the home hero, mirrored. The blue field and the painting
   run edge to edge, top to bottom; the title starts on the grid line under the logo. */
.page-head { position: relative; background: var(--brand); color: var(--on-dark); }
.page-head__art { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; margin: 0; overflow: hidden; }
.page-head__art img { width: 100%; height: 100%; object-fit: cover; }
.page-head__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(260px, 26vw, 400px); }
.page-head__panel {
  grid-column: 1; align-self: center; min-width: 0;
  padding: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 88px) clamp(40px, 5vw, 72px) 0;
  display: flex; flex-direction: column; gap: 12px;
}
.page-head__panel h1 { margin: 0; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.025em; font-weight: 600; color: var(--on-dark); }
.page-head__panel p { margin: 0; color: var(--on-dark-soft); font-size: var(--fs-lead); max-width: 34em; }
.page-head + .contact { padding-top: clamp(32px, 4vw, 56px); }
.page-head--plain .page-head__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.page-head--plain .page-head__panel { padding-right: 0; }
.page-head--plain + .section { padding-top: clamp(36px, 5vw, 72px); }
@media (max-width: 1180px) {
  .page-head__art { width: calc(40% + 0.2 * var(--gutter)); }
  .page-head__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
}
@media (max-width: 860px) {
  .page-head__art { position: relative; width: 100%; aspect-ratio: 5 / 2; max-height: 30vh; }
  .page-head__grid { display: block; min-height: 0; }
  .page-head__panel { padding: 28px 0 32px; }
}

.practice-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 16px clamp(32px, 6vw, 96px); border-top: 1px solid var(--line); padding-block: clamp(28px, 3.5vw, 44px); scroll-margin-top: calc(var(--header-h) + 16px); }
.practice-detail h2 { margin: 0; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.practice-detail p { margin: 0 0 14px; font-size: var(--fs-lead); line-height: 1.6; max-width: 42em; }
.practice-detail ul { margin: 0; padding-left: 1.15em; display: grid; gap: 8px; color: var(--ink-soft); max-width: 46em; }
.practice-detail li::marker { color: var(--brand); }
@media (max-width: 1000px) { .practice-detail { grid-template-columns: minmax(0, 1fr); } }

/* Partners who lead a practice: small portraits with names, linked to their profiles */
.practice-leads { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); max-width: 46em; }
.practice-leads__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
/* the label always sits above; partners stand on a fixed column grid, so names line up from one practice to the next */
.practice-detail .practice-leads ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px 20px; color: inherit; max-width: none; }
.practice-leads a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.practice-leads img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--mist); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); transition: box-shadow .15s ease; }
.practice-leads a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.practice-leads a:hover img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--brand); }
@media (max-width: 560px) {
  /* two partners per row, names on two lines, so the list stays short on a phone */
  .practice-detail .practice-leads ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; width: 100%; }
  .practice-leads a { gap: 10px; font-size: 0.875rem; line-height: 1.3; white-space: normal; }
  .practice-leads img { width: 42px; height: 42px; flex: none; }
}

.chapters-static { display: grid; gap: 0; }
.chapter-static { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--line); }
.chapter-static:nth-child(even) .chapter-static__art { order: 2; }
.chapter-static__art { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; }
.chapter-static__art img { width: 100%; height: 100%; object-fit: cover; }
.chapter-static h2 { margin: 0 0 18px; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.625rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
.chapter-static .step { display: block; margin-bottom: 10px; color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1rem; }
.chapter-static ul { list-style: none; margin: 0; padding: 0; }
.chapter-static li { padding: 14px 0; font-size: var(--fs-lead); line-height: 1.45; border-top: 1px solid var(--line); }
.chapter-static__lead { margin: 0 0 18px; font-size: clamp(1.375rem, 1.05rem + 1.2vw, 1.875rem); line-height: 1.28; font-weight: 500; letter-spacing: -0.015em; max-width: 22em; }
@media (max-width: 860px) { .chapter-static { grid-template-columns: minmax(0, 1fr); } .chapter-static:nth-child(even) .chapter-static__art { order: 0; } }

.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.why p { margin: 0 0 14px; font-size: var(--fs-lead); line-height: 1.65; max-width: 40em; }
@media (max-width: 860px) { .why { grid-template-columns: minmax(0, 1fr); } }

.lead-text { margin: 0; font-size: var(--fs-lead); line-height: 1.7; max-width: 46em; color: var(--ink); }

/* Profile */
.crumbs { padding-top: 26px; font-size: 0.9375rem; color: var(--ink-soft); }
.crumbs a { color: var(--brand); }
.profile { display: grid; grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 88px); padding-block: 28px clamp(48px, 6vw, 88px); align-items: start; }
.profile__photo { margin: 0; }
.profile__photo img, .profile__photo .person__ph { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; margin: 0; }
.profile__main { min-width: 0; }
.profile__main h1 { margin: 0; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.025em; font-weight: 600; }
.profile__role { margin: 12px 0 0; font-size: 1.25rem; font-weight: 500; color: var(--brand); }
.facts { display: flex; flex-wrap: wrap; gap: 14px 48px; margin: 28px 0 22px; padding-block: 20px; border-block: 1px solid var(--line); }
.facts div { min-width: 0; max-width: 100%; }
.facts dt { font-size: 0.8125rem; color: var(--ink-soft); font-weight: 500; }
.facts dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: break-word; }
.facts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.facts a:hover { color: var(--brand); text-decoration-color: var(--brand); }
.profile__links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0 0 28px; }
.profile__intro p { margin: 0 0 16px; font-size: var(--fs-lead); line-height: 1.7; max-width: 44em; }
.profile-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 104px); padding-block: 8px clamp(56px, 7vw, 104px); }
.profile-body h2 { margin: 0 0 18px; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.02em; font-weight: 600; line-height: 1.1; }
.areas { list-style: none; margin: 0; padding: 0; }
.areas li { border-top: 1px solid var(--line); padding-block: 20px 22px; }
.areas h3 { margin: 0 0 8px; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.areas p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.aside-block { border-top: 1px solid var(--line); padding-block: 18px 20px; }
.aside-block h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.aside-block p { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; }
.life { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); background: var(--mist); }
.life__art { margin: 0; min-height: 320px; overflow: hidden; }
.life__art img { width: 100%; height: 100%; object-fit: cover; }
.life__text { padding: clamp(32px, 5vw, 80px) var(--gutter) clamp(32px, 5vw, 80px) clamp(28px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 760px; }
.life__text h2 { margin: 0; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.02em; font-weight: 600; }
.life__text p { margin: 0; font-size: var(--fs-lead); line-height: 1.7; }
.legacy { list-style: none; margin: 6px 0 0; padding: 0; }
.legacy li { padding: 16px 0; border-top: 1px solid var(--line); font-size: var(--fs-lead); line-height: 1.55; font-weight: 500; color: var(--ink); }
.legacy li:last-child { border-bottom: 1px solid var(--line); }
.profile-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: clamp(40px, 5vw, 72px); }
.profile-cta p { margin: 0; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem); font-weight: 600; letter-spacing: -0.01em; }
.profile-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .profile-cta .actions { width: 100%; }
  .profile-cta .actions .btn { flex: 1 1 calc(50% - 6px); padding: 0 14px; }
}
@media (max-width: 900px) {
  .profile, .profile-body, .life { grid-template-columns: minmax(0, 1fr); }
  .profile__photo { max-width: 300px; }
  .life__art { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Legal and 404 */
.prose { max-width: 46em; }
.prose h2 { margin: 40px 0 14px; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); letter-spacing: -0.015em; font-weight: 600; }
.prose p { margin: 0 0 14px; line-height: 1.7; }
.prose .draft { margin: 0 0 24px; padding: 14px 18px; background: var(--mist); color: var(--ink-soft); font-size: 0.9375rem; }
.big-404 { margin: 0; font-size: clamp(5rem, 3rem + 10vw, 11rem); line-height: 0.9; font-weight: 700; letter-spacing: -0.04em; color: var(--brand); }
.nf-links { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 1.125rem; }
.nf-links a { font-weight: 600; }

/* Room photo on the contacts page */
.room { margin: 0; }
.room img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.room figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }
