/* Home only: hero depth and focal point, the people strip, the team block,
   the practice index and the inline case review. Loads after style.css. */

/* Hero: the map tilts back like a table map under a lamp, and one pool of
   gold light at 817 S. Main holds the eye. */
.hero--map { perspective: 1400px; overflow: hidden; }
.hero-focus {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at var(--focus-x, 56.5%) var(--focus-y, 32%), rgba(255, 214, 140, 0.34) 0, rgba(227, 180, 90, 0.14) 6%, rgba(227, 180, 90, 0.05) 14%, transparent 26%),
    radial-gradient(ellipse 55% 65% at var(--focus-x, 56.5%) var(--focus-y, 32%), transparent 25%, rgba(7, 9, 14, 0.6) 100%);
}
.hero-horizon {
  position: absolute; left: 0; right: 0; top: 0; height: 34%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #07090e 0%, rgba(7, 9, 14, 0.7) 45%, transparent 100%);
}
@media (min-width: 768px) {
  .hero--map .hero-map {
    transform-origin: 50% 100%;
    transform: rotateX(24deg) scale(1.32) translateY(4%);
  }
  .hero-face--bruce { top: 6%; }
  .hero-face { width: 48%; }
  .hero-face--bruce, .hero-face--dean { width: 48%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--map .hero-map { transform: none; }
}

/* Phone first screen: one primary action, the phone as a plain link beside it. */
@media (max-width: 767px) {
  .hero--map .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
  .hero--map .hero-actions .btn-primary { flex: 1 1 100%; }
  .hero--map .hero-call {
    flex: 0 0 auto; width: auto; min-height: 44px; padding: 0; border: 0; background: none;
    color: var(--moon); font: 600 16px/1.3 var(--ui); text-decoration: underline; text-underline-offset: 4px;
  }
  .hero-focus { --focus-x: 80%; --focus-y: 14%; }
}

/* Proof: the offer first, then the two attorneys who stand behind it. */
.proof-strip { background: var(--gold); color: var(--night); }
.proof-line {
  max-width: 1440px; margin: 0 auto; padding: 18px var(--gutter);
  display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 0;
}
.proof-line > * { margin: 0; padding: 4px 32px; border-left: 1px solid rgba(11, 14, 20, 0.28); display: grid; gap: 2px; }
.proof-line > :first-child { padding-left: 0; border-left: 0; }
.proof-line strong { font: 400 clamp(22px, 2vw, 30px)/1.05 var(--display); letter-spacing: -0.01em; }
.proof-line span, .proof-line a { font: 600 13px/1.35 var(--ui); color: rgba(11, 14, 20, 0.8); }
.proof-line .proof-item a { color: var(--night); text-decoration: underline; text-underline-offset: 3px; }
.proof-people {
  justify-self: end; display: flex !important; align-items: center; gap: 14px;
  text-decoration: none; color: var(--night);
}
.proof-faces { display: flex; }
.proof-faces img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 14%;
  border: 2px solid var(--gold); box-shadow: 0 0 0 1px rgba(11, 14, 20, 0.35);
}
.proof-faces img + img { margin-left: -12px; }
.proof-names { display: grid; gap: 2px; }
.proof-names strong { font-size: clamp(19px, 1.6vw, 24px); }
.proof-people:hover .proof-names strong, .proof-people:focus-visible .proof-names strong { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1119px) {
  .proof-line { grid-template-columns: repeat(3, auto); row-gap: 14px; }
  .proof-people { grid-column: 1 / -1; justify-self: start; padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .proof-line { grid-template-columns: 1fr 1fr 1fr; padding: 16px 20px; row-gap: 14px; }
  .proof-line > * { padding: 0 10px; }
  .proof-line strong { font-size: 19px; }
  .proof-line span, .proof-line a { font-size: 12px; }
  .proof-people { order: -1; grid-column: 1 / -1; padding: 0 0 12px; border-bottom: 1px solid rgba(11, 14, 20, 0.28); width: 100%; }
  .proof-faces img { width: 44px; height: 44px; }
}
@media (max-width: 359px) {
  .proof-line { grid-template-columns: 1fr 1fr; }
  .proof-line > :nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}

/* 01: copy beside one team block (Sequel/Netflix-style portrait grid, no card frames). */
.people-grid {
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px); align-items: start;
}
.people-copy { position: sticky; top: 48px; }
.team-block {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px;
}
.team-member { grid-column: span 2; }
.team-member--lead { grid-column: span 3; }
.team-member a { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.team-member img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 14%;
  filter: saturate(0.88) contrast(1.04); margin-bottom: 10px;
  transition: filter 400ms ease;
}
.team-member strong { font: 400 22px/1.15 var(--display); }
.team-member--lead strong { font-size: clamp(24px, 2.1vw, 32px); }
.team-member span { font: 400 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--helper); }
.team-member a:hover img, .team-member a:focus-visible img { filter: saturate(1) contrast(1.08); }
.team-member a:hover strong, .team-member a:focus-visible strong { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) {
  .people-grid { grid-template-columns: 1fr; gap: 32px; }
  .people-copy { position: static; }
  .team-block { gap: 18px 12px; }
  .team-member strong, .team-member--lead strong { font-size: 18px; }
  .team-member--lead strong { font-size: 21px; }
  .team-member span { font-size: 10px; letter-spacing: 0.1em; }
  .team-member img { margin-bottom: 6px; }
}

/* 02 corridor: on phones the faces are already in the hero and team block,
   so the floating planes go and the copy leads straight into its actions. */
@media (max-width: 767px) {
  .corridor-visual { display: none; }
}

/* 04: the practice index (Christopher Ireland serif rows with 1px rules). */
.practice-index-grid {
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px); align-items: start;
}
.practice-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.practice-index li { border-bottom: 1px solid var(--rule); }
.practice-index a {
  display: flex; align-items: baseline; gap: 24px; padding: 22px 0;
  color: var(--ink); text-decoration: none;
  font: 400 clamp(34px, 4.2vw, 60px)/1.02 var(--display); letter-spacing: -0.025em;
  transition: padding-left 500ms cubic-bezier(0.16, 1, 0.3, 1), color 300ms ease;
}
.practice-index a span { font: 400 12px/1 var(--mono); letter-spacing: 0.16em; color: var(--gold-deep); }
.practice-index a:hover, .practice-index a:focus-visible { padding-left: 16px; color: var(--gold-deep); font-style: italic; }
@media (max-width: 767px) {
  .practice-index-grid { grid-template-columns: 1fr; gap: 28px; }
  .practice-index a { padding: 16px 0; gap: 16px; font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .practice-index a { transition: none; } }

/* 03: the case review, live on the page. */
.quick-review { background: var(--ash); }
.quick-review-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: clamp(32px, 5vw, 80px); align-items: end;
}
.quick-review-head .section-code { grid-column: 1 / -1; }
.quick-review-head .chapter-body { margin: 0; }
@media (max-width: 899px) {
  .quick-review-head { display: block; }
  .quick-review-head .chapter-body { margin-top: var(--space-4); }
}
.quick-review-head .chapter-heading { max-width: 18ch; }
.quick-review-tool {
  margin-top: 48px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.qr-progress { display: grid; gap: 10px; margin-bottom: 8px; }
.qr-progress-label { font: 400 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.qr-progress-bar { display: block; height: 2px; background: var(--rule); }
.qr-progress-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.qr-group { border: 0; margin: 0; padding: 26px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.qr-group legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--display); color: var(--ink); }
.qr-group legend span { font: 400 12px/1 var(--mono); letter-spacing: 0.16em; color: var(--gold-deep); margin-right: 10px; vertical-align: 6px; }
.qr-chips { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }
.qr-chips label { position: relative; cursor: pointer; }
.qr-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qr-chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(13, 16, 22, 0.45); border-radius: 999px;
  font: 600 15px/1.2 var(--ui); color: var(--ink); background: transparent;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.qr-chips label:hover span { border-color: var(--ink); background: rgba(13, 16, 22, 0.05); }
.qr-chips input:checked + span { background: var(--night); border-color: var(--night); color: var(--moon); }
.qr-chips input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 10px; }
.qr-chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.qr-summary {
  position: sticky; top: 24px;
  background: var(--night); color: var(--moon); padding: 28px;
  display: grid; gap: 14px;
}
.qr-summary-label { font: 400 26px/1.1 var(--display); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qr-summary-label small { font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.qr-summary textarea {
  width: 100%; min-height: 190px; resize: vertical; padding: 14px 0;
  background: transparent; color: var(--moon); border: 0; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line);
  font: 400 17px/1.55 var(--ui);
}
.qr-summary textarea::placeholder { color: rgba(245, 240, 230, 0.55); }
.qr-summary textarea:focus { outline: 2px solid var(--gold); outline-offset: 4px; }
.qr-summary textarea.is-updated { animation: qr-flash 700ms ease; }
@keyframes qr-flash { from { background: rgba(227, 180, 90, 0.16); } to { background: transparent; } }
.qr-status { margin: 0; min-height: 1.4em; font: 400 12px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--gold); }
.qr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qr-actions .btn { flex: 1 1 180px; border-radius: 999px; }
.btn-outline-light { background: transparent; color: var(--moon); border-color: rgba(245, 240, 230, 0.6); }
.btn-outline-light:hover, .btn-outline-light:focus { background: rgba(245, 240, 230, 0.12); }
.qr-links { display: grid; gap: 10px; justify-items: start; padding-top: 6px; }
.qr-links a { color: var(--moon); }
.qr-reset {
  background: none; border: 0; padding: 8px 0; min-height: 44px; cursor: pointer;
  font: 400 12px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245, 240, 230, 0.7);
  text-decoration: underline; text-underline-offset: 4px;
}
@media (max-width: 899px) {
  .quick-review-tool { grid-template-columns: 1fr; margin-top: 32px; }
  .qr-summary { position: static; padding: 22px 20px; }
}
@media (max-width: 767px) {
  .qr-group { padding: 20px 0; }
  .qr-chips { gap: 8px; }
  .qr-chips span { padding: 0 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .qr-progress-bar i, .qr-chips span { transition: none; }
  .qr-summary textarea.is-updated { animation: none; }
}
