/* Schapiro LLP v9 — home */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--paper);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px));
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
/* The copy block dissolves into the grid so the headline can take the full
   measure while the photo sits beside the supporting copy. */
.hero__copy { display: contents; }
.hero__location { grid-column: 1 / -1; grid-row: 1; margin-bottom: clamp(32px, 3.6vw, 52px); }
.hero__title {
  grid-column: 1 / -1; grid-row: 2;
  font-size: clamp(64px, 10.4vw, 168px);
  line-height: .92;
  letter-spacing: -.03em;
  color: var(--navy);
  white-space: nowrap;
  margin-bottom: clamp(40px, 4.6vw, 72px);
}
.hero__title .period { color: var(--orange); }
.hero__tagline {
  grid-column: 1 / span 6; grid-row: 3;
  max-width: 24ch;
  font: 400 clamp(26px, 2.4vw, 36px)/1.2 var(--serif);
  letter-spacing: -.012em;
  color: var(--navy);
  text-wrap: balance;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}
.hero__position {
  grid-column: 1 / span 5; grid-row: 4;
  margin-top: 28px;
  max-width: 52ch;
  font-size: 18px; line-height: 1.75;
  color: var(--ink-body);
}
.hero__ctas {
  grid-column: 1 / span 6; grid-row: 5;
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(36px, 3.6vw, 52px);
  margin-bottom: clamp(64px, 7vw, 112px);
}
.hero__media {
  grid-column: 8 / -1; grid-row: 3 / span 3;
  aspect-ratio: 4 / 3.3;
  align-self: start;
  margin-bottom: clamp(64px, 7vw, 112px);
}
.hero__media img { object-position: 58% 60%; }

/* Ticker: a ruled band, practices separated by small orange diamonds */
.ticker {
  position: relative;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track {
  display: flex; width: max-content;
  padding-block: 22px;
  animation: ticker 90s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex; align-items: center;
  font: 500 11.5px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}
.ticker__item::after {
  content: ""; width: 5px; height: 5px; margin-inline: clamp(32px, 4vw, 56px);
  background: var(--orange); transform: rotate(45deg);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* Hero entrance (load-time, not scroll) */
html.js .hero .hero__in {
  opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(6px);
  transition: opacity 1.1s var(--ease) var(--d), transform 1.1s var(--ease) var(--d), filter 1.1s var(--ease) var(--d);
}
html.js.ready .hero .hero__in { opacity: 1; transform: none; filter: none; }
html.js .hero__title .period .w__i { transform: translate3d(0, -120%, 0); }
html.js.ready .hero__title.is-in .period .w__i { transition-duration: 1.1s; transition-delay: .55s; }
html.still .hero .hero__in { opacity: 1 !important; transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero .hero__in { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 14px; }
}

@media (max-width: 1080px) {
  .hero__tagline, .hero__position, .hero__ctas { grid-column: 1 / -1; }
  .hero__ctas { grid-row: 5; margin-bottom: clamp(48px, 7vw, 72px); }
  .hero__media { grid-column: 1 / -1; grid-row: 6; aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .hero__title { font-size: clamp(50px, 15.6vw, 80px); white-space: normal; }
  .hero__media { aspect-ratio: 4 / 4.2; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
}

/* ---------- Who we represent: ruled ledger ---------- */
.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 5vw, 96px);
  border-top: 1px solid var(--rule-strong);
}
.ledger__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 12px;
  padding: clamp(36px, 3.6vw, 52px) 0 clamp(40px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.ledger__item::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .7s var(--ease);
}
.ledger__item:hover::before { transform: scaleX(1); }
.ledger__item:hover .num { color: var(--orange); }
.ledger__item .num { padding-top: .55em; grid-row: 1 / span 2; }
.ledger__item h3 {
  font-size: clamp(25px, 2.2vw, 32px);
  line-height: 1.12;
  color: var(--navy);
  max-width: 22ch;
}
.ledger__item p {
  grid-column: 2;
  margin-top: 16px;
  color: var(--ink-body);
  font-size: 17.5px; line-height: 1.7;
  max-width: 50ch;
}
@media (max-width: 820px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger__item { grid-template-columns: 44px minmax(0, 1fr); }
}

/* ---------- Practices overview (navy) ---------- */
.practices-overview {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
}
.practices-overview__head {
  grid-column: 1 / span 5;
  align-self: start;
  position: sticky; top: 120px;
  margin-bottom: 0;
}
.practices-overview__head h2 { font-size: clamp(38px, 4.2vw, 64px); }
.practices-overview__body { grid-column: 7 / span 6; }
.practice-index { border-top: 1px solid var(--rule-dark-strong); }
.practice-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: clamp(24px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--rule-dark);
}
.practice-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .9s var(--ease);
}
.practice-row .num { color: var(--dark-muted); }
.practice-row h3 {
  font-size: clamp(28px, 2.9vw, 44px);
  line-height: 1.05;
  color: var(--dark-head);
  transition: transform .8s var(--ease);
}
.practice-row .go {
  justify-self: end;
  font: 400 20px/1 var(--ui);
  color: var(--dark-muted);
  transform: rotate(-45deg);
  transition: transform .8s var(--ease), color .5s var(--ease);
}
.practice-row:hover::after { transform: scaleX(1); }
.practice-row:hover h3 { transform: translateX(12px); }
.practice-row:hover .num, .practice-row:hover .go { color: var(--orange); }
.practice-row:hover .go { transform: none; }
.practices-cta { margin-top: clamp(40px, 4.6vw, 64px); }
@media (max-width: 1080px) {
  .practices-overview__head { grid-column: 1 / -1; position: static; margin-bottom: clamp(48px, 6vw, 72px); }
  .practices-overview__body { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .practice-row { grid-template-columns: 34px minmax(0, 1fr) 22px; }
}

/* ---------- Firm teaser ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.split__copy { grid-column: 1 / span 5; }
.split__copy h2 { font-size: clamp(40px, 5vw, 72px); color: var(--navy); }
.split__copy h2 em { font-style: italic; color: var(--orange); }
.split__copy .body-copy { margin: 32px 0 44px; }
.split__media { grid-column: 7 / span 6; aspect-ratio: 4 / 3.4; }
.split__media img { object-position: 50% 50%; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(80px, 9vw, 136px);
  border-top: 1px solid var(--rule-strong);
}
.stat {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(32px, 3.4vw, 48px) clamp(16px, 2vw, 32px) 0 0;
}
.stat + .stat { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--rule); }
.stat strong {
  font: 400 clamp(48px, 5.6vw, 88px)/.95 var(--serif);
  letter-spacing: -.02em;
  color: var(--navy);
  white-space: nowrap;
}
.stat span {
  font: 600 10.5px/1.6 var(--ui); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 1080px) {
  .split__copy, .split__media { grid-column: 1 / -1; }
  .split__media { margin-top: clamp(48px, 7vw, 72px); aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 28px 0; border-bottom: 1px solid var(--rule); }
  .stat + .stat { padding-left: 0; border-left: 0; }
}

/* ---------- Transactions teaser ---------- */
#recent-transactions .practices-cta { margin-top: 28px; }
