/* ============================================================
   JHP Attorneys — Global Stylesheet
   Palette: Navy #10233F | Red #B22234 | Green #1E6B4F
   Text: #111111 on #FFFFFF
   ============================================================ */

:root {
  --navy: #10233F;
  --navy-deep: #0A1830;
  --red: #B22234;
  --green: #1E6B4F;
  --green-deep: #15503B;   /* large fills, holds white text */
  --green-tint: #EEF5F1;   /* pale band on light pages */
  --ink: #111111;
  --gray: #55575B;
  --gray-light: #E9EBEE;
  --paper: #FFFFFF;
  --off: #F7F8FA;
  --logo-gray: #6D6E71;
  --logo-red: #C0392B;
  --logo-blue: #5B8DB8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Josefin Sans", "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.68;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; }
h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.45rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--red); }
.eyebrow.green { color: var(--green); }
.eyebrow.green::before { background: var(--green); }

.lead { font-size: 1.15rem; color: var(--gray); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 38px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #971C2C; border-color: #971C2C; }

/* ---------- Logo ---------- */
.logo { display: inline-block; line-height: 0; }
.logo img { width: auto; height: 72px; display: block; }
.logo.on-dark img { height: 92px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--navy); border-bottom-color: var(--red); font-weight: 600; }
.main-nav .nav-cta {
  border: 1px solid var(--navy);
  background: var(--navy);
  padding: 11px 26px;
  color: #fff;
}
.main-nav .nav-cta:hover {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
  border-bottom-color: var(--navy);
}
/* On contact.html the CTA is also the active link, and the generic active
   rule above would paint its label navy on a navy button. */
.main-nav .nav-cta.active { color: #fff; border-bottom-color: var(--navy); }
.main-nav .nav-cta.active:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: 0.3s;
}

/* ---------- Top utility bar ---------- */
.top-bar { background: var(--navy); color: #fff; font-size: 0.78rem; letter-spacing: 0.06em; }
.top-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar a { color: #fff; font-weight: 400; }
.top-bar a:hover { color: #D9E2EC; }
.top-bar .langs { color: #B9C4D2; }
.tb-contact { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tb-sep { color: rgba(255, 255, 255, 0.38); }

/* ---------- Hero (compact navy band) ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 300px at 8% 110%, rgba(178, 34, 52, 0.42), transparent 62%),
    linear-gradient(105deg, #081428 0%, var(--navy) 62%, #17325A 100%);
}
.hero-slash {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: 44%;
  right: -8%;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.045) 42% 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  transform: skewX(-11deg);
  transform-origin: top;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 32px 58px;
  display: grid;
  grid-template-columns: 1fr 366px;
  gap: 52px;
  align-items: center;
  min-height: 0;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  line-height: 1.26;
  letter-spacing: -0.01em;
  animation: heroUp 0.8s ease both;
}
.hero h1 em { font-style: italic; font-weight: 300; color: #DCE5F0; }
.hero p.lead {
  color: #BDC8D6;
  line-height: 1.75;
  margin: 24px 0 0;
  max-width: 100%;
  font-size: 1rem;
  animation: heroUp 0.8s 0.06s ease both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
  animation: heroUp 0.8s 0.12s ease both;
}
.hero-actions .btn { padding: 13px 30px; }
.hero-actions .btn-red { box-shadow: 0 10px 26px rgba(178, 34, 52, 0.3); }
.hero-actions .btn-red:hover { background: #D62D42; border-color: #D62D42; }

.hero-call {
  border-left: 2px solid #D62D42;
  padding-left: 22px;
  margin-top: 58px;
  animation: heroUp 0.8s 0.24s ease both;
}
.hero-call .l {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #8D9DB2;
}
.hero-call .ph {
  display: block;
  font-family: var(--display);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #fff;
  line-height: 1.2;
  margin-top: 9px;
  transition: color 0.25s;
}
.hero-call .ph:hover { color: #F3A9B3; }
.hero-call .hrs { font-size: 0.84rem; color: #8D9DB2; margin-top: 8px; }

.hero-bar {
  position: relative;
  z-index: 1;
  display: flex;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.hero-bar div {
  flex: 1;
  padding: 22px 24px;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #AFBECE;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
/* number on its own line, label beneath */
.hero-bar b { display: block; }
.hero-bar div:last-child { border-right: none; }
.hero-bar b { color: #fff; font-weight: 700; font-size: 1.85rem; letter-spacing: 0.02em; line-height: 1.1; margin-bottom: 5px; }

@media (max-width: 860px) {
  .hero-bar { flex-direction: column; }
  .hero-bar div { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .hero-bar div:last-child { border-bottom: none; }
}

@keyframes heroUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding: 40px 32px 42px; }
  .hero-slash { display: none; }
  .hero-bar { flex-wrap: wrap; }
  .hero-bar div { flex: 1 1 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.wide { max-width: 100%; margin-bottom: 34px; }
.section-head.wide .lead { max-width: 100%; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.bg-off { background: var(--off); }
/* Pale green ground. Used where the content is already about credibility,
   so the section reads as a block of green without shouting. */
.bg-green { background: var(--green-tint); }
/* Office photography sits behind the Why Choose strip at low opacity, over
   the green tint, so the copy keeps its contrast. */
.why-photo { position: relative; overflow: hidden; }
.why-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../images/office-team-meeting.jpg');
  background-size: cover;
  background-position: center 34%;
  opacity: 0.16;
  pointer-events: none;
}
.why-photo > .wrap { position: relative; z-index: 1; }
/* Copy holds the left half so the office photo behind it stays visible on
   the right, where the address panel used to sit. The name is .why-main, not
   .why-copy, which already belongs to the practice areas page. */
.why-main { max-width: 660px; }
/* Address, hours and phone as one navy band directly under the checklist. */
.why-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 38px;
  background: var(--navy);
  color: #fff;
}
.wm-item { padding: 28px 34px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.wm-item:first-child { border-left: none; }
.wm-l {
  display: block;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8FBFA8;
  margin-bottom: 10px;
}
/* Each hours line stays on one line in the footer column. */
.ft-hours span { display: block; white-space: nowrap; }
@media (max-width: 420px) { .ft-hours span { white-space: normal; } }
.why-meta p { font-size: 0.84rem; line-height: 1.66; color: #D7DFE8; margin: 0; }
.why-meta a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.why-meta a:hover { color: #9FD4BB; border-bottom-color: #9FD4BB; }
.wm-link {
  display: inline-block;
  white-space: nowrap;
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9FD4BB !important;
  border-bottom: 1px solid rgba(159, 212, 187, 0.5) !important;
}
.wm-link:hover { color: #fff !important; border-bottom-color: #fff !important; }
@media (max-width: 860px) {
  .why-meta { grid-template-columns: minmax(0, 1fr); }
  .wm-item { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 22px 24px; }
  .wm-item:first-child { border-top: none; }
}
.bg-green .panel { background: #fff; }

/* ---------- Practice areas (dark showcase) ---------- */
/* Six-column track so the five cards split 2 wide on top, 3 below.
   Personal injury and living trusts lead, so they get the wider tiles. */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}
.practice-grid > * { grid-column: span 2; }
.practice-grid > :nth-child(1),
.practice-grid > :nth-child(2) { grid-column: span 3; }
/* Seven cards: 2 wide on top, 3 across the middle, 2 wide again so the last
   row fills instead of leaving a hole. */
.practice-grid > :nth-child(6),
.practice-grid > :nth-child(7) { grid-column: span 3; }
.practice-card {
  display: block;
  color: inherit;
  background: linear-gradient(160deg, #16305A 0%, var(--navy) 75%);
  border: 1px solid var(--navy);
  padding: 56px 36px 46px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16, 35, 63, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.practice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.4s ease;
}
.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(16, 35, 63, 0.35);
}
.practice-card:hover::before { width: 100%; }
.practice-card .num {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  transition: color 0.35s ease;
}
.practice-card:hover .num { color: rgba(178, 34, 52, 0.35); }
.practice-card h3 {
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  position: relative;
}
.practice-card p { font-size: 0.95rem; color: #B7C2D0; position: relative; }
.practice-card .card-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid var(--red);
  padding-bottom: 3px;
  position: relative;
  transition: color 0.3s;
}
.practice-card .card-link::after { content: "  →"; white-space: pre; }
.practice-card:hover .card-link { color: #E8B4BB; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split .panel {
  background: var(--navy);
  color: #fff;
  padding: 64px 56px;
  position: relative;
}
.split .panel::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.split .panel h3 { color: #fff; font-size: 1.9rem; margin-bottom: 16px; }
.split .panel p { color: #C4CEDB; font-size: 1rem; }
.split .panel .btn { margin-top: 30px; }
.checklist { list-style: none; margin-top: 28px; }
.checklist li {
  padding: 14px 0 14px 40px;
  position: relative;
  border-bottom: 1px solid rgba(16, 35, 63, 0.22);
  font-size: 1.02rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0C3527 0%, var(--green-deep) 58%, #1A6049 100%);
  color: #fff;
  padding: 80px 0;
}
/* Same skewed glare the heroes use, so the band belongs to the set */
.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -6%;
  width: 42%;
  background: linear-gradient(120deg, transparent 0 44%, rgba(255, 255, 255, 0.06) 44% 100%);
  transform: skewX(-11deg);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #CFE4DA; margin-top: 10px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-card { background: var(--paper); border: 1px solid var(--gray-light); transition: box-shadow 0.3s, transform 0.3s; }
.team-card:hover { box-shadow: 0 18px 44px rgba(16, 35, 63, 0.12); transform: translateY(-4px); }
.team-photo {
  aspect-ratio: 4 / 4.6;
  background: linear-gradient(160deg, #16305A 0%, var(--navy) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-photo .initials {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}
.team-photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.team-info { padding: 26px 28px 30px; }
.team-info h3 { font-size: 1.35rem; }
.team-info .role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  margin: 6px 0 14px;
}
.team-info p { font-size: 0.93rem; color: var(--gray); }
.team-info .bar-accent { width: 34px; height: 2px; background: var(--green); margin-top: 18px; }

/* ---------- Team rows (stacked profiles) ---------- */
/* ---------- Home attorneys row ---------- */
.home-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 1040px) { .home-team { grid-template-columns: repeat(2, 1fr); gap: 30px; } }
.home-team-card {
  display: block;
  color: var(--ink);
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 22px;
  transition: transform 0.35s ease;
}
.home-team-card:hover { transform: translateY(-6px); border-bottom-color: var(--red); }
/* Portrait with the name plated over a dark gradient and an inset hairline
   that tightens to red on hover. */
.htc-photo { position: relative; overflow: hidden; background: var(--off); aspect-ratio: 4 / 4.6; }
.htc-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 20, 40, 0.88) 0%, rgba(8, 20, 40, 0.3) 34%, transparent 62%);
}
.htc-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
  transition: inset 0.4s ease, border-color 0.4s ease;
}
.home-team-card:hover .htc-photo::after { inset: 8px; border-color: var(--red); }
.htc-plate { position: absolute; z-index: 4; left: 22px; right: 22px; bottom: 22px; }
.htc-plate .rule {
  width: 30px;
  height: 2px;
  background: var(--red);
  margin-top: 12px;
  transition: width 0.45s ease;
}
.home-team-card:hover .htc-plate .rule { width: 70px; }
.htc-more {
  display: inline;
  white-space: nowrap;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid rgba(178, 34, 52, 0.45);
  transition: color 0.25s, border-color 0.25s;
}
.htc-more::after { content: " \203A"; }
.home-team-card:hover .htc-more { color: var(--red); border-bottom-color: var(--red); }
.htc-photo img {
  width: 100%;
  /* The HTML height attribute wins over aspect-ratio unless height is reset,
     which blew the card up to the full 1000px of the source file. */
  height: auto;
  display: block;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.5s ease;
}
.home-team-card:hover .htc-photo img { transform: scale(1.04); }
.home-team-card h3 { margin-top: 0; font-size: 0.98rem; color: #fff; line-height: 1.22; }
.home-team-card .role {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E8B4BB;
  margin-top: 5px;
}
.home-team-card p { font-size: 0.95rem; color: var(--gray); margin-top: 16px; }

.team-rows { display: flex; flex-direction: column; gap: 88px; }
.team-row { display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: center; }
.team-row.reverse { grid-template-columns: 1fr 400px; }
.team-row.reverse .row-photo { order: 2; }
.row-photo { position: relative; }
.row-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center top; display: block; }
.row-photo::before {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 1px solid var(--navy);
  z-index: -1;
}
.team-row.reverse .row-photo::before { inset: -16px -16px 16px 16px; }
.row-bio h2 { font-size: 2.2rem; }
.row-bio .role {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin: 10px 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.row-bio .role::after { content: ""; width: 44px; height: 1px; background: var(--red); }
.row-bio p { color: var(--gray); margin-bottom: 14px; }
.row-bio .bar-accent { width: 44px; height: 2px; background: var(--green); margin-top: 24px; }

@media (max-width: 960px) {
  .team-row, .team-row.reverse { grid-template-columns: 1fr; gap: 40px; }
  .team-row.reverse .row-photo { order: 0; }
  .row-photo { max-width: 420px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.7rem;
  color: var(--red);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { content: "–"; color: var(--green); }
.faq-item .answer { padding: 0 24px 28px 0; color: var(--gray); }
.faq-cat {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 54px 0 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
.faq-list .faq-cat:first-child { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.contact-info h2 { margin-bottom: 12px; }
.info-block { padding: 24px 0; border-bottom: 1px solid var(--gray-light); }
.info-block .label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.info-block .value { font-size: 1.12rem; }
.info-block .value a { color: var(--ink); }
.info-block .value a:hover { color: var(--navy); text-decoration: underline; }

.contact-form { background: var(--off); padding: 52px 48px; border-top: 3px solid var(--navy); }
.contact-form h3 { margin-bottom: 8px; }
.contact-form .form-note { font-size: 0.9rem; color: var(--gray); margin-bottom: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D4D8DE;
  background: #fff;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-disclaimer { font-size: 0.78rem; color: var(--gray); margin-top: 18px; }

.map-frame { border: 0; width: 100%; height: 420px; filter: grayscale(35%); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 84px 0 72px;
}
/* same glare treatment as the homepage hero */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 300px at 8% 110%, rgba(178, 34, 52, 0.42), transparent 62%),
    linear-gradient(105deg, #081428 0%, var(--navy) 62%, #17325A 100%);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44%;
  right: -8%;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.045) 42% 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  transform: skewX(-11deg);
  transform-origin: top;
  pointer-events: none;
}
/* Optional location photo behind the glare, kept very low contrast */
.page-hero .ph-img {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 45%;
  opacity: 0.22;
  pointer-events: none;
}
.page-hero .ph-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 40, 0.85) 0%, rgba(8, 20, 40, 0.35) 55%, transparent 100%);
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.16; }
.page-hero .eyebrow { color: #E8B4BB; }
.page-hero p { color: #C4CEDB; max-width: 640px; margin-top: 18px; font-size: 1.08rem; }

/* Compact variant, used on the blog index */
.page-hero.compact { padding: 44px 0 40px; }

.page-hero.compact .eyebrow { margin-bottom: 12px; }
.page-hero.compact h1 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.page-hero.compact p { margin-top: 10px; font-size: 1rem; max-width: 620px; }

/* ---------- Practice area detail pages ---------- */
.pa-layout { display: grid; grid-template-columns: 1fr 320px; gap: 72px; align-items: start; }
.pa-content h2 { font-size: 1.9rem; margin: 44px 0 16px; }
.pa-content h2:first-child { margin-top: 0; }
.pa-content p { color: var(--gray); margin-bottom: 16px; }
.pa-aside { position: sticky; top: 120px; }
.pa-nav { border: 1px solid var(--gray-light); }
.pa-nav .pa-nav-title {
  background: var(--navy);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 18px 24px;
}
.pa-nav a {
  display: block;
  padding: 15px 24px;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.25s, color 0.25s, padding-left 0.25s;
}
.pa-nav a:last-child { border-bottom: none; }
.pa-nav a:hover { background: var(--off); color: var(--red); padding-left: 30px; }
.pa-nav a.current { background: var(--off); color: var(--navy); font-weight: 500; box-shadow: inset 3px 0 0 var(--red); }
.pa-cta-card { background: var(--navy); color: #fff; padding: 34px 28px; margin-top: 28px; }
.pa-cta-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.pa-cta-card p { color: #C4CEDB; font-size: 0.92rem; margin-bottom: 22px; }
.pa-cta-card .phone { display: block; font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 18px; }

@media (max-width: 960px) {
  .pa-layout { grid-template-columns: 1fr; gap: 48px; }
  .pa-aside { position: static; }
}

/* ---------- Areas we serve ---------- */
.areas-group { margin-bottom: 64px; }
.areas-group:last-child { margin-bottom: 0; }
.areas-group h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.areas-group .group-note { color: var(--gray); margin-bottom: 28px; font-size: 0.98rem; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.area-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  background: var(--navy);
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.area-tile img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.area-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(8, 20, 40, 0) 0%, rgba(8, 20, 40, 0.86) 78%);
  pointer-events: none;
}
.area-tile .at-name {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--display);
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.15;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.area-tile .at-name::after {
  content: "\2192";
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #F3A9B3;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.area-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(16, 35, 63, 0.20); border-color: var(--navy); }
.area-tile:hover img { transform: scale(1.06); }
.area-tile:hover .at-name::after { opacity: 1; transform: translateX(0); }

@media (max-width: 960px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #A9B6C6; }
.footer-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 32px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 56px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
  padding-bottom: 12px;
  position: relative;
}
/* Short green rule under each footer heading, echoing the logo bar */
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--green);
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 12px; font-size: 0.95rem; }
.site-footer a { color: #A9B6C6; transition: color 0.25s; }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: 0.95rem; margin-top: 20px; max-width: 300px; }
.footer-accent { display: flex; gap: 6px; margin-top: 24px; }
.footer-accent span { width: 34px; height: 3px; }
.footer-accent .a1 { background: var(--logo-red); }
.footer-accent .a2 { background: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* Designer credit. Kept quiet, but at 4.8:1 it clears WCAG AA for body text. */
.footer-bottom .credit {
  font-size: 0.72rem;
  color: #7C8696;
  letter-spacing: 0.02em;
}
.footer-bottom .credit a {
  color: #7C8696;
  transition: color 0.25s;
}
.footer-bottom .credit .credit-name { color: #78889A; }
.footer-bottom .credit a:hover { color: #A9B6C6; }
.footer-bottom .credit .credit-name:hover { color: #C9D3DE; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-grid > *,
  .practice-grid > :nth-child(1),
  .practice-grid > :nth-child(2) { grid-column: auto; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .logo img { height: 58px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 32px 24px;
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 20px 40px rgba(16, 35, 63, 0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; width: 100%; }
  .main-nav .nav-cta { margin-top: 12px; text-align: center; }
  .practice-grid, .team-grid, .home-team { grid-template-columns: 1fr; }
  .practice-grid > * { grid-column: auto; }
  .wrap, .header-inner, .top-bar-inner { padding-left: 24px; padding-right: 24px; }
  .contact-form { padding: 36px 26px; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ============================================================
   BLOG
   Article column + sticky right rail (In This Article, Related)
   ============================================================ */

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--off); border-bottom: 1px solid var(--gray-light); }
.crumbs .wrap { padding-top: 16px; padding-bottom: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.82rem; }
.crumbs li { display: flex; align-items: center; gap: 10px; color: var(--gray); }
.crumbs li + li::before { content: "/"; color: #B6BBC3; }
.crumbs a { color: var(--navy); }
.crumbs a:hover { color: var(--red); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--gray); }

/* ---------- Post shell ---------- */
.post-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 90px;
  display: grid;
  grid-template-columns: minmax(0, 740px) 320px;
  gap: 64px;
  align-items: start;
}
.post-head { border-bottom: 1px solid var(--gray-light); padding-bottom: 26px; margin-bottom: 34px; }
.post-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.post h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); letter-spacing: -0.01em; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--gray);
}
.post-meta span { display: flex; align-items: center; gap: 8px; }
.post-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #C4C8CE; }

/* ---------- Article body ---------- */
.post-body { font-size: 1.06rem; line-height: 1.8; color: #24262A; }
.post-body > p:first-of-type { font-size: 1.16rem; color: var(--gray); }
.post-body h2 {
  font-size: 1.85rem;
  margin: 52px 0 16px;
  scroll-margin-top: 130px;
  padding-top: 6px;
}
.post-body h3 { font-size: 1.32rem; margin: 34px 0 12px; scroll-margin-top: 130px; }
.post-body p { margin-bottom: 20px; }
.post-body a { color: var(--navy); border-bottom: 1px solid rgba(178, 34, 52, 0.45); }
.post-body a:hover { color: var(--red); border-bottom-color: var(--red); }
.post-body ul, .post-body ol { margin: 0 0 22px 22px; }
.post-body li { margin-bottom: 10px; padding-left: 6px; }
.post-body ul { list-style: none; margin-left: 0; }
.post-body ul > li { position: relative; padding-left: 22px; }
.post-body ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 1px;
  background: var(--red);
}
.post-body strong { font-weight: 500; color: var(--ink); }
.post-body blockquote {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 26px;
  margin: 30px 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--navy);
}

/* Callout / key takeaway box */
.note {
  background: var(--off);
  border: 1px solid var(--gray-light);
  border-left: 3px solid var(--navy);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 0.98rem;
}
.note h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--red); }
.note.warn h4 { color: var(--red); }

/* Data table inside posts */
.post-body table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 0.95rem; }
.post-body thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-body tbody td { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); vertical-align: top; }
.post-body tbody tr:nth-child(even) { background: #FBFCFD; }

/* Inline CTA inside the article */
.inline-cta {
  background: linear-gradient(150deg, var(--green-deep), var(--green));
  color: #fff;
  padding: 34px 34px 32px;
  margin: 44px 0;
}
.inline-cta h4 { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.inline-cta p { color: #CFE4DA; font-size: 0.98rem; margin-bottom: 22px; }
.inline-cta .btn { border-color: var(--red); }
/* Keep the dark CTA panel readable no matter which body wrapper it sits in.
   .area-body p / .post-body a are defined later in this file and would
   otherwise win on source order and paint dark text on the navy panel. */
.area-body .inline-cta h4,
.post-body .inline-cta h4 { color: #fff; }
.area-body .inline-cta p,
.post-body .inline-cta p { color: #C4CEDB; }
.area-body .inline-cta a.btn,
.post-body .inline-cta a.btn { color: #fff; border-bottom: none; }
.area-body .inline-cta a.btn:hover,
.post-body .inline-cta a.btn:hover { color: #fff; }

/* FAQ block */
.post-faq { margin-top: 20px; }
.post-faq .q {
  border-top: 1px solid var(--gray-light);
  padding: 22px 0 4px;
}
.post-faq .q h3 { margin: 0 0 8px; font-size: 1.18rem; }
.post-faq .q p { margin-bottom: 14px; }

/* Author / disclaimer */
.post-foot {
  margin-top: 56px;
  border-top: 1px solid var(--gray-light);
  padding-top: 28px;
  font-size: 0.88rem;
  color: var(--gray);
}
.post-foot .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.post-foot .tags a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--gray-light);
  padding: 7px 14px;
  color: var(--gray);
}
.post-foot .tags a:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- Right rail ---------- */
.rail { position: sticky; top: 118px; display: flex; flex-direction: column; gap: 30px; }
.rail-box { border: 1px solid var(--gray-light); padding: 26px 24px; }
.rail-box h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-light);
}
.toc { list-style: none; counter-reset: toc; }
.toc li { margin-bottom: 11px; line-height: 1.45; }
.toc a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray);
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 0.2s, border-color 0.2s;
}
.toc a:hover { color: var(--navy); border-left-color: var(--gray-light); }
.toc a.active { color: var(--navy); border-left-color: var(--green); font-weight: 400; }

.rel { list-style: none; }
.rel li { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--gray-light); }
.rel li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.rel a { display: block; font-family: var(--serif); font-size: 1.14rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rel a:hover { color: var(--red); }
.rel .m { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-top: 7px; }

.rail-cta { background: var(--navy); color: #fff; padding: 30px 26px; }
.rail-cta h4 { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.18); }
.rail-cta p { font-size: 0.92rem; color: #C4CEDB; margin-bottom: 18px; }
.rail-cta .ph { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: #fff; margin-bottom: 18px; }
.rail-cta .ph:hover { color: #E8B4BB; }
.rail-cta .btn { width: 100%; text-align: center; padding: 13px 20px; }

/* ---------- Blog index ---------- */
.blog-wrap {
  max-width: 1440px;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 76px;
  padding-top: 44px;
}
.blog-wrap .crumbs-inline { margin-bottom: 0; }
.blog-count {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--gray-light);
}
.blog-count span { color: var(--navy); font-weight: 500; }
.blog-empty { color: var(--gray); padding: 40px 0; }
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.blog-card[hidden] { display: none; }

/* Category filter */
.cat-filter { list-style: none; }
.cat-filter li { margin-bottom: 4px; }
.cat-filter button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  padding: 9px 0 9px 12px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gray);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cat-filter button:hover { color: var(--navy); border-left-color: var(--gray-light); }
.cat-filter button span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #8D9199;
  border: 1px solid var(--gray-light);
  padding: 1px 8px;
  min-width: 28px;
  text-align: center;
}
.cat-filter button.active { color: var(--navy); font-weight: 500; border-left-color: var(--green); }
.cat-filter button.active span { color: var(--green); border-color: rgba(30, 107, 79, 0.4); }
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-light);
  padding: 28px 26px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(16, 35, 63, 0.10); border-color: #D8DCE2; }
.blog-card .cat { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.blog-card h3 { font-size: 1.42rem; line-height: 1.26; color: var(--ink); margin-bottom: 12px; }
.blog-card p { font-size: 0.96rem; line-height: 1.65; color: #3D4147; flex: 1; }
.blog-card .m { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-light); }
.blog-group { margin-bottom: 70px; }
.blog-group > h2 {
  font-size: 1.6rem;
  padding-bottom: 14px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.blog-group > h2 a { font-family: var(--sans); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); }

@media (max-width: 1080px) {
  .post-wrap { grid-template-columns: 1fr; gap: 48px; padding: 40px 32px 70px; }
  .rail { position: static; }
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .blog-wrap { grid-template-columns: 1fr; gap: 44px; }
  .blog-wrap .rail { order: -1; }
}

@media (max-width: 1320px) {
  .blog-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .post-wrap { padding: 32px 24px 60px; }
  .blog-list { grid-template-columns: 1fr; }
  .post-body { font-size: 1.02rem; }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.err {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.err::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 300px at 8% 110%, rgba(178, 34, 52, 0.42), transparent 62%),
    linear-gradient(105deg, #081428 0%, var(--navy) 62%, #17325A 100%);
}
.err-slash {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44%;
  right: -8%;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.045) 42% 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  transform: skewX(-11deg);
  transform-origin: top;
}
.err-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px 66px;
}
.err-code {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
.err h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
}
.err p {
  color: #BDC8D6;
  margin-top: 14px;
  max-width: 56ch;
  font-size: 1rem;
}
.err-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.err-actions .btn { padding: 13px 30px; }
.err-actions .btn-red { box-shadow: 0 10px 26px rgba(178, 34, 52, 0.3); }
.err-actions .btn-red:hover { background: #D62D42; border-color: #D62D42; }

.err-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 56px;
  align-items: start;
}
.err-col h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--navy);
}
.err-links { list-style: none; }
.err-links li { border-bottom: 1px solid var(--gray-light); }
.err-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--ink);
  transition: color 0.25s, padding-left 0.25s;
}
.err-links a::after { content: "\2192"; color: var(--red); font-size: 0.85rem; opacity: 0; transition: opacity 0.25s; }
.err-links a:hover { color: var(--red); padding-left: 6px; }
.err-links a:hover::after { opacity: 1; }

.err-card {
  background: var(--navy);
  color: #fff;
  padding: 30px 28px 28px;
  position: relative;
}
.err-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--logo-red), var(--logo-blue));
}
.err-card .l {
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #F09AA6;
}
.err-card .ph {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: #fff;
  margin: 8px 0 6px;
  line-height: 1.1;
}
.err-card .ph:hover { color: #F3A9B3; }
.err-card .hrs { font-size: 0.84rem; color: #93A3B8; line-height: 1.6; }
.err-card p { font-size: 0.84rem; color: #93A3B8; margin-top: 14px; line-height: 1.6; }
.err-card .btn { margin-top: 20px; width: 100%; text-align: center; padding: 12px 20px; }

@media (max-width: 1000px) {
  .err-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .err-card { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .err-grid { grid-template-columns: 1fr; }
  .err-inner { padding: 46px 24px 48px; }
}

/* ============================================================
   SERVICE AREA PAGES
   ============================================================ */
.area-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 26px 0 34px;
}
.area-card {
  border: 1px solid var(--gray-light);
  border-left: 3px solid var(--green);
  padding: 16px 18px 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 35, 63, 0.10); }
.area-card b {
  display: block;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}
.area-card span { display: block; font-size: 0.88rem; color: var(--gray); margin-top: 4px; line-height: 1.5; }

.area-body h2 { font-size: 1.75rem; margin: 44px 0 14px; scroll-margin-top: 120px; }
.area-body h2:first-child { margin-top: 0; }
.area-body h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.area-body p { color: #2B2E33; margin-bottom: 16px; line-height: 1.75; }
.area-body > p:first-of-type { font-size: 1.12rem; color: var(--gray); }
.area-body a:not(.area-card):not(.btn) {
  color: var(--navy);
  border-bottom: 1px solid rgba(178, 34, 52, 0.45);
}
.area-body a:not(.area-card):not(.btn):hover { color: var(--red); border-bottom-color: var(--red); }
.area-body ul { list-style: none; margin: 0 0 20px; }
.area-body ul > li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.area-body ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 1px;
  background: var(--red);
}

/* Sidebar */
.area-rail { position: sticky; top: 118px; display: flex; flex-direction: column; gap: 26px; }
.area-rail .rail-box h4 { color: var(--navy); }
.area-nearby { list-style: none; }
.area-nearby li { border-bottom: 1px solid var(--gray-light); }
.area-nearby li:last-child { border-bottom: none; }
.area-nearby a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.25s, padding-left 0.25s;
}
.area-nearby a::after { content: "\2192"; color: var(--red); font-size: 0.8rem; opacity: 0; transition: opacity 0.25s; }
.area-nearby a:hover { color: var(--red); padding-left: 5px; }
.area-nearby a:hover::after { opacity: 1; }

.area-office { font-size: 0.92rem; line-height: 1.7; color: #C4CEDB; }
.area-office strong { color: #fff; font-weight: 400; }

/* Areas We Serve hub tiles become links */

@media (max-width: 1080px) {
  .area-rail { position: static; }
}
@media (max-width: 620px) {
  .area-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; flex-wrap: wrap; margin-bottom: 34px; }
.reviews-head h2 { margin-bottom: 6px; }
.reviews-rating { text-align: right; }
.reviews-rating .stars { color: #E8A33D; font-size: 1.15rem; letter-spacing: 0.14em; }
.reviews-rating .src { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-top: 6px; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.review {
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--red);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16, 35, 63, 0.09); }
.review .stars { color: #E8A33D; font-size: 0.95rem; letter-spacing: 0.12em; margin-bottom: 14px; }
.review blockquote {
  font-size: 0.96rem;
  line-height: 1.72;
  color: #2B2E33;
  margin: 0 0 20px;
  border: none;
  padding: 0;
  font-family: var(--sans);
  font-weight: 300;
}
.review .who {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.review .avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}
.review .who .n { font-size: 0.95rem; color: var(--ink); }
.review .who .n a { color: var(--ink); border-bottom: 1px solid transparent; }
.review .who .n a:hover { color: var(--red); border-bottom-color: var(--red); }
.review .who .m { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); margin-top: 2px; }

@media (max-width: 1000px) { .reviews-grid { grid-template-columns: 1fr; } }
.area-note {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
  font-size: 0.88rem;
  color: var(--gray);
}

.reviews-more { margin-top: 34px; text-align: center; }
.reviews-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--red);
  padding-bottom: 8px;
  transition: color 0.25s, gap 0.25s;
}
.reviews-more a::after { content: "\2192"; font-size: 0.9rem; color: var(--red); }
.reviews-more a:hover { color: var(--red); gap: 16px; }

/* ---------- Homepage insights strip ---------- */
.home-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.home-post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gray-light);
  padding: 32px 30px 28px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.home-post::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  height: 3px;
  width: 54px;
  background: var(--navy);
  transition: width 0.45s ease, background 0.35s ease;
}
.home-post:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(16, 35, 63, 0.14); border-color: #DCE0E6; }
.home-post:hover::before { width: calc(100% + 2px); background: var(--red); }
.home-post .cat {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}
.home-post h3 { font-size: 1.34rem; line-height: 1.28; margin: 14px 0 12px; }
.home-post p { font-size: 0.95rem; color: var(--gray); margin-bottom: 22px; }
.home-post .m {
  margin-top: auto;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A8D93;
}
.home-post .m::after {
  content: "\00a0\00a0\2022\00a0\00a0Read \203A";
  color: var(--navy);
  transition: color 0.25s;
}
.home-post:hover .m::after { color: var(--red); }
.home-posts-more { margin-top: 44px; }
@media (max-width: 900px) {
  .home-posts { grid-template-columns: 1fr; gap: 24px; }
}

/* Required-field marker on the contact form */
.field .req { color: var(--red); font-weight: 500; }
.form-note { font-size: 0.82rem; color: var(--gray); margin-top: 18px; }
.form-note .req { color: var(--red); }
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: var(--red); }

/* Honeypot, hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Contact form messages */
.form-error {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--red);
  border-left: 2px solid var(--red);
  padding-left: 14px;
}
.form-error a { color: var(--red); border-bottom: 1px solid rgba(178, 34, 52, 0.45); }
.form-success {
  position: relative;
  background: linear-gradient(150deg, #16305A, var(--navy));
  color: #fff;
  padding: 44px 42px 40px;
  overflow: hidden;
}
.form-success::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -14%;
  width: 46%;
  background: linear-gradient(120deg, transparent 0 42%, rgba(255, 255, 255, 0.05) 42% 100%);
  transform: skewX(-11deg);
  pointer-events: none;
}
.form-success .fs-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--green);
  background: rgba(30, 107, 79, 0.22);
  color: #7FD9B4;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.form-success h3 { color: #fff; font-size: 1.6rem; margin-bottom: 12px; }
.form-success p { color: #C4CEDB; font-size: 0.98rem; margin-bottom: 12px; }
.form-success a { color: #fff; border-bottom: 1px solid var(--green); }
.form-success a:hover { color: #F3A9B3; }
.form-success .fs-note {
  margin: 18px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #93A3B8;
}

/* ---------- Hero case evaluation form ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hero-form {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 3px solid var(--red);
  padding: 20px 22px 18px;
  width: 366px;
  max-width: 100%;
  backdrop-filter: blur(4px);
  animation: heroUp 0.8s 0.18s ease both;
}
.hf-title {
  font-size: 1.36rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 11px;
}
.hero-form form { display: flex; flex-direction: column; gap: 8px; }
.hero-form input[type="text"],
.hero-form input[type="tel"],
.hero-form input[type="email"],
.hero-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 300;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 11px 13px;
  transition: border-color 0.25s, background 0.25s;
}
.hero-form textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
.hero-form ::placeholder { color: #9FB0C4; opacity: 1; }
.hero-form input:focus,
.hero-form textarea:focus {
  outline: none;
  border-color: #F3A9B3;
  background: rgba(255, 255, 255, 0.12);
}
.hero-form .btn {
  margin-top: 3px;
  width: 100%;
  padding: 13px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  box-shadow: 0 10px 26px rgba(178, 34, 52, 0.3);
}
.hero-form .btn:disabled { opacity: 0.65; cursor: default; }
.hf-fine {
  margin-top: 12px;
  font-size: 0.7rem;
  line-height: 1.55;
  color: #8D9DB2;
}
.hf-fine span { color: var(--red); }
.hf-fine a { color: #B9C7D8; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.hf-fine a:hover { color: #fff; }
.hf-error {
  font-size: 0.82rem;
  color: #F3A9B3;
  border-left: 2px solid var(--red);
  padding-left: 10px;
}
.hf-error a { color: #fff; border-bottom: 1px solid var(--red); }
.hf-success { text-align: center; padding: 10px 0 6px; }
.hf-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--green);
  background: rgba(30, 107, 79, 0.24);
  color: #7FD9B4;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.hf-success h3 { color: #fff; font-size: 1.24rem; margin-bottom: 8px; }
.hf-success p { color: #BDC8D6; font-size: 0.9rem; }
.hf-success a { color: #fff; border-bottom: 1px solid var(--red); }

@media (max-width: 980px) {
  .hero-form { width: 100%; }
}

/* Practice area heroes: copy on the left, case evaluation form on the right */
.page-hero.with-form { padding: 56px 0 58px; }
.page-hero .ph-layout {
  display: grid;
  grid-template-columns: 1fr 366px;
  gap: 52px;
  align-items: center;
}
.page-hero .ph-copy p { max-width: 100%; }
.page-hero .hero-form { animation: none; }
@media (max-width: 980px) {
  .page-hero .ph-layout { grid-template-columns: 1fr; gap: 34px; }
}

/* Form typography inside the page hero, which sets its own p rules */
.page-hero .hf-fine { font-size: 0.7rem; line-height: 1.55; color: #8D9DB2; margin-top: 12px; max-width: 100%; }
.page-hero .hf-error { font-size: 0.82rem; color: #F3A9B3; margin-top: 0; }
.page-hero .hf-success p { font-size: 0.9rem; color: #BDC8D6; margin-top: 0; }
.page-hero .hf-title { color: #fff; margin-bottom: 14px; }

/* ---------- Scroll reveal ----------
   Only armed once JS adds .js-reveal to <html>, so with JS off or motion
   reduced the content is simply visible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* Compact hero form, used on the practice area pages where the hero
   otherwise grows taller than its copy warrants */
.hero-form.compact { padding: 20px 20px 18px; }
.hero-form.compact .hf-title { font-size: 1.24rem; margin-bottom: 11px; }
.hero-form.compact form { gap: 7px; }
.hero-form.compact .hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.hero-form.compact input[type="text"],
.hero-form.compact input[type="tel"],
.hero-form.compact input[type="email"],
.hero-form.compact textarea { padding: 9px 11px; font-size: 0.88rem; }
.hero-form.compact textarea { min-height: 54px; }
.hero-form.compact .btn { padding: 11px 16px; font-size: 0.74rem; }
.page-hero .hero-form.compact .hf-fine { margin-top: 9px; font-size: 0.67rem; }

/* Google rating badge in the reviews header */
.reviews-badge { width: 230px; height: auto; flex-shrink: 0; }
@media (max-width: 720px) { .reviews-badge { width: 190px; } }

/* Headings that must hold one line on desktop */
h2.nowrap { white-space: nowrap; }
@media (max-width: 780px) { h2.nowrap { white-space: normal; } }

/* Why JHP copy on the practice areas page */
.why-copy { color: var(--gray); margin-bottom: 20px; max-width: 100%; }
.why-copy:last-of-type { margin-bottom: 0; }
.why-copy a {
  color: var(--navy);
  font-weight: 400;
  border-bottom: 1px solid rgba(178, 34, 52, 0.45);
  transition: color 0.25s, border-color 0.25s;
}
.why-copy a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Links inside FAQ answers */
.faq-item .answer a {
  color: var(--navy);
  font-weight: 400;
  border-bottom: 1px solid rgba(178, 34, 52, 0.45);
  transition: color 0.25s, border-color 0.25s;
}
.faq-item .answer a:hover { color: var(--red); border-bottom-color: var(--red); }

/* Photo behind a hero that also carries the evaluation form: darken across
   the full width so both the copy and the form panel stay readable */
.page-hero.with-form .ph-img { opacity: 0.46; background-position: center 52%; }
.page-hero.with-form .ph-img::after {
  background:
    linear-gradient(90deg, rgba(8, 20, 40, 0.95) 0%, rgba(8, 20, 40, 0.74) 42%, rgba(8, 20, 40, 0.86) 100%),
    linear-gradient(180deg, rgba(8, 20, 40, 0.3) 0%, transparent 40%);
}
.page-hero.with-form .wrap { position: relative; z-index: 1; }

/* Practice areas hero lede, held to two lines */
.page-hero .lede-wide { max-width: 100%; }

/* ---------- Practice card hover: swap the copy for the photo ----------
   Only cards carrying .has-img do this; the rest keep the plain lift. */
.practice-card .card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  transform: scale(1.05);
  transition: opacity 0.45s ease, transform 0.7s ease;
  pointer-events: none;
}
.practice-card .card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 40, 0.58) 0%, rgba(8, 20, 40, 0.82) 100%);
  transition: background 0.45s ease;
}
.practice-card.has-img:hover .card-img { opacity: 1; transform: scale(1); }
/* on hover the navy wash cools to near black so the photo reads sharper */
.practice-card.has-img:hover .card-img::after {
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.55) 0%, rgba(4, 8, 14, 0.82) 100%);
}

/* everything inside the card sits above the photo */
.practice-card h3,
.practice-card p,
.practice-card .card-link { position: relative; z-index: 1; }
.practice-card .num { z-index: 1; }

/* the number and the body copy step aside on hover */
.practice-card.has-img .num,
.practice-card.has-img p {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.practice-card.has-img:hover .num { opacity: 0; transform: translateY(-8px); }
.practice-card.has-img:hover p { opacity: 0; transform: translateY(6px); }

/* no hover state on touch, where there is nothing to hover with */
@media (hover: none) {
  .practice-card.has-img:hover .card-img { opacity: 0.3; transform: scale(1.05); }
  .practice-card.has-img:hover .num,
  .practice-card.has-img:hover p { opacity: 1; transform: none; }
}

/* Numbered steps inside the navy panel */
.panel .steps { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 20px; }
.panel .steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; }
.panel .steps .s-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 2px solid var(--red);
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
}
.panel .steps .s-t { color: #C4CEDB; font-size: 0.96rem; line-height: 1.6; }
.panel .steps .s-t b { color: #fff; font-weight: 500; }

/* ---------- Office panel (homepage "Why JHP" section) ---------- */
.panel.office { padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
/* Full width map band below the Why Choose section */
.office-map-band { line-height: 0; border-top: 1px solid rgba(16, 35, 63, 0.1); }
.office-map {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(1.05);
}
@media (max-width: 700px) { .office-map { height: 280px; } }
.office-body { padding: 38px 44px 34px; flex: none; }
.office-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #E8B4BB;
  margin-bottom: 14px;
}
.office-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.panel.office h3 {
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.46rem;
  line-height: 1.3;
  margin-bottom: 24px;
}
/* The address runs as a single line, so it is sized to the panel width. */
.panel.office h3.office-addr { font-size: 1.1rem; letter-spacing: 0.005em; white-space: nowrap; }
@media (max-width: 1040px) { .panel.office h3.office-addr { font-size: 1rem; white-space: normal; } }
.office-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 0 0 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.office-meta dt {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8D9DB2;
  margin-bottom: 7px;
}
.office-meta dd { margin: 0; color: #C4CEDB; font-size: 0.94rem; line-height: 1.55; }
.office-meta dd a { color: #fff; font-size: 1.12rem; transition: color 0.25s; }
.office-meta dd a:hover { color: #F3A9B3; }
@media (max-width: 620px) {
  .office-body { padding: 28px 26px 32px; }
  .office-meta { grid-template-columns: 1fr; gap: 16px; }
}
.panel.office::after { display: none; }

/* One thin red rule closing the hero */
.rule-red { height: 5px; background: var(--red); }

/* ---------- Cases we handle (practice area detail pages) ---------- */
.case-list { display: grid; gap: 30px; margin: 30px 0 44px; }
.case {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gray-light);
  scroll-margin-top: 120px;
}
.case:last-child { border-bottom: none; padding-bottom: 0; }
/* Case blocks on pages that have no photography yet. */
.case--text { grid-template-columns: minmax(0, 1fr); }
.case-media { position: relative; }
.case-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--navy);
  background-image: linear-gradient(150deg, #16305A, var(--navy));
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(16, 35, 63, 0.14);
}
.case-media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 54px;
  height: 3px;
  background: var(--red);
}
.case-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 9px;
}
.case-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.34rem;
  line-height: 1.25;
  margin-bottom: 12px;
}
.case-body p { color: var(--gray); margin-bottom: 14px; font-size: 1rem; line-height: 1.72; }
/* Links sitting inside a paragraph are underlined, so they are identifiable
   without relying on the colour difference alone (WCAG 1.4.1). */
.pa-content p a,
.case-body p a,
.faq-list .answer a,
.why-meta p a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(16, 35, 63, 0.45);
}
.pa-content p a:hover,
.case-body p a:hover,
.faq-list .answer a:hover,
.why-meta p a:hover { text-decoration-color: currentColor; }
.case-links {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.case-links li { margin: 0; padding: 0; }
.case-links li::before { content: none; }
.case-links a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  border-bottom: 1px solid rgba(178, 34, 52, 0.45);
  transition: color 0.25s, border-color 0.25s;
}
.case-links a::after { content: " \203A"; }
.case-links a:hover { color: var(--red); border-bottom-color: var(--red); }
@media (max-width: 720px) {
  .case { grid-template-columns: 1fr; gap: 18px; }
  .case-img { aspect-ratio: 16 / 9; }
}

/* ---------- Jump list above the case sections ---------- */
.case-jump {
  margin: 26px 0 40px;
  padding: 26px 30px 28px;
  background: var(--off);
  border: 1px solid var(--gray-light);
  border-top: 3px solid var(--green);
}
.case-jump .cj-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #636E7D;
  margin-bottom: 16px;
}
.case-jump ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 40px;
}
.case-jump li {
  margin: 0;
  padding: 0;
  border-top: 1px solid #E3E6EA;
}
.case-jump li:first-child,
.case-jump li:nth-child(2) { border-top: none; }
.case-jump li::before { content: none; }
.case-jump a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--navy);
  border-bottom: none;
  transition: color 0.25s, padding-left 0.25s;
}
.case-jump a::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--green);
  transform: translateY(-2px);
}
.case-jump a::after {
  content: "\203A";
  margin-left: auto;
  color: #B6BECA;
  transition: color 0.25s, transform 0.25s;
}
.case-jump a:hover { color: var(--green); padding-left: 5px; }
.case-jump a:hover::after { color: var(--green); transform: translateX(3px); }
@media (max-width: 700px) {
  .case-jump ul { grid-template-columns: 1fr; }
  .case-jump li:nth-child(2) { border-top: 1px solid #E3E6EA; }
}

/* case block with no photo */
.case-flat { grid-template-columns: 1fr; padding-left: 22px; border-left: 2px solid var(--gray-light); }
.case-flat:hover { border-left-color: var(--red); }
.case-flat { transition: border-color 0.3s ease; }

/* ---------- Other practice areas, bottom of each detail page ---------- */
.opa { background: var(--off); }
.opa-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.opa-card {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-light);
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.opa-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 44px rgba(16, 35, 63, 0.16);
  border-color: #DCE0E6;
}
.opa-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.opa-card:hover .opa-img { transform: scale(1.05); }
.opa-body { display: block; padding: 20px 20px 22px; }
.opa-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 8px;
}
.opa-desc { display: block; font-size: 0.86rem; line-height: 1.55; color: var(--gray); margin-bottom: 14px; }
.opa-more {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--green);
  padding-bottom: 3px;
  width: fit-content;
  transition: color 0.25s;
}
.opa-card:hover .opa-more { color: var(--green); }
.opa-more-link { margin-top: 38px; text-align: center; }
/* Seven practice areas means six "other" cards, which sit evenly 3 by 2. */
.opa-grid--six { grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
@media (max-width: 1080px) { .opa-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .opa-grid--six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .opa-grid--six { grid-template-columns: 1fr; } }
@media (max-width: 700px)  { .opa-grid { grid-template-columns: 1fr; } }

/* Practice area detail pages with no sidebar */
/* Practice area detail pages with no sidebar: use the full page width */
.pa-layout.pa-solo { grid-template-columns: minmax(0, 1fr); gap: 0; }
.pa-solo .pa-content > p,
.pa-solo .case-body { max-width: 100%; }
.pa-solo .pa-content > p { line-height: 1.85; }
.pa-solo .case-body p { line-height: 1.8; }

/* Lede under the Why Choose heading */
.why-lede { color: var(--gray); font-size: 1.04rem; line-height: 1.75; margin: 18px 0 26px; }

.split h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.25; }

/* Office hours list in the navy panel */
.office-hours {
  margin: 0 0 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.office-hours > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.office-hours > div:last-child { border-bottom: none; }
.office-hours dt { font-size: 0.92rem; color: #C4CEDB; }
.office-hours dd {
  margin: 0 0 0 auto;
  font-size: 0.92rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.office-hours .closed dt,
.office-hours .closed dd { color: #7E8DA0; }
.office-phone {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.office-phone .op-l {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8D9DB2;
}
.office-phone a {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.24rem;
  color: #fff;
  transition: color 0.25s;
}
.office-phone a:hover { color: #F3A9B3; }

/* FAQ on the practice area pages: full width, the 820px cap is for faq.html */
.pa-solo .faq-list { max-width: 100%; margin: 0; }

/* ---------- Blog images ---------- */
.bc-img {
  display: block;
  width: calc(100% + 2px);
  margin: -1px -1px 18px;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  transition: transform 0.6s ease;
}
.blog-card { overflow: hidden; }
.blog-card:hover .bc-img { transform: scale(1.04); }
.post-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 30px;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.25s, visibility 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); border-color: var(--red); }
.to-top:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 700px) { .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity 0.2s ease, visibility 0.2s; } }

/* ---------- Mobile top bar: phone and address on one row ---------- */
/* Both numbers need their labels to stay distinguishable, so the address
   steps aside before the bar would wrap. */
@media (max-width: 860px) {
  .top-bar .langs { display: none; }
  .top-bar-inner { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .top-bar-inner { flex-wrap: nowrap; gap: 10px; font-size: 0.68rem; padding: 7px 16px; }
  .tb-contact { gap: 7px; }
}

/* ---------- Mobile pass ---------- */

/* Honeypot must never take layout width, even inside .hero-form */
.hp,
.hero-form input.hp,
form input.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  overflow: hidden;
}

/* Decorative slash on 404 must not push the viewport */
.err { overflow: hidden; }

@media (max-width: 640px) {
  /* Stacked, equal-width calls to action instead of ragged pill widths */
  .hero-actions,
  .err-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn,
  .err-actions .btn { width: 100%; text-align: center; padding: 15px 20px; }

  /* The compact hero form: one field per row at phone width */
  .hero-form.compact .hf-row { grid-template-columns: 1fr; gap: 8px; }

  /* Attorney photo frame: pull the offset outline inside the gutter */
  .row-photo::before,
  .team-row.reverse .row-photo::before { inset: -10px 10px 10px -10px; }
  .row-bio .role { display: block; }
  .row-bio .role::after { display: none; }

  /* Comfortable tap targets on the stacked link lists */
  .case-jump a,
  .toc a,
  .footer-main ul a,
  .main-nav a { display: block; padding-top: 4px; padding-bottom: 4px; }
}

/* ---------- Reserve the injected header's height so it does not shift the page ----------
   shared.js writes the header into #site-header after parse. Without a reserved
   box the whole page moves down on arrival, which cost 0.109 CLS. The values are
   the rendered header heights measured at each breakpoint. */
#site-header { min-height: 134px; }
#site-footer { min-height: 520px; }
@media (max-width: 900px) { #site-header { min-height: 141px; } }
@media (max-width: 700px) { #site-header { min-height: 120px; } #site-footer { min-height: 700px; } }
@media (max-width: 640px) { #site-header { min-height: 116px; } }

/* ---------- Thumbnails on the homepage blog cards ---------- */
.home-post { overflow: hidden; }
.home-post::before { z-index: 2; }
.hp-img {
  display: block;
  width: calc(100% + 62px);
  margin: -33px -31px 24px;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  transition: transform 0.6s ease;
}
.home-post:hover .hp-img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .hp-img { transition: none; } }

/* ---------- Monogram tile: stands in for a portrait until a photo exists.
   Same box as .htc-photo img so a real photo drops in without layout change. */
.mono {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #15305A 0%, var(--navy) 48%, #0A1830 100%);
  color: #fff;
  font-family: var(--display);
  font-weight: 300;
  font-size: 3.4rem;
  letter-spacing: 0.08em;
  line-height: 1;
  user-select: none;
}

/* ---------- Team grid ----------
   Portrait frame with the name plated over a dark gradient, matching the
   homepage team cards. A monogram tile stands in until a real photo exists,
   in exactly the same box, so photos drop in with no layout change. */
.tm-group + .tm-group { margin-top: 70px; }
.tm-head {
  font-size: clamp(1.9rem, 2.8vw, 2.3rem);
  margin: 0 0 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-light);
}
.tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 34px; align-items: stretch; }

.tm-card { transition: transform 0.35s ease; }
.tm-card:hover .tm-mail { border-color: #CFD8D4; }
.tm-card:hover { transform: translateY(-6px); }

.tm-shot { position: relative; overflow: hidden; background: var(--navy); }
.tm-shot img,
.tm-shot .mono {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  transition: transform 0.5s ease;
}
.tm-shot img { display: block; object-fit: cover; object-position: center top; }
/* The monogram keeps flex centring, so display:block must not leak in here */
.tm-shot .mono {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  padding-bottom: 54px;      /* clear of the name plate */
}
.tm-card:hover .tm-shot img { transform: scale(1.04); }
.tm-shot img, .tm-shot .mono { position: relative; z-index: 1; }

/* Readability scrim under the plate */
.tm-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 20, 40, 0.92) 0%, rgba(8, 20, 40, 0.45) 36%, transparent 64%);
}
/* Inset hairline that tightens to red on hover */
.tm-shot::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 6;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
  transition: inset 0.4s ease, border-color 0.4s ease;
}
.tm-card:hover .tm-shot::after { inset: 8px; border-color: var(--red); }

.tm-plate { position: absolute; z-index: 4; left: 26px; right: 26px; bottom: 24px; }
.tm-plate h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.14rem;
  line-height: 1.24;
  color: #fff;
  margin: 0 0 6px;
}
.tm-plate .role {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D6DEE9;
  line-height: 1.5;
}
.tm-plate .rule {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--red);
  margin-top: 14px;
  transition: width 0.4s ease, background 0.4s ease;
}
.tm-card:hover .tm-plate .rule { width: 56px; background: var(--green); }

@media (max-width: 900px) { .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
@media (max-width: 560px) {
  .tm-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .tm-shot { max-width: 360px; }
  .tm-plate { left: 22px; right: 22px; bottom: 20px; }
}

/* Attorneys: two per row. The cards are much wider here than in the staff
   grid, so the portrait squares off instead of running 4:5 and towering. */
.tm-grid--attys { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.tm-grid--attys .tm-shot { aspect-ratio: 1 / 1; }
.tm-grid--attys .tm-shot img { object-position: 50% 20%; }
/* The attorney panels are much wider than the staff ones, so the bio can
   carry a larger size without the line length getting unwieldy. */
.tm-grid--attys .tm-reveal p { font-size: 0.9rem; line-height: 1.64; margin-bottom: 13px; }
.tm-grid--attys .tm-reveal-name { font-size: 1.1rem; }
@media (max-width: 1140px) { .tm-grid--attys { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; } }

/* Paralegals & staff: five across on the same wider block. */
.tm-grid--staff { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 34px 24px; }
@media (max-width: 1280px) { .tm-grid--staff { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; } }
@media (max-width: 900px) { .tm-grid--staff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
@media (max-width: 560px) { .tm-grid--staff { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 360px; margin-inline: auto; } }
@media (max-width: 560px) {
  .tm-grid--attys { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 360px; margin-inline: auto; }
  .tm-grid--attys .tm-shot { aspect-ratio: 4 / 5; }
}

/* Monogram inside the homepage team card, sized like the portrait it replaces */
.htc-photo .mono { aspect-ratio: auto; width: 100%; height: 100%; font-size: 4rem; }
.home-team-card:hover .htc-photo .mono { transform: none; }
@media (max-width: 760px) { .htc-photo .mono { font-size: 3rem; } }

/* ---------- Inside the firm: candid office photography ---------- */
.firm-photos { padding: 0 0 96px; }
.fp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.fp-shot {
  position: relative;
  overflow: hidden;
  background: var(--off);
}
.fp-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.fp-shot:hover img { transform: scale(1.03); }
.fp-shot::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: inset 0.4s ease, border-color 0.4s ease;
}
.fp-shot:hover::after { inset: 8px; border-color: var(--green); }
.contact-photo { margin: 34px 0 0; }
@media (max-width: 760px) {
  .firm-photos { padding: 0 0 64px; }
  .fp-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}


/* The team roster follows a page hero that already carries 72px of bottom
   padding, so the default 96px on top stacked into a large empty band. */
section.team-sec { padding: 52px 0 84px; }
.team-sec .tm-group + .tm-group { margin-top: 58px; }
@media (max-width: 960px) { section.team-sec { padding: 40px 0 64px; } }

/* Email sits under the portrait, not on the plate, so it stays easy to read
   and to tap without fighting the photo behind it. */
/* Card body under the portrait: bio, then the email pinned to the bottom so
   every card in a row ends on the same line regardless of bio length. */
.tm-card { display: flex; flex-direction: column; }
.tm-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 2px 0;
}
/* .tm-media is the positioning context: the shot sets the height, the panel
   lays over it on desktop and drops below it on touch. */
.tm-media { position: relative; }
.tm-shot { cursor: pointer; }

/* ---------- Bio panel over the portrait ----------
   Revealed on hover, and on keyboard focus so it is not mouse-only.
   Long bios scroll inside the panel rather than being cut off. */
.tm-reveal {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  background: linear-gradient(165deg, rgba(8, 20, 40, 0.97), rgba(5, 14, 28, 0.99));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s;
}
.tm-reveal-inner {
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 24px 24px;
  -webkit-overflow-scrolling: touch;
}
.tm-reveal-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  margin: 0 0 4px;
}
.tm-reveal-name::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green);
  margin: 10px 0 14px;
}
.tm-reveal p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #C8D3E0;
  margin: 0 0 11px;
}
.tm-reveal p:last-child { margin-bottom: 0; }
/* Slim scrollbar so a long bio does not look broken */
.tm-reveal-inner::-webkit-scrollbar { width: 5px; }
.tm-reveal-inner::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.26); }
.tm-reveal-inner { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.26) transparent; }

.tm-reveal::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 54px;
  background: linear-gradient(to top, rgba(5, 14, 28, 0.99) 18%, rgba(5, 14, 28, 0));
  pointer-events: none;
}

.tm-media:hover .tm-reveal,
.tm-media:focus-within .tm-reveal { opacity: 1; visibility: visible; }
.tm-shot:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
/* The plate sits under the panel, so fade it out while the bio is up */
.tm-media:hover .tm-plate,
.tm-media:focus-within .tm-plate { opacity: 0; }
.tm-plate { transition: opacity 0.28s ease; }

/* Touch devices have no hover, so the bio would be unreachable.
   There it renders as ordinary content under the portrait instead. */
@media (hover: none), (pointer: coarse) {
  .tm-reveal {
    position: static;
    opacity: 1;
    visibility: visible;
    background: none;
    display: block;
  }
  .tm-reveal::after { display: none; }
  .tm-reveal-inner { overflow: visible; padding: 16px 2px 0; }
  .tm-reveal-name { display: none; }
  .tm-reveal p { color: var(--gray); font-size: 0.9rem; line-height: 1.62; }
  .tm-shot { cursor: default; }
  .tm-media:hover .tm-plate { opacity: 1; }
  .tm-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-reveal, .tm-plate { transition: none; }
}
.tm-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 9px 12px;
  background: var(--off);
  border: 1px solid var(--gray-light);
  font-size: 0.82rem;
  color: var(--navy);
  line-height: 1.3;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.tm-mail-ico { flex: none; width: 16px; height: 13px; color: var(--green); transition: color 0.25s; }
.tm-mail-txt { word-break: break-word; }
.tm-mail:hover {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green-deep);
}
.tm-mail:hover .tm-mail-ico { color: var(--green-deep); }
.tm-mail:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* "Call" / "Text" prefixes in the footer contact column */
.site-footer .ft-l { color: #7C8DA1; }
