/* ==========================================================================
   Mark & Mind — Shared Design System
   Palette: navy + gold, serif display / sans body, hairline gold dividers
   ========================================================================== */


:root {
  --navy: #1B2A4A;
  --navy-deep: #121D33;
  --gold: #C9962C;
  --gold-light: #E8C275;
  --charcoal: #333333;
  --grey: #666666;
  --bg: #FDFCFA;
  --border: #E5E2DC;
  --serif: 'Times New Roman', Times, serif;
  --ink: #1B2A4A;
  --surface: #fff;
  --soft: #F7F4EE;
  --hover: #FBF7EC;
  --sans: 'Times New Roman', Times, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 88px 0; position: relative; }
section.tight { padding: 56px 0; }

.eyebrow {
  color: var(--gold);
  letter-spacing: 2.5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0; }
h1 { font-size: 44px; line-height: 1.15; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }

.lede { color: var(--grey); font-size: 17px; max-width: 640px; }

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  border: none;
  margin: 0;
}

/* ---------- Header / Nav ---------- */

header.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

header.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-right a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}
.header-right a:hover { color: var(--gold); }
.header-right .icon-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.header-right .icon-link:hover { background: var(--navy); color: #fff; border-color: var(--ink); }
.header-right .icon-link svg { width: 16px; height: 16px; }
.header-right .divider-v { width: 1px; height: 20px; background: var(--border); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.brand span.amp { color: var(--gold); font-style: italic; }
.brand svg { height: 30px; width: auto; }
.brand img { height: 26px; width: auto; display: block; }
footer .brand img {
  height: 26px;
  background: var(--surface);
  padding: 4px 8px;
  border-radius: 5px;
}

nav.main-nav { display: flex; gap: 28px; align-items: center; }
nav.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}
nav.main-nav a:hover { color: var(--gold); }
nav.main-nav a.current { color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--navy);
  color: var(--ink);
  background: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn-gold { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
.btn-ghost { border-color: transparent; color: var(--grey); }
.btn-ghost:hover { background: none; color: var(--ink); }

/* ---------- Watermark backgrounds (SVG line art, low opacity) ---------- */

.watermark-scales {
  position: absolute;
  top: 0; right: -60px;
  width: 420px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}
.watermark-scales.left { right: auto; left: -80px; }

.watermark-pillars {
  position: absolute;
  inset: 0;
  background-image: url('pillars.svg');
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 240px auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

section .wrap { position: relative; z-index: 1; }

/* ---------- Hero ---------- */

.hero { padding: 96px 0 72px; overflow: hidden; }
.hero .lede { font-size: 18px; margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.office-photo {
  aspect-ratio: 4/3;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(18,29,51,0.88), rgba(27,42,74,0.75)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 64px),
    linear-gradient(200deg, var(--navy-deep), var(--navy) 60%, var(--gold-light));
  box-shadow: 0 20px 50px rgba(18,29,51,0.25);
}
.office-photo .office-shelves {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 78px, rgba(255,255,255,0.08) 78px 80px);
  opacity: 0.6;
}
.office-photo .office-window {
  position: absolute;
  top: 10%; right: 8%;
  width: 30%; height: 60%;
  border: 2px solid rgba(232,194,117,0.35);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(232,194,117,0.12), transparent);
}
.office-photo .office-caption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.office-photo svg.office-icon {
  position: absolute;
  bottom: 20px;
  right: 24px;
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.practice-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.practice-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.practice-card .num {
  font-family: var(--serif);
  color: var(--gold-light);
  font-size: 32px;
  font-weight: 700;
}
.practice-card h3 { margin: 8px 0 10px; }
.practice-card p { color: var(--grey); font-size: 14.5px; margin: 0; }

/* ---------- Pull-quote band ---------- */

.quote-band {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-band .quote-mark {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}
.quote-band cite {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Emblem / stat badges ---------- */

.badge-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
}
.badge svg { width: 52px; height: 52px; margin-bottom: 10px; }
.badge .badge-num {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--ink);
  font-weight: 700;
}
.badge .badge-label {
  font-size: 12px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ---------- Insights / articles ---------- */

.article-list { margin-top: 40px; display: flex; flex-direction: column; gap: 0; }
.article-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.article-item:first-child { padding-top: 0; }
.article-date {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.article-item h3 { margin: 8px 0 6px; }
.tldr {
  background: var(--soft);
  border-left: 3px solid var(--gold);
  padding: 10px 16px;
  font-size: 14px;
  margin: 12px 0;
  color: var(--charcoal);
}
.tldr strong { color: var(--ink); }
.read-more { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.read-more:hover { color: var(--gold); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}
.about-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-photo svg { width: 60%; opacity: 0.25; }
.about-photo .photo-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 1px;
}
.timeline { margin-top: 32px; border-left: 2px solid var(--gold); padding-left: 24px; }
.timeline-item { margin-bottom: 24px; position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-item .year { font-weight: 700; color: var(--ink); font-size: 14px; }
.timeline-item p { margin: 4px 0 0; color: var(--grey); font-size: 14.5px; }

/* ---------- Practice area detail pages ---------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.process-step { text-align: justify; }
.process-step .step-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 30px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 20px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--grey); font-size: 14.5px; margin: 12px 0 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 40px;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 16px 0 6px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--surface);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-info-item { margin-bottom: 28px; }
.contact-info-item .label {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  z-index: 50;
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---------- Disclaimer gateway ---------- */

.gateway-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gateway-card {
  background: var(--surface);
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  padding: 44px 40px;
  text-align: center;
}
.gateway-card svg { width: 48px; margin: 0 auto 20px; display: block; }
.gateway-card h2 { font-size: 22px; }
.gateway-card p { color: var(--grey); font-size: 14.5px; margin: 16px 0 28px; text-align: justify; }
.gateway-card .btn { width: 100%; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy);
  color: #C9CEDA;
  padding: 56px 0 28px;
  margin-top: 0;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer h4 { color: var(--gold-light); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px; font-family: var(--sans); }
footer a { display: block; font-size: 14px; margin-bottom: 10px; color: #C9CEDA; }
footer a:hover { color: var(--gold-light); }
footer .brand { color: #fff; }
footer .brand span.amp { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  font-size: 12.5px;
  color: #8891A3;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  nav.main-nav { display: none; }
  .header-right { display: none; }
  .about-grid, .contact-grid, .hero-grid { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

footer .footer-text { display: block; font-size: 14px; margin-bottom: 10px; color: #C9CEDA; }

/* ---------- Practice areas table ---------- */
.practice-table { width: 100%; border-collapse: collapse; margin-top: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.practice-table thead th { background: var(--navy); color: var(--gold-light); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; text-align: left; padding: 14px 24px; font-family: var(--sans); }
.practice-table td { padding: 20px 24px; border-top: 1px solid var(--border); font-family: var(--serif); font-size: 19px; color: var(--ink); transition: background 0.2s; }
.practice-table td.num { width: 90px; color: var(--gold); font-weight: 700; font-size: 22px; }
.practice-table tbody tr { box-shadow: inset 3px 0 0 transparent; transition: box-shadow 0.2s; }
.practice-table tbody tr:hover { box-shadow: inset 3px 0 0 var(--gold); }
.practice-table tbody tr:hover td { background: var(--hover); }

/* ---------- Insights slider ---------- */
.slider { margin-top: 32px; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 24px; scrollbar-width: none; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-slide { flex: 0 0 100%; scroll-snap-align: start; border: 1px solid var(--border); border-radius: 6px; padding: 32px; background: var(--surface); box-sizing: border-box; }
.slider-controls { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.slider-controls button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.slider-controls button:hover { background: var(--gold); color: #fff; }
.slider-controls.single { display: none; }

/* ---------- Team ---------- */
.team-member { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; padding: 48px 0; border-top: 1px solid var(--border); }
.team-member:first-child { border-top: none; padding-top: 16px; }
.team-member .about-photo { aspect-ratio: 3/4; }
.team-member h2 { margin-bottom: 4px; }
.team-member .quals { color: var(--gold); font-weight: 600; font-size: 14.5px; margin: 0 0 20px; }
.team-member p { color: var(--grey); font-size: 15.5px; max-width: 720px; }
@media (max-width: 780px) { .team-member { grid-template-columns: 1fr; gap: 24px; } .team-member .about-photo { max-width: 260px; } }
.team-member .about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }

/* ---------- Photo hero (home) ---------- */
.hero.hero-photo {
  position: relative;
  padding: 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: var(--navy-deep);
  isolation: isolate;
}
/* Photo sits on the right and fades into the navy background, so the logo stays clear of the text. */
.hero.hero-photo::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 68%;
  z-index: -1;
  background: url("mark_and_mind_home.jpeg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 22%, #000 48%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 22%, #000 48%);
}
.hero.hero-photo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(201,150,44,0));
}
.hero.hero-photo .wrap { width: 100%; }
.hero.hero-photo .hero-copy { max-width: 500px; padding: 96px 0; }
.hero.hero-photo h1 { color: #fff; }
.hero.hero-photo .lede { color: #E3E6EE; }
.btn-outline-light { display: inline-block; padding: 12px 24px; border: 1px solid rgba(255,255,255,0.7); color: #fff; border-radius: 4px; font-weight: 600; font-size: 14.5px; transition: background 0.2s, color 0.2s; }
.btn-outline-light:hover { background: var(--surface); color: var(--ink); }
@media (max-width: 900px) {
  .hero.hero-photo { display: block; min-height: 0; }
  .hero.hero-photo::before {
    position: relative; display: block; width: 100%; height: 280px; right: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .hero.hero-photo .hero-copy { padding: 8px 0 56px; max-width: none; }
}

/* ---------- About intro (law_img2 background) & founders ---------- */
.about-intro {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background: #0b2a1d url("law_img2.png") right center / cover no-repeat;
}
.about-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b2a1d 0%, #0b2a1d 46%, rgba(11,42,29,0.6) 70%, rgba(11,42,29,0) 100%);
}
.about-intro .wrap { position: relative; }
.about-intro h2 { color: #fff; }
.about-intro .lede { color: #E6EBE8; max-width: 560px !important; }
@media (max-width: 780px) {
  .about-intro { background-position: 80% center; }
  .about-intro::before { background: rgba(11,42,29,0.82); }
  .about-intro .lede { max-width: 100% !important; }
}
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 24px; }
.founder-card img { width: 100%; max-width: 280px; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 15%; border-radius: 6px; display: block; margin-bottom: 16px; }
.founder-card .quals { color: var(--gold); font-weight: 600; font-size: 14.5px; margin: 4px 0 8px; }
.founder-card p { color: var(--grey); font-size: 15px; }
@media (max-width: 780px) { .founders-grid { grid-template-columns: 1fr; } }

/* ---------- JS enhancements ---------- */
header.site-header { transition: box-shadow .25s; }
header.site-header.scrolled { box-shadow: 0 4px 18px rgba(18,29,51,0.10); }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  header.site-header .header-left { position: static; }
  header.site-header.nav-open nav.main-nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px; box-shadow: 0 10px 20px rgba(18,29,51,0.08);
  }
  header.site-header.nav-open nav.main-nav a { padding: 12px 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  --bg: #0E1520; --surface: #162033; --soft: #121B2B; --hover: #1C2840;
  --ink: #F1ECE0; --charcoal: #D3D8E2; --grey: #9FA9BC; --border: #27344E;
}
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3 { color: var(--ink); }
:root[data-theme="dark"] .logo-img, :root[data-theme="dark"] header .brand img { filter: brightness(1.1); }
body, header.site-header, .slider-slide, .practice-table { transition: background-color .3s, color .3s, border-color .3s; }

/* theme toggle */
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; transition: transform .3s, border-color .2s; }
.theme-toggle:hover { border-color: var(--gold); transform: rotate(20deg); }

/* practice accordion */
.practice-table tbody tr.pa-row { cursor: pointer; }
.practice-table td.pa-chev { width: 56px; text-align: right; color: var(--gold); font-size: 20px; transition: transform .25s; }
.pa-row.open td.pa-chev { transform: rotate(45deg); }
.practice-table tr.pa-detail td { padding: 0; border-top: 0; }
.pa-detail .pa-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; font-family: var(--sans); font-size: 15.5px; color: var(--grey); padding: 0 24px 0 114px; }
.pa-detail.open .pa-body { padding-bottom: 22px; }
@media (max-width: 780px) { .pa-detail .pa-body { padding-left: 24px; } }

/* insights filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0 8px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--ink); padding: 8px 16px; border-radius: 999px; font: 600 13.5px var(--sans); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.filter-search { margin-left: auto; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink); font: 14px var(--sans); min-width: 200px; }
.filter-empty { display: none; color: var(--grey); padding: 24px 0; }
.article-item.hide { display: none; }

/* ---------- Founder flip cards ---------- */
.founder-card.flip { perspective: 1200px; cursor: pointer; outline-offset: 6px; }
.flip-inner { display: grid; transition: transform .7s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d; }
.founder-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-inner .face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-inner .back { transform: rotateY(180deg); background: var(--navy-deep); color: #E6EBE8; border-radius: 6px; padding: 28px; border-top: 3px solid var(--gold); }
.flip-inner .back h3 { color: #fff; margin-bottom: 12px; }
.flip-inner .back p { color: #D5DBE3; }
.flip-hint { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--gold); }
.founder-card.flip:hover .front .flip-hint { transform: translateX(4px); }
.founder-card.flipped, .founder-card.flipped * { /* keep reveal animation from re-triggering */ }

/* ---------- Contact form polish ---------- */
.contact-form input.invalid, .contact-form textarea.invalid { border-color: #C0392B; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.matter-chips.invalid-chips { outline: 1px dashed #C0392B; outline-offset: 6px; border-radius: 8px; }
.char-count { text-align: right; font-size: 12.5px; color: var(--grey); margin-top: 4px; }

/* ---------- Map link ---------- */
a.map-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
a.map-link svg { color: #D9503F; transition: color .2s; }
a.map-link:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
a.map-link:hover svg { color: #fff; }
a.map-link-light { display: inline-flex; background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
a.map-link-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
a.map-link-light:hover svg { color: #D9503F; }

/* ---------- Legal pages & consent ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--charcoal); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold); text-decoration: underline; }
.legal-box { border-left: 3px solid var(--gold); background: var(--soft); padding: 16px 20px; border-radius: 4px; margin: 16px 0; line-height: 1.8; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-legal a { color: inherit; opacity: .85; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
label.consent, .contact-form label.consent, dialog label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.5; margin: 20px 0 6px; cursor: pointer; }
label.consent input[type="checkbox"], .contact-form label.consent input, dialog label.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 0; accent-color: var(--gold); }
label.consent a, .consent-note a { color: var(--gold); text-decoration: underline; }
.consent-note { font-size: 12.5px; color: var(--grey); margin: 4px 0 0; }

/* founder cards: equal height, tidy faces */
.founders-grid { align-items: stretch; }
.founder-card.flip, .founder-card .flip-inner { height: 100%; }
.founder-card .face { display: flex; flex-direction: column; }
.founder-card .front { align-items: flex-start; }
.founder-card .front h2 { font-size: 24px; }
.founder-card .founder-meta { font-size: 14px; color: var(--grey); margin: 0 0 6px; }
.founder-card .back { justify-content: flex-start; }
.founder-card .back .founder-meta { color: var(--gold-light); font-weight: 600; }
.founder-card .back p { font-size: 15px; line-height: 1.65; }
.founder-card .back .flip-hint, .founder-card .front .flip-hint { margin-top: auto; padding-top: 14px; }

/* footer legal links inline with copyright */
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 20px; }
.footer-bottom .footer-legal { white-space: nowrap; }

/* footer legal links: inline row (overrides footer a { display:block }) */
.footer-bottom .footer-legal { display: inline-flex; align-items: center; gap: 12px; }
.footer-bottom .footer-legal a { display: inline; margin: 0; font-size: inherit; color: #8891A3; opacity: 1; }
.footer-bottom .footer-legal a:hover { color: var(--gold-light); text-decoration: none; }
.footer-bottom .footer-legal .sep { opacity: .5; }

/* founder cards: ordered badge */
.founder-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 5px 14px 5px 5px; border: 1px solid var(--gold); border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); }
.founder-badge .num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 11px; letter-spacing: 0; }
.founders-grid { margin-top: 28px; gap: 48px; }
.founder-card .front img { max-width: 300px; width: 100%; aspect-ratio: 4/5; }
.founder-card .front img { flex: none; }
.founder-card .front .founder-badge { margin: 4px 0 10px; }

/* founder role label: plain eyebrow text */
.founder-role { margin: 6px 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }

/* founder photos: identical fixed size */
.founder-card .front img { width: 300px; height: 375px; max-width: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 15%; flex: none; }
@media (max-width: 480px) { .founder-card .front img { height: auto; aspect-ratio: 4/5; } }

/* ---------- Hover & card transitions ---------- */
.practice-card, .slider-slide, .article-item { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.practice-card:hover, .slider-slide:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(18,29,51,.10); border-color: var(--gold); }
.btn { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
nav.main-nav a { position: relative; border-bottom: 2px solid transparent; padding-bottom: 4px; transition: color .2s, border-color .2s; }
nav.main-nav a:hover { border-bottom-color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .practice-card:hover, .slider-slide:hover, .btn:hover { transform: none; }
}

/* ---------- Mobile / tablet polish ---------- */
@media (max-width: 900px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .founders-grid { gap: 32px; }
}
@media (max-width: 780px) {
  input, select, textarea { font-size: 16px !important; } /* prevents iOS zoom on focus */
  .btn, .chip, .nav-toggle, .theme-toggle { min-height: 44px; }
  .filter-search { margin-left: 0; width: 100%; min-width: 0; }
  .practice-table td { padding: 16px; font-size: 17px; }
  .practice-table td.num { width: 56px; font-size: 18px; }
  .slider-slide { padding: 22px; }
  .founder-card .front img { margin: 0 auto 4px; }
  .founder-card .front { align-items: center; text-align: center; }
  .hero.hero-photo { min-height: 480px; }
  .contact-grid { gap: 36px; }
}
dialog { max-height: 92vh; overflow-y: auto; background: var(--surface); color: var(--charcoal); }

/* about intro: align with page container instead of shrink-centering in the flex section */
.about-intro .wrap { width: 100%; }

/* ---------- Practice Areas page ---------- */
.pa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pa-card { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pa-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(18,29,51,.10); }
.pa-num { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1; }
.pa-card h3 { margin: 14px 0 10px; font-size: 21px; }
.pa-card p { color: var(--grey); font-size: 15px; margin: 0 0 18px; }
.pa-link { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--gold); }
@media (max-width: 900px) { .pa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pa-grid { grid-template-columns: 1fr; } }

/* Global: Times New Roman for all text */
body, input, select, textarea, button { font-family: 'Times New Roman', Times, serif; }

/* Justified body text (centered quote/badge blocks stay centered) */
p, li, .process-step { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.quote-band, .quote-band p, .badge, .badge p, .gateway-card h3, .char-count { text-align: center; }
.char-count { text-align: right; }
footer p, footer li { text-align: left; }
