/* ==========================================================================
   LexTeam | styles
   ========================================================================== */

:root {
  --ink: #0A0F1A;
  --ink-2: #151C2B;
  --paper: #FFFFFF;
  --mist: #F3F4F6;
  --line: #E2E5EA;
  --muted: #5B6474;
  --accent: #0D7C66;
  --accent-ink: #0A5E4E;
  --accent-bright: #2DD4AF;

  --f-head: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* hidden must win over any display rule (language blocks rely on it) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--ink); color: #C9CFDA; font-size: 13px; }
.utility__inner { display: flex; justify-content: flex-end; align-items: center; height: 38px; }
.lang { display: flex; gap: 2px; }
.lang button {
  background: none; border: 0; color: #C9CFDA; padding: 4px 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
}
.lang button[aria-pressed="true"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent-bright); }
.lang button:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
/* Blur lives on a pseudo-element: backdrop-filter on .header itself would trap the fixed mobile nav */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__svg { height: 34px; width: auto; display: block; }
.logo__ink { fill: var(--ink); }
.logo__accent { fill: var(--accent); }


.logo--light .logo__ink { fill: #fff; }
.logo--light .logo__accent { fill: var(--accent-bright); }



.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.burger { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none; border: 1.5px solid var(--ink);
  padding: 15px 26px; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--ink); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent-bright); }

.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__head--row .section__lead { max-width: 420px; }
.section__title { font-size: clamp(34px, 5vw, 60px); font-weight: 700; }
.section__lead { font-size: 19px; color: var(--muted); margin-top: 20px; }
.section__head--row .section__lead { margin-top: 0; }

.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { font-size: clamp(46px, 8.2vw, 112px); font-weight: 800; letter-spacing: -0.045em; line-height: .98; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 560px; margin-top: 28px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

.mark { width: 100%; max-width: 300px; margin-left: auto; margin-right: 40px; overflow: visible; }
.mark__l { fill: var(--ink); transform-box: fill-box; transform-origin: bottom; animation: rise .8s var(--ease) .1s both; }
.mark__t { fill: var(--accent); transform-box: fill-box; transform-origin: top; animation: drop .8s var(--ease) .7s both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }


/* ---------- Services ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab {
  background: none; border: 1.5px solid var(--line); padding: 9px 18px; font-size: 14px; font-weight: 600;
  color: var(--muted); transition: all .2s;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile {
  position: relative; padding: 32px 28px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 250px; display: flex; flex-direction: column; transition: background .25s;
}
.tile::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.tile:hover { background: var(--mist); }
.tile:hover::before { transform: scaleX(1); }
.tile__num { font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: auto; padding-bottom: 32px; }
.tile h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.tile p { font-size: 15px; color: var(--muted); }
.is-hidden { display: none !important; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1040px; }
.person__photo {
  aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--mist), #DCE0E6);
  display: grid; place-items: center; margin-bottom: 20px; position: relative; overflow: hidden;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo span { font-family: var(--f-head); font-size: 48px; font-weight: 700; color: #B4BBC7; letter-spacing: -0.03em; }
.person__photo::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.person:hover .person__photo::after { width: 100%; }
.person h3 { font-size: 21px; font-weight: 700; }
.person__role { font-weight: 600; font-size: 15px; margin-top: 6px; }
.person__area { color: var(--muted); font-size: 14px; margin-top: 4px; }
.person__link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.person__link:hover { text-decoration: underline; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 32px 28px 8px 0; border-top: 2px solid var(--ink); margin-right: 28px; }
.steps li:last-child { margin-right: 0; }
.steps__n { font-family: var(--f-head); font-weight: 700; color: var(--accent); font-size: 15px; }
.steps h3 { font-size: 26px; font-weight: 700; margin: 16px 0 10px; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- Insights ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { cursor: pointer; }
.card__img { aspect-ratio: 16 / 10; margin-bottom: 22px; position: relative; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card__img--a { background: linear-gradient(135deg, var(--ink) 0 55%, var(--accent) 55% 100%); }
.card__img--b { background: radial-gradient(circle at 70% 40%, var(--accent-bright) 0 18%, transparent 18.5%), var(--ink-2); }
.card__img--c { background: repeating-linear-gradient(90deg, var(--line) 0 28px, var(--mist) 28px 56px); }
.card__img--c::after { content: ""; position: absolute; left: 20%; bottom: 0; width: 22%; height: 70%; background: var(--accent); }
.card__tag { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card h3 { font-size: 23px; font-weight: 700; margin-top: 10px; transition: color .2s; }
.card:hover h3 { color: var(--accent); }
.card:hover .card__img img { transform: scale(1.04); }
.card__meta { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---------- Careers ---------- */
.careers { background: var(--accent); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.careers__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.careers .eyebrow { color: #fff; }
.careers__lead { font-size: 19px; margin-top: 18px; max-width: 560px; opacity: .9; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 7vw, 96px); }
.contact__list { margin: 40px 0 0; display: grid; gap: 22px; }
.contact__list div { border-top: 1px solid var(--line); padding-top: 16px; }
.contact__list dt { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact__list dd { margin: 6px 0 0; font-size: 19px; font-weight: 500; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--accent); }

.form { display: grid; gap: 20px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  border: 0; border-bottom: 1.5px solid #C9CFDA; background: var(--mist);
  padding: 14px 14px; border-radius: 0; width: 100%; transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.form textarea { resize: vertical; }
.form .is-invalid { border-bottom-color: #C0392B; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
.form .btn { justify-self: start; }
.form__status { font-size: 15px; min-height: 1.4em; }
.form__status.is-error { color: #C0392B; }
.form__status.is-ok { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9AA3B2; padding: 72px 0 40px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid #1F2737; }
.footer__contact { font-style: normal; line-height: 1.9; margin-top: 24px; color: #C9CFDA; }
.footer a { color: #C9CFDA; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); margin: 0 0 14px; }
.footer__col ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.footer__col:nth-child(2) ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer__copy { margin-top: 28px; font-size: 13px; }

/* ---------- Expertise ---------- */
.expertise__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 6vw, 88px); }
.expertise__label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-family: var(--f-body); }
.pubs { list-style: none; margin: 0; padding: 0; }
.pub a {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 24px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: padding .25s var(--ease);
}
.pub:first-child a { border-top: 2px solid var(--ink); }
.pub__meta { font-size: 13px; font-weight: 600; color: var(--accent); grid-column: 1; }
.pub__title { font-family: var(--f-head); font-size: clamp(19px, 1.8vw, 23px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; grid-column: 1; }
.pub__arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 22px; transition: transform .25s var(--ease), color .2s; }
.pub a:hover { padding-left: 12px; }
.pub a:hover .pub__title, .pub a:hover .pub__arrow { color: var(--accent); }
.pub a:hover .pub__arrow { transform: translateX(4px); }


/* ---------- Form helpers ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Cards as links ---------- */
.card__link { display: block; text-decoration: none; color: inherit; }
.card__img { background-color: var(--mist); }
.cards--hub { row-gap: 56px; }
.tab small { font-weight: 500; opacity: .6; margin-left: 4px; }

/* ---------- Sub pages ---------- */
.section--tight { padding-top: clamp(48px, 6vw, 80px); }
.section__title--sm { font-size: clamp(28px, 3.4vw, 40px); }
.wrap--narrow { max-width: 820px; }
.wrap--wide { max-width: 1120px; }

.article__head { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.article__back { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); margin-bottom: 32px; }
.article__back:hover { color: var(--accent); }
.article__title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.article__meta { margin-top: 20px; color: var(--muted); font-weight: 500; }
.article__langnote { margin-top: 16px; display: inline-block; background: var(--mist); border-left: 3px solid var(--accent); padding: 8px 14px; font-size: 14px; color: var(--muted); }
.article__hero { margin: 0 auto clamp(40px, 5vw, 64px); }
.article__hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article__source { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.article__source a { color: var(--accent); font-weight: 600; }
.article .btn { margin-top: 16px; }

.prose { font-size: 18px; line-height: 1.75; padding-bottom: 24px; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; margin-top: 1.8em; }
.prose h3 { font-size: 21px; font-weight: 700; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); font-weight: 500; }
.prose strong { font-weight: 600; }
.prose blockquote { margin-left: 0; border-left: 3px solid var(--accent); padding-left: 20px; color: var(--muted); }

.article-cta { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 88px) 0; margin-top: clamp(48px, 6vw, 80px); }
.article-cta__inner h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
.article-cta__inner p { color: #C9CFDA; margin: 14px 0 28px; font-size: 18px; }


/* ---------- Nav state ---------- */
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Breadcrumbs, chips ---------- */
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #C9CFDA; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1.5px solid var(--accent); padding: 5px 10px; text-decoration: none; margin-bottom: 18px; }
.chip:hover { background: var(--accent); color: #fff; }

/* ---------- Icons (inline SVG, colours from tokens) ---------- */
.area-hero__icon, .area-card__icon, .area-links__icon, .area-callout__icon { --ic-a: var(--ink); --ic-b: var(--accent); --ic-d: var(--accent-bright); --ic-h: #fff; }

/* ---------- Practice areas ---------- */
.area-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); background: var(--mist); }
.area-hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.area-hero__title { font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.area-hero__lead { font-size: 19px; color: var(--muted); max-width: 640px; margin-top: 20px; }
.area-hero__icon { width: clamp(120px, 16vw, 220px); height: auto; --ic-h: var(--mist); }
.area-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.area-body .prose { max-width: 720px; }
.area-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.aside-box { border: 1px solid var(--line); padding: 24px; }
.aside-box--ink { background: var(--ink); color: #C9CFDA; border-color: var(--ink); }
.aside-box--ink p { margin-bottom: 18px; font-size: 15px; }
.aside__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.aside__title { font-family: var(--f-head); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px !important; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; background: var(--accent); }
.area-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area-links a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: background .2s; }
.area-links a:hover { background: var(--mist); color: var(--accent); }
.area-links__icon { width: 36px; height: 36px; flex-shrink: 0; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area-card { display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: background .25s; }
.area-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.area-card:hover { background: var(--mist); }
.area-card:hover::before { transform: scaleX(1); }
.area-card__icon { width: 56px; height: 56px; }
.area-card h2 { font-size: 22px; font-weight: 700; }
.area-card p { color: var(--muted); font-size: 15px; }
.area-card__more { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--accent); }
a.tile { text-decoration: none; color: inherit; }
.tile__more { margin-top: 18px; font-size: 20px; color: var(--accent); transition: transform .25s var(--ease); }
a.tile:hover .tile__more { transform: translateX(6px); }
.tiles__more { margin-top: 28px; display: flex; gap: 32px; flex-wrap: wrap; }

/* ---------- Blog ---------- */
.feature { margin-bottom: clamp(48px, 6vw, 72px); }
.feature__link { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; text-decoration: none; color: inherit; }
.feature__img { aspect-ratio: 16 / 9; overflow: hidden; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature__link:hover .feature__img img { transform: scale(1.03); }
.feature__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.feature h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0; transition: color .2s; }
.feature__link:hover h2 { color: var(--accent); }
.feature__excerpt { color: var(--muted); margin-bottom: 16px; }
.feature .link-arrow { display: inline-block; margin-top: 20px; }
.card__excerpt { color: var(--muted); font-size: 15px; margin-top: 10px; }

.wrap--post { max-width: 1120px; }
.post__head { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 40px); }
.post__title { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; max-width: 900px; }
.post__meta { margin-top: 18px; color: var(--muted); font-weight: 500; }
.post__hero { margin: 0 auto clamp(36px, 5vw, 56px); }
.post__hero img, .article__hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.post__layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(32px, 5vw, 72px); justify-content: center; }
.post__aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 28px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; text-decoration: none; color: var(--muted); line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.share__row { display: flex; gap: 8px; }
.share__row a, .share__row button { width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; font-family: var(--f-head); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); transition: all .2s; }
.share__row a:hover, .share__row button:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.share__done { font-size: 13px; color: var(--accent); margin-top: 8px; }
.area-callout { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 32px; padding: 20px 22px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.area-callout:hover { border-color: var(--accent); }
.area-callout__icon { width: 44px; height: 44px; }
.area-callout small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.area-callout strong { font-family: var(--f-head); font-size: 19px; }
.post__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.post__pager a { text-decoration: none; display: grid; gap: 4px; }
.post__pager small { color: var(--muted); font-weight: 600; }
.post__pager span { font-family: var(--f-head); font-weight: 700; line-height: 1.3; }
.post__pager a:hover span { color: var(--accent); }
.post__pager-next { text-align: right; }
.source-note { margin-top: 16px; color: var(--muted); }
.source-note a { color: var(--accent); font-weight: 600; }

/* ---------- Publications ---------- */
.pub-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.pub-row a { display: grid; grid-template-columns: 200px 1fr auto; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.pub-row img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; }
.pub-row__body { display: grid; gap: 6px; }
.pub-row__authors { font-size: 14px; color: var(--muted); }
.pub-row a:hover .pub__title { color: var(--accent); }
.pub-page { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pub-page__cover img { width: 100%; height: auto; }
.pub-page .facts { margin: 24px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pub-page .facts div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.pub-page .facts dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.pub-page .facts dd { margin: 0; font-weight: 500; }
.prose--compact { font-size: 16px; margin-top: 28px; }

@media (max-width: 1080px) {
  .area-grid, .area-links { grid-template-columns: repeat(2, 1fr); }
  .post__layout { grid-template-columns: 1fr; }
  .post__aside { position: static; grid-template-columns: 1fr 1fr; order: 2; }
  .area-body { grid-template-columns: 1fr; }
  .area-aside { position: static; grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .feature__link, .pub-page { grid-template-columns: 1fr; }
  .pub-row a { grid-template-columns: 110px 1fr; gap: 16px; }
  .pub-row img { width: 110px; }
  .pub-row .pub__arrow { display: none; }
  .area-hero__grid { grid-template-columns: 1fr; }
  .area-hero__icon { width: 96px; order: -1; }
  .area-aside, .post__aside { grid-template-columns: 1fr; }
  .post__pager { grid-template-columns: 1fr; }
  .post__pager-next { text-align: left; }
}
@media (max-width: 560px) {
  .area-grid, .area-links { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col:nth-child(2) ul { grid-template-columns: 1fr; }
}


/* ---------- Social + map ---------- */
.utility__right { display: flex; align-items: center; gap: 18px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: background .2s, color .2s; }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social--utility a { width: 26px; height: 26px; color: #C9CFDA; }
.social--utility svg { width: 14px; height: 14px; }
.social--utility a:hover { color: #fff; }
.social--footer { margin-top: 20px; }
.social--footer a { color: #C9CFDA; border: 1px solid #2A3342; }
.social--footer a:hover { color: var(--ink); background: var(--accent-bright); border-color: var(--accent-bright); }
.social--contact { margin-top: 24px; }
.social--contact a { color: var(--ink); border: 1.5px solid var(--line); }
.social--contact a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.map { margin-top: 28px; }
.map__load, .map iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; display: block; }
.map__load { background: repeating-linear-gradient(0deg, transparent 0 38px, #E2E5EA 38px 39px), repeating-linear-gradient(90deg, #F3F4F6 0 38px, #E2E5EA 38px 39px); display: grid; place-content: center; justify-items: center; gap: 12px; font: 600 15px var(--f-body); color: var(--ink); cursor: pointer; }
.map__load:hover span:last-child { color: var(--accent); }
.map__pin { width: 34px; height: 34px; background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: inset 0 0 0 10px var(--accent), inset 0 0 0 17px #fff; }
.map__note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.map__note a { color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .social--utility { display: none; } }

.footer__bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; }
.footer__legal { margin-top: 28px; display: flex; gap: 24px; font-size: 13px; }
.form .check a { color: var(--accent); font-weight: 600; }


/* ---------- Nav dropdown (practice areas) ---------- */
.nav__item--dd { position: relative; display: flex; align-items: center; gap: 4px; }
.nav__dd-toggle { background: none; border: 0; width: 22px; height: 30px; padding: 0; display: grid; place-items: center; cursor: pointer; }
.nav__dd-toggle span { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.nav__dd { position: absolute; top: calc(100% + 18px); left: -20px; min-width: 320px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: 0 18px 40px rgba(10, 15, 26, .12); padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility 0s linear .18s; z-index: 60; }
.nav__dd::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.nav__dd ul { list-style: none; margin: 0; padding: 0; }
.nav .nav__dd a { display: block; padding: 8px 26px; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav__dd a::after { display: none; }
.nav__dd a:hover { background: var(--mist); color: var(--accent); }
.nav__item--dd:hover .nav__dd, .nav__item--dd:focus-within .nav__dd { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.nav__item--dd:hover .nav__dd-toggle span { transform: rotate(225deg) translateY(-2px); }
.cards--pubs .card__img { background: var(--mist); }
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s var(--ease), opacity .25s, visibility 0s linear .25s; overflow-y: auto; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .25s var(--ease), opacity .25s; }
  .nav > a:not(.btn), .nav__item--dd > a { font-family: var(--f-head); font-size: 26px; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__item--dd { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__item--dd > a { flex: 1; border-bottom: 0; }
  .nav__dd-toggle { width: 44px; height: 44px; }
  .nav__dd { position: static; min-width: 0; width: 100%; border: 0; box-shadow: none; padding: 0 0 12px; display: none; opacity: 1; visibility: visible; transform: none; }
  .nav__dd::before { display: none; }
  .nav__item--dd.is-open .nav__dd { display: block; }
  .nav__item--dd.is-open .nav__dd-toggle span { transform: rotate(225deg) translateY(-2px); }
  .nav__item--dd:hover .nav__dd { display: none; }
  .nav__item--dd.is-open:hover .nav__dd { display: block; }
  .nav__dd a { padding: 9px 0 9px 14px; font-size: 16px; white-space: normal; }
  .nav__cta { margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps li:nth-child(2n) { margin-right: 0; }
}

@media (max-width: 880px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 16px var(--gutter) 32px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s, visibility 0s linear .25s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .25s var(--ease), opacity .25s; }
  .nav a:not(.btn) { font-family: var(--f-head); font-size: 28px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 24px; }
  body.nav-open { overflow: hidden; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .mark { max-width: 96px; margin: 0 0 8px; }
  .hero__grid { gap: 20px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .expertise__grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .team { grid-template-columns: 1fr 1fr; gap: 20px; }
  .person h3 { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { margin-right: 0; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn, .hero__actions .btn { width: 100%; }
}

/* mobile menu: practice areas read as sub-items (kept last so it wins over the generic mobile nav link size) */
@media (max-width: 1180px) {
  .nav .nav__dd a { font-family: var(--f-body); font-size: 16px; font-weight: 500; padding: 9px 0 9px 16px; border-bottom: 0; color: var(--muted); }
  .nav .nav__dd a:hover { color: var(--accent); background: none; }
  .nav .nav__dd ul { border-left: 2px solid var(--accent); margin: 4px 0 8px; }
}

/* Video: click-to-load YouTube */
.video__load, .video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video__load { position: relative; background: var(--ink) center / cover no-repeat; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 14px; color: #fff; font: 600 15px var(--f-body); }
.video__load::before { content: ""; position: absolute; inset: 0; background: rgba(10, 15, 26, .45); transition: background .2s; }
.video__load:hover::before { background: rgba(10, 15, 26, .3); }
.video__play, .video__label { position: relative; }
.video__play { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.video__play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }

/* Privacy notice (no tracking cookies, so no consent choice needed) */
.notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-left: auto; background: var(--ink); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 16px; box-shadow: 0 12px 32px rgba(10, 15, 26, .25); border-left: 4px solid var(--accent); }
.notice p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.notice a { color: #2DD4AF; font-weight: 600; }
.notice .btn { flex: none; background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 560px) { .notice { flex-direction: column; align-items: stretch; } }

.source-note__off { color: var(--muted); font-size: .92em; }
@media (max-width: 560px) {
  .notice { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; gap: 10px; flex-direction: row; align-items: center; }
  .notice p { font-size: 12.5px; line-height: 1.45; }
  .notice .btn { padding: 8px 14px; }
}

/* ---------- Colour rhythm (Ivan: "too white"): mint tint + deep forest green sections ---------- */
:root { --mint: #EAF4F0; --mint-line: #D3E7DF; --forest: #0B3B33; --forest-2: #10493F; }
.hero { background: var(--mint); border-bottom-color: var(--mint-line); }
.section--mint { background: var(--mint); }
.section--mint .pub a, .section--mint .pub-row a { border-bottom-color: var(--mint-line); }
.section--mint .form input, .section--mint .form select, .section--mint .form textarea { background: #fff; }

.section--forest { background: var(--forest); color: #fff; }
.section--forest .eyebrow { color: var(--accent-bright); }
.section--forest .eyebrow::before { background: var(--accent-bright); }
.section--forest .section__title { color: #fff; }
.section--forest .section__lead { color: rgba(255, 255, 255, .72); }
.section--forest .link-arrow { color: #fff; border-bottom-color: var(--accent-bright); }
.section--forest .link-arrow:hover { color: var(--accent-bright); }
/* team on forest */
.section--forest .person__photo { background: var(--forest-2); }
.section--forest .person__photo span { color: rgba(255, 255, 255, .35); }
.section--forest .person__photo::after { background: var(--accent-bright); }
.section--forest .person h3 { color: #fff; }
.section--forest .person__role { color: rgba(255, 255, 255, .9); }
.section--forest .person__area { color: rgba(255, 255, 255, .62); }
.section--forest .person__link { color: var(--accent-bright); }
/* approach steps on forest */
.section--forest .steps li { border-top-color: var(--accent-bright); }
.section--forest .steps__n { color: var(--accent-bright); }
.section--forest .steps h3 { color: #fff; }
.section--forest .steps p { color: rgba(255, 255, 255, .72); }

/* sub pages: tinted page heads */
.area-hero { background: var(--mint); }
.area-hero__icon { --ic-h: var(--mint); }
.post__head { background: var(--mint); margin-bottom: clamp(28px, 4vw, 48px); }

/* Static map is always visible; clicking loads the interactive Google map */
.map__load { position: relative; padding: 0; overflow: hidden; background: var(--mist); }
.map__load img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.map__load:hover img { transform: scale(1.03); }
.map__load .map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%) rotate(-45deg); }
.map__load .map__cta { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--ink); padding: 8px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(10, 15, 26, .18); }
.map__load:hover .map__cta { background: var(--accent); color: #fff; }

/* Mobile: the form comes first, contact details and map after it */
@media (max-width: 900px) {
  .contact { display: flex; flex-direction: column; }
  .contact .form { order: 1; }
  .contact__info { order: 2; }
  .contact__info .eyebrow, .contact__info .section__title, .contact__info .section__lead { display: none; }
}
.contact__mobile-head { display: none; }
@media (max-width: 900px) { .contact__mobile-head { display: block; order: 0; margin-bottom: 28px; } }
.map__load img ~ .map__pin { display: none; }
.footer__by { font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer__by a { color: rgba(255, 255, 255, .8); text-decoration: none; border-bottom: 1px solid rgba(45, 212, 175, .5); }
.footer__by a:hover { color: var(--accent-bright); }
