/* Profile-only styles. Shared typography, cards and chrome come from style.css. */
.character-page { background: #fafbfc; overflow-x: clip; }
.character-page--mochi { --character-ink: #fff; }
.character-page::before { content: ""; position: absolute; inset: 0 0 auto; height: 1600px; pointer-events: none; background: linear-gradient(135deg, #e3eaf058, transparent 45%), repeating-linear-gradient(0deg, transparent 0 79px, #a7b7c20a 79px 80px), repeating-linear-gradient(90deg, transparent 0 79px, #a7b7c20a 79px 80px); }
.character-page .site-header { position: relative; z-index: 5; background: #ffffffb8; }
.character-page .floating-menu { z-index: 10; }
.profile-main { position: relative; }
.profile-skip { position: fixed; z-index: 20; left: 16px; top: 10px; padding: 10px 20px; background: var(--lime); transform: translateY(-200%); }
.profile-skip:focus { transform: none; }
.profile-breadcrumb { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; margin: 20px auto 35px; width: 88%; font: 600 .7rem/1.6 var(--font-ui); }
.profile-breadcrumb a { text-decoration: none; }
.profile-breadcrumb > span:not([aria-current]) { color: #6a8200; }
.character-profile { position: relative; display: grid; grid-template-columns: 47% 53%; max-width: 1600px; margin: auto; padding: 0 6% 100px 3%; }
.character-stage { position: relative; align-self: start; min-width: 0; padding-top: 20px; }
.character-stage::before { content: ""; position: absolute; inset: 6% 10% 5% 0; background: linear-gradient(155deg, #fff0 35%, color-mix(in srgb, var(--character-color) 19%, transparent) 35% 42%, #fff0 42% 70%, #e4eaf1 70% 71%, #fff0 71%); transform: skewY(-8deg); }
.character-stage__type { position: absolute; top: -20px; left: 0; width: 100%; overflow: hidden; color: #b8c3cc6e; }
.character-stage__type > span { font: italic 900 clamp(10rem, 24vw, 24rem)/.9 var(--font-display); letter-spacing: -.07em; }
.character-stage__type p { max-width: 70%; font: italic 900 clamp(2.8rem, 6.2vw, 7rem)/.9 var(--font-display); overflow-wrap: normal; }
.character-stage__circuit { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--character-color); stroke-width: 2; }
.character-stage__circuit path:nth-child(2) { stroke: #8b9ca4; stroke-width: 1; }
.character-stage__circuit circle { fill: #fff; stroke-width: 3; }
.character-standing { display: block; position: relative; z-index: 1; width: 100%; height: auto; max-height: 1180px; object-fit: contain; filter: drop-shadow(0 20px 18px #1b26301c); }
.character-stage__label { position: relative; z-index: 1; margin: 16px 10% 0; padding-top: 12px; border-top: 1px solid #aeb9bf; font: 600 .68rem/1.6 var(--font-ui); letter-spacing: .06em; }
.character-stage__label span { display: block; color: #65747b; font-size: .58rem; }
.character-information { position: relative; align-self: center; min-width: 0; padding: 20px 0 0 5%; isolation: isolate; }
.profile-kicker { font: 600 .68rem/1.6 var(--font-ui); letter-spacing: .13em; margin-bottom: 55px; }
.character-code { display: flex; align-items: center; gap: 12px; font: 700 2rem/1 var(--font-ui); margin-bottom: 18px; }
.character-code span { font-size: .85rem; letter-spacing: .08em; padding-bottom: 6px; border-bottom: 2px solid var(--character-color); }
.character-information h1 { font: 900 clamp(2.8rem, 4.8vw, 5.5rem)/1.3 var(--font-ja); letter-spacing: -.06em; }
.character-english { font: 700 clamp(.9rem, 1.4vw, 1.2rem)/1.6 var(--font-ui); letter-spacing: .15em; margin: 8px 0 32px; }
.character-catchphrase { font: 900 clamp(1.3rem, 2.2vw, 2.1rem)/1.6 var(--font-ja); padding-left: 20px; border-left: 5px solid var(--character-color); margin-bottom: 26px; }
.character-introduction { max-width: 36em; font-size: 1rem; line-height: 2; text-wrap: pretty; }
.character-introduction p + p { margin-top: 20px; }
.character-introduction .character-signature { position: relative; box-sizing: border-box; width: 100%; margin-top: 26px; padding: 20px 22px 20px 66px; border-left: 4px solid var(--character-color); background: #f1f2f3; color: #252a30; font: 800 20px/1.7 var(--font-ja); letter-spacing: .04em; box-shadow: 0 2px 4px #00000014; }
.character-signature::before { content: ""; position: absolute; left: 17px; top: 24px; width: 30px; height: 30px; background: var(--character-color); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M2 18C2 10 5 6 13 5v5c-4 1-5 3-5 6h6v12H2zm17 0c0-8 3-12 11-13v5c-4 1-5 3-5 6h6v12H19z'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.profile-socials { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 42px; }
.profile-social { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 48px; padding: 10px 24px; background: var(--lime); font: 700 .9rem/1.5 var(--font-ui); text-decoration: none; clip-path: polygon(8% 0,100% 0,92% 100%,0 100%); }
.profile-social:nth-child(2) { background: #e3e9ed; }
.profile-social small { font: 500 .65rem/1.5 var(--font-ja); }
.character-data { max-width: 36em; }
.character-data h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; font: italic 800 1.65rem/1.5 var(--font-display); margin-bottom: 8px; }
.character-data h2 span { font: 500 .62rem/1.5 var(--font-ui); letter-spacing: .1em; color: #66747b; }
.character-data dl { margin: 0; }
.character-data dl > div { display: grid; grid-template-columns: 30% 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid #dce1e4; font-size: .88rem; }
.character-data dt { font-weight: 700; }
.character-data dd { margin: 0; }
.profile-content { position: relative; z-index: 2; width: 82%; max-width: 1360px; margin: 0 auto; }
.profile-media-section { position: relative; padding: 65px 0 70px; }
.profile-media-section::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--character-color), #dce3e9 60%, transparent); }
.profile-section-heading { margin-bottom: 30px; }
.profile-section-heading > p { font: 600 .7rem/1.5 var(--font-ui); letter-spacing: .12em; color: #657078; }
.profile-section-heading h2 { font: italic 900 clamp(2.8rem, 5.6vw, 5rem)/1.1 var(--font-display); letter-spacing: -.015em; margin: 5px 0; }
.profile-section-heading > span { font-size: .85rem; }
.profile-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.profile-media-card { display: block; min-width: 0; text-decoration: none; }
.profile-video-trigger { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.profile-video-trigger:focus-visible { outline: 3px solid var(--lime); outline-offset: -4px; }
.profile-media-card__image.is-playing { clip-path: none; min-height: 200px; }
.profile-media-card__image iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.profile-video-external { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 5px; color: #52616c; font: 600 .7rem/1.6 var(--font-ui); text-underline-offset: .25em; }
.profile-media-card__image { position: relative; aspect-ratio: 16/9; overflow: hidden; clip-path: polygon(0 0,94% 0,100% 12%,100% 100%,0 100%); background: #1a242d; }
.profile-media-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 80% 20%; transition: transform .4s; }
.profile-media-card:nth-child(2) img { object-position: 90% 20%; }
.profile-media-card img[src*="/videos/"] { object-position: center; }
.profile-media-card__image > span { position: absolute; bottom: 0; left: 0; padding: 5px 12px; background: #0b0d10e8; color: #fff; font: 600 .65rem/1.6 var(--font-ui); }
.profile-video-trigger::after { content: ""; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: #0b0d10bd; box-shadow: 0 2px 12px #0003; pointer-events: none; transition: background-color .25s, border-color .25s; }
.profile-video-trigger::before { content: ""; position: absolute; z-index: 1; top: 50%; left: 50%; width: 15px; height: 19px; transform: translate(-40%, -50%); clip-path: polygon(0 0, 100% 50%, 0 100%); background: #fff; pointer-events: none; }
.profile-video-trigger:is(:hover, :focus-visible)::after { background: #0b0d10eb; border-color: var(--lime); }
.profile-video-trigger:is(:hover,:focus-visible) img { transform: scale(1.04); }
.profile-media-card > p { margin: 14px 0 5px; font: 600 .65rem/1.5 var(--font-ui); letter-spacing: .08em; color: #657078; }
.profile-media-card h3 { font-size: 1rem; line-height: 1.7; }
.profile-media-actions { display: flex; justify-content: flex-end; margin-top: 32px; }
.profile-media-more { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; min-width: 220px; padding: 12px 24px; border: 0; background: var(--lime); color: var(--ink); font: 700 .9rem/1.6 var(--font-ja); text-decoration: none; transition: background-color .25s; }
.profile-media-more small { font-size: .65rem; font-weight: 500; }
a.profile-media-more:is(:hover, :focus-visible) { background: var(--character-color); color: var(--character-ink, var(--ink)); text-decoration: underline; text-underline-offset: .3em; }
.profile-media-more:disabled { cursor: default; }
.profile-others { position: relative; isolation: isolate; color: #fff; padding: 150px 0 115px; margin-top: 70px; }
.profile-others::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #0b1015; clip-path: polygon(0 55px,15% 55px,19% 0,65% 0,69% 30px,100% 30px,100% calc(100% - 35px),80% calc(100% - 35px),76% 100%,0 100%); }
.profile-others::after { content: ""; position: absolute; z-index: -1; inset: 70px 0; background: repeating-linear-gradient(90deg,transparent 0 79px,#ffffff05 79px 80px), repeating-linear-gradient(0deg,transparent 0 79px,#ffffff05 79px 80px); }
.profile-others__inner { width: 82%; max-width: 1200px; margin: auto; }
.profile-others .profile-section-heading > p { color: var(--lime); }
.profile-other-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding: 0; }
.profile-other-grid .member-portrait { height: 440px; }
.profile-other-grid .member-portrait__name h3 { font-size: clamp(.8rem,1.3vw,1.2rem); }
.profile-member-list { display: flex; align-items: center; justify-content: space-between; width: 240px; margin: 45px 0 0 auto; border-bottom: 2px solid var(--lime); padding: 12px 5px; text-decoration: none; color: var(--lime); font: 700 1rem/1.5 var(--font-ui); }
.character-page .connected-footer { background: #f2f5f7; }
.profile-circuit { position: absolute; inset: 0 auto auto 0; width: 100%; overflow: hidden; pointer-events: none; z-index: 1; }
.profile-circuit__track { fill: none; stroke: #abb8bf40; stroke-width: 1; }
.profile-circuit__wire { fill: none; stroke: var(--character-color); stroke-width: 2; }
.profile-circuit__pulse { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.profile-circuit__hub { fill: #fafbfc; stroke: #a6b2ba; stroke-width: 2; transition: fill .4s, stroke .4s; }
.profile-circuit__hub.is-active { fill: var(--character-color); stroke: #718e00; }
.profile-circuit__branch { fill: none; stroke: var(--lime); stroke-width: 1.5; transition: stroke .25s, stroke-width .25s; }
.profile-circuit__branch.is-selected { stroke: var(--port-color); stroke-width: 3; }
@media(max-width:1100px) { .profile-other-grid { gap: 12px; } .profile-other-grid .member-portrait { height: 390px; } .character-profile { grid-template-columns: 46% 54%; } .profile-kicker { margin-bottom: 30px; } }
@media(max-width:850px) {
  .character-page .site-header { display: flex; padding-right: 85px; }
  .character-page .site-header > nav, .character-page .site-header > .button { display: none; }
  .character-page .floating-menu { right: 20px; }
  .profile-breadcrumb { margin-bottom: 15px; font-size: .6rem; }
  .character-profile { display: block; padding: 0 7% 65px; }
  .character-stage { max-width: 520px; margin: auto; }
  .character-standing { max-height: 810px; }
  .character-stage__type > span { font-size: 52vw; }
  .character-stage__type p { font-size: 15vw; }
  .character-information { padding: 55px 0 0; }
  .profile-kicker { margin-bottom: 28px; }
  .character-information h1 { font-size: clamp(2.6rem,8vw,4.5rem); }
  .character-catchphrase { font-size: 1.6rem; }
  .profile-content,.profile-others__inner { width: 84%; }
  .profile-media-grid { gap: 24px 15px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-media-grid > :last-child { grid-column: 1 / -1; max-width: calc(50% - 8px); }
  .profile-other-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px 14px; }
  .profile-other-grid .member-portrait:last-child { width: auto; grid-column: auto; justify-self: stretch; }
  .profile-other-grid .member-portrait { height: 430px; }
  .profile-others { padding-block: 115px 80px; }
}
@media(max-width:500px) {
  .profile-media-grid { grid-template-columns: 1fr; gap: 28px; }
  .profile-media-grid > :last-child { max-width: none; }
  .profile-section-heading h2 { font-size: 2.8rem; }
  .profile-other-grid .member-portrait { height: 345px; }
  .profile-other-grid .member-portrait__name h3 { font-size: .65rem; }
  .profile-other-grid .member-portrait__code { font-size: .58rem; letter-spacing: 0; }
  .profile-other-grid .member-portrait__name p { font-size: .48rem; letter-spacing: 0; }
  .profile-other-grid .member-profile-link { width: 96%; padding-inline: 12px; }
  .character-stage__label { margin-inline: 0; }
  .character-catchphrase { font-size: 1.35rem; padding-left: 12px; }
  .character-data dl > div { grid-template-columns: 30% 1fr; gap: 10px; font-size: .8rem; }
}
/* The signature powers up once: accent line, quotation mark, then dialogue. */
.character-page .character-signature.is-revealed { animation: signature-line 650ms ease-out both; }
.character-page .character-signature.is-revealed::before { animation: signature-appear 400ms 160ms both; }
.character-page .character-signature.is-revealed .character-signature__text { display: block; animation: signature-appear 500ms 260ms both; }
@keyframes signature-line { from { border-left-color: transparent; } to { border-left-color: var(--character-color); } }
@keyframes signature-appear { from { opacity: 0; } to { opacity: 1; } }
@media(prefers-reduced-motion:reduce) { .character-page *, .character-page *::before, .character-page *::after { animation: none !important; transition: none !important; } }
