/* Restored story & person media layout */

.person-feature img {
  object-fit: cover;
  object-position: center 20%;
}

/* One person, one complete argument */

.profile-screen h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6.5vh, 70px);
  line-height: 1.08;
}

.profile-screen h2 em {
  color: var(--red);
  font-style: normal;
}

.profile-solo-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.78fr) minmax(0, 1.42fr);
  gap: clamp(30px, 4vw, 52px);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.profile-solo-layout-light {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.38fr);
  border-top-color: var(--line);
}

.profile-portrait {
  position: relative;
  height: min(390px, 45vh);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.profile-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.profile-portrait figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 5px 8px;
  background: rgba(8, 25, 45, 0.82);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.4;
}

.profile-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.profile-role,
.profile-section-label {
  margin: 0 0 8px;
  color: #ef667c;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-intro {
  max-width: 820px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  line-height: 1.7;
}

.profile-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-highlights article {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 12px;
  min-height: 104px;
  padding: 14px 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-highlights i {
  color: #ef667c;
  font-family: "Times New Roman", serif;
  font-size: 14px;
  font-style: normal;
}

.profile-highlights h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.profile-highlights p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
  line-height: 1.55;
}

.profile-copy blockquote {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 3px solid #ef667c;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.lai-visual-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.lai-history-photo {
  height: min(260px, 31vh);
  border: 1px solid var(--line);
  background: #e9edf1;
}

.lai-history-photo img {
  object-fit: contain;
  object-position: center;
}

.lai-identity {
  padding: 13px 15px;
  border-left: 3px solid var(--red);
  background: #fff;
}

.lai-identity b {
  display: block;
  color: var(--ink);
  font-size: 21px;
}

.lai-identity span {
  display: block;
  margin-top: 3px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
}

.lai-identity p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.lai-profile-screen .profile-section-label {
  color: var(--red);
}

.lai-tool-grid {
  border-color: var(--line);
}

.lai-tool-grid article {
  min-height: 116px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.lai-tool-grid h3 {
  color: var(--ink);
  font-family: "Times New Roman", serif;
  font-size: 20px;
}

.lai-tool-grid p {
  color: var(--muted);
}

.lai-translation {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--red);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.lai-translation b {
  color: var(--ink);
}

@media (max-width: 900px) {
  .profile-solo-layout,
  .profile-solo-layout-light {
    grid-template-columns: 1fr;
  }

  .profile-portrait {
    height: 330px;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .profile-screen h2 {
    margin-bottom: 8px;
    font-size: clamp(34px, 5.3vh, 46px);
  }

  .profile-solo-layout {
    gap: 26px;
    padding-top: 9px;
  }

  .profile-portrait {
    height: min(300px, 43vh);
  }

  .profile-intro {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.5;
  }

  .profile-highlights article {
    min-height: 78px;
    padding: 9px 10px;
  }

  .profile-highlights h3 {
    font-size: 14px;
  }

  .profile-highlights p {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.4;
  }

  .profile-copy blockquote {
    margin-top: 8px;
    font-size: 12px;
  }

  .lai-history-photo {
    height: min(190px, 27vh);
  }

  .lai-identity {
    padding: 8px 10px;
  }

  .lai-identity p {
    margin-top: 4px;
    font-size: 9px;
    line-height: 1.4;
  }

  .lai-tool-grid article {
    min-height: 84px;
  }

  .lai-translation {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 10px;
  }
}

.story-panel-media {
  grid-template-columns: 1fr 1fr !important;
  gap: 28px !important;
}

.story-media {
  display: grid;
  gap: 10px;
  align-content: center;
}

.story-hero-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0a1628;
  min-height: 180px;
  max-height: 240px;
}

.story-hero-shot img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.story-hero-shot figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  background: rgba(8, 25, 45, 0.78);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--sans);
  font-size: 9px;
}

.story-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.story-thumbs img {
  width: 100%;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f0f3f7;
}

.lineage-layout-rich {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.15fr) !important;
  gap: 28px !important;
}

.lineage-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

.lineage-photos figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft);
  min-height: 140px;
  max-height: 220px;
}

.lineage-photos figure:first-child {
  grid-row: 1 / span 2;
  max-height: 450px;
  min-height: 280px;
}

.lineage-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lineage-photos figure:first-child img {
  object-fit: contain;
  background: #f7f4ef;
}

.lineage-photos figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  padding: 3px 6px;
  background: rgba(8, 25, 45, 0.78);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .story-panel-media {
    grid-template-columns: 1fr !important;
  }

  .story-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .lineage-layout-rich {
    grid-template-columns: 1fr !important;
  }

  .lineage-photos {
    grid-template-columns: 1fr 1fr;
  }

  .lineage-photos figure:first-child {
    grid-row: auto;
    max-height: 260px;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .story-hero-shot,
  .story-hero-shot img {
    max-height: 180px;
  }

  .story-thumbs img {
    height: 42px;
  }

  .lineage-photos figure {
    max-height: 160px;
    min-height: 110px;
  }

  .lineage-photos figure:first-child {
    max-height: 340px;
    min-height: 220px;
  }
}
