/* =========================================================
   V.P. Nathan & Partners — site stylesheet
   Newsreader (serif display) + Hanken Grotesk (UI/body)
   ========================================================= */

:root {
  --ink:        #16202e;
  --ink-2:      #1d2a3b;
  --ink-3:      #28384c;
  --paper:      #f5f1e8;
  --paper-2:    #ece4d4;
  --paper-card: #fbf8f1;
  --brass:      #b0894e;
  --brass-deep: #8a6a36;
  --brass-soft: #cbab74;
  --claret:     #6e2531;
  --ink-text:   #1a2230;
  --muted:      #5c6675;
  --muted-2:    #8a94a2;
  --line:       rgba(22,32,46,.14);
  --line-soft:  rgba(22,32,46,.08);
  --white-line: rgba(255,255,255,.16);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 2px 10px rgba(22,32,46,.06);
  --shadow-md: 0 16px 44px -22px rgba(22,32,46,.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
html, body { overflow-x: hidden; max-width: 100%; }
.footer-col a, .cm-v a, .mobile-menu a { overflow-wrap: anywhere; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.on-ink { color: var(--brass-soft); }
.eyebrow.on-ink::before { background: var(--brass-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .03em;
  padding: 15px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  line-height: 1;
}
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-ink { color: var(--paper); border-color: var(--white-line); }
.btn-ghost.on-ink:hover { border-color: var(--brass-soft); color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,241,232,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.nav-logo .wm-name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.nav-logo .wm-name .amp { color: var(--brass-deep); font-style: italic; }
.nav-logo .wm-sub { font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-deep); margin-top: 5px; }
.nav-links {
  display: flex; align-items: center; gap: 23px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  color: var(--ink-2); position: relative; padding: 4px 0;
  text-transform: uppercase;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--brass);
  transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  font-size: 13.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--ink); display: inline-flex; align-items: center; gap: 7px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* hide phone text when space is tight */
@media (max-width: 1320px) { .nav-phone { display: none; } }

/* mobile nav */
@media (max-width: 1180px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    position: fixed; inset: 78px 0 auto 0;
    background: var(--ink); color: var(--paper);
    padding: 24px var(--gutter) 36px;
    transform: translateY(-120%); transition: transform .35s ease;
    z-index: 55;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a {
    display: block; padding: 14px 0; font-size: 16px; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    border-bottom: 1px solid var(--white-line); color: var(--paper);
  }
}
@media (min-width: 1181px) { .mobile-menu { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: grayscale(100%) contrast(1.06) brightness(.74);
  opacity: .6;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(22,32,46,.92) 8%, rgba(22,32,46,.6) 50%, rgba(22,32,46,.3) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(80px, 13vw, 150px) var(--gutter) clamp(56px, 8vw, 96px);
}
.hero h1 {
  color: #fbf9f4;
  font-size: clamp(40px, 6.4vw, 82px);
  font-weight: 420;
  line-height: 1.03;
  letter-spacing: -.02em;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--brass-soft); }
.hero-lead {
  margin-top: 26px; max-width: 52ch;
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(245,241,232,.8); line-height: 1.6;
}
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

/* hero stat strip */
.hero-stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--white-line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-stats .stat { padding: 26px 0; }
.hero-stats .stat + .stat { border-left: 1px solid var(--white-line); padding-left: 28px; }
.stat .num { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); color: #fbf9f4; line-height: 1; }
.stat .lbl { margin-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-soft); }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat { padding: 20px 0; }
  .hero-stats .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-stats .stat:nth-child(even) { padding-left: 22px; }
  .hero-stats .stat:nth-child(n+3) { border-top: 1px solid var(--white-line); }
}

/* ---------- generic section ---------- */
.section { padding: clamp(64px, 9vw, 124px) 0; }
.section.tight { padding: clamp(48px, 6vw, 84px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 460; letter-spacing: -.015em;
}
.section-head h2 em { font-style: italic; color: var(--brass-deep); }
.section-head .sub { margin-top: 20px; color: var(--muted); font-size: 18px; max-width: 60ch; }
.section.on-ink { background: var(--ink); color: var(--paper); }
.section.on-ink h2 { color: #fbf9f4; }
.section.on-ink .sub { color: rgba(245,241,232,.72); }
.section.alt { background: var(--paper-2); }

/* ---------- statement / pull quote ---------- */
.statement { text-align: center; }
.statement .mark { font-family: var(--serif); font-size: 64px; color: var(--brass); line-height: .4; height: 30px; display: block; }
.statement blockquote {
  margin: 0 auto; max-width: 20ch;
  font-family: var(--serif); font-weight: 420; font-style: italic;
  font-size: clamp(28px, 4.4vw, 50px); line-height: 1.16; letter-spacing: -.01em;
  color: var(--ink);
}
.statement cite { display: block; margin-top: 24px; font-style: normal; font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

/* ink quote band with background image */
.quote-band { position: relative; overflow: hidden; background: var(--ink); }
.quote-band .hero-bg { opacity: .42; filter: grayscale(100%) contrast(1.05) brightness(.7); }
.quote-band .hero-bg::after { background: linear-gradient(rgba(22,32,46,.82), rgba(22,32,46,.88)); }
.quote-band .statement { position: relative; z-index: 2; }
.quote-band .statement .mark { color: var(--brass-soft); }
.quote-band .statement blockquote { color: #fbf9f4; }
.quote-band .statement cite { color: var(--brass-soft); }

/* ---------- practice grid ---------- */
.practice-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.practice-card {
  background: var(--paper); padding: 34px 30px 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .25s ease; position: relative; min-height: 200px;
}
.practice-card:hover { background: var(--paper-card); }
.practice-card .pc-no { font-family: var(--serif); font-size: 14px; color: var(--brass-deep); letter-spacing: .05em; }
.practice-card h3 { font-size: 23px; font-weight: 500; }
.practice-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.practice-card .pc-more { margin-top: auto; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transform: translateY(4px); transition: .25s; }
.practice-card:hover .pc-more { opacity: 1; transform: translateY(0); }
.practice-card.feature { background: var(--ink); color: var(--paper); grid-column: span 1; }
.practice-card.feature h3 { color: #fbf9f4; }
.practice-card.feature p { color: rgba(245,241,232,.7); }
.practice-card.feature .pc-no { color: var(--brass-soft); }
.practice-card.feature .pc-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-soft); }
@media (max-width: 900px) { .practice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .practice-grid { grid-template-columns: 1fr; } }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
.split.flip .split-media { order: 2; }
.split-media { position: relative; min-height: 440px; background-size: cover; background-position: center; }
.split-media.warm { filter: none; }
.split-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 92px) clamp(28px, 5vw, 80px); }
.split-body h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 460; }
.split-body .sub { margin-top: 20px; color: var(--muted); }
.split-body.on-ink { background: var(--ink); color: var(--paper); }
.split-body.on-ink h2 { color: #fbf9f4; }
.split-body.on-ink .sub { color: rgba(245,241,232,.72); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .split-media { min-height: 300px; }
}

/* ---------- case study cards ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  background: var(--paper-card); border: 1px solid var(--line);
  padding: 32px 30px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease; min-height: 290px;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--claret); }
.case-card h3 { font-size: 26px; font-weight: 500; line-height: 1.12; }
.case-card h3 em { font-style: italic; color: var(--brass-deep); }
.case-card .case-sum { font-size: 15px; color: var(--muted); line-height: 1.55; }
.case-card .case-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; letter-spacing: .04em; color: var(--muted-2); }
.case-card .case-foot .read { font-weight: 700; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; }
@media (max-width: 900px) { .cases-grid { grid-template-columns: 1fr; } }

/* ---------- founder strip ---------- */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.founder-photo { position: relative; }
.founder-photo img { width: 100%; border-radius: 2px; filter: grayscale(20%); }
.founder-photo .badge { position: absolute; left: -14px; bottom: 22px; background: var(--brass); color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 9px 16px; }
.founder-body h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 460; }
.founder-body .role { margin-top: 10px; color: var(--brass-deep); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.founder-body p { margin-top: 22px; color: rgba(245,241,232,.8); }
.section.on-ink .founder-body h2 { color: #fbf9f4; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder-photo { max-width: 280px; } }

/* ---------- offices ---------- */
.offices-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.office { background: var(--paper); padding: 28px 24px; min-height: 188px; display: flex; flex-direction: column; }
.office .o-city { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.office .o-since { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); margin-top: 4px; font-weight: 600; }
.office .o-addr { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 16px; }
.office .o-phone { margin-top: auto; padding-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 980px) { .offices-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .offices-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brass); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px,4vw,46px); font-weight: 460; }
.cta-band .sub { color: rgba(255,255,255,.86); margin-top: 16px; font-size: 18px; }
.cta-band .hero-actions { justify-content: center; margin-top: 32px; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(245,241,232,.62); padding: clamp(56px,7vw,88px) 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--white-line); }
.footer-brand img { height: 64px; margin-bottom: 22px; }
.footer-brand p { max-width: 38ch; font-size: 14.5px; line-height: 1.6; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(245,241,232,.7); transition: color .2s; }
.footer-col a:hover { color: var(--brass-soft); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 12.5px; letter-spacing: .04em; color: var(--muted-2); flex-wrap: wrap; gap: 10px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- team ---------- */
.team-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px,4vw,52px); }
.team-filters button {
  font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .03em;
  padding: 10px 18px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); border-radius: 2px; cursor: pointer; transition: all .2s ease;
}
.team-filters button:hover { border-color: var(--ink); color: var(--ink); }
.team-filters button.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.office-block { margin-bottom: clamp(40px,5vw,68px); }
.office-block-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.office-block-head h2 { font-size: clamp(24px,3vw,34px); font-weight: 500; }
.office-block-head .count { font-size: 13px; color: var(--muted-2); letter-spacing: .04em; }
.team-grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1000px) { .team-grid2 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team-grid2 { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.tcard { cursor: pointer; display: flex; flex-direction: column; gap: 0; background: none; border: 0; padding: 0; text-align: left; font-family: inherit; }
.tcard .tphoto { position: relative; aspect-ratio: 3/3.4; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.tcard .tphoto img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: grayscale(18%); transition: transform .5s ease, filter .4s ease; }
.tcard:hover .tphoto img { transform: scale(1.04); filter: grayscale(0%); }
.tcard .tphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22,32,46,.5)); opacity: 0; transition: opacity .3s; }
.tcard:hover .tphoto::after { opacity: 1; }
.tcard .tview { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: .3s; z-index: 2; }
.tcard:hover .tview { opacity: 1; transform: none; }
.tcard .tname { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--ink); margin-top: 16px; }
.tcard .tdesig { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; margin-top: 6px; }

/* member modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(13,19,28,.6); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--paper); max-width: 880px; width: 100%; max-height: 88vh; overflow: hidden; border-radius: 3px; display: grid; grid-template-columns: 300px 1fr; transform: translateY(16px); transition: transform .3s ease; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.modal-overlay.open .modal { transform: none; }
.modal-photo { background-size: cover; background-position: top center; min-height: 100%; }
.modal-body { padding: 40px 40px 44px; overflow-y: auto; max-height: 88vh; min-height: 0; }
.modal-body .m-desig { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); font-weight: 700; }
.modal-body h2 { font-size: 30px; font-weight: 500; margin: 12px 0 6px; line-height: 1.12; }
.modal-body .m-cred { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; line-height: 1.5; margin: 14px 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); white-space: pre-line; }
.modal-body .m-bio { color: var(--ink-text); font-size: 15px; line-height: 1.68; white-space: pre-line; }
.modal-close { position: absolute; top: 18px; right: 22px; z-index: 105; background: rgba(255,255,255,.9); border: 0; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink); line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
@media (max-width: 680px) {
  .modal { grid-template-columns: 1fr; overflow-y: auto; max-height: 90vh; }
  .modal-photo { min-height: 280px; }
  .modal-body { padding: 28px 24px 32px; max-height: none; overflow: visible; }
}

/* prev / next member navigation */
.modal-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 104; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, opacity .2s; opacity: 0; pointer-events: none; }
.modal-overlay.open .modal-nav { opacity: 1; pointer-events: auto; }
.modal-nav:hover { background: rgba(255,255,255,.26); }
.modal-nav.prev { left: clamp(10px, 3vw, 40px); }
.modal-nav.next { right: clamp(10px, 3vw, 40px); }
@media (max-width: 760px) {
  .modal-nav { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; font-size: 21px; background: rgba(20,32,46,.6); }
  .modal-nav.prev { left: 18px; }
  .modal-nav.next { right: 18px; }
}

/* ---------- services ---------- */
.svc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px,5vw,80px); align-items: start; }
.svc-index { position: sticky; top: 102px; }
.svc-index ol { list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.svc-index li { margin: 0; }
.svc-index a { display: flex; gap: 12px; padding: 9px 0; font-size: 14.5px; color: var(--muted); border-bottom: 1px solid var(--line-soft); transition: color .2s; line-height: 1.35; }
.svc-index a:hover, .svc-index a.active { color: var(--ink); }
.svc-index a .n { font-family: var(--serif); font-size: 13px; color: var(--brass-deep); flex-shrink: 0; width: 22px; }
.svc-index .idx-note { margin-top: 22px; font-size: 13px; color: var(--muted-2); line-height: 1.6; }
.svc-block { padding-bottom: clamp(40px,5vw,64px); margin-bottom: clamp(40px,5vw,64px); border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.svc-block:last-child { border-bottom: 0; margin-bottom: 0; }
.svc-block .svc-no { font-family: var(--serif); font-size: 15px; color: var(--brass-deep); letter-spacing: .05em; }
.svc-block.flag .svc-no::after { content: " · Flagship practice since 1968"; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); }
.svc-block h2 { font-size: clamp(26px,3.4vw,40px); font-weight: 480; margin: 10px 0 18px; letter-spacing: -.015em; }
.svc-block .lead { color: var(--muted); font-size: 17px; max-width: 62ch; }
.svc-cols { columns: 2; column-gap: 40px; margin-top: 24px; }
.svc-cols .ci { break-inside: avoid; display: flex; gap: 11px; padding: 7px 0; font-size: 14.5px; color: var(--ink-text); }
.svc-cols .ci::before { content: ""; width: 6px; height: 6px; margin-top: 8px; background: var(--brass); border-radius: 50%; flex-shrink: 0; }
@media (max-width: 860px) { .svc-layout { grid-template-columns: 1fr; } .svc-index { position: static; margin-bottom: 20px; } .svc-index ol { display: none; } .svc-cols { columns: 1; } }

/* ---------- case studies page ---------- */
.cs-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); margin-bottom: 48px; }
.cs-featured .cf-body { padding: clamp(32px,4vw,56px); display: flex; flex-direction: column; justify-content: center; }
.cs-featured .cf-side { background: var(--ink); color: var(--paper); padding: clamp(32px,4vw,56px); display: flex; flex-direction: column; justify-content: center; }
.cs-featured .cf-side .cf-stat { font-family: var(--serif); font-size: clamp(30px,4vw,52px); color: #fbf9f4; line-height: 1.05; }
.cs-featured .cf-side .cf-stat + .cf-stat { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--white-line); }
.cs-featured .cf-side .cf-lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-soft); margin-top: 6px; }
.cs-featured h2 { font-size: clamp(28px,3.6vw,44px); font-weight: 480; letter-spacing: -.015em; margin: 14px 0; }
.cs-featured h2 em { font-style: italic; color: var(--brass-deep); }
.cs-featured .cf-cite { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 8px; }
@media (max-width: 820px) { .cs-featured { grid-template-columns: 1fr; } }

.cs-filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.cs-filterbar button { font-size: 13px; font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 2px; cursor: pointer; transition: all .2s; }
.cs-filterbar button:hover { border-color: var(--ink); color: var(--ink); }
.cs-filterbar button.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.cs-detail-body { padding: 8px 0 0; }
.cs-detail-body .d-cite { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 17px; margin: 6px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cs-detail-body .d-summary { font-size: 18px; line-height: 1.7; color: var(--ink-text); }
.cs-detail-body .d-meta { display: flex; gap: 26px; flex-wrap: wrap; margin: 26px 0; }
.cs-detail-body .d-meta .dm .k { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.cs-detail-body .d-meta .dm .v { font-family: var(--serif); font-size: 19px; color: var(--ink); margin-top: 4px; }
.cs-share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.cs-share a, .cs-share button { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: 2px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s; }
.cs-share a:hover, .cs-share button:hover { border-color: var(--ink); }

/* ---------- gallery ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.album { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; font-family: inherit; display: flex; flex-direction: column; }
.album .a-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.album .a-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.album:hover .a-cover img { transform: scale(1.05); }
.album .a-count { position: absolute; right: 12px; bottom: 12px; background: rgba(13,19,28,.78); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 2px; }
.album .a-title { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-top: 16px; color: var(--ink); }
.album .a-meta { font-size: 12.5px; letter-spacing: .04em; color: var(--brass-deep); text-transform: uppercase; font-weight: 600; margin-top: 6px; }
.album .a-cap { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .album-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .album-grid { grid-template-columns: 1fr; } }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(8,12,18,.94); z-index: 110; display: none; flex-direction: column; }
.lb.open { display: flex; }
.lb-head { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px,4vw,48px); color: var(--paper); }
.lb-head .lb-title { font-family: var(--serif); font-size: 22px; }
.lb-head .lb-sub { font-size: 12.5px; color: var(--brass-soft); letter-spacing: .04em; text-transform: uppercase; }
.lb-close { background: none; border: 0; color: var(--paper); font-size: 30px; cursor: pointer; line-height: 1; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 clamp(12px,4vw,60px); position: relative; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 22px; cursor: pointer; transition: background .2s; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav.prev { left: clamp(10px,3vw,34px); }
.lb-nav.next { right: clamp(10px,3vw,34px); }
.lb-thumbs { display: flex; gap: 8px; padding: 16px clamp(20px,4vw,48px); overflow-x: auto; justify-content: center; }
.lb-thumbs img { width: 70px; height: 54px; object-fit: cover; border-radius: 3px; opacity: .5; cursor: pointer; transition: opacity .2s; border: 2px solid transparent; flex-shrink: 0; }
.lb-thumbs img.active { opacity: 1; border-color: var(--brass); }

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 96px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 36px; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--serif); font-size: 22px; color: var(--brass-deep); text-align: right; padding-top: 1px; }
.tl-item::before { content: ""; position: absolute; left: 91px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px var(--paper); }
.tl-body h3 { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.tl-body p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 620px) {
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; }
  .tl-item::before { left: 2px; }
  .tl-year { text-align: left; font-size: 19px; }
}

/* ---------- contact ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: start; }
.contact-form .field2 { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--paper-card); color: var(--ink-text); resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,137,78,.14); }
.contact-form textarea { min-height: 130px; line-height: 1.55; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 14px; }
.contact-meta .cm-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-meta .cm-item:first-child { padding-top: 0; }
.contact-meta .cm-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; }
.contact-meta .cm-v { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-top: 6px; }
.contact-meta .cm-v a { color: var(--ink); }
.offices-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.offices-list .ol-item { background: var(--paper); padding: 28px 26px; }
.offices-list .ol-city { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.offices-list .ol-since { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; margin-top: 4px; }
.offices-list .ol-addr { font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 14px; }
.offices-list .ol-phone { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } .offices-list { grid-template-columns: 1fr; } .contact-form .row2 { grid-template-columns: 1fr; } }

/* ---------- page hero (interior) ---------- */
.page-hero { background: var(--ink); color: var(--paper); padding: clamp(64px,9vw,120px) 0 clamp(48px,6vw,72px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .hero-bg { opacity: .5; filter: grayscale(100%) contrast(1.05) brightness(.72); }
.page-hero .hero-bg::after { background: linear-gradient(100deg, rgba(22,32,46,.85) 0%, rgba(22,32,46,.64) 55%, rgba(22,32,46,.48) 100%); }
.page-hero .eyebrow { color: var(--brass-soft); }
.page-hero .eyebrow::before { background: var(--brass-soft); }
.page-hero h1 { color: #fbf9f4; font-size: clamp(36px,5.4vw,68px); font-weight: 440; letter-spacing: -.02em; max-width: 18ch; }
.page-hero h1 em { font-style: italic; color: var(--brass-soft); }
.page-hero .ph-lead { margin-top: 22px; max-width: 56ch; color: rgba(245,241,232,.78); font-size: 18px; }
.page-hero .crumb { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 26px; }
.page-hero .crumb a:hover { color: var(--brass-soft); }

/* ---------- floating WhatsApp button ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  height: 58px; border-radius: 999px;
  background: #25d366; color: #fff;
  display: flex; align-items: center; gap: 0;
  padding: 0; width: 58px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(37,211,102,.42), 0 3px 10px rgba(0,0,0,.22);
  transition: width .28s ease, transform .2s ease, box-shadow .2s ease;
}
.wa-fab svg { width: 30px; height: 30px; flex: 0 0 58px; padding: 0 14px; }
.wa-fab-label { white-space: nowrap; font-weight: 700; font-size: 15px; padding-right: 22px; opacity: 0; transition: opacity .2s ease .04s; }
.wa-fab:hover { width: 188px; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,211,102,.5), 0 4px 12px rgba(0,0,0,.25); }
.wa-fab:hover .wa-fab-label { opacity: 1; }
@media (max-width: 600px) {
  .wa-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-fab svg { flex-basis: 54px; }
  .wa-fab:hover { width: 54px; }
  .wa-fab-label { display: none; }
}
@media print { .wa-fab { display: none; } }

/* =========================================================
   WordPress single-case-study + form (theme-only additions)
   ========================================================= */
.case-meta { margin: 0 0 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.case-article { font-size: 18px; line-height: 1.75; color: var(--ink-text); }
.case-article > * + * { margin-top: 1.1em; }
.case-article h2 { font-size: clamp(24px,3vw,32px); font-weight: 500; margin-top: 1.6em; }
.case-article h3 { font-size: 20px; font-weight: 600; margin-top: 1.4em; }
.case-article ul, .case-article ol { padding-left: 1.3em; }
.case-article li { margin: .4em 0; }
.case-article blockquote { border-left: 3px solid var(--brass); padding-left: 22px; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink); margin-left: 0; }
.case-article img { border-radius: 3px; margin: 1.4em 0; }
.case-article strong { font-weight: 700; }
.case-share { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }

/* form plugin (Fluent Forms / WPForms) styled to match the design */
.vpn-formwrap input[type=text], .vpn-formwrap input[type=email], .vpn-formwrap input[type=tel],
.vpn-formwrap select, .vpn-formwrap textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--paper-card); color: var(--ink-text);
}
.vpn-formwrap input:focus, .vpn-formwrap select:focus, .vpn-formwrap textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,137,78,.14);
}
.vpn-formwrap textarea { min-height: 130px; line-height: 1.55; resize: vertical; }
.vpn-formwrap label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.vpn-formwrap button[type=submit], .vpn-formwrap .ff-btn-submit, .vpn-formwrap input[type=submit] {
  font-family: var(--sans); font-weight: 600; font-size: 15px; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 3px; padding: 15px 28px; width: 100%;
  transition: background .2s;
}
.vpn-formwrap button[type=submit]:hover, .vpn-formwrap .ff-btn-submit:hover { background: var(--ink-3); }

/* =========================================================
   MOBILE HARDENING
   ========================================================= */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav-phone { display: none; }
  .mobile-menu { inset: 64px 0 auto 0; }
  .wm-name { font-size: 17px; }
  .wm-sub { font-size: 8.5px; letter-spacing: .18em; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero-lead, .page-hero .ph-lead { font-size: 16px; }
  .section-head .sub { font-size: 16px; }
  .statement blockquote { font-size: clamp(26px, 8vw, 36px); }
  .btn { padding: 13px 22px; font-size: 14px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  /* contact meta email shrink */
  .contact-meta .cm-v { font-size: 18px; }
  /* services index note still readable */
  .svc-block h2 { font-size: clamp(24px, 7vw, 32px); }
  /* lightbox controls sit lower on small screens */
  .lb-nav { width: 44px; height: 44px; font-size: 19px; }
  .lb-thumbs img { width: 54px; height: 42px; }
  /* modal scroll comfort */
  .modal { max-height: 92vh; }
}

@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .practice-card { padding: 26px 22px; }
}
