/* ==========================================================================
   Reincorp Advisory - shared stylesheet
   Palette: dark plum (#1A0412 / #310E23), gold accents (#C4A35A / #8F6F2A)
   Type: Source Serif 4 (display) + Inter (text)
   ========================================================================== */

:root {
  --plum:      #1A0412;
  --plum-2:    #310E23;
  --ink:       #1C1218;
  --body:      #4A4148;
  --muted:     #6F6770;
  --faint:     #645C69;   /* darkened from #8E8790 to meet WCAG AA on white */
  --line:      #E6E1DC;
  --line-dark: rgba(245,239,230,0.16);
  --bg:        #FFFFFF;
  --panel:     #F7F5F1;
  --accent:    #8F6F2A;
  --gold:      #C4A35A;
  --on-plum:   rgba(245,239,230,0.76);
  --cream:     #F5EFE6;
  --maxw:      1120px;
  --space-section: clamp(64px, 6vw, 88px);
  --space-compact: clamp(42px, 4vw, 58px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, .serif {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--ink);
}

/* Focus visibility - keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-dark :focus-visible { outline-color: var(--gold); }

/* Skip to content */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  background: var(--plum);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wordmark {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--plum);
  text-decoration: none;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  white-space: nowrap;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.wordmark:hover,
.wordmark.active {
  color: var(--plum-2);
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 27px 0 25px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover { color: var(--plum); }
.nav-link.active { color: var(--plum); border-bottom-color: var(--accent); }
.nav-item-dropdown { position: relative; display: flex; }
.nav-dropdown-toggle {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-dropdown-toggle .caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 1px;
  transition: transform .2s ease;
}
.nav-item-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 216px;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 14px 24px rgba(26,4,18,0.08);
  padding: 8px 0;
  z-index: 40;
  flex-direction: column;
}
.nav-item-dropdown.open .nav-dropdown { display: flex; }
.nav-item-dropdown:focus-within .nav-dropdown { display: flex; }
@media (hover: hover) {
  .nav-item-dropdown:hover .nav-dropdown { display: flex; }
  .nav-item-dropdown:hover .nav-dropdown-toggle .caret { transform: rotate(180deg); }
}
.nav-dropdown .nav-link { padding: 11px 20px; border-bottom: none; }
.nav-dropdown .nav-link:hover { background: var(--panel); }
.nav-dropdown .nav-link.active { border-bottom: none; border-left: 3px solid var(--accent); background: var(--panel); padding-left: 17px; }
.nav-portal {
  font-size: 13px;
  font-weight: 500;
  color: var(--plum);
  text-decoration: none;
  border: 1px solid var(--plum);
  padding: 9px 18px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav-portal:hover { background: var(--plum); color: #FFFFFF; }
.nav-portal.active { background: var(--plum); color: #FFFFFF; }
.nav-portal.active:hover { background: var(--plum-2); border-color: var(--plum-2); }

/* Hamburger - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--plum);
  margin: 4px auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--plum); color: #FFFFFF; border-color: var(--plum); }
.btn-solid:hover { background: var(--plum-2); border-color: var(--plum-2); }
.btn-solid-light { background: #FFFFFF; color: var(--plum); border-color: #FFFFFF; }
.btn-solid-light:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost-light { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.45); }
.btn-ghost-light:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.07); }

.text-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--plum);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
.text-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

.label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.on-dark .label { color: var(--gold); }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  background: var(--plum);
  border-top: 3px solid var(--gold);
  isolation: isolate;
  overflow: hidden;
  padding: 78px 0 82px;
  position: relative;
}
.hero::before {
  background:
    radial-gradient(circle at 77% 18%, rgba(196,163,90,0.18), transparent 24%),
    radial-gradient(circle at 12% 94%, rgba(105,52,86,0.55), transparent 34%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.hero::after {
  background: repeating-linear-gradient(90deg, transparent 0 58px, rgba(245,239,230,0.10) 59px 60px);
  content: '';
  inset: 0 0 0 44%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
  transform: skewX(-8deg);
  z-index: 2;
}
.hero-grid {
  display: block;
  min-height: 520px;
  position: relative;
}
.hero-copy { max-width: 570px; position: relative; z-index: 3; }
.hero h1 {
  color: #FFFFFF;
  font-size: clamp(32px, 3.9vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin-bottom: 30px;
}
.hero h1 .hero-line { display: block; }
.hero h1 .hero-line-firm { display: block; color: var(--gold); margin-top: 12px; }
.hero .hero-sub {
  color: var(--on-plum);
  font-size: 17.5px;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 44px;
}
.hero .hero-sub p + p { margin-top: 14px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  inset: -78px calc((100vw - min(var(--maxw), 100vw)) / -2 - 32px) -82px 42%;
  overflow: hidden;
  position: absolute;
  z-index: 1;
}
.hero-media::after {
  background:
    linear-gradient(90deg, var(--plum) 0%, rgba(26,4,18,0.96) 9%, rgba(26,4,18,0.56) 35%, rgba(26,4,18,0.08) 72%),
    linear-gradient(0deg, rgba(26,4,18,0.22), rgba(26,4,18,0.04));
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  transform: scale(1.015);
  width: 100%;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--panel); }
.section-head { margin-bottom: var(--space-compact); }
.section-head h2 { font-size: clamp(28px, 3vw, 37px); line-height: 1.18; letter-spacing: -0.005em; }
.section-head .lede { margin-top: 18px; font-size: 16.5px; color: var(--body); max-width: 640px; }

/* Practice rows (home) */
.practice-rows { border-top: 1px solid var(--ink); }
.practice-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  column-gap: 40px;
  row-gap: 10px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background .35s ease, box-shadow .35s ease;
}
.practice-num {
  grid-column: 1;
  grid-row: 1;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}
.practice-row h3 { grid-column: 2; grid-row: 1; font-size: 25px; }
.practice-row .pr-body { grid-column: 2; grid-row: 2; }
.practice-row .pr-desc { font-size: 16px; color: var(--body); max-width: 600px; }
.practice-row .pr-link { grid-column: 3; grid-row: 1; justify-self: end; }
@media (hover: hover) {
  .practice-row:hover {
    background: linear-gradient(90deg, rgba(196,163,90,0.10), transparent 72%);
    box-shadow: -18px 0 0 rgba(196,163,90,0.10), 18px 0 0 transparent;
  }
  .practice-row:hover .practice-num,
  .svc-item:hover .svc-num { transform: translateX(5px); }
}
.practice-num,
.svc-num { transition: transform .35s ease; }

/* Plum band */
.band { background: var(--plum); padding: var(--space-section) 0; }
.band h2 {
  color: #FFFFFF;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
  margin-bottom: 22px;
  max-width: 680px;
}
.band p { color: var(--on-plum); font-size: 16.5px; max-width: 640px; margin-bottom: 18px; }
.band p:last-child { margin-bottom: 0; }
.band .rule { width: 56px; height: 3px; background: var(--gold); margin-bottom: 30px; }

/* ==========================================================================
   Interior pages
   ========================================================================== */
.breadcrumbs {
  background: var(--plum);
  border-top: 3px solid var(--gold);
  padding: 26px 0 0;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--on-plum);
}
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: rgba(245,239,230,0.32); }
.breadcrumbs a {
  color: var(--on-plum);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.breadcrumbs a:hover { color: #FFFFFF; text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #FFFFFF; font-weight: 500; }

.page-header { background: var(--plum); padding: 26px 0 58px; }
.page-header .container {
  border-bottom: 1px solid rgba(245,239,230,0.5);
  border-top: 1px solid rgba(245,239,230,0.5);
  padding-bottom: 34px;
  padding-top: 34px;
}
.page-header .label { color: var(--gold); }
.page-header h1 {
  color: #FFFFFF;
  font-size: clamp(34px, 3.8vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  max-width: 760px;
}
.page-header .strapline { font-size: 18.5px; color: var(--on-plum); max-width: 660px; line-height: 1.6; }

/* Abstract light and line work on dark fields */
.band,
.page-header,
.portal-section,
.site-footer {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}
.band > .container,
.page-header > .container,
.portal-section > .container,
.site-footer > .container { position: relative; z-index: 2; }
.band::before,
.page-header::before,
.portal-section::before {
  background:
    radial-gradient(circle at 82% 25%, rgba(196,163,90,0.14), transparent 22%),
    radial-gradient(circle at 70% 110%, rgba(101,49,82,0.58), transparent 38%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.band::after,
.page-header::after,
.portal-section::after {
  border: 1px solid rgba(245,239,230,0.12);
  border-radius: 50%;
  content: '';
  height: clamp(260px, 32vw, 470px);
  pointer-events: none;
  position: absolute;
  right: clamp(-190px, -10vw, -80px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 32vw, 470px);
  z-index: 1;
}
.page-header::after { box-shadow: 0 0 0 72px rgba(245,239,230,0.035), 0 0 0 144px rgba(245,239,230,0.025); }

/* Editorial article header: mirrors the social card's quieter architecture. */
.page-header.article-header::before {
  background:
    radial-gradient(ellipse at 78% 48%, rgba(106,47,82,0.34), transparent 36%),
    linear-gradient(105deg, transparent 56%, rgba(97,42,73,0.18));
}
.page-header.article-header::after {
  background:
    linear-gradient(90deg,
      transparent 0 72%,
      rgba(196,163,90,0.26) 72% 72.12%,
      transparent 72.12% 81%,
      rgba(196,163,90,0.20) 81% 81.12%,
      transparent 81.12% 90%,
      rgba(196,163,90,0.15) 90% 90.12%,
      transparent 90.12%),
    radial-gradient(ellipse 82% 142% at 100% 52%, rgba(86,34,65,0.54) 0 55%, rgba(86,34,65,0.16) 55.4% 57%, transparent 57.4%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
  opacity: 0.9;
  right: 0;
  top: 0;
  transform: none;
  width: min(54vw, 780px);
}
.article-header .container { padding-bottom: 46px; padding-top: 46px; }
.article-header h1 {
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.08;
  max-width: 940px;
}

.opening { padding: var(--space-section) 0; }
.opening p { font-size: 16.5px; color: var(--body); max-width: 700px; margin-bottom: 22px; }
.opening p:last-child { margin-bottom: 0; }
.opening .lede-strong { font-family: 'Source Serif 4', Georgia, serif; font-size: 21px; color: var(--ink); line-height: 1.5; }

/* Service lines */
.svc-section { padding: var(--space-section) 0; }
.opening + .svc-section { padding-top: 0; }
.opening + .section { padding-top: 12px; }
.opening-tight { padding-bottom: 40px; }
.opening + .section.mt-44 { margin-top: 0; }
.svc-head { margin-bottom: var(--space-compact); }
.svc-head h2 { font-size: clamp(25px, 2.8vw, 32px); }
.svc-table { border-top: 1px solid var(--ink); }
.svc-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 36px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.svc-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.05;
}
.svc-item h3 { font-size: 22px; margin-bottom: 12px; }
.svc-item .lead { font-size: 16px; color: var(--body); margin-bottom: 18px; max-width: 760px; line-height: 1.7; }
.svc-item .lead a { color: var(--plum); text-underline-offset: 3px; transition: color .2s ease; }
.svc-item .lead a:hover { color: var(--accent); }
.svc-item ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 48px;
  max-width: 880px;
}
.svc-item li {
  font-size: 16px;
  color: var(--body);
  padding: 5px 0 5px 22px;
  position: relative;
  line-height: 1.55;
}
.svc-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.svc-related { margin-top: 16px; font-size: 14px; color: var(--muted); }
.svc-related a { color: var(--plum); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.svc-related a:hover { color: var(--accent); }

/* Sector experience module */
.sectors { border-top: 1px solid var(--line); }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 72px;
  border-top: 1px solid var(--ink);
  max-width: 880px;
}
.sector-cell {
  position: relative;
  padding: 19px 0 19px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 500;
}
.sector-cell::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--accent);
}

/* FAQs */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item .faq-a { padding: 0 0 26px; font-size: 15.5px; color: var(--body); max-width: 720px; line-height: 1.7; }

/* CTA strip */
.cta-strip { background: var(--panel); padding: 76px 0; border-top: 1px solid var(--line); }
.cta-strip h2 { font-size: clamp(25px, 2.8vw, 32px); margin-bottom: 14px; }
.cta-strip p { font-size: 16px; color: var(--body); margin-bottom: 30px; max-width: 560px; }
.cta-strip p a { color: var(--plum); text-underline-offset: 3px; }
.cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
.practice-contact-intro { margin-bottom: 18px !important; }

/* ==========================================================================
   The Firm page
   ========================================================================== */
.prose p { font-size: 16.5px; color: var(--body); max-width: 700px; margin-bottom: 22px; }
.prose p:last-child { margin-bottom: 0; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  border-top: 1px solid var(--ink);
  padding-top: 36px;
}
.dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.dd { font-size: 15px; color: var(--ink); line-height: 1.6; }

/* ==========================================================================
   People page
   ========================================================================== */
.person {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--ink);
  padding-top: 44px;
}
.person-photo {
  aspect-ratio: 4 / 5;
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-photo .photo-placeholder {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.person + .person { margin-top: 56px; }
.person-name { font-size: 30px; margin-bottom: 6px; }
.person-role { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.person-bio p { font-size: 16px; color: var(--body); max-width: 680px; margin-bottom: 18px; }
.person-bio p:last-of-type { margin-bottom: 26px; }

/* ==========================================================================
   Insights page
   ========================================================================== */
.insight-list { border-top: 1px solid var(--ink); margin-top: 8px; }
.insight-item { padding: 34px 0; border-bottom: 1px solid var(--line); max-width: 760px; }
.insight-meta { display: flex; gap: 16px; align-items: baseline; margin-bottom: 10px; }
.insight-date { font-size: 13px; color: var(--faint); }
.insight-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.insight-title { font-size: 22px; line-height: 1.3; margin-bottom: 10px; }
.insight-title a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
.insight-title a:hover { color: var(--accent); }
.insight-summary { font-size: 15.5px; color: var(--body); }
.insight-subscribe { margin-top: 34px; }
.insight-subscribe p { font-size: 14.5px; color: var(--faint); }

/* Insight article pages */
.article-prose h2 {
  font-size: 21px;
  margin: 40px 0 14px;
  max-width: 700px;
}
.article-prose h2:first-of-type { margin-top: 0; }
.article-prose ul,
.article-prose ol {
  max-width: 700px;
  margin: 0 0 22px;
  padding-left: 22px;
}
.article-prose li {
  font-size: 16.5px;
  color: var(--body);
  margin-bottom: 12px;
  line-height: 1.6;
}

.article-meta {
  color: var(--on-plum);
  display: flex;
  flex-wrap: wrap;
  font-size: 13.5px;
  gap: 9px 24px;
  margin-top: 26px;
}
.article-meta span + span { position: relative; }
.article-meta span + span::before {
  background: rgba(245,239,230,0.38);
  content: '';
  height: 12px;
  left: -12px;
  position: absolute;
  top: 5px;
  width: 1px;
}
.article-layout {
  display: grid;
  gap: clamp(44px, 6vw, 78px);
  grid-template-columns: minmax(210px, 250px) minmax(0, 700px);
  justify-content: start;
}
.article-aside { align-self: start; position: sticky; top: 108px; }
.article-audience {
  background: var(--panel);
  border-top: 3px solid var(--accent);
  padding: 24px 22px;
}
.article-audience h2,
.article-toc h2 {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.article-audience h2 { margin-bottom: 11px; }
.article-audience p { color: var(--body); font-size: 14px; line-height: 1.65; }
.article-toc { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.article-toc h2 { margin-bottom: 12px; }
.article-toc ol { list-style: none; }
.article-toc li { border-bottom: 1px solid var(--line); }
.article-toc a {
  color: var(--body);
  display: block;
  font-size: 13px;
  line-height: 1.45;
  padding: 9px 0;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.article-toc a:hover { color: var(--accent); padding-left: 4px; }
.article-prose h2 { scroll-margin-top: 108px; }
.technical-references {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  margin-top: 42px;
  max-width: 700px;
  padding: 24px 26px;
}
.technical-references h2 { margin-top: 0; }
.technical-references ul { margin-bottom: 0; }
.technical-references li { font-size: 14.5px; margin-bottom: 8px; }
.technical-references li:last-child { margin-bottom: 0; }
.article-disclaimer { color: var(--faint) !important; font-size: 13.5px !important; margin-top: 32px; }
.article-related {
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 46px;
  max-width: 700px;
  padding-top: 20px;
}
.article-related .label { grid-column: 1 / -1; margin-bottom: 0; }
.article-related a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  justify-content: space-between;
  padding: 12px 0;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.article-related a:hover { border-color: var(--accent); color: var(--accent); }
.article-related a span { font-family: 'Inter', sans-serif; font-size: 15px; }

.cta-author {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin: 18px 0 26px;
}
.cta-author img {
  width: 96px;
  height: 118px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.article-author {
  display: flex;
  gap: 26px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding-top: 34px;
  max-width: 700px;
}
.article-author img {
  width: 96px;
  height: 118px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.article-author-name { font-size: 20px; color: var(--ink); }
.article-author-role { font-size: 13.5px; font-weight: 500; color: var(--faint); margin: 4px 0 10px; }
.article-author-contact { font-size: 14.5px; color: var(--body); }
.article-author-contact a { color: var(--plum); text-underline-offset: 3px; }


/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-block { border-top: 1px solid var(--ink); padding-top: 28px; }
.contact-block h2 { font-size: 22px; margin-bottom: 18px; }
.contact-block p { font-size: 16px; color: var(--body); margin-bottom: 14px; }
.contact-block a { color: var(--plum); font-weight: 500; text-underline-offset: 3px; }
.contact-block a:hover { color: var(--accent); }

.portal-note {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 30px 32px;
  margin-top: 8px;
}
.portal-note h2 { font-size: 21px; margin-bottom: 12px; }
.portal-note p { font-size: 15.5px; color: var(--body); margin-bottom: 12px; max-width: 640px; }
.portal-note p:last-child { margin-bottom: 0; }
.portal-note a { color: var(--plum); font-weight: 500; text-underline-offset: 3px; }

/* ==========================================================================
   Portal page
   ========================================================================== */
.portal-section {
  background: var(--plum);
  border-top: 3px solid var(--gold);
  padding: 88px 0 104px;
}
.portal-grid { display: grid; grid-template-columns: 1fr 420px; gap: 72px; align-items: start; }
.portal-copy .label { color: var(--gold); }
.portal-copy h1 { color: #FFFFFF; font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 18px; }
.portal-copy p { font-size: 16px; color: var(--on-plum); max-width: 460px; margin-bottom: 16px; }
.portal-copy p a { color: #FFFFFF; font-weight: 500; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.portal-form { background: #FFFFFF; border: 1px solid rgba(255,255,255,0.3); padding: 36px 32px; box-shadow: 0 18px 44px rgba(0,0,0,0.18); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field input {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 13px;
  border: 1px solid #C9C2C6;
  background: #FFFFFF;
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus { border-color: var(--plum); }
.field input.error { border-color: #B4232A; }
.portal-form .btn { width: 100%; text-align: center; margin-top: 6px; }
.portal-msg { display: none; margin-top: 16px; font-size: 14px; color: #B4232A; line-height: 1.6; }
.portal-msg.visible { display: block; }
.portal-msg a { color: var(--plum); }
.portal-foot { margin-top: 14px; text-align: center; }
.portal-foot a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.portal-foot a:hover { color: var(--plum); text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--plum); padding: 68px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-wordmark { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: #FFFFFF; margin-bottom: 16px; }
.footer-tag { font-size: 13.5px; color: var(--on-plum); max-width: 280px; line-height: 1.7; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  font-size: 13.5px;
  color: var(--on-plum);
  line-height: 1.85;
  text-decoration: none;
  display: block;
  text-underline-offset: 3px;
}
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.footer-legal p { font-size: 12.5px; color: rgba(245,239,230,0.58); }

/* Motion is additive: content remains visible when JavaScript is unavailable. */
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: line-drift 14s ease-in-out infinite alternate; }
  .hero-media img { animation: image-drift 18s ease-in-out infinite alternate; }
  .hero-copy > .label,
  .hero h1 .hero-line,
  .hero h1 .hero-line-firm,
  .hero .hero-sub,
  .hero .hero-actions {
    animation: hero-enter .8s cubic-bezier(.2,.7,.2,1) both;
  }
  .hero h1 .hero-line:nth-child(1) { animation-delay: .06s; }
  .hero h1 .hero-line:nth-child(2) { animation-delay: .13s; }
  .hero h1 .hero-line:nth-child(3) { animation-delay: .20s; }
  .hero h1 .hero-line-firm { animation-delay: .27s; }
  .hero .hero-sub { animation-delay: .36s; }
  .hero .hero-actions { animation-delay: .44s; }
  .motion-enabled .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .72s ease, transform .72s cubic-bezier(.2,.7,.2,1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }
  @keyframes hero-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes image-drift {
    from { transform: scale(1.015) translate3d(0,0,0); }
    to { transform: scale(1.06) translate3d(-0.8%,0.6%,0); }
  }
  @keyframes line-drift {
    from { opacity: 0.32; transform: skewX(-8deg) translateX(-12px); }
    to { opacity: 0.58; transform: skewX(-8deg) translateX(16px); }
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .practice-row { grid-template-columns: 70px 1fr auto; }
  .practice-row .practice-num { font-size: 32px; }
  .practice-row h3 { grid-column: 2; }
  .practice-row .pr-body { grid-column: 2 / 4; }
  .practice-row .pr-link { grid-column: 3; grid-row: 1; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .details-grid { grid-template-columns: 1fr; gap: 30px; }
  .person { grid-template-columns: 220px 1fr; gap: 44px; }
  .portal-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .article-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 940px) {
  .hero-grid { min-height: 500px; }
  .hero-copy { max-width: 560px; }
  .hero-media { left: 48%; right: -32px; }
  .hero-media::after {
    background:
      linear-gradient(90deg, var(--plum) 0%, rgba(26,4,18,0.94) 22%, rgba(26,4,18,0.42) 68%, rgba(26,4,18,0.2) 100%),
      linear-gradient(0deg, rgba(26,4,18,0.28), rgba(26,4,18,0.08));
  }
  .nav-toggle { display: block; flex-shrink: 0; }
  .header-inner { height: 66px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(26,4,18,0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
  }
  .nav.open { display: flex; }
  .nav-link {
    padding: 14px 32px;
    border-bottom: none;
    border-left: 3px solid transparent;
    font-size: 15px;
  }
  .nav-link.active { border-left-color: var(--accent); border-bottom-color: transparent; background: var(--panel); }
  .nav-portal { margin: 14px 32px 0; text-align: center; padding: 12px 18px; }
  .nav-item-dropdown { position: static; flex-direction: column; }
  .nav-dropdown-toggle { width: 100%; padding: 14px 32px; justify-content: space-between; font-size: 15px; }
  .nav-dropdown {
    position: static;
    display: flex;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
  .nav-dropdown .nav-link { padding: 12px 32px 12px 50px; font-size: 14.5px; }
  .svc-item { grid-template-columns: 1fr; gap: 14px; }
  .svc-item ul { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; gap: 32px; }
  .person-photo { max-width: 280px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .article-toc ol { columns: 2; column-gap: 32px; }
}

@media (max-width: 620px) {
  .practice-row { grid-template-columns: 52px 1fr; gap: 6px 20px; padding: 32px 0; }
  .practice-row .practice-num { grid-row: 1; font-size: 27px; }
  .practice-row h3 { grid-column: 2; grid-row: 1; }
  .practice-row .pr-link { grid-column: 2; grid-row: 2; justify-self: start; margin: 6px 0 10px; }
  .practice-row .pr-body { grid-column: 2; grid-row: 3; }
  .container, .header-inner { padding: 0 22px; }
  .hero { padding: 56px 0 0; }
  .hero-grid { min-height: auto; padding-bottom: 192px; }
  .hero-media { bottom: 0; height: 168px; left: -22px; right: -22px; top: auto; }
  .hero-media::after {
    background: linear-gradient(180deg, var(--plum) 0%, rgba(26,4,18,0.32) 44%, rgba(26,4,18,0.18) 100%);
  }
  .hero-media img { object-position: 48% center; }
  .section { padding: 64px 0; }
  .band { padding: 64px 0; }
  .page-header { padding: 20px 0 42px; }
  .page-header .container { padding-bottom: 28px; padding-top: 28px; }
  .page-header.article-header { padding-bottom: 32px; }
  .article-header .container { padding-bottom: 32px; padding-top: 34px; }
  .article-header h1 { font-size: clamp(32px, 8.8vw, 38px); line-height: 1.1; }
  .page-header.article-header::after { opacity: 0.72; width: 78%; }
  .svc-section { padding: 56px 0 72px; }
  .portal-section { padding: 64px 0 80px; }
  .sector-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-link, .nav-portal { padding-left: 22px; padding-right: 22px; }
  .nav-portal { margin: 14px 22px 0; }
  .article-meta { gap: 6px 18px; margin-top: 20px; }
  .article-meta span + span::before { left: -9px; }
  .article-toc ol { columns: 1; }
  .article-related { grid-template-columns: 1fr; }
  .cta-author { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .practice-num,
  .svc-num { transition: none; }
}

/* Small utilities */
.mt-44 { margin-top: 44px; }
.small-muted { font-size: 14px; color: var(--muted); }
