/* Jost (SIL OFL, free Futura-style font with Cyrillic). To revert: set --font-serif/--font-sans back to the commented values below. */
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/Jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07060d;
  --bg-elev: rgba(16, 14, 26, 0.72);
  --ink: #f4efe4;
  --muted: #d6cfe0; /* was #b8b0c4 */
  --faint: #b4acc2; /* was #8b8398 */
  --gold: #d4b060;
  --gold-2: #f0d78c;
  --gold-dim: rgba(212, 176, 96, 0.22);
  --line: rgba(243, 239, 228, 0.12);
  --line-gold: rgba(212, 176, 96, 0.35);
  --violet: #8a6ad4;
  --teal: #7ec8d4;
  --card: rgba(12, 10, 20, 0.78);
  --danger: #e8b4b4;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --header-h: 4.25rem;
  --max: 72rem;
  /* revert: --font-serif: "Cormorant Garamond", "Times New Roman", serif; */
  --font-serif: "Jost", "Futura", "Century Gothic", sans-serif;
  /* revert: --font-sans: "Manrope", "Segoe UI", sans-serif; */
  --font-sans: "Jost", "Futura", "Century Gothic", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html[lang="ru"] .lang-en,
html[lang="en"] .lang-ru { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.1rem; /* ~17.6px */
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff6d6; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--gold);
  color: #1a1408;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.bg-sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(122, 90, 212, 0.22), transparent 60%),
    radial-gradient(700px 480px at 85% 0%, rgba(80, 140, 180, 0.16), transparent 55%),
    radial-gradient(600px 500px at 70% 80%, rgba(180, 90, 70, 0.08), transparent 50%),
    radial-gradient(1000px 700px at 50% 120%, rgba(40, 20, 80, 0.4), transparent 50%),
    var(--bg);
}

.bg-suns {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
}
.bg-suns.a {
  top: 8%;
  left: 8%;
  background: radial-gradient(circle, #f0d78c 0%, rgba(240, 215, 140, 0.2) 35%, transparent 70%);
}
.bg-suns.b {
  top: 16%;
  left: 18%;
  width: 9rem;
  height: 9rem;
  background: radial-gradient(circle, #8ec6ea 0%, rgba(142, 198, 234, 0.18) 40%, transparent 70%);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 6, 13, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  flex-shrink: 0; line-height: 1.5; }
.logo img { width: 2.4rem; height: auto; }
.logo:hover { color: var(--gold-2); }

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

.nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500; line-height: 1.5; }
.nav a:hover { background: rgba(255,255,255,0.04); color: var(--gold-2); }

.header-tools {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  padding: 0.15rem;
  background: rgba(0,0,0,0.25);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  min-width: 2.6rem; line-height: 1.5; }
.lang-switch button[aria-pressed="true"] {
  background: var(--gold);
  color: #1a1408;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 2.85rem; line-height: 1.5; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1408;
}
.btn-gold:hover { filter: brightness(1.06); color: #1a1408; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-header { padding: 0.55rem 1rem; font-size: 0.95rem; line-height: 1.5; }

.mobile-panel {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(10, 8, 18, 0.96);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1.25rem;
  backdrop-filter: blur(16px);
}
.site-header.is-open .mobile-panel { display: block; }
.mobile-panel .nav { display: flex; }
.mobile-panel .header-tools {
  display: flex;
  justify-content: space-between;
  margin: 0.75rem 0 0;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .mobile-panel { display: none !important; }
  .header-inner .nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 1.5rem;
    gap: 0.15rem;
  }
  .header-inner .header-tools { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-2);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 700; line-height: 1.5; }
.kicker::before,
.kicker::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--line-gold);
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  margin: 1.1rem 0 0.8rem;
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(212, 176, 96, 0.18);
}
.tagline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.35;
  max-width: 34ch;
  margin: 0 auto 1.5rem;
  color: #f7f1e4;
}
.hero-year {
  display: inline-block;
  border: 1px solid var(--line-gold);
  color: var(--gold-2);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.6rem; line-height: 1.5; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.human-note {
  color: var(--faint);
  font-size: 0.95rem;
  margin: 0;
  letter-spacing: 0.02em; line-height: 1.5; }

/* Sections */
.section { padding: 4.25rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-label {
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.6rem; line-height: 1.5; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
}
.lede, .prose p { color: #e8e2d6; }
.prose {
  max-width: 42rem;
}
.prose p { margin: 0 0 1rem; }
.prose .muted { color: var(--muted); }
.prose .signoff { margin-top: 1.8rem; margin-bottom: 0.35rem; }
.prose .signoff-name { margin-top: 0; margin-bottom: 0; }

.about-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.facts dt {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1rem; line-height: 1.5; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0.25rem 0 0; color: var(--ink); }

/* Heroes */
.group-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 2.4rem 0 1rem;
}
.group-title:first-of-type { margin-top: 0.5rem; }
.group-note {
  color: var(--muted);
  margin: -0.4rem 0 1.1rem;
  font-size: 0.95rem; line-height: 1.5; }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}

.card.featured {
  grid-column: 1 / -1;
}
@media (min-width: 800px) {
  .card.featured {
    display: grid;
    grid-template-columns: minmax(16rem, 0.85fr) 1.2fr;
    align-items: stretch;
  }
  .card.featured .portrait { min-height: 0; }
  .card.featured .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.25rem;
  }
  .card.featured .card-body h3 { font-size: 2.25rem; }
  .card.featured .card-body p:last-child { font-size: 1.05rem; }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--line-gold); }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #0c0a14;
  overflow: hidden;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-badge {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: rgba(7, 6, 13, 0.82);
  border: 1px dashed var(--line-gold);
  color: var(--gold-2);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 6px; line-height: 1.5; }
.card-body { padding: 1.05rem 1.15rem 1.25rem; }
.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
}
.role {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.65rem;
  font-weight: 600; line-height: 1.5; }
.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem; line-height: 1.5; }

/* Trailer */
.trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line-gold);
  background: #000;
  box-shadow: var(--shadow);
}
.trailer-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.trailer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(180deg, rgba(7,6,13,0.15), rgba(7,6,13,0.55));
  text-align: center;
  padding: 1rem;
}
.play-fake {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  border: 1px solid var(--gold-2);
  background: rgba(7, 6, 13, 0.55);
  display: grid;
  place-items: center;
}
.play-fake svg { width: 1.4rem; height: 1.4rem; fill: var(--gold-2); margin-left: 0.15rem; }
.trailer-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin: 0;
}
.placeholder-note {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--faint);
  font-size: 0.95rem;
  border: 1px dashed var(--line-gold);
  padding: 0.35rem 0.7rem;
  border-radius: 8px; line-height: 1.5; }

/* Author */
.author-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 800px) {
  .author-grid { grid-template-columns: 16rem 1fr; gap: 2.5rem; }
}
.author-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0c0a14;
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2rem;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem; line-height: 1.5; }
.social:hover { border-color: var(--gold); color: var(--gold-2); }
.social.is-placeholder {
  border-style: dashed;
  color: var(--muted);
  cursor: default;
}
.social small {
  font-weight: 500;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase; line-height: 1.5; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.8rem;
  color: var(--faint);
  font-size: 0.95rem; line-height: 1.5; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }
}
.site-footer strong { color: var(--muted); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-suns, #starfield { display: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .social { transition: none; }
}

@media (max-width: 520px) {
  .kicker { letter-spacing: 0.14em; font-size: 0.88rem; line-height: 1.5; }
  .kicker::before,
  .kicker::after { display: none; }
}

/* ===== v2: multi-page additions ===== */
em, i, cite, blockquote, q, address { font-style: normal; }

.nav a[aria-current="page"] { color: var(--gold-2); background: rgba(212,176,96,0.08); }

.page-hero { padding: 3rem 0 1.5rem; text-align: center; }
.page-hero .section-title { margin-bottom: 0.9rem; }
.page-hero .lede { max-width: 44rem; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }

.teasers { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 760px) { .teasers { grid-template-columns: repeat(3, 1fr); } }
.teaser {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.5rem 1.4rem 1.4rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
}
.teaser:hover { border-color: var(--line-gold); color: var(--ink); }
.teaser h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.7rem; margin: 0; }
.teaser p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.teaser .more { margin-top: auto; padding-top: 0.6rem; color: var(--gold-2); font-weight: 650; font-size: 0.95rem; line-height: 1.5; }
.teaser svg { width: 2.4rem; height: 2.4rem; }

.trailer-note { color: var(--muted); margin: -0.4rem 0 1.1rem; font-size: 0.95rem; line-height: 1.5; }

/* Heroes page */
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; margin: 1.4rem auto 0; max-width: 60rem; }
.chips a {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.75rem;
  font-size: 0.95rem; color: var(--ink); text-decoration: none; background: rgba(0,0,0,0.2); line-height: 1.5; }
.chips a:hover { border-color: var(--gold); color: var(--gold-2); }

.char-list { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 1080px) { .char-list { grid-template-columns: 1fr 1fr; } }
.char {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 1rem);
}
.char:hover { border-color: var(--line-gold); }
.char .portrait { aspect-ratio: 4 / 3; }
@media (min-width: 620px) {
  .char { grid-template-columns: 12.5rem 1fr; }
  .char .portrait { aspect-ratio: auto; min-height: 100%; }
}
.char.featured { grid-column: 1 / -1; }
@media (min-width: 900px) { .char.featured { grid-template-columns: 20rem 1fr; } }
.char-body { padding: 1.15rem 1.25rem 1.3rem; }
.char-body h3 { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 500; margin: 0 0 0.15rem; line-height: 1.1; }
.char.featured .char-body h3 { font-size: 2.4rem; }
.char-body .role { margin-bottom: 0.8rem; }
.char dl { margin: 0; display: grid; gap: 0.55rem; }
.char dl > div { display: grid; gap: 0.1rem; }
@media (min-width: 620px) { .char dl > div { grid-template-columns: 7.5rem 1fr; gap: 0.75rem; } }
.char dt { font-size: 0.88rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding-top: 0.22rem; font-weight: 700; line-height: 1.5; }
.char dd { margin: 0; color: #ddd6ca; font-size: 0.95rem; line-height: 1.55; }

.mini-list { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .mini-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .mini-list { grid-template-columns: repeat(3, 1fr); } }
.char.mini { grid-template-columns: 5.5rem 1fr; }
.char.mini .portrait { aspect-ratio: auto; min-height: 100%; }
.char.mini .char-body { padding: 0.9rem 1rem; }
.char.mini h3 { font-size: 1.35rem; }
.char.mini .role { margin-bottom: 0.35rem; }
.char.mini p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.char.mini .ph-badge { display: none; }

/* World page */
.map-wrap {
  margin: 1.5rem 0 0.5rem; border: 1px solid var(--line-gold); border-radius: 1.2rem;
  overflow: hidden; background: #05040a; box-shadow: var(--shadow);
}
.map-wrap svg { display: block; width: 100%; height: auto; }
.map-caption { color: var(--faint); font-size: 0.95rem; margin: 0.6rem 0 0; text-align: center; line-height: 1.5; }
.map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) { .map-scroll svg { min-width: 760px; } }

.world-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .world-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; } }
.world-grid.reverse > :first-child { order: 0; }
@media (min-width: 860px) { .world-grid.reverse > :first-child { order: 2; } }

.civs { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
@media (min-width: 640px) { .civs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .civs { grid-template-columns: repeat(3, 1fr); } }
.civ {
  padding: 1.2rem 1.25rem 1.3rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.civ .dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.45rem; vertical-align: middle; box-shadow: 0 0 12px currentColor; }
.civ h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.45rem; margin: 0 0 0.15rem; }
.civ .where { color: var(--gold); font-size: 0.95rem; font-weight: 650; letter-spacing: 0.04em; margin: 0 0 0.55rem; line-height: 1.5; }
.civ p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.civ .who { margin-top: 0.6rem; font-size: 0.95rem; color: var(--faint); line-height: 1.5; }
.civ .who a { color: var(--gold-2); }

.pull {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.35;
  color: #f2ead8; border-left: 2px solid var(--gold); padding: 0.2rem 0 0.2rem 1.1rem; margin: 1.4rem 0;
}
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.feature-list li {
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(12,10,20,0.6);
  color: #ddd6ca; font-size: 0.95rem; line-height: 1.5; }
.feature-list strong { color: var(--gold-2); font-weight: 650; }

.footer-socials { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.4rem; }
.footer-socials a { color: var(--muted); text-decoration: none; }
.footer-socials a:hover { color: var(--gold-2); }
@media (min-width: 1080px) {
  .char:not(.featured):not(.mini) { grid-template-columns: 10.5rem 1fr; }
  .char:not(.featured) dl > div { grid-template-columns: 1fr; gap: 0.05rem; }
}
.char .ph-badge { white-space: nowrap; font-size: 0.88rem; line-height: 1.5; }

/* Heroes v4: filters, collapsible cards, family trees */
.hero-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1.5rem auto 0; }
.hero-filters button {
  font: inherit; font-size: 0.95rem; font-weight: 650; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem;
  background: rgba(0,0,0,0.25); color: var(--ink); line-height: 1.5; }
.hero-filters button:hover { border-color: var(--gold); color: var(--gold-2); }
.hero-filters button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #120f08; }
.hero-group[hidden] { display: none; }
.hero-group + .hero-group { margin-top: 0.5rem; }
.char .summary { margin: 0 0 0.6rem; color: #ddd6ca; font-size: 0.97rem; line-height: 1.5; }
.char-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--gold-2); font-weight: 650; font-size: 0.95rem; letter-spacing: 0.04em; padding: 0.2rem 0; line-height: 1.5; }
.char-more > summary::-webkit-details-marker { display: none; }
.char-more > summary::after { content: "+"; font-size: 1.05rem; line-height: 1; }
.char-more[open] > summary::after { content: "−"; }
.char-more[open] > summary { margin-bottom: 0.7rem; }
.char.featured .char-more > summary { display: none; }
.char-full { margin: 0 0 0.9rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.char-full img { display: block; width: 100%; height: auto; }
.char.has-photo .portrait img { object-position: center top; }
.char { align-items: start; }
.char .portrait { align-self: stretch; }
@media (min-width: 620px) { .char:not(.mini) .portrait { min-height: 15rem; } }

.trees { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .trees { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .trees { grid-template-columns: repeat(3, 1fr); } }
.tree {
  padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--radius); text-align: center;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tree h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.35rem; margin: 0 0 0.8rem; }
.tree-row { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; align-items: center; }
.tree-plus { color: var(--gold); font-weight: 700; }
.tree-line { width: 1px; height: 1.1rem; margin: 0.35rem auto; background: var(--line-gold); }
.tree-person {
  border: 1px solid var(--line-gold); border-radius: 999px; padding: 0.3rem 0.8rem;
  font-size: 0.95rem; color: var(--ink); text-decoration: none; background: rgba(212,176,96,0.08); line-height: 1.5; }
.tree-person:hover { color: var(--gold-2); border-color: var(--gold); }
.tree-note { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.hero-group .group-title { margin-top: 3rem; }
.hero-group:first-child .group-title { margin-top: 0.5rem; }
.char-full { max-width: 16rem; background: #05040a; }
@media (min-width: 620px) {
  .char:not(.mini) .portrait { align-self: start; aspect-ratio: 4 / 5; min-height: 0; }
}

/* Portraits v5 (Nov 2026): every hero photo sits in the same 4:5 box, so the pre-framed
   4:5 image files show exactly as cropped (whole head, small margin on top) at all widths. */
.char { grid-template-columns: 7.5rem 1fr; }
.char .portrait,
.char:not(.mini) .portrait,
.char.mini .portrait { aspect-ratio: 4 / 5; min-height: 0; height: auto; align-self: start; }
.char .portrait img, .char.has-photo .portrait img { object-fit: cover; object-position: center center; }
.char.mini { grid-template-columns: 5.5rem 1fr; }
@media (min-width: 620px) { .char { grid-template-columns: 10.5rem 1fr; } }
@media (min-width: 900px) { .char.featured { grid-template-columns: 18rem 1fr; } }
.char-full { display: none; }

/* Readability v5: Jost small text — larger, lighter, a bit more tracking */
.role, .char .role { font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; line-height: 1.5; }
.char dd, .char .summary, .card-body p, .civ p, .teaser p { font-size: 1rem; line-height: 1.6; }
.char dd { color: #e6e0d6; }
.tree-person { font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; }
.tree h3 { font-size: 1.45rem; letter-spacing: 0.01em; }
.group-note, .tree-note, .map-caption { font-size: 1rem; line-height: 1.55; }
.char .ph-badge { white-space: normal; right: 0.5rem; left: 0.5rem; bottom: 0.5rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.06em; line-height: 1.3; }
.hero-grid { margin-top: 0.5rem; }
.hero-grid > .char[hidden] { display: none; }
.trees-block { margin-top: 1rem; }
