:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #0d1219;
  --panel-hot: #121a24;
  --ink: #f0eee7;
  --muted: #8f98a3;
  --faint: #4e5965;
  --line: #27313b;
  --red: #f2543f;
  --cyan: #66d6cf;
  --blue: #9baeff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100svh; margin: 0; color: var(--ink); background: radial-gradient(circle at 80% 8%, rgb(102 214 207 / 8%), transparent 27rem), radial-gradient(circle at 8% 24%, rgb(242 84 63 / 8%), transparent 24rem), var(--bg); }
body, a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .08; background-image: linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px); background-size: 4rem 4rem; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.site-header, main, footer { width: min(100% - 3rem, 82rem); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.brand span { color: var(--red); }
.site-header nav { display: flex; gap: 1.4rem; color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav a:hover, .back-link:hover, .view-link:hover { color: var(--cyan); }
.rights-notice { width: min(100% - 3rem, 82rem); margin: 1rem auto 0; display: flex; gap: 1.25rem; align-items: baseline; padding: 1.35rem 1.5rem; border: 1px solid var(--red); color: var(--ink); background: rgb(242 84 63 / 10%); box-shadow: 0 0 2.5rem rgb(242 84 63 / 8%); font-size: 1.6rem; line-height: 1.45; }
.rights-notice strong { flex: 0 0 auto; color: var(--red); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.rights-notice span { max-width: 68rem; }

.hero { padding: clamp(5rem, 12vw, 10rem) 0 7rem; max-width: 58rem; }
.hero-kicker, .section-label, .sample-kind { color: var(--cyan); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(4rem, 11vw, 9rem); line-height: .84; letter-spacing: -.075em; }
.hero h1 { margin-top: 1.2rem; }
h1 em { color: var(--red); font-style: normal; }
.hero-intro { max-width: 35rem; margin-top: 2.6rem; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.6; }
.hero-stats { display: flex; gap: clamp(2rem, 7vw, 6rem); margin-top: 3rem; }
.hero-stats div { display: grid; gap: .3rem; }
.hero-stats strong { color: var(--ink); font-size: 2.2rem; line-height: 1; }
.hero-stats span { color: var(--faint); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.archive-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 1.2rem 0 1.8rem; border-top: 1px solid var(--line); }
.archive-heading h2 { margin-top: .55rem; font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.06em; }
.archive-heading p { max-width: 26rem; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.character-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.character-card { min-width: 0; background: var(--panel); transition: background .2s ease, transform .2s ease; }
.character-card:hover { position: relative; z-index: 1; background: var(--panel-hot); transform: translateY(-.3rem); box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 25%); }
.portrait-wrap { position: relative; aspect-ratio: 347 / 398; overflow: hidden; background: #151d25; }
.portrait-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, transparent 52%, rgb(8 11 16 / 62%)); }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; filter: saturate(.82) contrast(1.06); }
.card-index { position: absolute; top: .8rem; left: .8rem; z-index: 1; color: var(--cyan); font: 700 .67rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.card-copy { padding: 1rem 1rem 1.2rem; }
.card-meta { display: flex; justify-content: space-between; gap: .5rem; color: var(--faint); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.character-card h2 { margin: .8rem 0 1.2rem; font-size: clamp(1.1rem, 2vw, 1.55rem); letter-spacing: -.04em; }
.view-link { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.profile-hero { padding: 3rem 0 6rem; }
.back-link { display: inline-block; margin-bottom: 3rem; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.profile-layout { display: grid; grid-template-columns: minmax(17rem, 27rem) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; }
.profile-portrait { border: 1px solid var(--line); background: var(--panel); }
.profile-portrait img { width: 100%; aspect-ratio: 347 / 398; object-fit: cover; filter: saturate(.82) contrast(1.06); }
.profile-heading h1 { margin-top: 1rem; font-size: clamp(4rem, 10vw, 8.4rem); }
.profile-heading > p { max-width: 29rem; margin-top: 1.5rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.character-identity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; max-width: 42rem; margin: 2rem 0 0; background: var(--line); border: 1px solid var(--line); }
.character-identity div { min-width: 0; padding: .9rem 1rem; background: var(--panel); }
.character-identity dt { color: var(--faint); font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.character-identity dd { margin: .45rem 0 0; color: var(--ink); font-size: .95rem; line-height: 1.3; }
code { color: var(--cyan); font: .85em ui-monospace, SFMono-Regular, Menlo, monospace; }
.preview-line { display: grid; gap: .8rem; max-width: 32rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.preview-line.muted { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.samples-section { padding-bottom: 5rem; }
.sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sample-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 7.5rem; padding: 1.4rem 1.5rem; background: var(--panel); }
.sample-card.extra { background: rgb(242 84 63 / 6%); }
.sample-card h3 { margin-top: .45rem; font-size: 1.25rem; letter-spacing: -.035em; }
.sample-kind { color: var(--faint); font-size: .58rem; }
audio { width: min(100%, 17rem); height: 2.3rem; accent-color: var(--red); }
.character-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; padding: 1.3rem 0 3rem; border-top: 1px solid var(--line); }
.character-nav a { display: grid; gap: .4rem; color: var(--muted); }
.character-nav a:last-child { text-align: right; }
.character-nav span { color: var(--faint); font-size: .62rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.character-nav strong { color: var(--ink); font-size: 1rem; }
.character-nav a:hover strong, .nav-center:hover { color: var(--cyan); }
.nav-center { align-self: center; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--line); color: var(--faint); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 62rem) { .character-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 46rem) { .site-header, main, footer { width: min(100% - 2rem, 82rem); } .hero { padding: 4rem 0 5rem; } .archive-heading { display: grid; gap: 1.2rem; } .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-layout { grid-template-columns: 1fr; gap: 2rem; } .profile-portrait { max-width: 24rem; } .profile-heading h1 { font-size: clamp(3.4rem, 17vw, 6rem); } .character-identity { grid-template-columns: 1fr; } .sample-grid { grid-template-columns: 1fr; } .sample-card { align-items: start; flex-direction: column; } audio { width: 100%; } footer { flex-direction: column; } }
@media (max-width: 46rem) { .rights-notice { width: min(100% - 2rem, 82rem); display: grid; gap: .55rem; padding: 1.1rem; font-size: 1.15rem; } }
@media (max-width: 25rem) { .character-grid { grid-template-columns: 1fr; } }
