/* ============================================================
   MHSK & PARTNERS Design System v3
   Deep steel blue base + warm ivory + dried rose CTA + champagne premium accent.
   Palette engineered for the psychology of legal-service trust:
     navy      = authority, stability, gravitas
     ivory     = clarity, precision, calm
     rose      = warmth, approachability, care
     champagne = premium, considered, established
   ============================================================ */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg-body: #3A5170;      /* steel blue, deepened for gravitas */
  --bg-card: #324862;      /* elevated card */
  --bg-divider: #2B4056;   /* structural divider */
  --bg-modal: #172234;     /* deepest grounding */
  --text-primary: #EDE7D8; /* warm ivory, slightly warmer */
  --text-muted: #C7D1DD;   /* accessible mist: AA on the steel-blue body */
  --cta: #D2A8A6;          /* dried rose */
  --cta-warm: #DFB6B3;     /* warmer hover state */
  --cta-bright: #F2ECE1;   /* bright hover */
  --cta-text: #E4C4C1;     /* accessible rose for small text */
  --accent-gold: #C9A87C;  /* champagne premium accent */
  --accent-gold-text: #DEC39B; /* accessible champagne for small text */
  --accent-gold-soft: rgba(201, 168, 124, 0.14);
  --platinum: #E9EDE9;
  --success: #B8C9AE;
  --error: #E6BBB4;
  --radius: 12px;
  --maxw: 1200px;
  --transition: all 300ms ease-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background-color: var(--bg-body);
  background-image:
    radial-gradient(circle, rgba(231, 227, 216, 0.10) 1px, transparent 1.7px),
    radial-gradient(circle, rgba(27, 38, 59, 0.35) 1px, transparent 1.7px);
  background-size: 24px 42px, 24px 42px;
  background-position: 0 0, 12px 21px;
  color: var(--text-primary);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a, button, input, textarea, select { transition: var(--transition); }
:focus-visible { outline: 2px solid var(--platinum); outline-offset: 2px; }
::selection { background: #6A2C2E; color: #E7E3D8; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: fixed; top: 10px; left: 12px; z-index: 10001;
  transform: translateY(-160%); padding: 10px 16px; border-radius: 6px;
  background: var(--text-primary); color: var(--bg-modal); font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Premium scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-modal); }
::-webkit-scrollbar-thumb { background: #4F6784; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #6A2C2E; }

/* Cursor glow (desktop, added by JS) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px;
  margin: -240px 0 0 -240px; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(231, 227, 216, 0.06) 0%, transparent 60%);
  transition: opacity 400ms ease-out;
}
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none !important; } }

/* ---------- Typography ---------- */
h1, h2 { font-family: "Cormorant Garamond", 'Palatino Linotype', Georgia, serif; color: var(--text-primary); font-weight: 700; line-height: 1.18; letter-spacing: 0.3px; }
h2 { color: var(--cta-text); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3, h4 { font-family: "Cormorant Garamond", 'Palatino Linotype', Georgia, serif; color: #EAE1CF; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.05rem; }
p { color: var(--text-primary); }
.muted { color: var(--text-muted); }
.eyebrow {
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--cta-text); margin-bottom: 0.9rem;
}
.lead { font-size: 1.08rem; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
section { padding: 72px 0; position: relative; }
section[id], [id^="cat-"] { scroll-margin-top: 90px; }
section.tight { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, rgba(27, 38, 59, 0.96), rgba(34, 48, 71, 0.88)); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}

/* Suppress all transitions during window resize */
.no-transitions * {
  transition: none !important;
  animation: none !important;
}
.header-transition-paused { transition: none !important; }
body.search-active { overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out;
}
.site-header.scrolled {
  background: rgba(27, 38, 59, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 227, 216, 0.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: flex-start; gap: 18px;
  height: 68px; max-width: 100%; margin: 0; padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; transition: var(--transition); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; gap: 5px; }
.brand-name { font-family: "Cormorant Garamond", 'Palatino Linotype', Georgia, serif; font-size: 1.22rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.3px; line-height: 1; white-space: nowrap; }
.brand-amp { color: var(--cta-text); font-weight: 700; margin: 0 2px; }
.brand-sub {
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.68rem;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted);
  line-height: 1; white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 11px; margin-left: auto; }
.main-nav a.nav-link {
  position: relative; text-decoration: none; color: var(--cta-text);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.84rem; letter-spacing: 0.15px; white-space: nowrap;
  line-height: 1; display: inline-flex; align-items: center; height: 40px;
}
.main-nav a.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  width: 0%; height: 1px; background: var(--cta); transition: var(--transition);
}
.main-nav a.nav-link:hover { color: var(--text-primary); }
.main-nav a.nav-link:hover::after { width: 100%; }
.main-nav a.nav-link[aria-current="page"] { color: var(--text-primary); }
.main-nav a.nav-link[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--text-muted);
  border-radius: 6px; color: var(--text-primary); padding: 8px 12px;
  font-size: 1rem; cursor: pointer;
}
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 68px; right: 0; left: 0;
    background: var(--bg-modal); border-bottom: 1px solid rgba(231,227,216,0.35);
    flex-direction: column; gap: 0; padding: 12px 24px 20px;
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform 300ms ease-out, opacity 300ms ease-out;
    z-index: 101;
    max-height: calc(100vh - 68px); max-height: calc(100svh - 68px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a.nav-link { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--bg-divider); height: auto; }
  .main-nav .btn { margin-top: 14px; width: 100%; margin-left: 0 !important; }
  .main-nav .search-btn { width: 100%; margin: 8px 0 0; justify-content: center; padding: 12px 14px; }
}

.main-nav .btn { height: 36px; padding: 0 11px; font-size: 0.78rem; letter-spacing: 0.25px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; margin-left: 4px; border-radius: 6px; }
.brand-text { padding-top: 2px; }

/* ---------- Buttons (magnetic + shine) ---------- */
.btn {
  position: relative; display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: 0.92rem;
  letter-spacing: 1.2px; text-transform: uppercase; font-size: 0.84rem; border-radius: 8px; padding: 13px 26px;
  overflow: hidden; transition: var(--transition);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left 550ms ease-out; pointer-events: none;
}
.btn:hover::after { left: 130%; }
.btn { transition: background-color 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out, color 300ms ease-out, transform 200ms ease-out; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: #6A2C2E; color: #F2ECE1; border: 1px solid #7E3A3C; box-shadow: 0 2px 12px rgba(23, 34, 52, 0.3); }
.btn-primary:hover {
  background: #7E3A3C; border-color: var(--accent-gold);
  transform: translateY(-2px); box-shadow: 0 10px 32px rgba(106, 44, 46, 0.45), 0 0 0 1px var(--accent-gold-soft);
}
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--text-muted); }
.btn-secondary:hover {
  background: var(--text-muted); color: var(--bg-modal);
  transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,0.25);
}
.btn-accent { background: transparent; color: var(--cta-text); border: 1px solid var(--cta); }
.btn-accent:hover {
  background: var(--cta); color: var(--bg-modal); border-color: var(--cta-text);
  transform: translateY(-2px); box-shadow: 0 8px 26px rgba(210,168,166,0.35);
}
.btn-block { display: block; text-align: center; }

/* ---------- Hero + aurora ---------- */
.hero { padding: 160px 0 80px; position: relative; overflow: hidden; }
.aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  filter: blur(70px); opacity: 0.55;
}
.aurora span {
  position: absolute; border-radius: 50%;
  animation: drift 22s ease-in-out infinite alternate;
  /* GPU-promote each orb so Safari composites them on the GPU from the first frame,
     preventing the main-thread layout recalc that causes the cold-start lag. */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}
.aurora span:nth-child(1) { width: 44vw; height: 44vw; left: -8%; top: -22%; background: radial-gradient(circle, #5A7896, transparent 65%); }
.aurora span:nth-child(2) { width: 36vw; height: 36vw; right: -6%; top: 4%; background: radial-gradient(circle, rgba(106,44,46,0.55), transparent 65%); animation-delay: -7s; animation-duration: 27s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 32%; bottom: -30%; background: radial-gradient(circle, rgba(92,71,80,0.5), transparent 60%); animation-delay: -14s; animation-duration: 31s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4vw, 3vh) scale(1.12); }
  100% { transform: translate(-3vw, -2vh) scale(0.94); }
}
.hero-grid { display: grid; grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr); gap: 40px; align-items: center; }
@media (max-width: 1050px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 140px 0 64px; } }
.hero h1 span { color: var(--cta-text); }
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.16; }
.hero .lead {
  font-family: "Cormorant Garamond", 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-size: 1.28rem; line-height: 1.55; letter-spacing: 0.1px;
  margin: 22px 0 34px; max-width: 620px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 40px; display: flex; gap: 34px; flex-wrap: wrap;
  border-top: 1px solid rgba(231,227,216,0.25); padding-top: 26px;
}
.hero-meta .stat b { display: block; font-size: 1.55rem; color: var(--cta-text); font-weight: 700; }
.hero-meta .stat span { font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.hero-figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: start; }
.hero-figures .hero-figure { width: 100%; min-width: 0; }

/* ---------- Hero statement (opening argument) ---------- */
.hero-message .container { max-width: 900px; }
.hero-message p { font-size: 1.13rem; line-height: 1.78; color: var(--text-primary); }
.hero-message p + p { margin-top: 20px; }
.hero-message p b { color: var(--cta-text); }
.hero-message .hero-message-close {
  font-family: "Cormorant Garamond", 'Palatino Linotype', Georgia, serif;
  font-style: italic; color: var(--cta-text);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.4;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid rgba(231, 227, 216, 0.22);
}

/* Five-country constitutional gallery: two larger anchors above, three below. */
.hero-figure { width: 100%; }
.hero-figure:nth-child(-n+2) { grid-column: span 3; }
.hero-figure:nth-child(n+3) { grid-column: span 2; }
.hero-figure .portrait-frame { max-width: none; margin: 0; }
.hero-figure .portrait-frame img, .hero-figure .portrait-fallback { aspect-ratio: 3 / 2; }
.hero-figure .portrait-caption { min-height: 48px; line-height: 1.35; }

/* Hero courts are editorial imagery, not floating cards. The full source image
   is contained inside a fixed footprint and its edges recede into the page. */
.hero-media-frame {
  padding: 0; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
}
.hero-media-frame::after {
  content: ''; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 28px 17px var(--bg-body);
  background: linear-gradient(180deg, rgba(58,81,112,0.04) 58%, rgba(58,81,112,0.5) 100%);
}
.hero-media-frame img {
  width: 100%; height: 100%; object-fit: contain !important; object-position: center !important;
  border-radius: 0; background: rgba(27,38,59,0.14);
  filter: saturate(0.82) contrast(0.96) brightness(0.96);
}
.hero-media-frame .portrait-fallback { border-radius: 0; }
.hero-figure .portrait-caption {
  margin-top: 4px; padding-top: 9px; border-top: 1px solid rgba(231,227,216,0.18);
}

.portrait-frame {
  max-width: 400px; margin: 0 auto;
  position: relative; border: 1px solid rgba(231,227,216,0.45); border-radius: var(--radius);
  padding: 14px; background: linear-gradient(160deg, var(--bg-card), var(--bg-modal));
  box-shadow: 0 24px 60px rgba(10, 15, 24, 0.5);
  transition: var(--transition); will-change: transform;
}
.portrait-frame img { border-radius: 8px; width: 100%; object-fit: cover; object-position: 50% 62%; aspect-ratio: 4/5; }
.portrait-fallback {
  aspect-ratio: 4/5; border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(160deg, var(--bg-divider), var(--bg-modal));
}
.portrait-fallback .monogram {
  width: 96px; height: 96px; border: 1px solid var(--cta); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--cta-text); font-weight: 700;
}
.portrait-caption {
  margin-top: 12px; text-align: center;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.78rem; letter-spacing: 1px;
  color: var(--text-muted);
}

/* ---------- Cards (3D tilt-ready) ---------- */
.card {
  background: linear-gradient(165deg, var(--bg-card), rgba(27, 38, 59, 0.92));
  border: 1px solid rgba(231,227,216,0.16);
  border-radius: var(--radius); padding: 30px; height: 100%;
  transition: transform 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out;
  transform-style: preserve-3d; will-change: transform;
  position: relative;
}
.card:hover {
  border-color: rgba(218, 146, 141, 0.75);
  box-shadow: 0 22px 48px rgba(10, 15, 24, 0.55), 0 0 0 1px rgba(231,227,216,0.15);
}
.card .icon { font-size: 1.5rem; color: var(--cta-text); display: inline-block; transition: var(--transition); }
.card:hover .icon { transform: translateX(4px); }
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card .card-link {
  display: inline-block; margin-top: 16px; color: var(--cta-text); text-decoration: none;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.85rem; letter-spacing: 0.5px;
}
.card .card-link:hover { color: var(--cta-bright); text-decoration: underline; text-underline-offset: 4px; }

.package { display: flex; flex-direction: column; }
.pkg-fee {
  display: inline-block; margin: 8px 0 2px; font-size: 0.7rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--cta-text); border: 1px solid rgba(210,168,166,0.45);
  border-radius: 14px; padding: 3px 11px;
}
.package .pkg-tier {
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted);
}
.package h3 { font-size: 1.45rem; margin: 8px 0 4px; }
.package ul { list-style: none; margin: 18px 0 22px; flex: 1; }
.package ul li {
  padding: 8px 0 8px 26px; position: relative; color: var(--text-primary);
  font-size: 0.94rem; border-bottom: 1px solid rgba(231,227,216,0.14);
}
.package ul li:last-child { border-bottom: none; }
.package ul li::before { content: "›"; position: absolute; left: 4px; color: var(--cta-text); font-weight: 700; }
.package.featured { border-color: #96494B; position: relative; }
.package.featured::before {
  content: "Most engaged"; position: absolute; top: -12px; left: 24px;
  background: #6A2C2E; color: #E7E3D8; border-radius: 20px;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px;
}

/* ---------- Consultation banner ---------- */
.consult-banner {
  background: linear-gradient(140deg, var(--bg-modal), #22304A);
  border: 1px solid #96494B; border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  box-shadow: 0 24px 60px rgba(10, 15, 24, 0.4), inset 0 1px 0 rgba(231,227,216,0.15);
}
.consult-banner .price { font-size: 3rem; font-weight: 700; color: #E7E3D8; line-height: 1; }
.consult-banner .equiv { font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  background: linear-gradient(165deg, var(--bg-card), rgba(27, 38, 59, 0.92));
  border: 1px solid rgba(231,227,216,0.16); border-radius: var(--radius); padding: 26px;
  transition: transform 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out;
  transform-style: preserve-3d; will-change: transform;
}
.step:hover { border-color: rgba(218, 146, 141, 0.75); box-shadow: 0 22px 48px rgba(10, 15, 24, 0.5); }
.step::before {
  content: "0" counter(step);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.8rem; letter-spacing: 2px;
  color: var(--cta-text); border: 1px solid rgba(231,227,216,0.3); border-radius: 20px; padding: 4px 12px;
  display: inline-block; margin-bottom: 14px;
}
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data-table th {
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.75rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: #E7E3D8; background: #6A2C2E;
  text-align: left; padding: 12px 16px;
}
.data-table td { padding: 13px 16px; border: 1px solid rgba(233,237,233,0.28); color: var(--text-primary); vertical-align: top; }
.data-table tr:nth-child(even) td { background: rgba(47, 68, 89, 0.6); }

/* Writs table: static checkerboard, maroon and blue alternating per row */
.writs-table td { transition: none !important; border-color: rgba(231,227,216,0.25); }
.writs-table tr:nth-child(odd) td:first-child { background: #6A2C2E !important; color: #E7E3D8; }
.writs-table tr:nth-child(odd) td:last-child { background: #364C66 !important; color: #E7E3D8; }
.writs-table tr:nth-child(even) td:first-child { background: #364C66 !important; color: #E7E3D8; }
.writs-table tr:nth-child(even) td:last-child { background: #6A2C2E !important; color: #E7E3D8; }
.writs-table td .muted { color: var(--cta-text); }

/* ---------- Accordion ---------- */
.accordion { border: 1px solid rgba(231,227,216,0.2); border-radius: var(--radius); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid rgba(231,227,216,0.15); }
.matter-title { margin: 0; font: inherit; }
.accordion-trigger {
  width: 100%; background: var(--bg-card); color: var(--text-primary);
  border: none; text-align: left; padding: 20px 24px; font-size: 1.02rem; font-weight: 600;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion-trigger:hover { color: var(--cta-bright); background: #31465F; }
.accordion-trigger .chev { transition: var(--transition); color: var(--text-muted); }
.accordion-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--cta-text); }
.accordion-panel { background: var(--bg-modal); padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 300ms ease-out, padding 300ms ease-out; }
.accordion-panel.open { padding: 20px 24px 26px; max-height: none; }
.accordion-panel p, .accordion-panel li { color: var(--text-muted); font-size: 0.95rem; }
.accordion-panel p + p { margin-top: 12px; }
.accordion-panel ul { margin: 10px 0 0 20px; }
.accordion-panel b { color: var(--text-primary); }

/* Portfolio (Litigation & Corporate) */
.matter-cat { margin-top: 40px; margin-bottom: 14px; color: var(--cta-text); }
.accordion-panel .matter-meta { font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cta-text); margin-bottom: 4px; }
.accordion-panel .matter-tags { font-size: 0.75rem; letter-spacing: 0.5px; color: var(--text-muted); opacity: 0.8; margin-top: 14px; }
.accordion-panel[id] { scroll-margin-top: 96px; }

/* ---------- Portfolio overview and dedicated record ---------- */
.section-intro-row {
  display: flex; align-items: end; justify-content: space-between; gap: 28px;
}
.section-intro-row > div { max-width: 760px; }
.section-intro-row .btn { flex-shrink: 0; }
.featured-matter-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.featured-matter {
  min-width: 0; padding: 24px 24px 22px; background: var(--bg-card);
  border: 1px solid var(--bg-divider); border-radius: 12px;
  position: relative; overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.featured-matter::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 2px;
  background: var(--accent-gold); opacity: 0; transition: opacity 220ms ease;
}
.featured-matter:hover { transform: translateY(-3px); border-color: var(--cta-text); box-shadow: 0 12px 28px rgba(0,0,0,0.22); }
.featured-matter:hover::before { opacity: 1; }
.featured-matter-meta {
  color: var(--accent-gold-text); font-size: 0.72rem; letter-spacing: 1.4px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 8px;
}
.featured-matter h3 { font-size: 1.35rem; margin-bottom: 10px; }
.featured-matter > p:not(.featured-matter-meta) { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.featured-matter > a {
  display: inline-flex; gap: 7px; align-items: center; margin-top: 16px;
  color: var(--cta-text); font-size: 0.88rem; font-weight: 600; text-decoration: none;
}
.featured-matter > a span { transition: transform 200ms ease; }
.featured-matter > a:hover span { transform: translateX(4px); }
.portfolio-bridge {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: 28px; padding: 28px; border: 1px solid rgba(212,176,105,0.42);
  border-radius: 12px; background: linear-gradient(120deg, rgba(106,44,46,0.22), rgba(47,68,89,0.54));
}
.portfolio-bridge > div { max-width: 700px; }
.portfolio-bridge h3 { margin-bottom: 6px; }
.portfolio-bridge p:last-child { color: var(--text-muted); }
.portfolio-head { background: linear-gradient(135deg, rgba(106,44,46,0.24), rgba(34,48,71,0.2) 56%, rgba(212,176,105,0.07)); }
.portfolio-head .container { max-width: 920px; }
.portfolio-head p:not(.eyebrow) { max-width: 800px; }
.portfolio-head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.field input, .field textarea, .field select {
  background: var(--bg-card); border: 1px solid rgba(173,186,202,0.55); border-radius: 8px;
  color: var(--text-primary); padding: 13px 15px; font-size: 0.97rem; font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  width: 100%; box-sizing: border-box; max-width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--cta-text); background: var(--bg-modal); outline: none;
  box-shadow: 0 0 0 3px rgba(231,227,216,0.14);
}
.form-note { font-size: 0.85rem; color: var(--text-muted); }
.form-status { display: none; border-radius: 8px; padding: 14px 18px; font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.9rem; margin-top: 16px; }
.form-status.success { display: block; background: rgba(162, 185, 151, 0.12); border: 1px solid var(--success); color: var(--success); }
.form-status.error { display: block; background: rgba(201, 154, 147, 0.12); border: 1px solid var(--error); color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-modal); border-top: 1px solid rgba(231,227,216,0.35); padding: 52px 0 30px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .footer-heading { margin-bottom: 14px; color: var(--text-primary); font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; }
.site-footer a { color: var(--text-muted); text-decoration: none; display: block; padding: 4px 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--cta-bright); }
.footer-disclaimer {
  margin-top: 44px; border-top: 1px solid var(--bg-divider); padding-top: 22px;
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.65;
}
.credit-line { font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.75rem; letter-spacing: 1px; color: var(--text-muted); margin-top: 16px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; aspect-ratio: 1 / 1; border-radius: 9999px;
  background: #0B7A6D; color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 56px; padding: 0; overflow: hidden; box-sizing: border-box;
  font-size: 1.5rem; line-height: 1; text-decoration: none;
  box-shadow: 0 10px 30px rgba(10, 15, 24, 0.5);
  transition: var(--transition);
}
.wa-float:hover { transform: translateY(-4px) scale(1.06); background: #075E54; box-shadow: 0 16px 40px rgba(7,94,84,0.48); }
.wa-float svg { width: 28px; height: 28px; fill: #FFFFFF; }

/* ---------- Engagement structures ---------- */
.engagement-models { border-top: 1px solid var(--bg-divider); }
.engagement-model {
  display: grid; grid-template-columns: 72px minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4vw, 56px); padding: clamp(34px, 5vw, 62px) 0;
  border-bottom: 1px solid var(--bg-divider); align-items: start;
}
.engagement-index {
  color: var(--cta-text); font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 500; line-height: 0.9;
}
.engagement-heading h3 { margin: 8px 0 14px; font-size: clamp(1.65rem, 3vw, 2.45rem); }
.engagement-heading > p:last-child { color: var(--text-muted); }
.engagement-services {
  padding-left: clamp(22px, 4vw, 52px); border-left: 1px solid rgba(231,227,216,0.18);
}
.engagement-services h4 {
  margin-bottom: 16px; color: var(--text-primary); font-size: 0.78rem;
  letter-spacing: 1.7px; text-transform: uppercase;
}
.engagement-services ul { margin-left: 18px; color: var(--text-muted); }
.engagement-services li + li { margin-top: 9px; }
.engagement-scope {
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 84px); align-items: start;
}
.engagement-terms { border-top: 1px solid var(--bg-divider); }
.engagement-term {
  display: grid; grid-template-columns: minmax(130px, 0.34fr) 1fr; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--bg-divider);
}
.engagement-term dt { color: var(--text-primary); font-weight: 700; }
.engagement-term dd { color: var(--text-muted); }
@media (max-width: 850px) {
  .engagement-model { grid-template-columns: 54px 1fr; }
  .engagement-services { grid-column: 2; padding: 22px 0 0; border-left: 0; border-top: 1px solid rgba(231,227,216,0.18); }
  .engagement-scope { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .engagement-model { grid-template-columns: 1fr; gap: 16px; }
  .engagement-services { grid-column: 1; }
  .engagement-index { font-size: 2.7rem; }
  .engagement-term { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Counsel LinkedIn pill (matte, next to CTA) ---------- */
.counsel-linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 20px; height: 44px; margin-left: 10px;
  background: transparent; color: var(--text-primary);
  border: 1px solid #4A5E76; border-radius: 6px;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.5px;
  text-decoration: none; transition: all 0.2s ease; white-space: nowrap;
}
.counsel-linkedin:hover { background: #2F4459; border-color: #6E8098; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.28); }
.counsel-linkedin svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
@media (max-width: 600px) { .counsel-linkedin { margin-left: 0; margin-top: 10px; } }

/* ---------- Legal wire ticker ---------- */
.ticker {
  position: relative; z-index: 5; display: flex; align-items: stretch;
  background: #6A2C2E; border-top: 1px solid #96494B; border-bottom: 1px solid #96494B;
  overflow: hidden;
}
.ticker-label {
  flex-shrink: 0; display: flex; align-items: center; padding: 10px 20px;
  background: #1B263B; color: var(--cta-text);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; white-space: nowrap;
  border-right: 1px solid #96494B;
}
.ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: crawl 70s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-items { display: inline-flex; align-items: center; padding-right: 22px; }
.ticker-items a {
  color: #F2ECE1; text-decoration: none; font-size: 0.92rem; padding: 10px 0;
}
.ticker-items a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.ticker-sep { color: var(--cta-text); margin: 0 22px; font-size: 0.6rem; }
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Pull quote ---------- */
.pull-quote {
  max-width: 880px; margin: 0 auto; text-align: center; padding: 8px 24px;
}
.pull-quote blockquote {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500; font-style: italic; line-height: 1.55; color: var(--text-primary);
  quotes: none;
}
.pull-quote blockquote b { color: var(--cta-text); font-style: italic; }
.pull-quote .quote-mark { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 4.5rem; line-height: 0.6; color: var(--accent-gold); margin-bottom: 18px; }
.pull-quote figcaption { margin-top: 22px; font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.pull-quote figcaption b { color: var(--cta-text); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1), transform 550ms cubic-bezier(0.22, 1, 0.36, 1); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.visible { will-change: auto; }

/* ---------- Page header ---------- */
.page-head { padding: 146px 0 48px; border-bottom: 1px solid rgba(231,227,216,0.2); position: relative; overflow: hidden; }
.page-head p { max-width: 760px; margin-top: 14px; color: var(--text-muted); font-size: 1rem; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.notice {
  background: var(--bg-card); border-left: 3px solid #6A2C2E; border-radius: 0 8px 8px 0;
  padding: 20px 24px; font-size: 0.95rem; color: var(--text-muted);
}
.notice b { color: var(--text-primary); }

/* ---------- Back-to-top pill (premium micro-interaction) ---------- */
.top-float {
  position: fixed; right: 22px; bottom: 92px; z-index: 88;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(23, 34, 52, 0.85); color: var(--accent-gold);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; border: 1px solid var(--bg-divider); font-size: 1rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
  backdrop-filter: blur(6px);
  opacity: 0;
}
.top-float.visible { display: flex; opacity: 1; }
.top-float:hover { transform: translateY(-3px); background: var(--accent-gold); color: var(--bg-modal); border-color: var(--accent-gold); }
@media (max-width: 600px) { .top-float { right: 12px; bottom: 76px; width: 36px; height: 36px; } }

/* ---------- International cookie choice ---------- */
.ec-consent-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 9998;
  max-width: 460px; background: var(--bg-modal); color: var(--text-primary);
  border: 1px solid var(--bg-divider); border-left: 4px solid var(--cta);
  border-radius: 12px; padding: 20px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
  display: none;
}
.ec-consent-banner.visible { display: block; }
.ec-consent-banner h3 { font-size: 1rem; margin: 0 0 8px; color: var(--text-primary); }
.ec-consent-banner p { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 14px; line-height: 1.55; }
.ec-consent-banner p a { color: var(--cta-text); }
.ec-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-consent-btn {
  min-height: 44px; padding: 9px 16px; border-radius: 6px; font: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: 1px solid; transition: all 0.2s ease;
}
.ec-consent-btn.choice { background: var(--cta); color: var(--bg-modal); border-color: var(--cta-text); flex: 1 1 160px; }
.ec-consent-btn.choice:hover, .ec-consent-btn.choice:focus-visible { background: #E4BBB8; border-color: #E4BBB8; }
@media (max-width: 600px) {
  .ec-consent-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .ec-consent-btn.choice { flex-basis: 100%; }
}

.privacy-consent {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  color: var(--text-primary); font-size: 0.9rem; line-height: 1.5;
}
.privacy-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--cta-text); }
.privacy-consent a { color: var(--cta-text); }

/* ---------- Legal document (privacy policy) styling ---------- */
.legal-doc h2 { margin-top: 40px; font-size: 1.4rem; color: var(--text-primary); padding-bottom: 8px; border-bottom: 1px solid var(--bg-divider); scroll-margin-top: 100px; }
.legal-doc h3 { margin-top: 24px; font-size: 1.05rem; color: var(--text-primary); }
.legal-doc p { color: var(--text-muted); line-height: 1.75; margin-top: 12px; font-size: 0.95rem; }
.legal-doc ul { color: var(--text-muted); line-height: 1.75; margin: 12px 0 12px 20px; padding-left: 12px; }
.legal-doc ul li { margin-bottom: 8px; font-size: 0.94rem; }
.legal-doc code { background: var(--bg-modal); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; color: var(--cta-text); }
.legal-doc .toc {
  background: var(--bg-card); border: 1px solid var(--bg-divider); border-radius: 12px;
  padding: 24px 28px; margin-bottom: 32px;
}
.legal-doc .toc-title { font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cta-text); margin: 0 0 14px; font-weight: 600; }
.legal-doc .toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 22px; color: var(--text-muted); }
@media (max-width: 700px) { .legal-doc .toc ol { columns: 1; } }
.legal-doc .toc a { color: var(--text-muted); text-decoration: none; line-height: 1.9; font-size: 0.9rem; }
.legal-doc .toc a:hover { color: var(--cta-text); text-decoration: underline; }
.cookie-table-wrap { overflow-x: auto; margin-top: 12px; -webkit-overflow-scrolling: touch; }
.cookie-table-wrap .data-table { min-width: 680px; table-layout: fixed; word-break: normal; }
.cookie-table-wrap .data-table th { white-space: nowrap; word-break: normal; }
.cookie-table-wrap .data-table th:nth-child(1),
.cookie-table-wrap .data-table td:nth-child(1) { width: 22%; }
.cookie-table-wrap .data-table th:nth-child(2),
.cookie-table-wrap .data-table td:nth-child(2) { width: 48%; }
.cookie-table-wrap .data-table th:nth-child(3),
.cookie-table-wrap .data-table td:nth-child(3) { width: 15%; }
.cookie-table-wrap .data-table th:nth-child(4),
.cookie-table-wrap .data-table td:nth-child(4) { width: 15%; }

/* ---------- Legal & Real Estate Wire ---------- */
.wire-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 16px;
}
.wire-head h2 { margin-top: 4px; }
.wire-meta { display: flex; align-items: center; gap: 12px; }
.wire-updated { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); }
.wire-refresh {
  background: transparent; border: 1px solid var(--bg-divider); color: var(--text-muted);
  padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 0.82rem; cursor: pointer; transition: all 0.2s ease;
}
.wire-refresh:hover { border-color: var(--cta-text); color: var(--text-primary); }
.wire-refresh.spinning { pointer-events: none; opacity: 0.6; }

.wire-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 16px 0; margin-bottom: 20px;
  border-top: 1px solid var(--bg-divider); border-bottom: 1px solid var(--bg-divider);
}
.wire-filter-label { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.wire-filter-divider { width: 1px; height: 20px; background: var(--bg-divider); margin: 0 6px; }
.wire-chip {
  background: transparent; border: 1px solid var(--bg-divider); color: var(--text-muted);
  padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 0.82rem; cursor: pointer;
  transition: all 0.2s ease;
}
.wire-chip:hover { border-color: var(--cta-text); color: var(--text-primary); }
.wire-chip.active { background: var(--cta); border-color: var(--cta-text); color: var(--bg-modal); font-weight: 600; }
.feed-summary {
  color: var(--text-muted); font-size: 0.82rem; margin: -8px 0 16px;
  letter-spacing: 0.2px;
}

.wire-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .wire-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wire-grid { grid-template-columns: 1fr; } }

.wire-card {
  background: var(--bg-card); border: 1px solid var(--bg-divider); border-radius: 10px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none; color: inherit;
  /* prevent grid child from overflowing its column */
  min-width: 0; overflow: hidden;
  word-break: break-word; overflow-wrap: anywhere;
}
.wire-card:hover { border-color: var(--cta-text); transform: translateY(-2px); }
.wire-card .wire-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wire-badge {
  font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
}
.wire-badge.cat-legal { background: rgba(210,168,166,0.15); color: var(--cta-text); }
.wire-badge.cat-realestate { background: rgba(162,185,151,0.15); color: #B0CBA0; }
.wire-badge.cat-policy { background: rgba(180,170,210,0.15); color: #A89FCC; }
.wire-badge.jur { background: rgba(173,186,202,0.12); color: var(--text-muted); }
.wire-time { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.5px; margin-left: auto; }
.wire-load-more {
  display: block; margin: 24px auto 0; padding: 10px 28px;
  background: transparent; border: 1px solid var(--cta); color: var(--cta-text);
  font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  border-radius: 4px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.wire-load-more:hover { background: var(--cta); color: var(--bg-modal); }
.wire-card h3 { font-size: 1rem; line-height: 1.35; color: var(--text-primary); margin: 4px 0 2px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wire-card .wire-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.wire-card .wire-source { font-size: 0.75rem; color: var(--cta-text); margin-top: auto; padding-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wire-skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, rgba(210,168,166,0.06) 50%, var(--bg-card) 100%);
  background-size: 200% 100%; border: 1px solid var(--bg-divider); border-radius: 10px;
  min-height: 150px; animation: wireShimmer 1.6s ease-in-out infinite;
}
@keyframes wireShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.wire-empty, .wire-error {
  grid-column: 1 / -1; padding: 40px 20px; text-align: center;
  color: var(--text-muted); border: 1px dashed var(--bg-divider); border-radius: 10px;
}
.wire-error { border-color: rgba(201,154,147,0.4); color: var(--error); }
.wire-error-link { color: var(--cta); }

/* ---------- Regulatory Filing Calendar ---------- */
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.cal-chip {
  background: transparent; border: 1px solid var(--bg-divider); color: var(--text-muted);
  padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 0.82rem; cursor: pointer; transition: all 0.2s ease;
}
.cal-chip:hover { border-color: var(--cta-text); color: var(--text-primary); }
.cal-chip.active { background: var(--cta); border-color: var(--cta-text); color: var(--bg-modal); font-weight: 600; }

.cal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 900px) { .cal-grid { grid-template-columns: 1fr; } }
.cal-row {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--bg-divider); border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.cal-row:hover { border-color: var(--cta-text); transform: translateY(-1px); }
.cal-row.upcoming { border-left: 3px solid var(--cta); }
.cal-date {
  text-align: center; padding: 8px 0;
  background: var(--bg-modal); border-radius: 8px; border: 1px solid var(--bg-divider);
}
.cal-date .cal-month { display: block; font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cta-text); }
.cal-date .cal-day { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--text-primary); line-height: 1; margin-top: 2px; }
.cal-body h3 { font-size: 0.98rem; margin: 0 0 4px; color: var(--text-primary); }
.cal-body p { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 4px; line-height: 1.5; }
.cal-body .cal-who { font-size: 0.72rem; letter-spacing: 0.5px; color: var(--cta-text); }
.cal-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cal-tag {
  font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; background: rgba(173,186,202,0.12); color: var(--text-muted);
}
.cal-tag.jur { background: rgba(210,168,166,0.15); color: var(--cta-text); }
[data-cal-tags].cal-hidden { display: none !important; }

/* ---------- Newsletter signup card (unused — retained as dead CSS, safe to ignore) ---------- */
.signup-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--bg-divider); border-left: 4px solid var(--cta);
  border-radius: 12px; padding: 28px 30px;
}
@media (max-width: 900px) { .signup-card { grid-template-columns: 1fr; } }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.signup-form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; width: 100%; }
.signup-form-row input[type="email"] { flex: 1; min-width: 220px; padding: 12px 16px; border: 1px solid var(--bg-divider); background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 0.9rem; border-radius: 0; outline: none; }
.signup-form-row input[type="email"]:focus { border-color: var(--cta-text); }
.signup-form-row .btn { white-space: nowrap; flex: 0 0 auto; }
.signup-form input[type="email"], .signup-form select {
  flex: 1 1 200px; padding: 12px 14px; font-family: inherit; font-size: 0.92rem;
  background: var(--bg-modal); border: 1px solid var(--bg-divider); border-radius: 8px; color: var(--text-primary);
}
.signup-form input[type="email"]:focus, .signup-form select:focus { outline: none; border-color: var(--cta-text); }
.signup-form .btn { flex: 0 0 auto; }
.signup-status { font-size: 0.85rem; margin-top: 8px; width: 100%; }
.signup-status.success { color: var(--success); }
.signup-status.error { color: var(--error); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Compact credentials stack (under portrait) ---------- */
.cred-stack {
  border-top: 1px solid var(--bg-divider); padding-top: 20px;
}
.cred-stack-title {
  font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-gold-text); font-weight: 600; margin: 0 0 16px;
}
.cred-row {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--bg-divider);
}
.cred-row:last-child { border-bottom: none; }
.cred-row .cred-icon {
  font-size: 1.2rem; color: var(--cta-text); flex-shrink: 0;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bg-divider); border-radius: 6px;
}
.cred-row > div { flex: 1; }
.cred-row b { color: var(--text-primary); font-size: 0.95rem; display: block; margin-bottom: 4px; }
.cred-row p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---------- Team-card external link (Real Estate Desk website links) ---------- */
.team-website {
  display: inline-flex; align-items: center; gap: 6px; color: var(--cta-text);
  text-decoration: none; font-size: 0.85rem; font-weight: 600; margin-top: auto;
  padding: 8px 14px; border: 1px solid var(--bg-divider); border-radius: 999px;
  transition: all 0.2s ease;
}
.team-website:hover { border-color: var(--cta-text); color: var(--text-primary); background: rgba(210,168,166,0.08); }
.team-website svg { width: 14px; height: 14px; }

/* ---------- Our Team (counsels page sub-section) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--bg-card); border: 1px solid var(--bg-divider); border-radius: 12px;
  padding: 22px 22px 20px; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { border-color: var(--cta-text); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.3); }
.team-photo {
  width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--bg-divider); background: var(--bg-modal); position: relative;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; flex-shrink: 0;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team-photo .team-monogram {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.4rem; font-weight: 700;
  color: var(--cta-text); letter-spacing: 1px;
}
.team-name { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; color: var(--text-primary); margin: 0 0 4px; line-height: 1.2; }
.team-title { font-size: 0.72rem; letter-spacing: 1.8px; text-transform: uppercase; color: var(--cta-text); margin: 0 0 14px; font-weight: 600; }
.team-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 14px; text-align: left; }
.team-desc p { color: inherit; font-size: inherit; line-height: inherit; }
.team-desc p + p { margin-top: 12px; }
.team-cases {
  width: 100%; margin: 6px 0 12px; padding: 12px 14px;
  background: rgba(210,168,166,0.06); border-radius: 8px; text-align: left;
}
.team-cases-label { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cta-text); font-weight: 600; margin: 0 0 8px; }
.team-cases ul { list-style: none; margin: 0; padding: 0; }
.team-cases li { font-size: 0.78rem; color: var(--text-muted); padding: 4px 0 4px 14px; position: relative; line-height: 1.5; }
.team-cases li::before { content: '›'; position: absolute; left: 0; color: var(--cta-text); font-weight: 700; }
.team-cases li i { color: var(--text-primary); font-style: italic; }
.team-linkedin {
  display: inline-flex; align-items: center; gap: 6px; color: var(--cta-text);
  text-decoration: none; font-size: 0.85rem; font-weight: 600; margin-top: auto;
  padding: 8px 14px; border: 1px solid var(--bg-divider); border-radius: 999px;
  transition: all 0.2s ease;
}
.team-linkedin:hover { border-color: var(--cta-text); color: var(--text-primary); background: rgba(210,168,166,0.08); }
.team-linkedin svg { width: 14px; height: 14px; }
.team-card[id], #muhammad-hamza-sohail-khan { scroll-margin-top: 92px; }
.team-card .team-desc.is-collapsed {
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical;
  overflow: hidden;
}
.team-bio-toggle {
  align-self: flex-start; background: transparent; border: 0; padding: 2px 0 10px;
  color: var(--cta-text); font: inherit; font-size: 0.84rem; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 4px;
}
.team-bio-toggle:hover { color: var(--text-primary); }
.professional-directory {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 28px; padding: 18px; background: rgba(27,38,59,0.36);
  border: 1px solid var(--bg-divider); border-radius: 12px;
}
.professional-directory-label {
  grid-column: 1 / -1; color: var(--accent-gold-text); font-size: 0.72rem;
  letter-spacing: 1.8px; text-transform: uppercase; font-weight: 600; margin-bottom: 2px;
}
.professional-directory a {
  display: flex; flex-direction: column; justify-content: center; min-height: 64px;
  color: var(--text-primary); text-decoration: none; padding: 10px 12px;
  background: var(--bg-card); border: 1px solid var(--bg-divider); border-radius: 8px;
  font-size: 0.9rem; line-height: 1.25; transition: border-color 200ms ease, transform 200ms ease;
}
.professional-directory a:hover { border-color: var(--cta-text); transform: translateY(-2px); }
.professional-directory small { color: var(--text-muted); font-size: 0.72rem; margin-top: 4px; }

/* ---------- Institutional firm and sector architecture ---------- */
.firm-page-head p:last-child { max-width: 830px; }
.firm-intro-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 54px; align-items: start;
}
.evidence-panel {
  padding: 28px; border: 1px solid var(--bg-divider); border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(23,34,52,0.82), rgba(50,72,98,0.9));
  box-shadow: 0 18px 48px rgba(18,27,42,0.26);
}
.evidence-stat {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px;
  align-items: center; padding: 15px 0; border-bottom: 1px solid var(--bg-divider);
}
.evidence-stat strong {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.25rem;
  color: var(--accent-gold-text); line-height: 1;
}
.evidence-stat span { color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; }
.evidence-panel .card-link { display: inline-block; margin-top: 20px; }
.principle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.principle-card {
  padding: 25px 22px; border: 1px solid var(--bg-divider); border-radius: var(--radius);
  background: rgba(50,72,98,0.62);
}
.principle-card > span {
  display: block; color: var(--accent-gold-text); font-size: 0.72rem;
  letter-spacing: 2px; margin-bottom: 18px;
}
.principle-card h3 { margin-bottom: 10px; }
.principle-card p { color: var(--text-muted); font-size: 0.9rem; }
.firm-process { list-style: none; margin: 0; padding: 0; }
.firm-process li {
  display: grid; grid-template-columns: minmax(128px, 0.38fr) minmax(0, 1fr);
  gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--bg-divider);
}
.firm-process li:first-child { border-top: 1px solid var(--bg-divider); }
.firm-process b { color: var(--text-primary); }
.firm-process span { color: var(--text-muted); }
.jurisdiction-band { display: grid; gap: 12px; }
.jurisdiction-band a {
  display: flex; flex-direction: column; gap: 5px; min-height: 88px; padding: 17px 19px;
  color: var(--text-primary); text-decoration: none; background: var(--bg-card);
  border: 1px solid var(--bg-divider); border-radius: 10px;
}
.jurisdiction-band a:hover { border-color: var(--cta-text); transform: translateX(3px); }
.jurisdiction-band span { color: var(--text-muted); font-size: 0.88rem; }
.sector-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sector-card {
  display: flex; flex-direction: column; min-height: 220px; padding: 24px 22px;
  color: inherit; text-decoration: none; border: 1px solid var(--bg-divider);
  border-radius: var(--radius); background: rgba(50,72,98,0.68);
}
.sector-card:hover { border-color: var(--cta-text); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.sector-card .sector-num { color: var(--accent-gold-text); font-size: 0.7rem; letter-spacing: 2px; margin-bottom: 22px; }
.sector-card h3 { margin-bottom: 10px; }
.sector-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 18px; }
.sector-card .sector-link { margin-top: auto; color: var(--cta-text); font-size: 0.82rem; font-weight: 600; }

@media (max-width: 1000px) {
  .principle-grid, .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .firm-intro-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .principle-grid, .sector-grid { grid-template-columns: 1fr; }
  .principle-card, .sector-card, .evidence-panel { padding: 20px 18px; }
  .sector-card { min-height: 0; }
  .firm-process li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Trust bar (homepage, below hero) ---------- */
.trust-bar { padding: 40px 0; border-top: 1px solid var(--bg-divider); border-bottom: 1px solid var(--bg-divider); background: linear-gradient(180deg, rgba(27,38,59,0.35), rgba(34,48,71,0.2)); }
.trust-strip { display: flex; align-items: center; justify-content: space-around; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 14px; min-width: 200px; }
.trust-num { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.4rem; font-weight: 700; color: var(--accent-gold); line-height: 1; letter-spacing: -1px; }
.trust-label { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); line-height: 1.5; }
.trust-label b { display: block; color: var(--text-primary); font-size: 0.86rem; letter-spacing: 0.8px; text-transform: none; font-weight: 600; margin-top: 4px; }
.trust-divider { width: 1px; height: 40px; background: var(--bg-divider); }
@media (max-width: 900px) {
  .trust-strip { gap: 20px 32px; justify-content: center; }
  .trust-divider { display: none; }
  .trust-item { min-width: 160px; }
  .trust-num { font-size: 2rem; }
}

@media (max-width: 900px) {
  .section-intro-row, .portfolio-bridge { align-items: flex-start; flex-direction: column; }
  .featured-matter-grid { grid-template-columns: 1fr; }
  .professional-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .featured-matter { padding: 20px 18px; }
  .portfolio-bridge { padding: 22px 18px; }
  .portfolio-bridge .btn, .section-intro-row .btn { width: 100%; text-align: center; }
  .portfolio-head-actions .btn { width: 100%; text-align: center; }
  .professional-directory { grid-template-columns: 1fr; padding: 14px; }
  .accordion-trigger { padding: 17px 16px; font-size: 0.96rem; }
  .accordion-panel { padding-left: 16px; padding-right: 16px; }
  .accordion-panel.open { padding: 18px 16px 22px; }
}

/* ---------- Intent gateway (homepage "Who are you?") ---------- */
.intent-gateway { padding: 72px 0; background: linear-gradient(180deg, rgba(27,38,59,0.4), rgba(34,48,71,0.55)); border-top: 1px solid var(--bg-divider); border-bottom: 1px solid var(--bg-divider); }
.intent-gateway h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 8px; }
.intent-gateway .lead { color: var(--text-muted); max-width: 640px; margin-bottom: 32px; }
.intent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.intent-card {
  display: block; padding: 28px 24px; background: var(--bg-card); border: 1px solid var(--bg-divider); border-radius: 12px;
  text-decoration: none; color: inherit; position: relative; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.intent-card::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px;
  background: var(--accent-gold); opacity: 0; transition: opacity 0.25s ease;
  border-radius: 0 2px 2px 0;
}
.intent-card:hover { transform: translateY(-4px); border-color: var(--cta-text); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.intent-card:hover::before { opacity: 1; }
.intent-card .intent-tag { display: inline-block; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-gold-text); margin-bottom: 12px; font-weight: 600; }
.intent-card h3 { font-size: 1.4rem; margin: 0 0 12px; color: var(--text-primary); }
.intent-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 16px; line-height: 1.55; }
.intent-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.intent-card ul li { position: relative; padding: 4px 0 4px 20px; font-size: 0.88rem; color: var(--text-muted); }
.intent-card ul li::before { content: '›'; position: absolute; left: 0; color: var(--cta-text); font-weight: 700; }
.intent-card .intent-cta { color: var(--cta-text); font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.intent-card .intent-cta::after { content: '→'; transition: transform 0.2s ease; }
.intent-card:hover .intent-cta::after { transform: translateX(4px); }
@media (max-width: 900px) { .intent-grid { grid-template-columns: 1fr; } }

/* ---------- Situation navigation tabs (services page) ---------- */
.persona-tabs {
  display: flex; flex-wrap: wrap; gap: 0; margin: 20px 0 0;
  border-bottom: 1px solid var(--bg-divider);
}
.persona-tab {
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); padding: 11px 20px 9px; margin-bottom: -1px;
  font: inherit; font-size: 0.83rem; letter-spacing: 0.02em; cursor: pointer;
  transition: color 0.2s ease, border-bottom-color 0.2s ease; white-space: nowrap;
}
.persona-tab:hover { color: var(--text-primary); border-bottom-color: var(--accent-gold); }
.persona-tab[aria-selected="true"] {
  color: var(--text-primary); border-bottom-color: var(--accent-gold); font-weight: 600;
}
.persona-tab-note { font-size: 0.82rem; color: var(--text-muted); margin: 10px 0 0; font-style: italic; }
.tab-short { display: none; }
.tab-long { display: inline; }
[data-persona].hidden-by-persona { display: none !important; }
.persona-section-enter { animation: filterFadeIn 0.3s ease both; }
@keyframes filterFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ---------- Practice tiles ---------- */
#practice-grid { gap: 16px; }
.practice-tile {
  background: var(--bg-card); border: 1px solid var(--bg-divider);
  border-left: 3px solid transparent; border-radius: 0; padding: 24px 22px 20px;
  cursor: pointer; transition: border-left-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}
.practice-tile:hover, .practice-tile.open {
  border-left-color: var(--accent-gold); box-shadow: 0 4px 22px rgba(0,0,0,0.24);
}
.practice-tile-num {
  display: block; font-size: 0.58rem; letter-spacing: 3px; color: var(--accent-gold-text);
  font-weight: 700; margin-bottom: 10px;
}
.practice-tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.practice-tile h3 { margin: 0; font-size: 0.93rem; font-weight: 600; letter-spacing: 0.01em; flex: 1; line-height: 1.45; }
.practice-tile .expand-chev {
  color: var(--text-muted); font-size: 1.05rem; font-weight: 400; margin-left: 8px;
  flex-shrink: 0; transition: color 0.2s ease; line-height: 1; margin-top: 2px;
}
.practice-tile .expand-chev::before { content: '+'; }
.practice-tile.open .expand-chev::before,
.practice-tile:hover .expand-chev::before { content: '\2212'; }
.practice-tile.open .expand-chev, .practice-tile:hover .expand-chev { color: var(--accent-gold); }
.practice-tile-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.38s ease, margin-top 0.25s ease, padding-top 0.25s ease;
  color: var(--text-muted); font-size: 0.88rem; line-height: 1.65;
  border-top: 1px solid transparent;
}
.practice-tile.open .practice-tile-body, .practice-tile:hover .practice-tile-body {
  max-height: 600px; margin-top: 14px; padding-top: 14px; border-top-color: var(--bg-divider);
}
@media (hover: none) {
  .practice-tile:hover .practice-tile-body { max-height: 0; margin-top: 0; padding-top: 0; border-top-color: transparent; }
  .practice-tile.open .practice-tile-body { max-height: 600px; margin-top: 14px; padding-top: 14px; border-top-color: var(--bg-divider); }
  .practice-tile:hover .expand-chev::before { content: '+'; }
  .practice-tile.open .expand-chev::before { content: '\2212'; }
  .practice-tile:hover .expand-chev { color: var(--text-muted); }
  .practice-tile.open .expand-chev { color: var(--accent-gold); }
}

/* ---------- Global search overlay ---------- */
.search-btn {
  background: transparent; border: 1px solid var(--bg-divider); color: var(--text-muted); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s ease; margin-right: 10px;
}
.search-btn:hover { border-color: var(--cta-text); color: var(--text-primary); }
.search-btn svg { width: 14px; height: 14px; }
.search-overlay {
  position: fixed; inset: 0; background: rgba(9,15,25,0.92); z-index: 9999; display: none;
  padding: 80px 20px 40px; overflow-y: auto;
}
.search-overlay.open { display: block; }
.search-modal { max-width: 720px; margin: 0 auto; }
.search-input-wrap { position: relative; }
.search-input {
  width: 100%; padding: 20px 60px 20px 24px; font-size: 1.15rem; background: var(--bg-card);
  border: 1px solid var(--bg-divider); border-radius: 12px; color: var(--text-primary); font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--cta-text); }
.search-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: transparent; border: none;
  color: var(--text-muted); font-size: 1.4rem; cursor: pointer; padding: 8px 12px;
}
.search-close:hover { color: var(--cta-text); }
.search-results { margin-top: 24px; }
.search-result {
  display: block; padding: 14px 18px; margin-bottom: 10px; background: var(--bg-card);
  border: 1px solid var(--bg-divider); border-radius: 8px; text-decoration: none; color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.search-result:hover { border-color: var(--cta-text); transform: translateX(4px); }
.search-result .sr-page { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cta-text); font-weight: 600; }
.search-result .sr-title { display: block; font-size: 1rem; color: var(--text-primary); margin-top: 4px; }
.search-result .sr-snippet { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.search-hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 20px; text-align: center; }
.search-suggestions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.search-suggestions button {
  background: transparent; border: 1px solid var(--bg-divider); color: var(--text-muted); padding: 6px 14px;
  border-radius: 999px; font: inherit; font-size: 0.82rem; cursor: pointer; transition: all 0.2s ease;
}
.search-suggestions button:hover { border-color: var(--cta-text); color: var(--text-primary); }
.search-filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.sf-tab {
  background: transparent; border: 1px solid var(--bg-divider); color: var(--text-muted);
  padding: 6px 18px; border-radius: 999px; font: inherit; font-size: 0.82rem;
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.sf-tab:hover { border-color: var(--cta-text); color: var(--text-primary); }
.sf-tab.active { background: var(--cta); border-color: var(--cta-text); color: var(--bg-modal); font-weight: 600; }
@media (max-width: 480px) {
  .search-filter-bar { gap: 6px; }
  .sf-tab { padding: 5px 14px; font-size: 0.79rem; }
}

/* ---------- Portfolio filter chips ---------- */
.filter-chips {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; margin: 20px 0 0;
  border-top: 1px solid var(--bg-divider); border-bottom: 1px solid var(--bg-divider);
  align-items: center;
}
.filter-chips-label { font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-right: 8px; }
.filter-chip {
  background: transparent; border: 1px solid var(--bg-divider); color: var(--text-muted); padding: 6px 14px;
  border-radius: 999px; font: inherit; font-size: 0.82rem; cursor: pointer; transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--cta-text); color: var(--text-primary); }
.filter-chip.active {
  background: var(--cta); border-color: var(--cta-text); color: var(--bg-modal); font-weight: 600;
}
[data-tags] { transition: opacity 0.28s ease; }
[data-tags].filter-hidden { display: none !important; }
[data-tags].filter-enter { animation: filterFadeIn 0.35s ease both; }
.filter-count {
  font-size: 0.82rem; color: var(--text-muted); margin-left: auto;
  padding: 4px 10px; background: rgba(210,168,166,0.08); border-radius: 999px;
}
.portfolio-page-hidden, .portfolio-group-paged-out { display: none !important; }
.portfolio-load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Sticky Book CTA (bottom-right, next to WhatsApp) ---------- */
.book-float {
  position: fixed; right: 20px; bottom: 96px; background: var(--cta); color: var(--bg-modal);
  padding: 12px 20px; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; z-index: 900; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease; display: inline-flex; align-items: center; gap: 8px;
}
.book-float:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.5); }
.book-float svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .book-float { right: 12px; bottom: 88px; padding: 10px 16px; font-size: 0.82rem; } }

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

/* ================================================================
   MOBILE RESPONSIVE FIXES
   ================================================================ */

/* Wire filter bar: on narrow screens, break divider into a full-width separator row */
@media (max-width: 600px) {
  .wire-filter-divider { width: 100%; height: 1px; margin: 4px 0; }
  .wire-filters { gap: 6px; padding: 12px 0; }
  .wire-filter-label { font-size: 0.68rem; }
}

/* Wire head: stack meta row on small phones */
@media (max-width: 560px) {
  .wire-head { flex-direction: column; align-items: flex-start; }
  .wire-meta { width: 100%; justify-content: space-between; }
}

/* Wire grid: ensure single column never overflows container */
.wire-grid { width: 100%; }

/* Regulatory calendar row: stack to single column on phones */
@media (max-width: 540px) {
  .cal-grid { grid-template-columns: 1fr; }
  .cal-row { grid-template-columns: auto 1fr; align-items: start; }
  .cal-tags { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; }
}
@media (max-width: 380px) {
  .cal-row { grid-template-columns: 1fr; }
  .cal-date { display: flex; align-items: center; gap: 10px; text-align: left; padding: 6px 10px; }
  .cal-date .cal-month { display: inline; }
  .cal-date .cal-day { display: inline; font-size: 1.2rem; margin-top: 0; }
}

/* Portfolio filter chips: allow wrap gracefully on mobile */
@media (max-width: 600px) {
  .filter-chips { gap: 6px; }
  .filter-chip { padding: 5px 10px; font-size: 0.78rem; }
  .filter-count { margin-left: 0; width: 100%; text-align: center; }
}

/* Persona tabs: wrap gracefully */
@media (max-width: 600px) {
  .persona-tab { padding: 9px 13px; font-size: 0.78rem; }
  .persona-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab-long { display: none; }
  .tab-short { display: inline; }
}

/* Trust bar: tighter on phone */
@media (max-width: 480px) {
  .trust-item { min-width: 120px; }
  .trust-num { font-size: 1.8rem; }
}

/* Intent gateway cards: reduce padding on phone */
@media (max-width: 480px) {
  .intent-card { padding: 20px 16px; }
}

/* Page head: reduce top padding on small screens */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .page-head { padding: 104px 0 34px; }
  .page-head h1 { font-size: clamp(1.55rem, 6.4vw, 2.1rem); }
}

/* Hero: shrink padding further on phones */
@media (max-width: 480px) {
  .hero { padding: 104px 0 48px; }
  .hero h1 { font-size: clamp(1.35rem, 6vw, 1.85rem); overflow-wrap: break-word; word-break: normal; }
  .hero .lead { font-size: 0.96rem; }
  .hero .lead + p { font-size: 0.88rem; }
}

/* Team cards: reduce padding on phone */
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; gap: 20px; }
  .team-card { padding: 18px 16px 16px; }
}

/* Consult banner: stack on phone */
@media (max-width: 600px) {
  .consult-banner { flex-direction: column; text-align: center; padding: 28px 20px; }
}

/* Contact page: tighten grid-2 gap on mobile, prevent aside overflow */
@media (max-width: 900px) {
  .grid-2 { gap: 32px; }
  .grid-2 aside { width: 100%; box-sizing: border-box; }
  .grid-2 aside .card { box-sizing: border-box; }
}

/* Footer: tighten on phone */
@media (max-width: 600px) {
  .site-footer { padding: 48px 0 28px; }
  .footer-disclaimer { font-size: 0.75rem; }
}

/* Header: tighten brand on small phones */
@media (max-width: 400px) {
  .header-inner { padding: 0 16px; gap: 16px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-name { font-size: 1.1rem; }
  .brand-sub { display: none; }
}

/* Table safety: scrollable on mobile, override inline table-layout:fixed */
.data-table { word-break: break-word; }
@media (max-width: 700px) {
  .data-table { table-layout: auto !important; min-width: 520px; }
  .data-table th, .data-table td { padding: 8px 10px; font-size: 0.82rem; }
  .data-table colgroup { display: none; }
  .cookie-table-wrap .data-table { table-layout: fixed !important; min-width: 680px; }
  .cookie-table-wrap .data-table th,
  .cookie-table-wrap .data-table td { word-break: normal; overflow-wrap: normal; }
}
/* Ensure the overflow wrapper actually scrolls on touch devices */
div[style*="overflow-x"] { -webkit-overflow-scrolling: touch; overflow-x: auto; }

/* Policy card: collapse 2-column bullet list to single column on mobile */
@media (max-width: 700px) {
  .card.package[style*="grid-column"] ul[style*="columns"] {
    columns: 1 !important;
  }
}

/* Global: prevent any heading or long string from overflowing narrow viewports */
h1, h2, h3, h4, p, li { overflow-wrap: anywhere; word-break: normal; }

/* Team cases list: readable on mobile */
@media (max-width: 700px) {
  .team-cases ul li { font-size: 0.85rem; line-height: 1.55; }
  .team-cases-label { font-size: 0.72rem; }
}

/* Compact mobile discovery: swipe filters and court cards horizontally. */
@media (max-width: 700px) {
  .hero-figures {
    display: flex; overflow-x: auto; gap: 12px; padding: 2px 2px 8px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .hero-figure { flex: 0 0 86%; scroll-snap-align: start; }
  .hero-figure .portrait-caption { min-height: 0; }

  .wire-filters, .cal-filters, .filter-chips {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; padding-bottom: 12px;
  }
  .wire-filters > *, .cal-filters > *, .filter-chips > * { flex: 0 0 auto; scroll-snap-align: start; }
  .filter-count { width: auto; margin-left: 4px; white-space: nowrap; }

  .forum-table-wrap { overflow: visible; width: 100%; }
  .forum-table { width: 100% !important; min-width: 0 !important; table-layout: auto !important; }
  .forum-table colgroup, .forum-table thead { display: none; }
  .forum-table, .forum-table tbody { display: block; width: 100%; }
  .forum-table tr:not(.forum-group-row) {
    display: block; width: 100%; margin: 0 0 12px; overflow: hidden;
    border: 1px solid var(--bg-divider); border-radius: 10px; background: var(--bg-card);
  }
  .forum-table tr:not(.forum-group-row) td {
    display: grid; grid-template-columns: minmax(92px, 30%) minmax(0, 1fr); gap: 12px;
    width: 100% !important; padding: 11px 14px !important; border: 0 !important;
    border-bottom: 1px solid var(--bg-divider) !important;
    background: transparent !important; word-break: normal; overflow-wrap: anywhere;
  }
  .forum-table tr:not(.forum-group-row) td:last-child { border-bottom: 0 !important; }
  .forum-table tr:not(.forum-group-row) td::before {
    color: var(--cta-text); font-size: 0.68rem; letter-spacing: 1.2px;
    text-transform: uppercase; font-weight: 600;
  }
  .forum-table tr:not(.forum-group-row) td:nth-child(1)::before { content: 'Forum'; }
  .forum-table tr:not(.forum-group-row) td:nth-child(2)::before { content: 'Jurisdiction'; }
  .forum-table tr:not(.forum-group-row) td:nth-child(3)::before { content: 'Coverage'; }
  .forum-table .forum-group-row { display: block; width: 100%; }
  .forum-table .forum-group-row td {
    display: block; width: 100% !important; padding: 22px 2px 9px !important;
    border: 0 !important; background: transparent !important;
  }
}

/* Package bullet lists: prevent overflow on small screens */
@media (max-width: 600px) {
  .card.package ul li { font-size: 0.88rem; }
  .card.package ul { padding-left: 16px; }
}

/* Notice blocks: ensure they don't overflow */
.notice { overflow-wrap: break-word; word-break: break-word; }

/* Safari cold-start: keep the aurora container on its own compositor layer
   so the GPU is warm from the first paint rather than promoted mid-animation. */
.aurora { transform: translateZ(0); }

/* Prevent 300ms tap delay on iOS Safari for interactive elements */
a, button, [role="button"], .intent-card, .practice-tile, .filter-chip, .persona-tab, .practice-tile-num {
  touch-action: manipulation;
}

/* ---------- Published long-form card ---------- */
.published-card:has(.published-article-disclosure[open]) { grid-column: 1 / -1; }
.published-card .published-article-disclosure { border-top: 0; }
.published-card .published-article-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 0;
  color: var(--cta-text);
  cursor: pointer;
  font-weight: 600;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  list-style: none;
}
.published-article-disclosure summary::-webkit-details-marker { display: none; }
.published-article-disclosure summary:hover { color: var(--cta-bright); }
.published-summary-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.published-article-disclosure[open] .published-summary-mark { transform: rotate(45deg); }
.published-article-body {
  max-width: 78ch;
  padding: 14px 0 8px;
}
.published-article-body p { margin-top: 18px; line-height: 1.78; }
.published-article-body h4 {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--bg-divider);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}
.published-article-body .article-standfirst {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--text);
}
.published-article-note {
  margin-top: 38px;
  padding: 20px 22px;
  border-left: 3px solid var(--cta);
  background: rgba(210,168,166,0.07);
}
.published-article-note p { margin-top: 0; font-size: 0.92rem; }
.published-article-footer {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-divider);
}
.published-article-footer p { margin: 0 0 12px; }
@media (max-width: 600px) {
  .published-article-body h4 { margin-top: 34px; }
}
