.characters-main { min-height: 70vh; padding: 104px max(24px, calc((100vw - 1260px) / 2)) 124px; background: #ede8dc; color: #16201f; }
.characters-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 60px; padding-bottom: 44px; border-bottom: 1px solid rgba(21, 46, 44, .12); }
.characters-eyebrow { display: flex; align-items: center; gap: 12px; width: fit-content; margin: 0 0 14px; color: #9a612a; font: 600 10px "Manrope", sans-serif; letter-spacing: .19em; text-transform: uppercase; }
.characters-eyebrow::before { content: ""; width: 34px; height: 1px; background: #9a612a; }
.characters-intro h1 { margin: 0; font: 600 clamp(42px, 5vw, 68px) "Playfair Display", serif; }
.characters-lead { max-width: 580px; margin: 18px 0 0; color: #5c655f; font-size: 14px; line-height: 1.75; }
.characters-summary { margin: 0; display: flex; gap: 36px; }
.characters-summary div { min-width: 112px; }
.characters-summary dt { color: #9a612a; font: 600 32px "Playfair Display", serif; }
.characters-summary dd { margin: 5px 0 0; color: #78817d; font: 600 9px "Manrope", sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.characters-grid { padding-top: 38px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.character-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid rgba(21, 46, 44, .09); border-radius: 6px; overflow: hidden; background: #f7f3e9; color: #16201f; transition: transform .2s ease, box-shadow .2s ease; }
.character-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(19, 45, 42, .12); }
.character-card-portrait { position: relative; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; background: #17302d; }
.character-card-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 0; transform: scale(1.5); transform-origin: 50% 0; transition: transform .4s ease; }
.character-card:hover .character-card-portrait img { transform: scale(1.54); }
.character-card-portrait.is-placeholder { display: grid; place-items: center; background-color: #17302d; }
.character-card-portrait.is-placeholder::before, .character-card-portrait.is-placeholder::after { content: ""; position: absolute; background: rgba(241, 190, 121, .14); }
.character-card-portrait.is-placeholder::before { width: 1px; height: 68%; }
.character-card-portrait.is-placeholder::after { width: 68%; height: 1px; }
.character-card-portrait.is-placeholder span { z-index: 1; color: #d6aa70; font: 500 54px "Playfair Display", serif; }
.character-card-body { flex: 1; padding: 22px; display: flex; flex-direction: column; }
.character-card-meta { display: flex; justify-content: space-between; gap: 14px; color: #8a928e; font: 600 8px "Manrope", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.character-card h2 { margin: 13px 0 10px; font: 600 25px "Playfair Display", serif; }
.character-card-body > p { flex: 1; margin: 0; color: #5c655f; font-size: 12px; line-height: 1.7; }
.character-card-body > small { margin-top: 14px; color: #7a8480; font-size: 9px; line-height: 1.5; }
.character-card-link { margin-top: 18px; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(21, 46, 44, .09); color: #9a612a; font: 600 10px "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.character-card-link svg { width: 15px; height: 15px; }

.character-detail-page { background: #ede8dc; }
.character-detail-page .site-header { background: #0a1a1a; }
.character-profile-hero { position: relative; height: min(66vh, 640px); min-height: 480px; overflow: hidden; background: #102421; color: #f4f1e9; }
.character-profile-hero > img { position: absolute; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.character-profile-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 15, 14, .94) 0%, rgba(5, 15, 14, .65) 42%, rgba(5, 15, 14, .08) 72%), linear-gradient(0deg, rgba(5, 15, 14, .76), transparent 48%); }
.character-profile-heading { position: absolute; left: max(24px, calc((100vw - 1180px) / 2)); bottom: 72px; z-index: 1; max-width: 570px; }
.character-profile-heading > a { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 44px; color: #b8c6c2; font: 600 10px "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.character-profile-heading > a svg { width: 14px; height: 14px; }
.character-profile-heading > p { margin: 0 0 12px; color: #d6aa70; font: 600 9px "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.character-profile-heading h1 { margin: 0; font: 600 clamp(42px, 5vw, 68px) "Playfair Display", serif; }
.character-profile-heading blockquote { margin: 22px 0 0; color: #d8dfdc; font: 400 15px/1.75 "DM Sans", sans-serif; }
.character-profile-hero.without-portrait { display: grid; place-items: center; }
.character-profile-monogram { position: absolute; right: 12%; color: rgba(214, 170, 112, .16); font: 500 min(36vw, 430px) "Playfair Display", serif; text-transform: uppercase; }

.character-profile-body { padding: 74px max(24px, calc((100vw - 1080px) / 2)) 110px; background: #ede8dc; color: #16201f; }
.character-profile-facts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; padding-bottom: 58px; border-bottom: 1px solid rgba(21, 46, 44, .12); }
.character-profile-facts > div > span { color: #9a612a; font: 600 9px "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.character-profile-facts ul { margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.character-profile-facts li { padding: 7px 11px; border: 1px solid rgba(154, 97, 42, .22); border-radius: 999px; color: #5c655f; font-size: 11px; }
.character-profile-facts strong { display: block; margin-top: 10px; color: #16201f; font: 600 42px "Playfair Display", serif; }
.character-profile-facts p { margin: 4px 0 0; color: #6f7975; font-size: 12px; }
.character-chapters { padding: 58px 0; }
.character-chapters h2 { margin: 0 0 28px; font: 600 34px "Playfair Display", serif; }
.character-chapters > div { border-top: 1px solid rgba(21, 46, 44, .12); }
.character-chapters > div > a { min-height: 72px; display: grid; grid-template-columns: 120px minmax(0, 1fr) 100px 20px; align-items: center; gap: 20px; border-bottom: 1px solid rgba(21, 46, 44, .12); color: #16201f; }
.character-chapters a > span, .character-chapters a > small { color: #7a8480; font: 600 9px "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .07em; }
.character-chapters a > strong { font: 600 18px "Playfair Display", serif; }
.character-chapters a > svg { width: 16px; height: 16px; color: #9a612a; transition: transform .18s ease; }
.character-chapters a:hover > svg { transform: translateX(4px); }
.character-profile-nav { position: absolute; top: 24px; left: max(24px, calc((100vw - 1180px) / 2)); right: max(24px, calc((100vw - 1180px) / 2)); z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 28px; }
.character-profile-nav a { color: #d7e0dd; }
.character-profile-nav-sibling { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 9px; }
.character-profile-nav-sibling.is-next { justify-self: end; text-align: right; }
.character-profile-nav-sibling > span { min-width: 0; display: grid; gap: 2px; }
.character-profile-nav-sibling small { color: #77908b; font: 600 7px "Manrope", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.character-profile-nav-sibling strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 10px "Manrope", sans-serif; }
.character-profile-nav-sibling > svg { width: 16px; height: 16px; flex: 0 0 auto; color: #d6aa70; transition: transform .18s ease; }
.character-profile-nav-sibling.is-previous:hover > svg { transform: translateX(-3px); }
.character-profile-nav-sibling.is-next:hover > svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .characters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character-profile-heading { right: 24px; }
}
@media (max-width: 640px) {
  .characters-intro { grid-template-columns: 1fr; gap: 28px; }
  .characters-grid { grid-template-columns: 1fr; }
  .character-profile-facts { grid-template-columns: 1fr; gap: 36px; }
  .character-chapters > div > a { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 0; }
  .character-chapters a > span, .character-chapters a > small { grid-column: 1; }
  .character-chapters a > svg { grid-column: 2; grid-row: 1 / span 3; }
}