/* ============================================================
   S K R and Company LLP — Design tokens (v2)
   Palette: Corporate Blue family, White, Neutral Grey
   Type: IBM Plex Sans (all headings/body) + IBM Plex Mono (inline citations only)
   Direction: clean, confident, Big-Four register — no decorative motifs
   ============================================================ */

:root {
  --blue-900: #0A2A5E;
  --blue-700: #0B3D91;
  --blue-500: #0072CE;
  --blue-100: #EAF2FB;
  --grey-50:  #F5F6F8;
  --grey-200: #E1E4E9;
  --ink:      #14181F;
  --ink-soft: #4B5563;
  --white:    #FFFFFF;
  --line: var(--grey-200);
  --line-on-dark: rgba(255,255,255,0.16);

  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 1180px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 62ch; }

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

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.tag.on-dark { color: #7FB8F0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.eyebrow-line {
  flex: 0 0 auto;
  width: 28px;
  height: 3px;
  background: var(--blue-500);
}

.cite {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--blue-700);
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--blue-900);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: var(--sans);
  color: var(--blue-900);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
}
.brand span.sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 2px;
  text-transform: uppercase;
}
nav.primary { display: flex; gap: 28px; }
nav.primary a {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
nav.primary a:hover, nav.primary a.active { color: var(--blue-500); }
nav.primary a.active::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue-500);
}
.nav-toggle { display: none; }

@media (max-width: 900px) {
  nav.primary { display: none; }
  .nav-toggle {
    display: block;
    background: none; border: 1px solid var(--blue-900); color: var(--blue-900);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
    padding: 8px 14px; cursor: pointer;
  }
  nav.primary.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 18px var(--gutter) 26px;
    gap: 16px; border-bottom: 3px solid var(--blue-900);
  }
}

.hero {
  background: var(--blue-900);
  color: var(--white);
  padding: 84px 0 76px;
}
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lede { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 54ch; margin-top: 18px; }

.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-size: 0.9rem; font-weight: 600;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-gold { background: var(--white); color: var(--blue-900); }
.btn-gold:hover { background: var(--blue-100); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark { border-color: var(--blue-900); color: var(--blue-900); }
.btn-outline-dark:hover { background: var(--blue-900); color: var(--white); }

.creds-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 30px;
}
.creds-strip span {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.75);
  padding-right: 16px; margin-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.creds-strip span:last-child { border-right: none; }

section { padding: 76px 0; }
section.dim { background: var(--grey-50); }
section.navy { background: var(--blue-900); color: var(--white); }
section.navy h2, section.navy h3 { color: var(--white); }
section.navy p { color: rgba(255,255,255,0.78); }

.section-head { max-width: 62ch; margin-bottom: 44px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-500);
  padding: 30px 26px;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
}

.creds-strip-light {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.creds-strip-light .tag { color: var(--blue-900); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}

.service-block {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
.service-block .num { font-family: var(--mono); color: var(--blue-500); font-size: 0.8rem; }
ul.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
ul.check-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
ul.check-list li::before {
  content: '–';
  position: absolute; left: 0; color: var(--blue-500);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
}
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.person-photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--grey-50);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  text-align: center; padding: 12px;
  margin-bottom: 16px;
}
.person h3 { margin-bottom: 4px; }
.person .role { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--blue-500); text-transform: uppercase; margin-bottom: 8px; display: block; }
.person p { font-size: 0.9rem; }

.assoc-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue-500);
  padding: 32px;
  background: var(--white);
  margin-bottom: 22px;
}
.assoc-card .flag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 8px; display: block; }
.assoc-card h3 { margin-bottom: 6px; }
.assoc-card .role { color: var(--blue-500); font-family: var(--sans); font-weight: 600; font-size: 0.8rem; margin-bottom: 14px; display: block; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item { margin-bottom: 20px; }
.contact-item .label { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--blue-500); text-transform: uppercase; display: block; margin-bottom: 4px; }
.contact-item a, .contact-item span { font-size: 1rem; color: var(--blue-900); }

form.contact-form label {
  display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 6px; margin-top: 18px;
}
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 16px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  border-radius: 3px;
}
form.contact-form input:focus, form.contact-form textarea:focus {
  outline: 2px solid var(--blue-500); outline-offset: 1px; border-color: var(--blue-500);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form button { margin-top: 24px; }

.linkedin-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border: 1.5px solid var(--blue-900); color: var(--blue-900);
  font-weight: 600; font-size: 0.9rem; border-radius: 3px;
}
.linkedin-badge:hover { background: var(--blue-900); color: var(--white); }

footer.site-footer {
  background: var(--blue-900); color: rgba(255,255,255,0.65);
  padding: 52px 0 28px; font-size: 0.85rem;
}
footer.site-footer .foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line-on-dark);
}
footer.site-footer h4 {
  color: var(--white); font-family: var(--sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px;
}
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a:hover { color: #7FB8F0; }
footer.site-footer .bottom-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; flex-wrap: wrap; gap: 10px; font-size: 0.78rem;
}
@media (max-width: 760px) {
  footer.site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.small-note { font-size: 0.78rem; color: var(--ink-soft); font-family: var(--mono); }

/* -------- Stats grid (firm numbers) -------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .num-big {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--blue-900);
  display: block;
  line-height: 1;
}
.stat-item .num-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 8px;
  display: block;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}

/* ============================================================
   v3 additions — mega-menu, interactivity, disclaimer gate
   ============================================================ */

/* -------- Smooth base transitions -------- */
a, button, .pillar, .person-photo img, .assoc-card, .btn {
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------- Sticky header shadow on scroll -------- */
header.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(10, 42, 94, 0.08);
}

/* -------- Mega menu -------- */
.nav-item-has-menu {
  position: relative;
}
.nav-item-has-menu > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}
.nav-item-has-menu:hover > a::after {
  transform: rotate(225deg);
  margin-bottom: -2px;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 640px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(10, 42, 94, 0.14);
  border-radius: 6px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.nav-item-has-menu:hover .mega-menu,
.nav-item-has-menu:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-menu a.mega-link {
  display: block;
  padding: 12px 14px;
  border-radius: 4px;
  color: var(--ink);
}
.mega-menu a.mega-link:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}
.mega-menu a.mega-link .mega-title {
  font-weight: 600;
  font-size: 0.92rem;
  display: block;
  margin-bottom: 3px;
}
.mega-menu a.mega-link .mega-desc {
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: block;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 16px;
    display: none;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-item-has-menu.open .mega-menu { display: grid; }
  .nav-item-has-menu > a::after { display: none; }
}

/* -------- Card hover elevation -------- */
.pillar {
  cursor: default;
  position: relative;
  overflow: hidden;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(10, 42, 94, 0.12);
  border-top-color: var(--blue-700);
}
.assoc-card:hover {
  box-shadow: 0 10px 28px rgba(10, 42, 94, 0.08);
  transform: translateY(-2px);
}
.person:hover .person-photo img {
  transform: scale(1.035);
}
.person-photo { overflow: hidden; }
.person-photo img { transition: transform 0.35s ease; }

.btn-gold:hover, .btn-outline-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 42, 94, 0.15);
}

/* -------- Scroll reveal -------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------- DPDPA / notice banner -------- */
.notice-banner {
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 18px 0;
}
.notice-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.notice-banner p { color: rgba(255,255,255,0.88); margin: 0; max-width: 60ch; font-size: 0.92rem; }
.notice-banner strong { color: var(--white); }
.notice-banner a.btn { flex-shrink: 0; }

/* -------- Disclaimer gate (entry modal) -------- */
#disclaimer-gate {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
#disclaimer-gate.hidden { opacity: 0; pointer-events: none; }
#disclaimer-gate .gate-box {
  background: var(--white);
  max-width: 620px;
  width: 100%;
  padding: 40px 44px;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
#disclaimer-gate h3 {
  margin-bottom: 18px;
  font-size: 1.25rem;
}
#disclaimer-gate p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: none;
}
#disclaimer-gate .gate-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  justify-content: center;
}
#disclaimer-gate .btn-decline {
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  background: none;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
#disclaimer-gate .btn-decline:hover { border-color: var(--blue-900); color: var(--blue-900); }
body.gate-active { overflow: hidden; }

/* -------- Footer legal row -------- */
footer.site-footer .legal-row {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
footer.site-footer .legal-row a { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
footer.site-footer .legal-row a:hover { color: #7FB8F0; }

.person-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-500);
  margin-top: 4px;
}
.person-linkedin:hover { color: var(--blue-900); }

/* -------- Mobile refinements -------- */
@media (max-width: 480px) {
  #disclaimer-gate .gate-box { padding: 28px 22px; }
  #disclaimer-gate .gate-actions { flex-direction: column; }
  #disclaimer-gate .gate-actions .btn,
  #disclaimer-gate .gate-actions .btn-decline { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { width: 100%; justify-content: center; }
}

/* -------- Leadership row (featured, stacked first) -------- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}
.leader-card {
  border: 1px solid var(--line);
  overflow: hidden;
}
.leader-card .person-photo {
  margin-bottom: 0;
  border: none;
  border-radius: 0;
}
.leader-caption {
  padding: 22px 26px;
  background: var(--white);
  transition: background 0.25s ease, color 0.25s ease;
  border-top: 1px solid var(--line);
}
.leader-caption h3 { transition: color 0.25s ease; }
.leader-caption .role {
  color: var(--blue-500);
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 4px; display: block;
  transition: color 0.25s ease;
}
.leader-caption p { transition: color 0.25s ease; }
.leader-card:hover .leader-caption {
  background: var(--blue-900);
}
.leader-card:hover .leader-caption h3 { color: var(--white); }
.leader-card:hover .leader-caption .role { color: #7FB8F0; }
.leader-card:hover .leader-caption p { color: rgba(255,255,255,0.95); }
.leader-card:hover .leader-caption a.person-linkedin { color: #7FB8F0; }
.leader-card:hover .person-photo img { transform: scale(1.035); }

@media (max-width: 760px) {
  .leadership-grid { grid-template-columns: 1fr; }
}
