/* TimyBear Character Family — Editorial v3.2
   Shared brand system, page-specific grammar:
   a color index, one-at-a-time character reader, family silhouette line-up,
   and a material translation study. No generic card wall. */

.characters-page {
  --character-paper: #f7f2eb;
  --character-paper-light: #fffaf4;
  --character-dark: #291f1a;
  --character-dark-2: #342720;
}

#meet,
#material { scroll-margin-top: 24px; }

/* Hero */
.characters-hero {
  position: relative;
  width: 100%;
  min-height: 560px;
  max-height: 820px;
  margin-top: var(--header-h);
  aspect-ratio: 1920 / 820;
  overflow: hidden;
  background: #eee4d8;
}
.characters-hero-media {
  position: absolute;
  inset: 0;
}
.characters-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.characters-hero-family {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 43%;
  overflow: hidden;
  pointer-events: none;
}
.characters-hero-family img {
  position: absolute;
  width: clamp(520px, 42vw, 760px);
  height: auto;
  bottom: 0;
  filter: drop-shadow(0 18px 20px rgba(68, 45, 28, .16));
  transform-origin: 50% 100%;
}
.characters-hero-family__klein { left: -24%; transform: scale(.77); }
.characters-hero-family__walter { left: 0; transform: scale(.92); }
.characters-hero-family__pearl { left: 24%; transform: scale(.83); }
.characters-hero-family__orinch { left: 47%; transform: scale(.72); }
.characters-hero-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
}
.characters-hero-copy-inner {
  width: min(590px, 43vw);
  padding-bottom: 10px;
}
.characters-kicker {
  margin-bottom: 24px;
  color: #78685d;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .22em;
  font-weight: 800;
}
.characters-hero h1 {
  max-width: 630px;
  font-family: var(--serif);
  font-size: clamp(56px, 5.45vw, 88px);
  line-height: 1.08;
  letter-spacing: -.06em;
  font-weight: 700;
}
.characters-hero-lead {
  max-width: 510px;
  margin-top: 28px;
  color: #5f5249;
  font-size: 15px;
  line-height: 1.92;
}
.characters-hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.characters-hero-caption {
  position: absolute;
  z-index: 2;
  right: max(48px, calc((100vw - var(--shell)) / 2));
  bottom: 24px;
  width: min(450px, 36vw);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  color: rgba(59,45,37,.64);
  font-size: 8px;
  line-height: 1.45;
  letter-spacing: .08em;
  font-weight: 750;
}
.characters-hero-caption strong { color: #bf493e; letter-spacing: .14em; }
.characters-hero-caption small {
  grid-column: 1 / -1;
  color: rgba(59,45,37,.58);
  font-size: 8px;
  font-weight: 520;
  letter-spacing: .03em;
}

/* Character note */
.character-note {
  padding: clamp(112px, 9vw, 154px) 0 clamp(92px, 8vw, 132px);
  background: var(--character-paper);
}
.character-note-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.18fr) minmax(320px, .82fr);
  align-items: start;
  gap: clamp(42px, 6.5vw, 96px);
}
.character-margin-label {
  padding-top: 9px;
  color: #968980;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: .2em;
  font-weight: 800;
}
.character-note-main h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 4.35vw, 68px);
  line-height: 1.16;
  letter-spacing: -.055em;
  font-weight: 700;
}
.character-note-main > p {
  max-width: 620px;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(21px, 1.7vw, 27px);
  line-height: 1.72;
}
.character-note-aside {
  padding: 10px 0 8px 28px;
  border-left: 1px solid var(--line);
}
.character-note-aside strong {
  display: block;
  font-size: 14px;
  line-height: 1.85;
}
.character-note-aside p {
  margin-top: 17px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.88;
}
.character-color-line {
  margin-top: clamp(64px, 7vw, 100px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.character-color-line a {
  position: relative;
  min-height: 92px;
  padding: 20px 12px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.character-color-line a:last-child { border-right: 0; }
.character-color-line a::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--swatch);
  transform-origin: left;
  transform: scaleX(.42);
  transition: transform .28s var(--ease);
}
.character-color-line a:hover,
.character-color-line a:focus-visible { background: rgba(255,255,255,.54); outline: 1px solid currentColor; outline-offset: -4px; }
.character-color-line a:hover::before,
.character-color-line a:focus-visible::before { transform: scaleX(1); }
.character-color-line span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .15em;
}
.character-color-line b {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.2;
}

/* Character browser */
.character-browser-section {
  padding: clamp(118px, 9vw, 160px) 0;
  background: var(--character-paper-light);
}
.character-browser-heading,
.character-material-heading,
.character-system-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .72fr);
  align-items: end;
  gap: clamp(56px, 8vw, 120px);
}
.character-browser-heading { margin-bottom: clamp(56px, 6vw, 88px); }
.character-browser-heading h2,
.character-material-heading h2,
.character-system-heading h2,
.characters-closing-copy h2 {
  font-family: var(--serif);
  font-size: clamp(46px, 4.7vw, 72px);
  line-height: 1.15;
  letter-spacing: -.058em;
  font-weight: 700;
}
.character-browser-heading > p,
.character-material-heading > p,
.character-system-heading > p {
  max-width: 500px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.character-browser {
  --character-accent: #ef5a45;
  --character-soft: #f3ddd6;
  --character-ink: #77352e;
  min-height: 720px;
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  border-top: 1px solid rgba(61,43,33,.18);
  border-bottom: 1px solid rgba(61,43,33,.18);
  background: var(--character-paper);
  overflow: hidden;
}
.character-panels { min-width: 0; }
.character-panel {
  min-width: 0;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(430px, 1.1fr) minmax(360px, .88fr);
}
.character-panel + .character-panel { border-top: 1px solid rgba(61,43,33,.18); }
.character-browser.is-enhanced .character-panel[hidden] { display: none; }
.character-selector {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(61,43,33,.18);
  background: rgba(255,253,249,.54);
}
.character-selector [data-character] {
  min-height: 72px;
  flex: 1;
  display: grid;
  grid-template-columns: 11px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(61,43,33,.13);
  background: transparent;
  color: #66584e;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.character-selector [data-character]:last-child { border-bottom: 0; }
.character-selector [data-character]:hover,
.character-selector [data-character]:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -4px;
  background: rgba(255,255,255,.68);
  color: var(--ink);
}
.character-selector [data-character].is-selected {
  background: var(--character-soft);
  color: var(--character-ink);
}
.character-selector [data-character] > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
}
.character-selector b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; letter-spacing: .02em; }
.character-selector em { color: #968980; font-size: 8px; font-style: normal; letter-spacing: .12em; }
.character-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: grid;
  place-items: end center;
  background: var(--character-soft);
  transition: background .34s ease;
}
.character-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 68%;
  aspect-ratio: 1;
  left: 50%;
  bottom: -38%;
  border: 1px solid rgba(65,45,35,.13);
  border-radius: 50%;
  transform: translateX(-50%);
}
.character-stage > img {
  position: relative;
  z-index: 1;
  width: min(88%, 690px);
  max-height: 670px;
  object-fit: contain;
  transform-origin: 50% 100%;
  transition: opacity .2s ease, transform .34s var(--ease);
}
.character-stage figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 22px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(54,40,32,.65);
  font-size: 8px;
  letter-spacing: .14em;
  font-style: normal;
}
.character-profile {
  min-width: 0;
  padding: 64px clamp(38px, 4vw, 62px) 48px;
  border-left: 1px solid rgba(61,43,33,.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,253,249,.66);
}
.character-order {
  color: var(--character-accent);
  font-size: 9px;
  line-height: 1;
  letter-spacing: .18em;
  font-weight: 800;
  transition: color .25s ease;
}
.character-profile h3 {
  margin-top: 17px;
  font-family: var(--serif);
  font-size: clamp(44px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -.05em;
}
.character-cn {
  margin-top: 13px;
  color: var(--character-accent);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  transition: color .25s ease;
}
.character-profile blockquote {
  margin: 36px 0 0;
  font-family: var(--serif);
  font-size: clamp(21px, 1.8vw, 28px);
  line-height: 1.55;
  font-weight: 700;
}
.character-description {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.character-meta {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.character-meta div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.character-meta dt { color: #8a7d74; font-size: 9px; letter-spacing: .12em; }
.character-meta dd { font-size: 11px; line-height: 1.65; }
.character-controls {
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.character-controls button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.character-panel.is-active .character-stage > img { animation: character-enter .2s ease both; }
@keyframes character-enter {
  from { opacity: .35; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}

/* Family silhouette system */
.character-system {
  padding: clamp(120px, 9vw, 160px) 0;
  overflow: hidden;
  background: var(--character-dark);
  color: #fffaf4;
}
.character-system-heading { margin-bottom: clamp(68px, 7vw, 104px); }
.character-system-heading > p { color: rgba(255,250,244,.62); }
.family-lineup-wrap {
  width: min(1500px, calc(100vw - 40px));
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.family-lineup-wrap::-webkit-scrollbar { display: none; }
.family-lineup {
  min-width: max(100%, calc(var(--family-count, 10) * 100px));
  display: grid;
  grid-template-columns: repeat(var(--family-count, 10), minmax(100px, 1fr));
  align-items: end;
  gap: 3px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.23);
}
.family-lineup figure { min-width: 0; }
.family-lineup img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  transform-origin: 50% 100%;
  transform: scale(.94);
  transition: transform .28s var(--ease);
}
.family-lineup figure:hover img { transform: translateY(-8px) scale(.94); }
.family-lineup [data-character-code="dopamine"] img { transform: scale(.90); }
.family-lineup [data-character-code="dopamine"]:hover img { transform: translateY(-8px) scale(.90); }
.family-lineup figcaption {
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  font-style: normal;
  white-space: nowrap;
}
.family-lineup figcaption span { color: rgba(255,255,255,.45); font-size: 7px; }
.family-lineup figcaption b { font-size: 8px; letter-spacing: .03em; }
.character-system-notes {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  border-top: 1px solid rgba(255,255,255,.17);
}
.character-system-notes > div {
  padding: 27px clamp(20px, 3vw, 40px) 0 0;
  border-right: 1px solid rgba(255,255,255,.13);
}
.character-system-notes > div:nth-child(2) { padding-left: clamp(20px, 3vw, 40px); }
.character-system-notes > div:last-child { padding-left: clamp(20px, 3vw, 40px); border-right: 0; }
.character-system-notes span { color: #f09a8f; font-size: 8px; letter-spacing: .13em; }
.character-system-notes strong { display: block; margin-top: 18px; font-family: var(--serif); font-size: 20px; }
.character-system-notes p { max-width: 330px; margin-top: 12px; color: rgba(255,250,244,.56); font-size: 12px; line-height: 1.75; }

/* Material translation */
.character-material {
  padding: clamp(120px, 9vw, 166px) 0;
  background: var(--character-paper);
}
.character-material-heading { margin-bottom: clamp(40px, 4vw, 64px); }
.material-stories { border-top: 1px solid var(--line); }
.material-story {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  gap: clamp(58px, 8vw, 118px);
  padding: clamp(78px, 7vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}
.material-story-b .material-photo { order: 2; }
.material-story-b .material-copy { order: 1; }
.material-photo { min-width: 0; }
.material-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.material-number {
  color: var(--red);
  font-size: 9px;
  letter-spacing: .18em;
  font-weight: 800;
}
.material-copy h3 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(35px, 3.25vw, 50px);
  line-height: 1.25;
  letter-spacing: -.045em;
}
.material-copy > p:nth-of-type(2) {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}
.material-reference {
  width: 190px;
  margin-top: 38px;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: end;
  gap: 12px;
}
.material-reference img { width: 112px; aspect-ratio: 1; object-fit: contain; }
.material-reference figcaption {
  padding-bottom: 10px;
  color: #8a7d74;
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .08em;
  font-style: normal;
}

/* Closing */
.characters-closing {
  padding: clamp(104px, 8vw, 144px) 0;
  background: #ece0d3;
}
.characters-closing-grid {
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(60px, 8vw, 124px);
}
.characters-closing-copy > p:nth-of-type(2) {
  max-width: 500px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}
.characters-closing-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.characters-closing-media {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 7.4;
  overflow: hidden;
  background: #d8c0a9;
}
.characters-closing-background,
.characters-closing-background img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.characters-closing-background img {
  object-fit: cover;
}
.characters-closing-family {
  position: absolute;
  z-index: 1;
  inset: auto 4% 8%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  align-items: end;
}
.characters-closing-family img {
  width: 260%;
  max-width: none;
  margin-left: -80%;
  filter: drop-shadow(0 9px 8px rgba(65, 41, 24, .16));
}
.characters-closing-media figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 18px 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(47, 32, 23, .72);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: .08em;
  font-style: normal;
}
.characters-closing-media figcaption em { font-style: normal; letter-spacing: 0; }

@media (max-width: 1240px) {
  .characters-hero-copy-inner { width: min(530px, 45vw); }
  .characters-hero h1 { font-size: clamp(54px, 5.6vw, 74px); }
  .character-note-grid { grid-template-columns: 110px minmax(0,1.1fr) minmax(300px,.9fr); gap: 52px; }
  .character-browser { grid-template-columns: 154px minmax(0, 1fr); }
  .character-panel { grid-template-columns: minmax(390px, 1fr) minmax(330px, .86fr); }
  .character-profile { padding-inline: 38px; }
}

@media (max-width: 1120px) {
  .characters-page .footer-top { grid-template-columns: .7fr 1.3fr; }
  .characters-page .newsletter { grid-column: 1 / 3; max-width: 520px; }
}

@media (max-width: 1060px) {
  .characters-hero {
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }
  .characters-hero-media {
    position: relative;
    order: 1;
    width: 100%;
    aspect-ratio: 1920 / 820;
    overflow: hidden;
  }
  .characters-hero-media img { object-position: center; }
  .characters-hero-family {
    inset: 0 0 auto 34%;
    height: calc(100vw * .4271);
  }
  .characters-hero-copy {
    position: relative;
    order: 3;
    width: var(--shell);
    padding: 62px 0 78px;
  }
  .characters-hero-copy-inner { width: min(700px, 100%); }
  .characters-hero h1 { font-size: clamp(56px, 8vw, 76px); }
  .characters-hero-caption {
    position: relative;
    order: 2;
    right: auto;
    bottom: auto;
    width: var(--shell);
    margin: 0 auto;
    padding-top: 16px;
  }

  .character-note-grid { grid-template-columns: 1fr 1fr; }
  .character-margin-label { grid-column: 1 / 3; }
  .character-color-line {
    grid-template-columns: repeat(5, minmax(0,1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }
  .character-color-line a:nth-child(5) { border-right: 0; }
  .character-color-line a:nth-child(-n+5) { border-bottom: 1px solid var(--line); }

  .character-browser {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .character-selector {
    grid-column: 1;
    min-width: 0;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(61,43,33,.18);
    scrollbar-width: none;
  }
  .character-panels { grid-column: 1; }
  .character-panel {
    min-height: 0;
    grid-template-columns: minmax(0,1fr) minmax(330px,.78fr);
  }
  .character-selector::-webkit-scrollbar { display: none; }
  .character-selector [data-character] {
    min-height: 66px;
    flex: 0 0 150px;
    border-right: 1px solid rgba(61,43,33,.13);
    border-bottom: 0;
  }
  .character-stage { min-height: 600px; }
  .character-profile { min-height: 600px; }

  .material-story { grid-template-columns: 1fr 1fr; gap: 56px; }
  .characters-closing-grid { grid-template-columns: 1fr; }
  .characters-closing-media { order: -1; }
}

@media (min-width: 761px) and (max-width: 820px) {
  .characters-hero-copy { padding-block: 54px 70px; }
  .characters-hero h1 { font-size: 58px; }
  .character-browser-heading,
  .character-material-heading,
  .character-system-heading { grid-template-columns: 1fr; gap: 24px; }
  .character-browser-heading > p,
  .character-material-heading > p,
  .character-system-heading > p { padding-bottom: 0; }
  .character-browser { grid-template-columns: 1fr; }
  .character-selector { grid-column: 1; }
  .character-panel { grid-template-columns: 1fr; }
  .character-stage { min-height: 560px; }
  .character-profile { min-height: 0; border-top: 1px solid rgba(61,43,33,.18); border-left: 0; }
}

@media (max-width: 760px) {
  .characters-hero { margin-top: var(--header-h); }
  .characters-hero-media { aspect-ratio: 1 / 1; }
  .characters-hero-family {
    inset: 0;
    height: 100vw;
  }
  .characters-hero-family img {
    width: 76vw;
    bottom: 0;
  }
  .characters-hero-family__klein { left: -28%; transform: scale(.72); }
  .characters-hero-family__walter { left: -3%; transform: scale(.88); }
  .characters-hero-family__pearl { left: 26%; transform: scale(.78); }
  .characters-hero-family__orinch { left: 51%; transform: scale(.68); }
  .characters-hero-copy { padding: 46px 0 66px; }
  .characters-kicker { margin-bottom: 18px; font-size: 8px; }
  .characters-hero h1 { font-size: clamp(46px, 13.8vw, 60px); line-height: 1.08; }
  .characters-hero-lead { margin-top: 24px; font-size: 14px; line-height: 1.86; }
  .characters-hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; margin-top: 30px; }
  .characters-hero-caption {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-top: 13px;
    font-size: 8px;
  }
  .characters-hero-caption small { grid-column: auto; line-height: 1.55; }

  .character-note { padding: 88px 0 76px; }
  .character-note-grid { grid-template-columns: 1fr; gap: 34px; }
  .character-margin-label { grid-column: auto; padding-top: 0; font-size: 8px; }
  .character-note-main h2 { font-size: clamp(39px, 11.5vw, 50px); }
  .character-note-main > p { margin-top: 22px; font-size: 18px; line-height: 1.72; }
  .character-note-aside { padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .character-color-line {
    width: 100%;
    margin-top: 54px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .character-color-line::-webkit-scrollbar { display: none; }
  .character-color-line a,
  .character-color-line a:nth-child(5),
  .character-color-line a:nth-child(-n+5) {
    flex: 0 0 112px;
    min-height: 84px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .character-browser-section { padding: 92px 0; }
  .character-browser-heading,
  .character-material-heading,
  .character-system-heading { grid-template-columns: 1fr; gap: 24px; }
  .character-browser-heading { margin-bottom: 44px; }
  .character-browser-heading h2,
  .character-material-heading h2,
  .character-system-heading h2,
  .characters-closing-copy h2 { font-size: clamp(39px, 11.5vw, 52px); }
  .character-browser-heading > p,
  .character-material-heading > p,
  .character-system-heading > p { padding-bottom: 0; font-size: 13px; line-height: 1.8; }
  .character-browser { display: flex; flex-direction: column; }
  .character-selector {
    order: 1;
    width: 100%;
    grid-column: auto;
  }
  .character-selector [data-character] { flex-basis: 132px; min-height: 62px; padding-inline: 12px; }
  .character-panels { order: 2; width: 100%; }
  .character-panel { display: flex; flex-direction: column; min-height: 0; }
  .character-stage { order: 2; min-height: 410px; }
  .character-stage > img { width: min(94%, 430px); max-height: 405px; }
  .character-stage figcaption { inset-inline: 14px; bottom: 12px; font-size: 7px; }
  .character-profile { order: 3; min-height: 0; padding: 42px 22px 38px; border-top: 1px solid rgba(61,43,33,.18); border-left: 0; }
  .character-profile h3 { font-size: 46px; }
  .character-cn { font-size: 16px; }
  .character-profile blockquote { margin-top: 28px; font-size: 22px; }
  .character-description { font-size: 13px; }
  .character-meta div { grid-template-columns: 78px minmax(0,1fr); }

  .character-system { padding: 94px 0 88px; }
  .character-system-heading { margin-bottom: 54px; }
  .family-lineup-wrap { width: 100%; padding-inline: 14px; }
  .family-lineup { min-width: max-content; grid-template-columns: repeat(var(--family-count, 10), 122px); gap: 0; padding-bottom: 18px; }
  .family-lineup figure { width: auto; }
  .character-system-notes { grid-template-columns: 1fr; margin-top: 44px; }
  .character-system-notes > div,
  .character-system-notes > div:nth-child(2),
  .character-system-notes > div:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.13);
  }
  .character-system-notes > div:last-child { border-bottom: 0; }

  .character-material { padding: 94px 0; }
  .character-material-heading { margin-bottom: 34px; }
  .material-story { grid-template-columns: 1fr; gap: 34px; padding: 62px 0; }
  .material-story-b .material-photo,
  .material-story-b .material-copy { order: initial; }
  .material-photo img { aspect-ratio: 4 / 3; }
  .material-copy h3 { font-size: 34px; }
  .material-copy > p:nth-of-type(2) { font-size: 13px; line-height: 1.9; }
  .material-reference { margin-top: 30px; }

  .characters-closing { padding: 88px 0 96px; }
  .characters-closing-grid { gap: 48px; }
  .characters-closing-media { order: -1; }
  .characters-closing-media { aspect-ratio: 4 / 5; }
  .characters-closing-background img { object-position: center; }
  .characters-closing-family {
    inset: auto 3% 8%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    row-gap: 0;
  }
  .characters-closing-family img { width: 190%; margin-left: -45%; }
  .characters-closing-media figcaption { inset: 14px 14px auto; align-items: flex-start; flex-direction: column; gap: 4px; }
  .characters-closing-copy > p:nth-of-type(2) { font-size: 13px; }
  .characters-closing-actions { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .characters-hero-copy { width: calc(100vw - 28px); }
  .characters-hero h1 { font-size: 47px; }
  .character-color-line { width: 100%; margin-inline: 0; padding-left: 0; }
  .character-browser { margin-inline: -1px; }
  .character-stage { min-height: 382px; }
  .character-stage > img { max-height: 378px; }
  .character-profile { padding-inline: 19px; }
  .character-profile h3 { font-size: 43px; }
  .character-meta div { grid-template-columns: 72px minmax(0,1fr); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .character-stage > img,
  .character-selector [data-character],
  .character-color-line a::before,
  .family-lineup img { transition: none !important; }
}
