/* Shea Law Team page */
.stm { --ink:#16223f; --soft:#4a5568; --blue:#1653d4; --blue-deep:#123a94; --teal:#11846b; --mint:#7fd8bf; --line:#e2e8f2; --cream:#f2f7fd; --mintbg:#eef5f0;
  font: 16px/1.7 "Nunito", system-ui, sans-serif; color: var(--soft); overflow-x: clip; }
.stm *, .stm *::before, .stm *::after { box-sizing: border-box; }
.stm h1, .stm h2 { font-family: "Aleo", Georgia, serif; font-weight: 400; color: var(--ink); margin: 0; text-transform: none; letter-spacing: 0; }
.stm p { margin: 0; }
.stm i, .stm em { font-style: normal; }
.stm-w { max-width: 1250px; width: calc(100% - 64px); margin: 0 auto; }
.stm-k { display: inline-flex; gap: 12px; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px !important; }
.stm-k::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.stm-btn { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 16px 26px; border-radius: 2px; border: 1px solid var(--blue); background: var(--blue); color: #fff !important; text-decoration: none !important; line-height: 1.3; }
.stm-btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.stm-btn-ghost { background: #fff; color: var(--ink) !important; border-color: #cbd5e3; }
.stm-btn-ghost:hover { background: #eaf1ff; border-color: var(--blue); }
.stm-acts { display: flex; flex-wrap: wrap; gap: 10px; }

.stm-hero { display: flex; align-items: stretch; min-height: 560px; overflow: hidden; background: #fff; --side: max(32px, calc((100% - 1250px) / 2)); }
.stm-hero-l { flex: 0 0 calc(var(--side) + min(620px, 50%)); display: flex; align-items: center; padding: 64px 56px 64px var(--side); }
.stm-hero-in { max-width: 620px; }
.stm-hero h1 { font-size: clamp(2.6rem, 4.6vw, 4.1rem); line-height: 1.02; margin-bottom: 20px; }
.stm-intro { font-size: 1.06rem; max-width: 600px; margin-bottom: 30px !important; }
.stm-hero-r { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 60px 40px 170px; }
.stm-hero-r::before { content: ""; position: absolute; inset: 0; clip-path: polygon(110px 0, 100% 0, 100% 100%, 0 100%);
  background: radial-gradient(520px 380px at 100% 0%, rgba(17,132,107,.45), transparent 70%), linear-gradient(180deg, var(--blue-deep), #0f2f6e); }
.stm-map { position: relative; display: block; width: 100%; max-width: 470px; height: auto; overflow: visible; }
.stm-map-grid { fill: none; stroke: rgba(255,255,255,.32); stroke-width: 4.2; stroke-linecap: round; }
.stm-pin { cursor: pointer; outline: none; }
.stm-pin-halo { fill: var(--mint); opacity: .22; transition: opacity .2s; }
.stm-pin-dot { fill: var(--mint); stroke: #0f2f6e; stroke-width: 1.5; }
.stm-pin text { font: 700 11px "Nunito", sans-serif; fill: #fff; opacity: 0; transition: opacity .2s; paint-order: stroke; stroke: #0f2f6e; stroke-width: 3px; pointer-events: none; }
.stm-pin:hover .stm-pin-halo, .stm-pin:focus-visible .stm-pin-halo { opacity: .55; }
.stm-pin:hover text, .stm-pin:focus-visible text { opacity: 1; }
.stm-map-cap { position: absolute; left: 190px; bottom: 44px; color: #fff; }
.stm-map-cap b { display: block; font: 400 2.4rem/1 "Aleo", Georgia, serif; }
.stm-map-cap span { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #bcd2ff; }

.stm-sec { padding: 88px 0; }
.stm-sec h2 { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.15; margin-bottom: 10px; }
.stm-sub { margin-bottom: 30px !important; }
.stm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.stm-chips button { font: 700 .82rem "Nunito", sans-serif; padding: 9px 16px; border: 1px solid #cbd5e3; border-radius: 999px; color: var(--ink); background: #fff; cursor: pointer; line-height: 1.2; }
.stm-chips button:hover { border-color: var(--blue); }
.stm-chips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.stm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.stm-ac { display: block; text-decoration: none !important; }
.stm-ac[hidden] { display: none; }
.stm-ph { display: block; position: relative; }
.stm-ac .stm-ph { margin: 0 14px 14px 0; }
.stm-ac .stm-ph::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--teal); opacity: 0; transition: opacity .25s; }
.stm-ac:hover .stm-ph::before, .stm-ac:focus-visible .stm-ph::before { opacity: 1; }
.stm .stm-ac .stm-ph img, .stm-ac .stm-noimg { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: #dfe7f3; max-width: none; }
.stm-tx { display: block; padding-top: 8px; }
.stm-ac b { display: block; font: 400 1.35rem/1.25 "Aleo", Georgia, serif; color: var(--ink); }
.stm-ac i { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 6px 0 8px; }
.stm-ac small { display: flex; gap: 6px; align-items: flex-start; font-size: .88rem; line-height: 1.45; color: var(--soft); }
.stm-ac small svg { width: 15px; height: 15px; flex: none; margin-top: 2px; fill: none; stroke: var(--teal); stroke-width: 2; }
.stm-ac em { display: inline-block; margin-top: 12px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); border-bottom: 2px solid currentColor; }

.stm-staff { background: var(--mintbg); }
.stm-sgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 30px 20px; }
.stm-sc { display: block; text-decoration: none !important; }
.stm .stm-sc .stm-ph img, .stm-sc .stm-noimg { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center top; border-radius: 50%; background: #dfe7f3; border: 4px solid #fff; box-shadow: 0 10px 26px rgba(15,47,110,.1); max-width: none; transition: transform .25s; }
.stm-sc:hover .stm-ph img { transform: translateY(-4px); }
.stm-sc b { display: block; margin-top: 14px; font: 400 1.06rem/1.3 "Aleo", Georgia, serif; color: var(--ink); }
.stm-sc i { display: block; font-size: .82rem; margin-top: 2px; color: var(--soft); }
.stm-debug { margin-top: 30px; padding: 16px 20px; background: #fff7e6; border: 1px solid #f2c46d; font-size: .85rem; }

.stm-close { padding: 90px 0; text-align: center; background: linear-gradient(180deg, #fff, #eaf1ff); }
.stm-close .stm-k { justify-content: center; }
.stm-close h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 10px; }
.stm-close p { margin-bottom: 28px !important; }

@media (max-width: 1100px) { .stm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stm-sgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .stm-w { width: calc(100% - 40px); }
  .stm-hero { flex-direction: column; min-height: 0; }
  .stm-hero-l { flex: none; padding: 44px 20px 40px; }
  .stm-hero-r { padding: 40px 20px 80px; }
  .stm-hero-r::before { clip-path: none; }
  .stm-map { max-width: 340px; }
  .stm-map-cap { left: 20px; bottom: 22px; }
  .stm-map-cap b { font-size: 1.8rem; }
  .stm-acts .stm-btn { flex: 1 1 100%; text-align: center; }
  .stm-sec { padding: 60px 0; }
  .stm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .stm-ac b { font-size: 1.12rem; }
  .stm-ac small { font-size: .8rem; }
  .stm-sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stm-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -20px; }
  .stm-chips button { flex: none; }
}

/* ===== v1.2.1: moving photo wall in the hero ===== */
.stm-hero-wall { padding: 0 10px 0 160px; overflow: hidden; }
.stm-wall { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 600px; height: 700px; margin: -70px auto; transform: rotate(-3deg); }
.stm-wall::before, .stm-wall::after { content: ""; position: absolute; left: -30px; right: -30px; height: 110px; z-index: 2; pointer-events: none; }
.stm-wall::before { top: 0; background: linear-gradient(#143a8f, rgba(20,58,143,0)); }
.stm-wall::after { bottom: 0; background: linear-gradient(rgba(15,47,110,0), #0f2f6e); }
.stm-wall-col { overflow: hidden; height: 100%; }
.stm-wall-track { display: flex; flex-direction: column; gap: 16px; animation: stm-up var(--dur, 90s) linear infinite; animation-delay: var(--delay, 0s); will-change: transform; }
.stm-wall-col.down .stm-wall-track { animation-name: stm-down; }
.stm-wall:hover .stm-wall-track { animation-play-state: paused; }
@keyframes stm-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes stm-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }
.stm-wall-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #1e4aa8; box-shadow: 0 14px 30px rgba(0,0,0,.28); flex: none; text-decoration: none; }
.stm-wall-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; transition: transform .5s ease; }
.stm-wall-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 11px; background: linear-gradient(rgba(15,47,110,0), rgba(15,47,110,.88) 55%); color: #fff; }
.stm-wall-cap b { display: block; font: 700 .86rem/1.2 "Nunito", sans-serif; }
.stm-wall-cap i { display: block; margin-top: 2px; font: 400 .7rem/1.25 "Nunito", sans-serif; font-style: normal; color: var(--mint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stm-wall-tile:hover img { transform: scale(1.05); }
.stm-wall-tile:hover .stm-wall-cap b { text-decoration: underline; text-underline-offset: 3px; }
.stm-wall-tile:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .stm-wall-track { animation: none; } }
@media (max-width: 900px) {
  .stm-hero-wall { padding: 0; }
  .stm-wall { height: 440px; max-width: none; margin: 0; transform: none; gap: 10px; padding: 0 16px; }
  .stm-wall-track { gap: 10px; }
  .stm-wall-cap { padding: 26px 8px 7px; }
  .stm-wall-cap b { font-size: .72rem; }
  .stm-wall-cap i { display: none; }
  @keyframes stm-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 5px)); } }
  @keyframes stm-down { from { transform: translateY(calc(-50% - 5px)); } to { transform: translateY(0); } }
}
