/* ==========================================================================
   Law firms page — implemented from law-firms.dc.html
   Loaded after base.css and page.css.
   ========================================================================== */

/* --- Hero --------------------------------------------------------------- */
.lf-hero {
  padding: clamp(56px, 9vw, 130px) var(--pad-x) clamp(40px, 5vw, 72px);
}
.lf-hero .band__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 8%, rgba(201, 162, 77, .14), rgba(7, 20, 17, 0) 58%);
}
.lf-hero__mark {
  right: -170px;
  top: 46%;
  width: 580px;
  transform: translateY(-50%);
  opacity: .07;
}
.lf-hero__title {
  max-width: 18ch;
  margin-top: clamp(24px, 3vw, 40px);
}

/* --- Problem ------------------------------------------------------------ */
.lf-problem__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.lf-problem__head .h-sm { max-width: 20ch; }

.lf-problem__list {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(30px, 3.6vw, 46px);
}
.lf-problem__pull { max-width: 58ch; }

/* --- Trust accounting --------------------------------------------------- */
.lf-trust__label { margin-bottom: clamp(26px, 3.2vw, 44px); }

.lf-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(30px, 4vw, 70px);
  align-items: start;
}
.lf-trust__p { margin: clamp(20px, 2.4vw, 30px) 0 0; }
.lf-trust__list {
  list-style: none;
  padding: 0;
  margin: clamp(28px, 3.2vw, 40px) 0 0;
}
.lf-trust__list .numbered__item { border-top-color: rgba(201, 162, 77, .35); }
.lf-trust__list strong { color: var(--cream); font-weight: 600; }
.lf-trust__payoff { margin-top: clamp(26px, 3vw, 38px); max-width: 42ch; }

/* Reconciliation summary panel */
.recon { margin: 0; }
.recon__panel {
  border: 1px solid rgba(232, 236, 231, .16);
  border-radius: 6px;
  background: rgba(6, 12, 18, .55);
  padding: clamp(20px, 2.4vw, 30px);
}
.recon__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(244, 241, 234, .55);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(232, 236, 231, .12);
}
.recon__badge {
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 10px;
}

.recon__table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 0;
  font-size: 14px;
}
.recon__table th,
.recon__table td {
  text-align: left;
  padding: 11px 0;
  color: rgba(244, 241, 234, .84);
}
.recon__table td:last-child,
.recon__table th:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.recon__table thead th {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(244, 241, 234, .42);
  padding-bottom: 8px;
}
.recon__table tbody tr + tr td { border-top: 1px solid rgba(232, 236, 231, .08); }
.recon__table tbody em {
  font-style: normal;
  color: rgba(244, 241, 234, .45);
  font-size: 12.5px;
}
.recon__table tfoot th,
.recon__table tfoot td {
  border-top: 1px solid rgba(201, 162, 77, .45);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--gold-light);
  padding-top: 14px;
}

.recon__exceptions { margin-top: 22px; }
.recon__head--sub {
  border-bottom: none;
  padding-bottom: 12px;
  color: rgba(244, 241, 234, .5);
}
.recon__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 4px;
  background: rgba(201, 162, 77, .08);
  border-left: 2px solid rgba(201, 162, 77, .6);
  font-size: 13.5px;
  color: rgba(244, 241, 234, .84);
}
.recon__row em {
  font-style: normal;
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(244, 241, 234, .45);
}
.recon__row span:last-child {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.recon__note {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: rgba(244, 241, 234, .38);
}

/* --- Technology --------------------------------------------------------- */
.lf-tech__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 22%, rgba(201, 162, 77, .1), rgba(7, 20, 17, 0) 55%);
}
.lf-tech__title {
  max-width: 20ch;
  margin: clamp(24px, 3vw, 38px) 0 clamp(28px, 3.4vw, 44px);
}
.lf-tech__copy { margin-bottom: clamp(34px, 4vw, 56px); }

/* --- Dashboard gallery -------------------------------------------------- */
.lf-gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 50px);
}
.lf-gallery__title { margin-top: clamp(18px, 2.4vw, 30px); max-width: 22ch; }
.lf-gallery__note { max-width: 40ch; text-align: right; }

.shot { margin: 0; }

/* Each deliverable is a 16:10 SVG, so it drops straight into the box with no
   cropping. Light frame + inset shadow so it reads as a document on the dark
   band rather than floating. */
.shot__img {
  display: block;
  width: 100%;
  height: auto;          /* without this the height="1000" attribute wins
                            and aspect-ratio is ignored */
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(232, 236, 231, .18);
  border-radius: 5px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

/* Full-size view: the workbooks are dense, so the thumbnail is a doorway. */
.shot__link {
  position: relative;
  display: block;
  border-radius: 5px;
  overflow: hidden;
}
.shot__link:hover .shot__img { border-color: rgba(201, 162, 77, .65); }

.shot__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(7, 20, 17, .88);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.shot__link:hover .shot__zoom,
.shot__link:focus-visible .shot__zoom {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .shot__zoom { transition: none; }
}

.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
}
.shot figcaption h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.025em;
  color: var(--cream);
}
.shot figcaption span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(201, 162, 77, .85);
}

.lf-gallery__flag { margin: clamp(28px, 3.4vw, 42px) 0 0; }

/* --- Mid-page booking --------------------------------------------------- */
.lf-bookmid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
}
.lf-bookmid__title { margin: 18px 0 20px; max-width: 18ch; }

/* --- Packages ----------------------------------------------------------- */
.lf-packages__title {
  margin: clamp(18px, 2.4vw, 30px) 0 clamp(34px, 4vw, 56px);
  max-width: 22ch;
}

.tier {
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(232, 236, 231, .14);
  border-radius: 6px;
  padding: clamp(26px, 3vw, 40px);
}
.tier--flagship {
  border-color: rgba(201, 162, 77, .55);
  background: linear-gradient(180deg, rgba(201, 162, 77, .1), rgba(201, 162, 77, .02));
}
.tier__flag {
  position: absolute;
  top: clamp(26px, 3vw, 40px);
  right: clamp(26px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 10px;
}
.tier h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--cream);
}
.tier__pitch {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(244, 241, 234, .7);
  text-wrap: pretty;
}
.tier__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.tier__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(244, 241, 234, .82);
  text-wrap: pretty;
}
.tier__list li::before {
  content: "\00b7";
  position: absolute;
  left: 4px;
  color: var(--gold);
}
.tier__cta { margin-top: auto; align-self: stretch; }

.lf-packages__note { display: block; margin-top: clamp(26px, 3vw, 38px); max-width: 56ch; }

/* --- Testimonials ------------------------------------------------------- */
.lf-quotes__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.lf-quotes__head .h-xs { max-width: 20ch; }

/* --- Final CTA ---------------------------------------------------------- */
.lf-cta {
  padding: clamp(70px, 10vw, 160px) var(--pad-x) clamp(56px, 7vw, 100px);
}
.lf-cta__mark {
  left: -120px;
  bottom: -90px;
  width: 420px;
  opacity: .14;
}
.lf-cta__lead { margin-bottom: clamp(40px, 5vw, 70px); }
.lf-cta__title { max-width: 20ch; color: var(--ink-card); }
.accent-dark { font-style: normal; color: #9a7526; }
.lf-cta__sub {
  margin: 14px 0 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 34px);
  line-height: 1.14;
  letter-spacing: -.035em;
  color: rgba(12, 28, 24, .55);
}
.lf-cta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
  gap: clamp(26px, 3.4vw, 56px);
  margin-bottom: clamp(34px, 4vw, 54px);
}
.lf-cta__eyebrow {
  display: block;
  margin-bottom: 22px;
  letter-spacing: .22em;
  color: rgba(12, 28, 24, .5);
}

@media (max-width: 860px) {
  .lf-gallery__note { text-align: left; }
  .lf-hero__mark { display: none; }
}
