.profiles-hero,
.profile-detail-hero {
  position: relative;
  padding: 150px 34px 80px;
  background:
    linear-gradient(135deg, rgba(74, 31, 53, 0.22), rgba(125, 142, 122, 0.15)),
    #0d0710;
}

.profiles-hero-grid,
.profile-detail-hero-grid,
.profile-preview-grid,
.profile-detail-layout,
.profile-practice-grid,
.profile-links-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 62px;
  align-items: start;
}

.profiles-hero-copy p:not(.section-kicker),
.profile-detail-copy p,
.profile-preview-grid p,
.profile-detail-body p,
.profile-practice-columns li {
  color: rgba(241, 229, 208, 0.76);
  font-size: 1.06rem;
}

.profiles-hero h1,
.profile-detail-hero h1 {
  font-size: 5.8rem;
}

.profiles-hero-mark {
  display: grid;
  align-self: end;
  border: 1px solid rgba(228, 201, 129, 0.24);
  background: rgba(7, 4, 10, 0.42);
}

.profiles-hero-mark span {
  min-height: 84px;
  padding: 18px;
  border-bottom: 1px solid rgba(228, 201, 129, 0.16);
  color: rgba(241, 229, 208, 0.72);
  font-weight: 900;
}

.profiles-hero-mark span:last-child {
  border-bottom: 0;
}

.profiles-hero-mark strong {
  display: block;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
}

.profiles-list-section,
.profile-preview-section,
.profile-detail-section,
.profile-links-section {
  background: var(--obsidian);
}

.profiles-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto auto;
  gap: 14px;
  align-items: end;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid rgba(201, 162, 87, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.profiles-filter-field {
  display: grid;
  gap: 7px;
}

.profiles-filter-field label {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profiles-filter-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(228, 201, 129, 0.26);
  border-radius: 8px;
  color: rgba(241, 229, 208, 0.9);
  background: #0d0710;
  font-weight: 800;
}

.profiles-filter-reset {
  min-height: 46px;
  align-content: center;
}

.profiles-filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(241, 229, 208, 0.72);
  font-size: 0.92rem;
  font-weight: 900;
}

.profiles-empty {
  padding: 34px;
  border: 1px solid rgba(201, 162, 87, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.profiles-empty h3 {
  color: var(--gold-soft);
}

.profiles-empty p {
  color: rgba(241, 229, 208, 0.72);
}

.profiles-card-grid {
  display: grid;
  gap: 22px;
}

.profile-card,
.profile-mini-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 87, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(125, 142, 122, 0.055)),
    rgba(255, 255, 255, 0.025);
}

.profile-card-image {
  display: block;
  min-height: 360px;
}

.profile-card-image img,
.profile-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card-copy {
  display: grid;
  align-content: center;
  padding: 34px;
}

.profile-card-copy h3,
.profile-mini-card h3 {
  color: var(--gold-soft);
}

.profile-card-copy p:not(.card-kicker),
.profile-mini-card p:not(.card-kicker) {
  color: rgba(241, 229, 208, 0.74);
}

.profile-tags,
.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.profile-tags span,
.profile-facts span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(228, 201, 129, 0.24);
  border-radius: 999px;
  color: rgba(241, 229, 208, 0.78);
  background: rgba(7, 4, 10, 0.32);
  font-size: 0.82rem;
  font-weight: 900;
}

.profile-preview-section {
  border-bottom: 1px solid rgba(201, 162, 87, 0.12);
}

.profile-reference-section {
  padding-top: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(201, 162, 87, 0.12);
}

.profile-reference-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
  gap: 36px;
  align-items: start;
}

.profile-reference-copy p:not(.section-kicker) {
  color: rgba(241, 229, 208, 0.72);
}

.profile-reference-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-reference-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(201, 162, 87, 0.18);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}

.profile-reference-item:hover,
.profile-reference-item:focus-visible {
  border-color: rgba(228, 201, 129, 0.4);
  background: rgba(255, 255, 255, 0.055);
}

.profile-reference-photo {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(228, 201, 129, 0.22);
  border-radius: 50%;
  object-fit: cover;
}

.profile-reference-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-reference-text strong {
  overflow: hidden;
  color: var(--gold-soft);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-reference-text span {
  overflow: hidden;
  color: rgba(241, 229, 208, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-reference-symbols {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
}

.profile-reference-symbol {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(228, 201, 129, 0.24);
  border-radius: 50%;
  object-fit: cover;
}

.profile-preview-list {
  display: grid;
  gap: 18px;
}

.profile-mini-card {
  grid-template-columns: 190px 1fr;
}

.profile-mini-card img {
  min-height: 260px;
}

.profile-mini-card > div {
  display: grid;
  align-content: center;
  padding: 26px;
}

.profile-detail-portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 87, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.profile-detail-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-detail-copy {
  align-self: center;
}

.profile-facts span {
  display: grid;
  min-width: 138px;
  gap: 2px;
  border-radius: 8px;
}

.profile-facts strong {
  display: block;
  color: var(--gold-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.profile-detail-copy blockquote {
  margin: 30px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(201, 162, 87, 0.24);
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.32;
}

.profile-detail-body p:first-child {
  margin-top: 0;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.36rem;
  line-height: 1.48;
}

.profile-practice-section {
  border-top: 1px solid rgba(201, 162, 87, 0.12);
  border-bottom: 1px solid rgba(201, 162, 87, 0.12);
  background:
    linear-gradient(135deg, rgba(125, 142, 122, 0.14), rgba(74, 31, 53, 0.16)),
    #0d0710;
}

.profile-practice-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-practice-columns article {
  padding: 26px;
  border: 1px solid rgba(201, 162, 87, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.profile-practice-columns h3 {
  color: var(--gold-soft);
}

.profile-practice-columns ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.profile-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 980px) {
  .profiles-hero-grid,
  .profile-detail-hero-grid,
  .profile-reference-grid,
  .profile-preview-grid,
  .profile-detail-layout,
  .profile-practice-grid,
  .profile-links-grid,
  .profile-practice-columns {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .profiles-hero,
  .profile-detail-hero {
    padding: 124px 20px 64px;
  }

  .profiles-hero h1,
  .profile-detail-hero h1 {
    font-size: 4.8rem;
  }

  .profile-card,
  .profile-mini-card {
    grid-template-columns: 1fr;
  }

  .profiles-filter-bar {
    grid-template-columns: 1fr;
  }

  .profile-reference-list {
    grid-template-columns: 1fr;
  }

  .profile-card-image,
  .profile-mini-card img {
    min-height: auto;
  }

  .profile-card-image img,
  .profile-mini-card img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 620px) {
  .profiles-hero h1,
  .profile-detail-hero h1 {
    font-size: 3.45rem;
  }

  .profile-card-copy,
  .profile-mini-card > div,
  .profile-practice-columns article {
    padding: 22px;
  }

  .profile-detail-copy blockquote {
    font-size: 1.36rem;
  }
}
