:root {
  --white: #ffffff;
  --black: #000000;
  --text: #1c1c1c;
  --muted: #6b6b6b;
  --rule: #e6e6e6;
  --grey-bg: #f3f3f3;
  --blue: #1a56db;
  --blue-dark: #0f3fae;
  --max: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --sans: "DM Sans", "Carlito", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Bitstream Charter", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
img { max-width: 100%; display: block; }
h1, h2 { margin: 0; color: var(--black); font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; font-variation-settings: "opsz" 144, "SOFT" 30; }
h3 { margin: 0; color: var(--black); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo img { height: 36px; width: auto; }
.menu { display: flex; gap: 36px; align-items: center; }
.menu a { font-size: 15px; font-weight: 500; color: var(--black); letter-spacing: 0.005em; }
.menu a:hover { color: var(--blue); }
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--black); margin: 6px 0; }

/* Hero with parallax layers */
.hero { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 9vw, 120px); position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.parallax-layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.parallax-mark { position: absolute; right: -6vw; top: -4vw; width: clamp(360px, 42vw, 640px); opacity: 0.07; }
.parallax-glow { position: absolute; left: -10vw; bottom: -20vw; width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(circle, rgba(26,86,219,0.14) 0%, rgba(26,86,219,0) 65%); }

/* Parallax statement band */
.band { position: relative; overflow: hidden; background: #f5f7fc; border-bottom: 1px solid var(--rule); padding: clamp(90px, 12vw, 170px) 0; }
.band .container { position: relative; z-index: 1; }
.band p { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.18; letter-spacing: -0.015em; color: var(--black); font-weight: 400; max-width: 24ch; margin: 0; font-variation-settings: "opsz" 144, "SOFT" 50; }
.band .parallax-mark { right: 4vw; top: 50%; margin-top: -18vw; opacity: 0.09; width: clamp(300px, 36vw, 560px); }
.hero h1 {
  font-size: clamp(3rem, 7.6vw, 7rem);
  max-width: 13ch;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.hero-foot {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}
.hero-foot p { font-size: 1.2rem; color: var(--text); max-width: 46ch; margin: 0; line-height: 1.6; }
.hero-links { display: flex; gap: 32px; justify-content: flex-end; }
.textlink { font-weight: 500; color: var(--black); border-bottom: 1px solid var(--black); padding-bottom: 3px; }
.textlink:hover { color: var(--blue); border-color: var(--blue); }
.textlink.blue { color: var(--blue); border-color: var(--blue); }
.textlink.blue:hover { color: var(--blue-dark); border-color: var(--blue-dark); }

/* Numbers strip */
.numbers { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.numbers .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 36px 24px 36px 0; border-left: 1px solid var(--rule); padding-left: 24px; }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 400; letter-spacing: -0.02em; color: var(--black); line-height: 1; font-variation-settings: "opsz" 144; }
.num span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 22ch; }

/* Generic two-column section */
.section { padding: clamp(70px, 9vw, 130px) 0; border-bottom: 1px solid var(--rule); }
.section .container { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 6vw, 100px); }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); position: sticky; top: 110px; }
.section .body p { max-width: 62ch; }
.section .body p.big { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.3; color: var(--black); letter-spacing: -0.01em; max-width: 34ch; margin-bottom: 1.4em; font-weight: 400; }

/* Practice areas list */
.practices { list-style: none; margin: 0; padding: 0; }
.practices li { padding: 30px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; }
.practices li:last-child { border-bottom: 1px solid var(--rule); }
.practices h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.01em; }
.practices p { margin: 0; color: var(--text); font-size: 1rem; }
.practices .tags { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }

/* Focus */
.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.focus li { padding: 18px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--black); letter-spacing: -0.01em; }
.focus li small { display: block; font-family: var(--sans); color: var(--muted); font-weight: 400; font-size: 0.92rem; margin-top: 4px; letter-spacing: 0; }

/* Team */
.team-section { padding: clamp(70px, 9vw, 130px) 0; border-bottom: 1px solid var(--rule); }
.team-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
.team-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.team-head p { max-width: 44ch; color: var(--muted); margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.person .portrait {
  aspect-ratio: 4 / 5;
  background: var(--grey-bg);
  overflow: hidden;
  position: relative;
}
.person .portrait img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.person h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin: 18px 0 2px; }
.person .role { color: var(--blue); font-size: 0.9rem; font-weight: 500; }
.person p { font-size: 0.92rem; color: var(--muted); margin: 10px 0 8px; }
.person a { font-size: 0.9rem; color: var(--black); border-bottom: 1px solid var(--rule); }
.person a:hover { color: var(--blue); border-color: var(--blue); }

/* Portfolio and partner logo cards */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-grid.partners { grid-template-columns: repeat(3, 1fr); }
.logo-card {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; padding: 24px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 18px;
  color: var(--black); text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.logo-card:hover { border-color: var(--blue); box-shadow: 0 8px 28px rgba(26,86,219,0.10); }
.logo-card img { max-height: 48px; max-width: 80%; width: auto; object-fit: contain; }
.logo-card .name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.logo-grid.partners .logo-card { min-height: 140px; }
.geo { margin-top: 48px; color: var(--muted); font-size: 0.95rem; }
.geo b { color: var(--black); font-weight: 500; }

/* Contact */
.contact { background: var(--black); color: #cfcfcf; padding: clamp(70px, 9vw, 130px) 0; }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); }
.contact h2 { color: var(--white); font-size: clamp(2.4rem, 4.6vw, 3.9rem); margin-bottom: 24px; }
.contact p { max-width: 42ch; }
.contact address { font-style: normal; margin-top: 36px; line-height: 1.7; }
.contact address b { color: var(--white); font-weight: 500; display: block; }
.contact address a { color: var(--white); border-bottom: 1px solid #555; }
.contact address a:hover { border-color: var(--white); }
.form { display: grid; gap: 22px; }
.form label { display: block; font-size: 14px; color: #9a9a9a; }
.form input, .form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #444;
  color: var(--white); font: inherit; padding: 10px 0; border-radius: 0;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--white); }
.form textarea { min-height: 90px; resize: vertical; }
.form button {
  justify-self: start; margin-top: 8px;
  background: var(--blue); color: var(--white); border: 0; font: inherit; font-weight: 500;
  padding: 16px 32px; cursor: pointer;
}
.form button:hover { background: var(--blue-dark); }

/* Footer */
.footer { background: var(--black); color: #8a8a8a; border-top: 1px solid #222; padding: 40px 0; font-size: 14px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 28px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--white); }

/* Legal page */
.legal { padding: 80px 0 120px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: 2.8rem; margin-bottom: 16px; }
.legal h2 { font-family: var(--sans); font-weight: 600; }
.legal h2 { font-size: 1.3rem; margin: 2.2em 0 0.5em; }

/* Responsive */
@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .numbers .container { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .num { border-top: 1px solid var(--rule); }
  .num:nth-child(-n+2) { border-top: 0; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .menu { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--rule); padding: 8px var(--pad) 16px; }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .menu-btn { display: block; }
  .hero-foot, .section .container, .contact .container { grid-template-columns: 1fr; }
  .hero-links { justify-content: flex-start; }
  .section h2 { position: static; }
  .practices li { grid-template-columns: 1fr; gap: 10px; }
  .focus { grid-template-columns: 1fr; }
  .team-head { flex-direction: column; align-items: flex-start; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .logo-grid, .logo-grid.partners { grid-template-columns: repeat(2, 1fr); }
  .logo-card { min-height: 96px; padding: 16px; border-radius: 14px; }
}

/* Contact page */
.contact-page { padding: clamp(60px, 8vw, 110px) 0; }
.contact-page h1 { font-size: clamp(2.8rem, 5.4vw, 4.6rem); margin-bottom: 16px; }
.contact-page .intro { max-width: 46ch; color: var(--muted); font-size: 1.15rem; margin-bottom: 48px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); }
.contact-page .form input, .contact-page .form textarea { border-bottom-color: var(--rule); color: var(--black); }
.contact-page .form input:focus, .contact-page .form textarea:focus { border-color: var(--black); }
.contact-page .form label { color: var(--muted); }
.contact-page address { font-style: normal; line-height: 1.7; margin-bottom: 24px; }
.contact-page address b { display: block; color: var(--black); font-weight: 500; }
.contact-page address a { color: var(--blue); }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 4 / 3; background: var(--grey-bg); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 20px 22px; font-size: 14px; color: var(--text);
}
.cookie p { margin: 0 0 14px; }
.cookie a { color: var(--blue); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie button { font: inherit; font-weight: 500; padding: 10px 18px; border-radius: 8px; cursor: pointer; border: 1px solid var(--black); background: var(--white); color: var(--black); }
.cookie button.primary { background: var(--black); color: var(--white); }
.cookie button.primary:hover { background: var(--blue); border-color: var(--blue); }

/* Assistant */
.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 210;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); color: var(--white);
  box-shadow: 0 10px 30px rgba(26,86,219,0.35);
  display: flex; align-items: center; justify-content: center;
}
.chat-launch:hover { background: var(--blue-dark); }
.chat {
  position: fixed; right: 20px; bottom: 88px; z-index: 210;
  width: min(360px, calc(100vw - 40px)); height: min(520px, calc(100vh - 120px));
  background: var(--white); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.16);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.chat-head img { width: 32px; height: 32px; }
.chat-head div { flex: 1; line-height: 1.25; }
.chat-head b { display: block; font-size: 15px; color: var(--black); font-weight: 600; font-family: var(--sans); }
.chat-head span { font-size: 12px; color: var(--muted); }
.chat-head button { background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 6px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg.bot { background: var(--grey-bg); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--black); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg a { color: var(--blue); text-decoration: underline; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-quick button { font: inherit; font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--white); color: var(--black); cursor: pointer; }
.chat-quick button:hover { border-color: var(--blue); color: var(--blue); }
.chat-input { display: flex; border-top: 1px solid var(--rule); }
.chat-input input { flex: 1; border: 0; padding: 14px 16px; font: inherit; font-size: 14px; }
.chat-input input:focus { outline: none; }
.chat-input button { border: 0; background: var(--white); color: var(--blue); font: inherit; font-weight: 600; padding: 0 16px; cursor: pointer; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .chat { right: 12px; bottom: 80px; }
  .chat-launch { right: 12px; bottom: 12px; }
  .cookie { bottom: 80px; }
}

/* Logo card refinements */
.logo-grid.five { grid-template-columns: repeat(5, 1fr); }
.logo-card img { max-height: 64px; max-width: 82%; border-radius: 8px; }
@media (max-width: 1000px) { .logo-grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .logo-grid.five { grid-template-columns: repeat(2, 1fr); } }
.logo-grid.five { grid-template-columns: repeat(3, 1fr); }
.logo-card { min-height: 150px; }
.logo-card img { max-height: 80px; max-width: 78%; }
@media (max-width: 760px) { .logo-card { min-height: 110px; } .logo-card img { max-height: 60px; } }
.map.world { aspect-ratio: 960 / 470; border: 0; background: transparent; border-radius: 0; }
.map.world svg { width: 100%; height: auto; display: block; }
.geo { margin-top: 20px; }

#where .container { grid-template-columns: 1fr; gap: 24px; }
#where h2 { position: static; }
