:root {
  --navy: #0b1b3b;
  --navy-2: #13264f;
  --gold: #b9935a;
  --gold-2: #d7b57d;
  --ink: #1a1a1a;
  --muted: #5a6277;
  --bg: #fbf9f4;
  --card: #ffffff;
  --line: #e7e3da;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 27, 59, 0.08);
  --trans: 250ms cubic-bezier(.4,0,.2,1);
}
html[data-theme="dark"] {
  --navy: #e8ecf7;
  --navy-2: #ffffff;
  --gold: #d7b57d;
  --gold-2: #e9cc99;
  --ink: #eef1f8;
  --muted: #9aa3bd;
  --bg: #0a1226;
  --card: #121d3d;
  --line: #1f2a4a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .site-header { background: rgba(10,18,38,.75); }
html[data-theme="dark"] .trust, html[data-theme="dark"] .services,
html[data-theme="dark"] .contact { background: #0e1730; }
html[data-theme="dark"] .service { background: #0a1226; }
html[data-theme="dark"] .contact-form { background: #0a1226; }
html[data-theme="dark"] .mini-form input, html[data-theme="dark"] .mini-form select,
html[data-theme="dark"] .contact-form input, html[data-theme="dark"] .contact-form select,
html[data-theme="dark"] .contact-form textarea,
html[data-theme="dark"] .hero-visual-card,
html[data-theme="dark"] .value, html[data-theme="dark"] .member,
html[data-theme="dark"] .insight, html[data-theme="dark"] .faq-item { background: #121d3d; color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .btn-primary { background: var(--gold); color: #0a1226; }
html[data-theme="dark"] .btn-primary:hover { background: var(--gold-2); color: #0a1226; }
html[data-theme="dark"] .btn-outline { border-color: var(--gold); color: var(--gold); }
html[data-theme="dark"] .btn-outline:hover { background: var(--gold); color: #0a1226; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--trans), color var(--trans);
}
body, .site-header, .btn, .service, .member, .insight, .value,
.hero-visual-card, .contact-form, .faq-item,
.mini-form input, .mini-form select,
.contact-form input, .contact-form select, .contact-form textarea {
  transition: background-color var(--trans), color var(--trans),
              border-color var(--trans), box-shadow var(--trans),
              transform var(--trans);
}
h1, h2, h3, h4, blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: #32384a; }
a  { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.container { width: min(1160px, 92%); margin: 0 auto; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow.dark { color: var(--navy); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { color: var(--gold); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;      /* allow text to truncate rather than wrap under logo */
  text-decoration: none;
}
.brand-emblem {
  display: inline-flex; flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(15, 43, 61, 0.12));
  transition: transform var(--trans), filter var(--trans);
}
.brand-emblem svg {
  display: block; width: 52px; height: 52px;
  border-radius: 12px;
  background: #0F2B3D;
  box-shadow: 0 2px 8px rgba(11,27,59,.25), 0 0 0 1px rgba(198,164,63,.25);
}
.brand:hover .brand-emblem {
  transform: translateY(-1px) rotate(-1.5deg);
  filter: drop-shadow(0 6px 14px rgba(198, 164, 63, 0.3));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
/* Footer emblem — larger */
.brand-emblem.big { display: block; margin-bottom: 1rem; }
.brand-emblem.big svg { width: 64px; height: 64px; }
.firm-legal { color: #9aa2bb; font-size: .88rem; margin: 0; line-height: 1.6; }
.firm-legal strong { color: #fff; font-weight: 600; }
/* Animated bracket glow on hover */
.brand:hover .code-bracket-left,
.brand:hover .code-bracket-right {
  filter: drop-shadow(0 0 3px rgba(218, 176, 102, 0.9));
}
.code-bracket-left, .code-bracket-right { transition: filter var(--trans); }
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.15rem; }
  .brand-emblem svg { width: 38px; height: 38px; }
}
.primary-nav { display: flex; gap: 1.8rem; }
.primary-nav a { color: #2a3250; font-size: .95rem; font-weight: 500; }
.nav-cta { padding: .6rem 1.1rem; font-size: .9rem; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; gap: 4px; flex-direction: column; }
.menu-toggle span { display:block; width: 24px; height: 2px; background: var(--navy); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(185,147,90,.18), transparent 60%),
    radial-gradient(900px 400px at -10% 20%, rgba(11,27,59,.08), transparent 60%),
    var(--bg);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto auto;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(185,147,90,.22), transparent 60%);
  animation: float 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: auto auto -30% -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(11,27,59,.15), transparent 60%);
  animation: float 18s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
@keyframes float {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.08); }
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 span { color: var(--gold); font-style: italic; }
.lede { font-size: 1.12rem; color: #3a4058; max-width: 52ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-meta {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(3, auto); gap: 2rem;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
}
.hero-meta strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; color: var(--navy); font-weight: 600;
}
.hero-meta span { font-size: .85rem; color: var(--muted); }

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
  min-height: 440px;
}
.hero-visual > img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: saturate(1.05) contrast(1.02);
  display: block;
}
.hero-visual-card {
  position: absolute;
  left: -1.5rem;
  right: 2.5rem;
  bottom: -1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}
.hero-visual-card h3 { margin: .4rem 0 .4rem; }
.hero-visual-card p { margin: 0 0 1rem; font-size: .95rem; color: var(--muted); }
@media (max-width: 960px) {
  .hero-visual { min-height: 0; }
  .hero-visual > img { height: 280px; }
  .hero-visual-card { position: static; margin: 1rem 0 0; }
}
.pill {
  display: inline-block;
  background: rgba(185,147,90,.15);
  color: #7c5a28;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: .8rem;
}
.mini-form { display: grid; gap: .8rem; margin-top: 1rem; }
.mini-form label, .contact-form label {
  display: grid; gap: .35rem;
  font-size: .82rem; color: var(--muted); font-weight: 500;
}
.mini-form input, .mini-form select,
.contact-form input, .contact-form select, .contact-form textarea {
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.mini-form input:focus, .mini-form select:focus,
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,27,59,.08);
}
.mini-form button { margin-top: .4rem; }

/* Trust */
.trust { padding: 1.8rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.trust-label {
  text-align: center; text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; color: var(--muted); margin: 0 0 .8rem;
}
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem;
  font-family: 'Cormorant Garamond', serif; color: var(--navy);
  font-size: 1.1rem; letter-spacing: .04em;
}

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-lede { color: #3a4058; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow);
}
.value h4 { margin-bottom: .3rem; }
.value p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Services */
.services { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem;
}
.service {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.7rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
/* Gold gradient accent bar at the top of every card */
.service::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.service:hover::before, .service.is-open::before { transform: scaleX(1); }
/* Soft navy radial on hover for depth */
.service::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 90% -10%, rgba(185,147,90,.08), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.service:hover::after, .service.is-open::after { opacity: 1; }
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11,27,59,.12);
  border-color: rgba(198,164,63,.4);
}
/* Icon chip — a filled circle behind the emoji */
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(185,147,90,.12), rgba(11,27,59,.08));
  border: 1px solid rgba(185,147,90,.22);
  font-size: 1.6rem; margin-bottom: 1rem;
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .25s;
}
.service:hover .svc-icon {
  transform: rotate(-6deg) scale(1.05);
  background: linear-gradient(135deg, rgba(185,147,90,.25), rgba(11,27,59,.12));
}
.service h3 { font-size: 1.18rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
.service p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.6; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 960px; margin: 0 auto; }
.member {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-align: left;
}
.avatar {
  height: 260px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 600; letter-spacing: .05em;
}
.avatar-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(135deg, #1a2a4f, #3b5998);
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;  /* keep faces visible */
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.member:hover .avatar-photo img { transform: scale(1.06); }
.avatar-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,27,59,.22) 100%);
  pointer-events: none;
}
/* If the image fails to load, show initials */
.avatar-photo.avatar-fallback::before {
  content: attr(data-initials);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem; font-weight: 600; letter-spacing: .05em;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}
.member figcaption { padding: 1.3rem 1.4rem 1.6rem; }
.member h4 { margin: 0; font-size: 1.2rem; line-height: 1.25; word-break: normal; }
.role {
  color: var(--gold);
  font-size: .78rem; font-weight: 600;
  margin: .25rem 0 .6rem;
  letter-spacing: .08em; text-transform: uppercase;
  display: block;
}
.member p { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* Testimonial */
.testimonial {
  background: var(--navy);
  color: #eef1f8;
  text-align: center;
}
.testimonial blockquote {
  max-width: 820px; margin: 0 auto; padding: 0 1rem;
}
.testimonial p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-style: italic; color: #fff; line-height: 1.35; margin: 0 0 1.2rem;
}
.testimonial cite { color: var(--gold-2); font-style: normal; font-size: .95rem; letter-spacing: .06em; }

/* Insights */
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.insight {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.insight:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
  margin-bottom: .8rem;
}
.insight h4 { color: var(--navy); margin-bottom: .5rem; }
.insight p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Contact */
.contact { background: #fff; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.contact-list li { padding: .7rem 0; border-top: 1px solid var(--line); display: flex; gap: 1rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list strong { width: 80px; color: var(--navy); font-weight: 600; }
.contact-form { display: grid; gap: .9rem; background: var(--bg); padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: .6rem !important; font-size: .85rem; color: var(--muted); }
.check input { width: auto; }
.form-note { margin: 0; padding: .8rem 1rem; background: rgba(185,147,90,.15); color: #6e4f23; border-radius: 10px; font-size: .9rem; }

/* Footer */
.site-footer { background: var(--navy); color: #c9cee0; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: #c9cee0; display: block; padding: .25rem 0; font-size: .92rem; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer h5 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; font-family: 'Inter', sans-serif; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid p { color: #9aa2bb; font-size: .88rem; margin: 0; }
.copyright { display: flex; justify-content: space-between; padding-top: 1.2rem; font-size: .82rem; color: #9aa2bb; flex-wrap: wrap; gap: .6rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid, .insight-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .primary-nav.open {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 1.2rem 5%; border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .service-grid, .insight-grid, .team-grid, .values, .contact-form .row { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Interactive enhancements
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 100;
  transition: width 80ms linear;
}

/* Site header: shrink on scroll + active link underline */
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(11,27,59,.06);
  border-bottom-color: transparent;
}
.site-header.scrolled .nav { padding: .6rem 0; }
.primary-nav a { position: relative; padding: .4rem 0; }
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--gold);
  transition: right var(--trans);
}
.primary-nav a:hover::after,
.primary-nav a.active::after { right: 0; }
.primary-nav a.active { color: var(--navy); }

/* Theme toggle */
.theme-toggle {
  background: transparent; border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--navy);
  transition: all var(--trans);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Button ripple / shine */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .6s ease;
}
.btn:hover::before { left: 100%; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"].is-visible { transition-delay: 80ms; }
[data-reveal-delay="2"].is-visible { transition-delay: 160ms; }
[data-reveal-delay="3"].is-visible { transition-delay: 240ms; }
[data-reveal-delay="4"].is-visible { transition-delay: 320ms; }
[data-reveal-delay="5"].is-visible { transition-delay: 400ms; }

/* Hero number counters pop */
.hero-meta strong { display: inline-block; transition: transform var(--trans); }
.hero-meta li:hover strong { transform: translateY(-3px); color: var(--gold); }

/* Service cards — magnetic tilt + gradient border */
.service {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.service::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity var(--trans);
  pointer-events: none;
}
.service:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--gold), transparent 60%);
}
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(185,147,90,.12);
  transition: transform var(--trans), background var(--trans);
}
.service:hover .svc-icon {
  transform: rotate(-6deg) scale(1.08);
  background: rgba(185,147,90,.25);
}

/* Team member hover */
.member { overflow: hidden; }
.member .avatar { transition: transform .5s cubic-bezier(.4,0,.2,1); }
.member:hover .avatar { transform: scale(1.06); }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }

/* Insight card arrow */
.insight { position: relative; }
.insight::after {
  content: "→"; position: absolute; right: 1.4rem; bottom: 1.4rem;
  color: var(--gold); font-size: 1.2rem;
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--trans), transform var(--trans);
}
.insight:hover::after { opacity: 1; transform: translateX(0); }

/* Testimonial carousel */
.testimonial { position: relative; min-height: 360px; }
.testimonial-track {
  position: relative;
  min-height: 200px;
  display: grid;
}
.testimonial-slide {
  grid-area: 1 / 1;
  max-width: 820px; margin: 0 auto; padding: 0 1rem;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.testimonial-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.testimonial-dots {
  display: flex; justify-content: center; gap: .6rem; margin-top: 2rem;
}
.testimonial-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.3);
  cursor: pointer; padding: 0;
  transition: all var(--trans);
}
.testimonial-dots .dot.is-active {
  background: var(--gold-2); transform: scale(1.3);
}
.testimonial-dots .dot:hover { background: rgba(255,255,255,.6); }

/* FAQ accordion */
.faq { background: var(--bg); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.4rem;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--navy); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(185,147,90,.15); color: var(--gold);
  font-weight: 700; font-size: 1.1rem; line-height: 1;
  transition: transform var(--trans), background var(--trans);
}
.faq-item[open] .chev { transform: rotate(45deg); background: var(--gold); color: #fff; }
.faq-item p {
  margin: 0; padding: 0 1.4rem 1.3rem; color: var(--muted);
  animation: faqOpen .35s ease;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Back-to-top */
.to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
  transition: opacity var(--trans), transform var(--trans), background var(--trans);
  z-index: 60;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }
html[data-theme="dark"] .to-top { background: var(--gold); color: #0a1226; }
html[data-theme="dark"] .to-top:hover { background: var(--gold-2); }

/* Form input focus accent */
.contact-form input:focus, .contact-form textarea:focus { transform: translateY(-1px); }

/* Practice-area filter chips */
.service-filters {
  display: flex; flex-wrap: wrap; gap: .6rem;
  justify-content: center;
  margin: 0 0 2rem;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--trans);
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip.is-active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
html[data-theme="dark"] .chip.is-active { background: var(--gold); color: #0a1226; border-color: var(--gold); }

/* Interactive service cards */
.service {
  cursor: pointer;
  padding-right: 3.2rem;
}
.service.is-hidden { display: none; }
.service .svc-toggle {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(185,147,90,.15); color: var(--gold);
  font-weight: 700; font-size: 1.3rem; line-height: 1;
  transition: transform var(--trans), background var(--trans), color var(--trans);
}
.service.is-open .svc-toggle {
  transform: rotate(45deg);
  background: var(--gold); color: #fff;
}
.service.is-open {
  transform: none !important; /* cancel tilt when open */
  box-shadow: 0 20px 50px rgba(11,27,59,.12);
  border-color: var(--gold);
}
html[data-theme="dark"] .service.is-open { box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.svc-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .35s ease, margin-top .35s ease;
  margin-top: 0;
}
.service.is-open .svc-details {
  max-height: 460px;
  opacity: 1;
  margin-top: 1rem;
}
.svc-details ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid; gap: .45rem;
}
.svc-details li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9rem;
  color: var(--muted);
}
.svc-details li::before {
  content: "";
  position: absolute; left: 0; top: .55rem;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}
.svc-cta {
  display: inline-flex;
  align-items: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold);
  padding-top: .3rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--trans), transform var(--trans);
}
.svc-cta:hover { border-bottom-color: var(--gold); transform: translateX(3px); }

/* Insight meta line */
.insight-meta {
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .02em;
  margin: .2rem 0 .6rem;
}
.insight { cursor: pointer; }

/* Article modal */
.article-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.article-modal.is-open { display: flex; }
.article-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,27,59,.62);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
.article-panel {
  position: relative;
  max-width: 780px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  padding: 3rem 2.4rem 2.6rem;
  animation: panelIn .35s cubic-bezier(.4,0,.2,1);
  margin: auto;
}
.article-close {
  position: absolute; top: .8rem; right: 1rem;
  width: 38px; height: 38px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  font-size: 1.6rem; line-height: 1;
  transition: all var(--trans);
}
.article-close:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: rotate(90deg); }
html[data-theme="dark"] .article-close:hover { background: var(--gold); color: #0a1226; border-color: var(--gold); }
.article-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: .6rem 0 .2rem;
}
.article-body h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 1.6rem 0 .4rem;
}
.article-body p { color: var(--ink); margin: 0 0 1rem; line-height: 1.75; }
.article-body ul { padding-left: 1.2rem; margin: 0 0 1rem; color: var(--ink); line-height: 1.75; }
.article-body li { margin-bottom: .4rem; }
.article-body .tag { display: inline-block; margin-bottom: .4rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
body.no-scroll { overflow: hidden; }

/* =========================================================
   MOBILE POLISH — smooth on every small screen
   ========================================================= */

/* Global mobile safety */
html, body { overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }
img, svg, video { max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }

/* iOS safe-area padding so header/footer don't sit under the notch */
@supports (padding: env(safe-area-inset-left)) {
  .site-header .container,
  .site-footer .container {
    padding-left: max(5%, env(safe-area-inset-left));
    padding-right: max(5%, env(safe-area-inset-right));
  }
}

/* Tablet & small laptop (≤960px) — keep brand always visible */
@media (max-width: 960px) {
  .nav { padding: .8rem 0; gap: .6rem; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand-emblem svg { width: 40px; height: 40px; }
  .brand-name {
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-sub {
    font-size: .6rem;
    letter-spacing: .14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .theme-toggle, .menu-toggle {
    min-width: 40px; min-height: 40px;
    flex-shrink: 0;
  }
}

/* Phone (≤560px) — the critical layout */
@media (max-width: 560px) {
  .container { padding: 0 5%; }
  .section { padding: clamp(2.8rem, 9vw, 4rem) 0; }

  /* Brand: emblem + short name, side-by-side, never stacks */
  .brand-sub { display: none; }
  .brand { gap: .55rem; }
  .brand-emblem svg { width: 36px; height: 36px; }
  .brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }

  /* Typography */
  h1 { font-size: clamp(2rem, 9vw, 2.6rem) !important; line-height: 1.15; }
  h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .lede, .section-lede { font-size: 1rem; }

  /* Hero */
  .hero { padding: 2rem 0 1rem; }
  .hero-visual > img { height: 220px; border-radius: var(--radius); }
  .hero-meta { gap: .8rem; }
  .hero-meta strong { font-size: 1.8rem; }
  .hero-actions { flex-wrap: wrap; gap: .6rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }

  /* Buttons — bigger tap targets */
  .btn { padding: .85rem 1.2rem; font-size: .95rem; min-height: 44px; }

  /* Service cards — more breathing room, larger toggle */
  .service { padding: 1.4rem 3rem 1.4rem 1.4rem; }
  .service .svc-toggle { width: 36px; height: 36px; top: 1rem; right: 1rem; }

  /* Team — single column on the tiniest phones gives face + caption real estate */
  .avatar { height: 220px; }

  /* Testimonial */
  .testimonial blockquote p { font-size: 1rem; padding: 0 .5rem; }
  .testimonial cite { font-size: .85rem; }

  /* Contact form */
  .contact-form { padding: 1.4rem 1.2rem; }
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: .85rem .9rem;
  }
  .contact-form .row { grid-template-columns: 1fr; gap: .6rem; }
  .contact-form label { font-size: .85rem; }

  /* Mobile nav drawer — smoother */
  .primary-nav.open {
    top: 60px;
    padding: 1rem 5% 1.4rem;
    gap: .2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    animation: drawerDown .25s cubic-bezier(.4,0,.2,1);
  }
  .primary-nav.open a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .primary-nav.open a:last-child { border-bottom: 0; }

  /* Article modal — near full-screen on phones */
  .article-modal { padding: 0; }
  .article-panel {
    padding: 3rem 1.3rem 2rem;
    border-radius: 0;
    min-height: 100vh;
  }
  .article-body h2 { font-size: 1.4rem; line-height: 1.25; }
  .article-body h3 { font-size: 1.1rem; }
  .article-body p, .article-body li { font-size: .95rem; }
  .article-close { top: .6rem; right: .6rem; }

  /* Footer layout */
  .copyright { text-align: center; justify-content: center; }

  /* Trust row: horizontal scroll rather than wrap mess */
  .trust-row {
    gap: .8rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .4rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .trust-row > span {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .trust-row::-webkit-scrollbar { display: none; }

  /* Theme toggle + back-to-top stay clear of the fold */
  .to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
}

/* Smoother transitions on coarse pointers (phones/tablets) */
@media (pointer: coarse) {
  .service, .insight, .member, .value, .btn, .hero-visual-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  /* Kill hover-lift tilts that don't make sense with a finger */
  .service:hover, .insight:hover, .value:hover { transform: none; }
}

@keyframes drawerDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

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