/* Igweta Advocates — "Midnight & Ivory" design tokens */
:root {
  /* Palette: blue-black ink through navy to cool ivory, one luminous cobalt */
  --ink: #05080f;
  --ink-2: #0a1120;
  --navy: #0c1a33;
  --navy-2: #13284d;
  --navy-3: #1d3a6e;
  --cobalt: #3b64d6;
  --cobalt-glow: #7fa3ff;
  --steel: #8ea3c4;
  --ice: #cbd8ee;
  --mist: #e8edf5;
  --paper: #f3f5f9;
  --white: #ffffff;

  --on-dark: #edf1f8;
  --on-dark-muted: rgba(220, 229, 243, 0.62);
  --on-dark-line: rgba(203, 216, 238, 0.14);
  --on-light: #0a1120;
  --on-light-muted: #56637b;
  --on-light-line: rgba(10, 17, 32, 0.12);

  /* Type */
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --t-lede: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --t-h3: clamp(1.5rem, 1.25rem + 0.9vw, 2.125rem);
  --t-h2: clamp(2.375rem, 1.6rem + 3vw, 4.75rem);
  --t-display-md: clamp(2.75rem, 1.6rem + 4.6vw, 6.25rem);
  --t-display: clamp(3rem, 1.6rem + 5.4vw, 7rem);
  --t-display-xl: clamp(3.4rem, 1.2rem + 8.4vw, 10.5rem);

  /* Space */
  --gutter: clamp(20px, 4.2vw, 72px);
  --max: 1480px;
  --section: clamp(88px, 10vw, 168px);
  --header-h: 84px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --fast: 220ms;
  --slow: 1100ms;

  --radius: 2px;
  --radius-lg: 6px;
}

/* Section tones: every component reads --bg / --fg / --muted / --line */
.tone-ink, .tone-navy, .page-hero, .hero, .profile-hero, .article-hero, .site-footer, .cta-band, .portal, .stat-band, .marquee {
  --bg: var(--ink);
  --fg: var(--on-dark);
  --muted: var(--on-dark-muted);
  --line: var(--on-dark-line);
  --accent: var(--cobalt-glow);
  --card: rgba(255, 255, 255, 0.03);
  color-scheme: dark;
}
.tone-navy { --bg: var(--navy); }
.tone-paper, .tone-white, .tone-mist, .statement, .people-section, .stat-band.light, .marquee.light {
  --bg: var(--paper);
  --fg: var(--on-light);
  --muted: var(--on-light-muted);
  --line: var(--on-light-line);
  --accent: var(--cobalt);
  --card: var(--white);
  color-scheme: light;
}
.tone-white, .people-section { --bg: var(--white); --card: var(--paper); }
.tone-mist, .stat-band.light, .marquee.light { --bg: var(--mist); }

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 380ms var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 620ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

body {
  background: var(--ink);
  color: var(--on-light);
  font-family: var(--sans);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }
::selection { background: var(--cobalt); color: var(--white); }
:focus-visible { outline: 1.5px solid var(--accent, var(--cobalt)); outline-offset: 4px; border-radius: var(--radius); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
  transition: top var(--fast) var(--ease);
}
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Section tone surfaces */
[class*='tone-'], .statement, .people-section, .stat-band, .marquee { background: var(--bg); color: var(--fg); }
.section { padding-block: var(--section); }

/* Typography */
.display-xl, .display, .display-md, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}
.display-xl { font-size: var(--t-display-xl); line-height: 0.92; letter-spacing: -0.035em; }
.display { font-size: var(--t-display); letter-spacing: -0.03em; }
.display-md { font-size: var(--t-display-md); letter-spacing: -0.03em; }
.h2 { font-size: var(--t-h2); line-height: 1.02; }
.h3 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -0.01em; }
:is(.display-xl, .display, .display-md, .h2, .h3) em { font-style: italic; color: var(--accent); }

.eyebrow {
  display: block; line-height: 1.8;
  font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; display: inline-block; vertical-align: middle; width: 28px; height: 1px; margin: -2px 12px 0 0; background: currentColor; opacity: 0.6; }
.eyebrow span { opacity: 0.5; margin-inline: 4px; }
.eyebrow .tag { opacity: 1; margin: 0 10px 0 0; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--muted); max-width: 40ch; font-weight: 300; }
.muted { color: var(--muted); }
.lead-text { font-family: var(--serif); font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.22; letter-spacing: -0.01em; text-wrap: pretty; }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.4em; color: color-mix(in srgb, var(--fg) 82%, transparent); }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); line-height: 1.15; margin: 2.2em 0 0.7em; letter-spacing: -0.01em; color: var(--fg); }

/* Motion primitives (enabled only when JS is present) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1s var(--ease), transform var(--slow) var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js [data-split] .w > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.25s var(--ease);
  transition-delay: calc(var(--i) * 60ms + 120ms);
}
.js [data-split].is-in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; }
}

/* Layout: container, header, mega menu, mobile menu, footer */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 980px; }
.center { text-align: center; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); }
.logo-mark { width: 30px; height: 30px; transition: transform 600ms var(--ease); }
.logo:hover .logo-mark { transform: translateY(-2px); }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-word b { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; letter-spacing: 0.01em; }
.logo-word small { font-size: 0.56rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }
.logo-lg .logo-mark { width: 40px; height: 40px; }
.logo-lg .logo-word b { font-size: 2rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; color: var(--on-dark);
  transition: transform 600ms var(--ease), background-color 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--on-dark-line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.mega-open { background: var(--ink-2); border-bottom-color: var(--on-dark-line); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.main-nav ul { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.main-nav a { position: relative; font-size: var(--t-sm); color: var(--on-dark-muted); transition: color var(--fast); padding-block: 8px; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--on-dark);
  transform: scaleX(0); transform-origin: right; transition: transform 500ms var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current='page'], .main-nav a[aria-expanded='true'] { color: var(--on-dark); }
.main-nav a:hover::after, .main-nav a[aria-current='page']::after, .main-nav a[aria-expanded='true']::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark-muted); transition: color var(--fast); }
.icon-btn:hover { color: var(--on-dark); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn kbd { font-family: var(--sans); font-size: 0.68rem; border: 1px solid var(--on-dark-line); border-radius: 4px; padding: 2px 6px; }
.header-portal { font-size: var(--t-sm); color: var(--on-dark-muted); transition: color var(--fast); }
.header-portal:hover { color: var(--on-dark); }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.25px; background: var(--on-dark); transition: transform 500ms var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Mega menu */
.mega {
  position: absolute; inset: 100% 0 auto; background: var(--ink-2); border-bottom: 1px solid var(--on-dark-line);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 400ms var(--ease), transform 500ms var(--ease);
}
.mega.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mega-grid { display: grid; grid-template-columns: 2fr 1fr 1.1fr; gap: 56px; padding-block: 48px 56px; }
.mega-label { font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 20px; }
.mega-list { display: grid; gap: 4px 40px; }
.mega-list.two { grid-template-columns: 1fr 1fr; }
.mega-list a { display: block; font-family: var(--serif); font-size: 1.35rem; padding: 4px 0; color: var(--on-dark); opacity: 0.86; transition: opacity var(--fast), transform 400ms var(--ease), color var(--fast); }
.mega-list a:hover { opacity: 1; color: var(--cobalt-glow); transform: translateX(6px); }
.mega-feature {
  display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid var(--on-dark-line);
  background: radial-gradient(120% 120% at 100% 0%, rgba(59, 100, 214, 0.28), transparent 60%), var(--navy);
  transition: border-color var(--fast);
}
.mega-feature:hover { border-color: rgba(127, 163, 255, 0.4); }
.mega-feature strong { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.mega-feature .link-arrow { margin-top: auto; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--on-dark);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity 400ms var(--ease);
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--on-dark-line); }
.mobile-menu li a {
  display: block; font-family: var(--serif); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.25; padding: 6px 0;
  transform: translateY(100%); transition: transform 700ms var(--ease); transition-delay: calc(var(--i) * 45ms + 80ms);
}
.mobile-menu.is-open li a { transform: none; }
.mobile-foot { display: flex; flex-direction: column; gap: 10px; color: var(--on-dark-muted); font-size: var(--t-sm); }
body.menu-open { overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: var(--fg); padding-block: clamp(72px, 8vw, 120px) 40px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin-top: 24px; max-width: 46ch; color: var(--muted); }
.newsletter label { display: block; font-family: var(--serif); font-size: var(--t-h3); margin-bottom: 18px; }
.field-inline { display: flex; border-bottom: 1px solid color-mix(in srgb, var(--fg) 40%, transparent); transition: border-color var(--fast); }
.field-inline:focus-within { border-color: var(--fg); }
.field-inline input { flex: 1; background: none; border: 0; padding: 14px 0; outline: none; min-width: 0; }
.field-inline input::placeholder { color: var(--muted); }
.field-inline button { width: 48px; display: grid; place-items: center; color: var(--fg); }
.field-inline button .i-arrow { width: 22px; transition: transform 400ms var(--ease); }
.field-inline button:hover .i-arrow { transform: translateX(4px); }
.form-note { font-size: var(--t-sm); color: var(--muted); margin-top: 12px; }
.form-note.is-ok { color: var(--accent); }
.form-note.is-err { color: #ff9b9b; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-block: 56px; }
.footer-label { font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-cols li { margin-bottom: 10px; font-size: var(--t-sm); }
.footer-cols a { color: color-mix(in srgb, var(--fg) 82%, transparent); transition: color var(--fast); }
.footer-cols a:hover { color: var(--fg); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
.footer-base ul { display: flex; gap: 24px; }
.footer-base a:hover { color: var(--fg); }
.demo-note { margin-top: 28px; font-size: var(--t-xs); color: color-mix(in srgb, var(--muted) 80%, transparent); max-width: 80ch; }
.demo-note a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1180px) {
  .main-nav, .header-portal, .header-cta, .icon-btn kbd { display: none; }
  .burger { display: block; }
  .mega { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .header-actions .header-cta { display: none; }
  .header-actions { gap: 6px; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Components */

/* Buttons & links */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 56px; padding: 0 28px; border-radius: 100px; font-size: var(--t-sm); font-weight: 500; letter-spacing: 0.01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color 500ms var(--ease), border-color 500ms var(--ease), transform 500ms var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 600ms var(--ease);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn .i-arrow { width: 18px; transition: transform 500ms var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn-sm { height: 42px; padding: 0 20px; }
.btn.wide { width: 100%; }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light::before { background: var(--cobalt); }
.btn-light:hover { color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark::before { background: var(--cobalt); }
.btn-ghost, .btn-outline { border: 1px solid color-mix(in srgb, var(--fg, var(--on-dark)) 28%, transparent); color: var(--fg, var(--on-dark)); }
.btn-ghost::before, .btn-outline::before { background: var(--fg, var(--on-dark)); }
.btn-ghost:hover, .btn-outline:hover { color: var(--bg, var(--ink)); border-color: transparent; }
.site-header .btn-outline { --fg: var(--on-dark); --bg: var(--ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-sm); font-weight: 500; color: var(--fg); white-space: nowrap; }
.link-arrow .i-arrow { width: 20px; transition: transform 500ms var(--ease); }
.link-arrow:hover .i-arrow { transform: translateX(5px); }
.text-btn { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; font-size: var(--t-sm); }
.i-arrow { width: 20px; height: auto; flex: none; }

.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 100px;
  border: 1px solid var(--line); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.round-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; color: var(--fg);
  transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease);
}
.round-btn svg { width: 20px; }
.round-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.round-btn:disabled { opacity: 0.3; pointer-events: none; }

/* Section head */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .h2 { margin-top: 22px; max-width: 18ch; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.split-head.spaced { margin-top: clamp(72px, 8vw, 120px); }

/* Hero field: four vertical hairlines that draw in */
.hero-field { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); pointer-events: none; }
.hero-field i { border-left: 1px solid var(--on-dark-line); transform-origin: top; animation: draw 1.8s var(--ease) both; }
.hero-field i:nth-child(2) { animation-delay: 120ms; }
.hero-field i:nth-child(3) { animation-delay: 240ms; }
.hero-field i:nth-child(4) { animation-delay: 360ms; border-right: 1px solid var(--on-dark-line); }
@keyframes draw { from { transform: scaleY(0); } }

/* Page hero */
.page-hero, .profile-hero, .article-hero {
  position: relative; overflow: hidden; background: var(--bg); color: var(--fg);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 112px)); padding-bottom: clamp(64px, 8vw, 128px);
}
.page-hero::after, .profile-hero::after, .article-hero::after {
  content: ''; position: absolute; inset: auto -10% -40% 30%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(59, 100, 214, 0.32), transparent);
  filter: blur(20px);
}
.page-hero .wrap, .profile-hero .wrap, .article-hero .wrap { position: relative; z-index: 1; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 48px; }
.page-hero h1 { margin-block: 28px 32px; max-width: 16ch; }
.page-hero-aside { padding-bottom: 8px; min-width: 260px; }
.aside-label { font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--t-xs); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: 0.5; }
.crumbs a:hover { color: var(--fg); }

/* Portraits: generative monogram tiles in the house palette */
.portrait {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(140% 90% at 20% 0%, rgba(127, 163, 255, 0.28), transparent 55%),
    linear-gradient(var(--a), var(--navy-3) 0%, var(--navy) 48%, var(--ink) 100%);
}
.portrait::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(203, 216, 238, 0.06) 0 1px, transparent 1px 25%);
}
.portrait::after {
  content: ''; position: absolute; width: 140%; aspect-ratio: 1; left: 30%; top: 30%; border-radius: 50%;
  border: 1px solid rgba(203, 216, 238, 0.14); box-shadow: 0 0 0 40px rgba(203, 216, 238, 0.02), 0 0 0 80px rgba(203, 216, 238, 0.015);
  transition: transform 1.2s var(--ease);
}
.portrait span {
  position: absolute; left: 8%; bottom: 4%; font-family: var(--serif); font-size: clamp(4rem, 9vw, 7.5rem); line-height: 1;
  color: rgba(225, 233, 246, 0.9); letter-spacing: -0.04em; transition: transform 1s var(--ease);
}
.portrait.sm { width: 52px; border-radius: 50%; aspect-ratio: 1; flex: none; }
.portrait.sm span { font-size: 1.2rem; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.portrait.sm::after { display: none; }
.portrait.lg span { font-size: clamp(6rem, 14vw, 12rem); }

/* Person card */
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); }
.people-grid.compact { grid-template-columns: repeat(3, 1fr); }
.person-card { display: block; color: var(--fg); }
.person-card:hover .portrait::after { transform: translate(-12%, -10%); }
.person-card:hover .portrait span { transform: translateY(-6px); }
.person-meta { padding-top: 18px; border-top: 1px solid transparent; }
.person-meta h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin-bottom: 6px; transition: color var(--fast); }
.person-card:hover h3 { color: var(--accent); }
.person-meta p { font-size: var(--t-sm); }

.lead-chip { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.lead-chip strong { display: block; font-weight: 500; font-size: var(--t-sm); }
.lead-chip small { display: block; font-size: var(--t-xs); color: var(--muted); }
.lead-chip:hover strong { color: var(--accent); }

/* Insight card */
.insight-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.4vw, 36px);
  background: var(--card); border: 1px solid var(--line); color: var(--fg); min-height: 100%;
  transition: border-color 500ms var(--ease), transform 600ms var(--ease), box-shadow 600ms var(--ease);
}
.insight-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(10, 17, 32, 0.35); }
.insight-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--t-xs); color: var(--muted); }
.insight-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.9rem); line-height: 1.12; }
.insight-card .dek { color: var(--muted); font-size: var(--t-sm); }
.insight-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; font-size: var(--t-xs); color: var(--muted); border-top: 1px solid var(--line); }
.insight-foot .go { display: inline-flex; gap: 8px; align-items: center; color: var(--fg); white-space: nowrap; }
.insight-foot .i-arrow { width: 16px; transition: transform 500ms var(--ease); }
.insight-card:hover .i-arrow { transform: translateX(4px); }
.insight-card.is-lead {
  --fg: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--on-dark-line);
  background: radial-gradient(90% 80% at 100% 0%, rgba(59, 100, 214, 0.45), transparent 60%), linear-gradient(160deg, var(--navy-2), var(--ink));
  border-color: transparent; justify-content: flex-end; min-height: 520px;
}
.insight-card.is-lead h3 { font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.75rem); max-width: 14ch; margin-top: auto; }
.insight-card.is-lead .insight-foot { margin-top: 0; }
.insight-card.is-lead .dek { font-size: var(--t-base); max-width: 48ch; }
.insight-card.is-lead .insight-top { position: absolute; inset: clamp(24px, 2.4vw, 36px) clamp(24px, 2.4vw, 36px) auto; }
.insight-feature-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(16px, 2vw, 28px); }
.insight-stack { display: grid; gap: clamp(16px, 2vw, 28px); }
.insight-row, .insight-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-list { grid-template-columns: repeat(2, 1fr); }
.insight-card.is-hidden { display: none; }

/* Matter card */
.matter-card {
  display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 2.4vw, 36px);
  background: var(--card); border: 1px solid var(--line); color: var(--fg);
  transition: border-color 500ms var(--ease);
}
.matter-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.matter-value { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.matter-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
.matter-client { font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.matter-text { font-size: var(--t-sm); color: var(--muted); }
.matter-tags { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.matter-tags a:hover { color: var(--fg); }
.matter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.matter-grid.wide { grid-template-columns: repeat(3, 1fr); }
.matter-card.is-hidden { display: none; }

/* Expertise rows & cards */
.x-num { font-size: var(--t-xs); letter-spacing: 0.1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.x-list { border-top: 1px solid var(--line); }
.x-row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 48px; align-items: center; gap: 24px;
  padding: clamp(20px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--line); isolation: isolate;
}
.x-row::before {
  content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: linear-gradient(90deg, rgba(59, 100, 214, 0.22), rgba(59, 100, 214, 0.04));
  transform: scaleY(0); transform-origin: bottom; transition: transform 600ms var(--ease);
}
.x-row:hover::before, .x-row:focus-visible::before { transform: none; }
.x-name { font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; transition: transform 600ms var(--ease); }
.x-row:hover .x-name { transform: translateX(12px); }
.x-line { color: var(--muted); font-size: var(--t-sm); max-width: 42ch; }
.x-go { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color 500ms var(--ease), color 500ms var(--ease), transform 500ms var(--ease); }
.x-go .i-arrow { width: 18px; }
.x-row:hover .x-go, .x-card:hover .x-go, .role-row:hover .x-go { background: var(--fg); color: var(--bg); transform: rotate(-45deg); }
.x-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
.x-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 32px 32px 28px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--fg); overflow: hidden; isolation: isolate;
}
.x-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform 700ms var(--ease); }
.x-card:hover { --fg: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--on-dark-line); --bg: var(--navy); color: var(--on-dark); }
.x-card:hover::before { transform: none; }
.x-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.4rem); line-height: 1.05; margin-top: auto; }
.x-card p { color: var(--muted); font-size: var(--t-sm); max-width: 34ch; }
.x-card .x-go { position: absolute; top: 28px; right: 28px; }

/* Tabs */
.tab-list { position: relative; display: inline-flex; gap: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.tab-list button { padding: 0 0 16px; font-size: var(--t-sm); color: var(--muted); transition: color var(--fast); }
.tab-list button[aria-selected='true'] { color: var(--fg); }
.tab-list sup { font-size: 0.65rem; margin-left: 4px; }
.tab-ink { position: absolute; bottom: -1px; left: 0; height: 1px; background: var(--fg); width: var(--w, 0); transform: translateX(var(--x, 0)); transition: transform 600ms var(--ease), width 600ms var(--ease); }

/* Chips & filters */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a, .chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 100px; border: 1px solid var(--line);
  font-size: var(--t-sm); color: var(--fg); transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease);
}
.chips a:hover, .chip:hover { border-color: var(--fg); }
.chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }

.filter-bar { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.search-field input, .select select {
  width: 100%; height: 56px; padding: 0 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--t-sm); outline: none; transition: border-color var(--fast);
}
.select select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 24px) 50%, calc(100% - 19px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 44px; }
.search-field input:focus, .select select:focus { border-color: var(--fg); }
.result-count { font-size: var(--t-sm); color: var(--muted); margin-bottom: 40px; }
.people-grid.directory { row-gap: 56px; }
.person-card.is-hidden { display: none; }
.empty { padding: 64px 0; color: var(--muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field label { font-size: var(--t-sm); font-weight: 500; }
.field .optional { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  outline: none; transition: border-color var(--fast), box-shadow var(--fast);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(59, 100, 214, 0.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c2413b; }
.field-error { font-size: var(--t-xs); color: #c2413b; min-height: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: var(--t-sm); color: var(--muted); margin-bottom: 8px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); flex: none; }
.check a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--fg); padding-block: clamp(110px, 13vw, 210px); text-align: center; }
.cta-glow { position: absolute; inset: 20% 10% -40%; background: radial-gradient(closest-side, rgba(59, 100, 214, 0.42), transparent 70%); filter: blur(10px); animation: breathe 9s var(--ease-io) infinite alternate; }
@keyframes breathe { to { transform: scale(1.12); opacity: 0.75; } }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-inner .display-md { max-width: 15ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 12px; }

/* Marquee */
.marquee { display: flex; overflow: hidden; padding-block: 28px; border-block: 1px solid var(--line); background: var(--bg); color: var(--fg); }
.marquee-track { display: flex; flex: none; gap: 0; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; white-space: nowrap; font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); padding-right: 48px; }
.marquee li::after { content: ''; width: 6px; height: 6px; margin-left: 48px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Search dialog */
.search {
  width: min(720px, calc(100% - 32px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--on-dark-line); border-radius: var(--radius-lg);
  background: var(--ink-2); color: var(--on-dark); box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7);
  --fg: var(--on-dark); --muted: var(--on-dark-muted); --line: var(--on-dark-line);
}
.search[open] { animation: pop 500ms var(--ease); }
.search::backdrop { background: rgba(5, 8, 15, 0.7); backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.search-box { display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.search-box svg { width: 22px; color: var(--muted); flex: none; }
.search-box input { flex: 1; height: 68px; background: none; border: 0; outline: none; font-size: 1.125rem; min-width: 0; }
.search-close { font-size: var(--t-xs); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; }
.search-results { max-height: 52vh; overflow-y: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-results a:hover, .search-results a[aria-selected='true'] { background: rgba(127, 163, 255, 0.1); }
.search-results strong { font-weight: 400; font-family: var(--serif); font-size: 1.25rem; }
.search-results span { font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; align-self: center; white-space: nowrap; }
.search-hint { padding: 16px 20px; font-size: var(--t-xs); color: var(--muted); }

/* Rail (horizontal scroller) */
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 420px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; min-height: 420px; }
.rail-controls { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 40px; }
.rail-controls > div:last-child { display: flex; gap: 10px; }
.rail-progress { flex: 1; max-width: 360px; height: 1px; background: var(--line); }
.rail-progress span { display: block; height: 100%; background: var(--fg); width: 20%; transform-origin: left; transition: width 300ms var(--ease); }

@media (max-width: 1080px) {
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .x-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-feature-grid, .insight-row { grid-template-columns: 1fr; }
  .matter-grid.wide { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .search-field { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .people-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .x-row { grid-template-columns: 36px 1fr 44px; gap: 14px; }
  .x-line { display: none; }
  .x-grid { grid-template-columns: 1fr; }
  .x-card { min-height: 200px; }
  .matter-grid, .matter-grid.wide, .insight-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .insight-card.is-lead { min-height: 440px; }
  .btn { height: 52px; padding: 0 22px; }
  .filter-bar { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .people-grid, .people-grid.compact { grid-template-columns: 1fr 1fr; gap: 16px; }
  .person-meta h3 { font-size: 1.25rem; }
  .person-meta p.muted { display: none; }
}

/* Home */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink); color: var(--fg); overflow: hidden;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(40px, 6vw, 88px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(59, 100, 214, 0.34), transparent 70%),
    radial-gradient(70% 60% at 10% 110%, rgba(29, 58, 110, 0.7), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 60%, var(--navy) 100%);
}
.hero-glow::after {
  content: ''; position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.seal {
  position: absolute; width: min(78vw, 860px); right: -14vw; top: 50%; translate: 0 -54%;
  fill: none; stroke: rgba(203, 216, 238, 0.16); stroke-width: 1;
  opacity: 0; animation: seal-in 2.4s var(--ease) 300ms forwards;
}
.seal text { fill: rgba(203, 216, 238, 0.42); stroke: none; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.42em; }
.seal-spin { transform-origin: 300px 300px; animation: spin 140s linear infinite; }
.seal-ticks line { stroke: rgba(203, 216, 238, 0.22); }
.seal-inner { stroke: rgba(127, 163, 255, 0.28); }
.seal-inner.faint { stroke: rgba(203, 216, 238, 0.08); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes seal-in { from { opacity: 0; transform: scale(0.94) rotate(-8deg); } to { opacity: 1; transform: none; } }

.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: clamp(24px, 3vw, 40px); }
.hero h1 { max-width: 11.5ch; }
.hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(32px, 4vw, 56px); padding-top: 32px; border-top: 1px solid var(--line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-latest {
  position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--header-h) + 40px); width: 300px;
  display: flex; flex-direction: column; gap: 12px; padding: 22px; color: var(--fg);
  border: 1px solid var(--line); background: rgba(10, 17, 32, 0.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 500ms var(--ease), transform 600ms var(--ease);
}
.hero-latest:hover { border-color: rgba(127, 163, 255, 0.5); transform: translateY(-3px); }
.hero-latest .tag { align-self: flex-start; color: var(--accent); border-color: rgba(127, 163, 255, 0.35); }
.hero-latest strong { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.hero-latest .go { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--muted); }
.hero-latest .i-arrow { width: 16px; }
.scroll-cue { position: absolute; left: 50%; bottom: 0; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--fg); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Stats */
.stat-band { padding-block: clamp(56px, 6vw, 96px); background: var(--bg); border-top: 1px solid var(--line); }
.hero + .stat-band { --bg: var(--navy); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-value { font-family: var(--serif); font-size: clamp(3rem, 2rem + 3.6vw, 5.75rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-value span:first-child, .stat-value span:last-child { color: var(--accent); }
.stat-label { margin-top: 16px; font-size: var(--t-sm); color: var(--muted); max-width: 26ch; }

/* Statement */
.statement { padding-block: var(--section); }
.statement-grid, .two-col { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 48px; }
.statement-text { font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2.6vw, 4rem); line-height: 1.12; letter-spacing: -0.02em; text-wrap: pretty; }
.js [data-scrub] .sw { color: color-mix(in srgb, var(--fg) 18%, transparent); transition: color 400ms linear; }
.js [data-scrub] .sw.on { color: var(--fg); }
.statement-sign { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.sig { font-family: var(--serif); font-style: italic; font-size: 1.75rem; }

/* Expertise section on home */
.expertise-section, .experience-section, .people-section, .insights-section, .offices-section { padding-block: var(--section); }
.expertise-section { position: relative; overflow: hidden; }
.expertise-section::before { content: ''; position: absolute; width: 900px; aspect-ratio: 1; left: -300px; bottom: -500px; background: radial-gradient(closest-side, rgba(59, 100, 214, 0.25), transparent); pointer-events: none; }
.expertise-section .wrap { position: relative; }

/* Offices list */
.city-list { border-top: 1px solid var(--line); }
.city-row {
  position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 120px; align-items: baseline; gap: 24px;
  padding: clamp(22px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line); isolation: isolate;
}
.city-row::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: linear-gradient(90deg, rgba(59, 100, 214, 0.18), transparent 70%); opacity: 0; transition: opacity 500ms var(--ease); }
.city-row:hover::before { opacity: 1; }
.city-name { font-family: var(--serif); font-size: clamp(2.25rem, 1.4rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; transition: transform 600ms var(--ease), color 400ms; }
.city-row:hover .city-name { transform: translateX(14px); color: var(--accent); }
.city-role, .city-coord { font-size: var(--t-sm); color: var(--muted); }
.city-coord { font-variant-numeric: tabular-nums; }
.city-time { justify-self: end; font-variant-numeric: tabular-nums; font-size: var(--t-sm); color: var(--fg); }
.city-time::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5fd0a0; margin-right: 10px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(95, 208, 160, 0.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(95, 208, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 208, 160, 0); } }

@media (max-width: 1180px) {
  .hero-latest { display: none; }
  .seal { width: 120vw; right: -50vw; opacity: 0.6; }
}
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .statement-grid, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .city-row { grid-template-columns: 1fr auto; }
  .city-coord { display: none; }
  .city-role { grid-row: 2; }
  .city-time { grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 520px) {
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { flex: 1; }
}

/* Inner pages */

/* Detail layout: sticky aside + body */
.detail-grid { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.toc, .facts, .article-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.toc ol { border-left: 1px solid var(--line); }
.toc a { display: block; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 1px solid transparent; font-size: var(--t-sm); color: var(--muted); transition: color var(--fast), border-color var(--fast); }
.toc a:hover, .toc a.is-active { color: var(--fg); border-left-color: var(--fg); }
.detail-block + .detail-block { margin-top: clamp(64px, 7vw, 112px); }
.detail-block > .h3 { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.service-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.service-list li { display: flex; gap: 20px; align-items: baseline; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.service-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.service-list li:nth-child(even) { padding-left: 24px; }
.service-list span { font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }

/* Facts aside (profiles) */
.fact { padding-block: 22px; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact h3 { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.fact li { font-size: var(--t-sm); margin-bottom: 6px; }
.fact a:hover { color: var(--accent); }

/* Profile */
.profile-hero { padding-bottom: clamp(56px, 6vw, 96px); }
.profile-grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) 2fr; gap: clamp(32px, 5vw, 88px); align-items: end; margin-top: 40px; }
.profile-head h1 { margin-block: 20px 24px; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; font-size: var(--t-sm); }
.contact-lines a { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color var(--fast); }
.contact-lines a:hover { border-color: var(--fg); }
.contact-lines .i-arrow { width: 16px; }
.exp-list li { position: relative; padding: 18px 0 18px 32px; border-bottom: 1px solid var(--line); }
.exp-list li::before { content: ''; position: absolute; left: 0; top: 30px; width: 14px; height: 1px; background: var(--accent); }

/* Article */
.article-hero h1 { margin-block: 24px 28px; max-width: 18ch; }
.article-hero .eyebrow { gap: 14px; }
.article-hero .eyebrow a { color: var(--fg); }
.article-meta { display: flex; gap: 12px; margin-top: 28px; font-size: var(--t-sm); color: var(--muted); }
.progress { position: sticky; top: 0; z-index: 101; height: 2px; background: transparent; margin-top: -2px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--cobalt-glow); transform: scaleX(0); transform-origin: left; }
.article-grid { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.article-body { font-size: 1.125rem; }
.article-body > p:first-child { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.3; color: var(--fg); }
.disclaimer { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted) !important; }
.share { display: block; margin-top: 24px; }

/* Firm */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.value-grid li { padding: 32px clamp(16px, 2vw, 32px) 8px 0; }
.value-grid li + li { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.value-grid h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin: 48px 0 16px; }
.value-grid p { color: var(--muted); font-size: var(--t-sm); }

.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: clamp(120px, 16vw, 240px); top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline::after { content: ''; position: absolute; left: clamp(120px, 16vw, 240px); top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: var(--cobalt); }
.timeline li { display: grid; grid-template-columns: clamp(120px, 16vw, 240px) 1fr; padding-block: 36px; }
.t-year { font-family: var(--serif); font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.timeline li > div { padding-left: clamp(24px, 4vw, 64px); max-width: 60ch; }
.timeline h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; margin-bottom: 10px; }
.timeline p { color: var(--muted); }

.resp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.big-num { font-family: var(--serif); font-size: clamp(2.75rem, 2rem + 2.4vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 14px; }
.resp-grid p:not(.big-num) { color: var(--muted); font-size: var(--t-sm); max-width: 36ch; }
#responsibility { scroll-margin-top: var(--header-h); }

/* Careers */
.programme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.programme { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--card); border: 1px solid var(--line); }
.programme .tag { align-self: flex-start; }
.programme h3 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; line-height: 1.05; margin-top: 32px; }
.programme p:last-child { font-size: var(--t-sm); color: var(--muted); }
.role-list { border-top: 1px solid var(--line); margin-bottom: clamp(64px, 7vw, 112px); }
.role-row { display: grid; grid-template-columns: 2fr 1fr 1fr 48px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
.role-title { font-family: var(--serif); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 2rem); color: var(--fg); line-height: 1.1; transition: transform 500ms var(--ease); }
.role-row:hover .role-title { transform: translateX(10px); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process li { padding-top: 24px; border-top: 1px solid var(--fg); }
.process h3 { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; margin: 20px 0 8px; }
.process p { font-size: var(--t-sm); color: var(--muted); }

/* Offices */
.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office-card { display: flex; flex-direction: column; gap: 10px; padding: 32px; background: var(--card); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); transition: border-color 500ms var(--ease); }
.office-card:target { border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(59, 100, 214, 0.12); }
.office-card header { display: flex; justify-content: space-between; align-items: center; }
.office-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; margin-top: 40px; }
.office-note { font-size: var(--t-sm); margin-block: 8px 12px; }
.office-card address { font-size: var(--t-sm); color: var(--muted); line-height: 1.7; }
.office-card .contact-lines { flex-direction: column; gap: 10px; margin-top: 16px; }
.office-card .contact-lines a { border: 0; padding: 0; }
.office-lead { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
.office-lead a { color: var(--fg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.enquiry { position: relative; }
.enquiry .btn { margin-top: 24px; }
.enquiry-done { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; background: var(--paper); outline: none; animation: vt-in 700ms var(--ease) both; }
.enquiry-done[hidden] { display: none; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-aside li { display: flex; justify-content: space-between; gap: 12px; }

/* Portal & 404 */
.portal { position: relative; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; background: radial-gradient(60% 50% at 50% 30%, rgba(59, 100, 214, 0.28), transparent 70%), var(--ink); color: var(--fg); overflow: hidden; }
.portal-card { position: relative; width: min(440px, 100%); padding: 44px 40px; display: flex; flex-direction: column; gap: 14px; background: rgba(10, 17, 32, 0.65); border: 1px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.portal-card .logo { margin-bottom: 32px; }
.portal-form { margin-top: 20px; }
.portal-form .field input { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--fg); }
.portal-foot { margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
.portal-foot a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.not-found .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.not-found .lede { margin-inline: auto; }

@media (max-width: 1080px) {
  .value-grid, .programme-grid, .process { grid-template-columns: 1fr 1fr; }
  .value-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .office-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .detail-grid, .article-grid, .contact-grid, .profile-grid { grid-template-columns: 1fr; }
  .toc, .facts, .article-aside, .contact-aside { position: static; }
  .toc { display: none; }
  .facts { order: 2; }
  .profile-portrait { max-width: 280px; }
  .service-list { grid-template-columns: 1fr; }
  .service-list li:nth-child(odd) { border-right: 0; }
  .service-list li:nth-child(even) { padding-left: 0; }
  .resp-grid { grid-template-columns: 1fr; }
  .role-row { grid-template-columns: 1fr 44px; }
  .role-row > span:nth-child(2), .role-row > span:nth-child(3) { grid-column: 1; font-size: var(--t-xs); }
  .role-row .x-go { grid-row: 1 / span 3; grid-column: 2; }
}
@media (max-width: 620px) {
  .value-grid, .programme-grid, .process, .office-grid { grid-template-columns: 1fr; }
  .value-grid li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .timeline::before, .timeline::after { left: 0; }
  .timeline li { grid-template-columns: 1fr; padding-left: 24px; gap: 12px; }
  .timeline li > div { padding-left: 0; }
  .portal-card { padding: 32px 24px; }
}
