:root {
    --hex-primary: #4E6E39;
    --hex-accent: #298C22;
    --scroll-thumb-dark: #1a2e14;
    --bg-deep: #0f1410;
    --bg-mid: #1a2218;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(78, 110, 57, 0.28);
    --glow-green: rgba(78, 110, 57, 0.4);
    --text-soft: rgba(255, 255, 255, 0.78);
    --link: #c8e6a0;
    --link-hover: #e8f5c8;
    --radius: 16px;
    --radius-sm: 10px;
    --font-display: 'Arabolical', fantasy;
    --trait-honesty: #4E6E39;
    --trait-emotionality: #8C5A7E;
    --trait-extraversion: #e85d4c;
    --trait-agreeableness: #7E8C0A;
    --trait-conscientiousness: #c9a227;
    --trait-openness: #0A7E8C;
}

@font-face {
    font-family: 'Arabolical';
    src: url('font/Arabolical.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'F1';
    src: url('font/f1.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Fantaisie Artistique';
    src: url('font/FantaisieArtistique.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Foglihten';
    src: url('font/FoglihtenNo07.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Mochesa';
    src: url('font/Mochesa.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Script Alt';
    src: url('font/SCRIPALT.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Sirin Stencil';
    src: url('font/SirinStencil-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Strato';
    src: url('font/Strato-linked.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Vins Dojo';
    src: url('font/vinsdojo.TTF') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Wonderia';
    src: url('font/Wonderia.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Zhivilia';
    src: url('font/zhivilia.ttf') format('truetype');
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: var(--bg-deep);
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    line-height: 1.55;
}

.bg-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 28px);
}

/* ─── Header ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(15, 20, 16, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    gap: 12px;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(0.82rem, 2.2vw, 1.05rem);
    line-height: 1.25;
    color: #fff;
    text-decoration: none;
    border-bottom: none;
    max-width: min(52vw, 320px);
}

.logo:hover { color: var(--hex-accent); }

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: flex-end;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    border-bottom: none;
    transition: color 0.15s;
}

.nav-link:hover { color: var(--hex-accent); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    border-bottom: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--scroll-thumb-dark), var(--hex-primary));
    color: #fff;
    box-shadow: 0 4px 20px var(--glow-green);
}

.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface);
    color: #fff;
    border: 1.5px solid var(--surface-border);
}

.btn-secondary:hover {
    border-color: var(--hex-accent);
    color: #c8e6a0;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 0 56px;
    overflow: hidden;
}

.hero-blobs .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blob-float 14s ease-in-out infinite;
}

.blob--1 {
    width: 280px; height: 280px;
    background: var(--trait-honesty);
    top: 10%; left: 5%;
}

.blob--2 {
    width: 220px; height: 220px;
    background: var(--trait-openness);
    bottom: 15%; right: 8%;
    animation-delay: -4s;
}

.blob--3 {
    width: 180px; height: 180px;
    background: var(--trait-extraversion);
    top: 40%; right: 20%;
    animation-delay: -8s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -24px) scale(1.08); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-icon {
    width: clamp(72px, 14vw, 110px);
    height: auto;
    margin-bottom: 16px;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hex-accent);
    margin-bottom: 12px;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.6rem);
    margin: 0 0 14px;
    line-height: 1.15;
}

h2, h3 {
    font-family: var(--font-display);
    font-weight: normal;
}

.hero .lead {
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    color: var(--text-soft);
    max-width: 40rem;
    margin: 0 auto 24px;
}

.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;
}

.hero-fonts {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(20px, 3vw, 36px);
    width: 100%;
    margin: 0 0 24px;
    padding: 0 8px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hero-font {
    flex: 0 0 auto;
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.15;
    font-weight: normal;
    color: #fff;
    white-space: nowrap;
}

.hero-font[data-font="1"] { font-family: 'Arabolical', fantasy; }
.hero-font[data-font="2"] { font-family: 'F1', fantasy; }
.hero-font[data-font="3"] { font-family: 'Fantaisie Artistique', fantasy; }
.hero-font[data-font="4"] { font-family: 'Foglihten', fantasy; }
.hero-font[data-font="5"] { font-family: 'Mochesa', sans-serif; }
.hero-font[data-font="6"] { font-family: 'Script Alt', cursive; }
.hero-font[data-font="7"] { font-family: 'Sirin Stencil', fantasy; }
.hero-font[data-font="8"] { font-family: 'Strato', sans-serif; }
.hero-font[data-font="9"] { font-family: 'Vins Dojo', fantasy; }
.hero-font[data-font="10"] { font-family: 'Wonderia', fantasy; }
.hero-font[data-font="11"] { font-family: 'Zhivilia', fantasy; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.hex-chips {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(4px, 1vw, 8px);
    justify-content: center;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
}

.hex-chip {
    font-size: clamp(0.62rem, 1.65vw, 0.72rem);
    font-weight: 700;
    padding: 7px clamp(8px, 1.2vw, 12px);
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    border-bottom: none;
    white-space: nowrap;
    transition: transform 0.15s;
}

.hex-chip:hover { transform: translateY(-2px); border-bottom: none; }

.hex-chip--honesty { background: rgba(78, 110, 57, 0.18); color: #b8d4a0; border-color: rgba(78, 110, 57, 0.4); }
.hex-chip--emotionality { background: rgba(140, 90, 126, 0.15); color: #e8b8dc; border-color: rgba(140, 90, 126, 0.35); }
.hex-chip--extraversion { background: rgba(232, 93, 76, 0.15); color: #ffb4a8; border-color: rgba(232, 93, 76, 0.35); }
.hex-chip--agreeableness { background: rgba(126, 140, 10, 0.15); color: #d4e07a; border-color: rgba(126, 140, 10, 0.35); }
.hex-chip--conscientiousness { background: rgba(201, 162, 39, 0.15); color: #f0d878; border-color: rgba(201, 162, 39, 0.35); }
.hex-chip--openness { background: rgba(10, 126, 140, 0.15); color: #9ed4da; border-color: rgba(10, 126, 140, 0.35); }

/* ─── Main layout ─── */
main {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
}

.flow-zone {
    padding: clamp(40px, 8vh, 72px) 0;
    scroll-margin-top: 72px;
}

.flow-zone--about {
    padding-top: clamp(28px, 5vh, 48px);
    background:
        linear-gradient(165deg, rgba(78, 110, 57, 0.08) 0%, transparent 42%),
        rgba(0, 0, 0, 0.15);
}

.flow-zone--scales {
    background: linear-gradient(180deg, transparent, rgba(78, 110, 57, 0.05), transparent);
}

.flow-zone--results { padding-top: clamp(28px, 4vh, 40px); }

.zone-intro {
    text-align: center;
    margin-bottom: clamp(24px, 4vh, 40px);
}

.zone-intro h2 { margin-top: 0; }

.zone-lead {
    color: var(--text-soft);
    font-size: 0.95rem;
    max-width: 42rem;
    margin: 10px auto 0;
    line-height: 1.6;
}

.zone-lead a,
.zone-lead a:visited {
    color: var(--link);
    border-bottom: 1px solid rgba(200, 230, 160, 0.45);
}

.zone-lead a:hover {
    color: var(--link-hover);
}

.zone-lead--stacked {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zone-lead__line { display: block; }

/* ─── Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Cards ─── */
.card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 28px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* ─── About panels ─── */
.about-stage {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
}

.about-stage__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 24px);
}

@media (max-width: 720px) {
    .about-stage__row { grid-template-columns: 1fr; }
}

.about-panel__head { margin-bottom: 12px; }

.about-panel__tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hex-accent);
    margin-bottom: 6px;
}

.about-panel__head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.about-panel__text {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin: 0 0 12px;
}

.about-panel__text:last-child { margin-bottom: 0; }

.about-panel__text a,
.about-panel__text a:visited {
    color: var(--link);
    border-bottom: 1px solid rgba(200, 230, 160, 0.4);
}

.about-panel__text a:hover { color: var(--link-hover); }

.about-panel--model {
    text-align: center;
    padding: clamp(18px, 3vw, 24px);
}

.about-panel--model .about-panel__head { margin-bottom: 0; }

.about-links {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.about-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    border-bottom: none;
}

.about-links a:hover { color: var(--link-hover); }

.about-callout {
    font-size: 0.85rem;
    color: var(--text-soft);
    border-left: 3px solid var(--hex-primary);
    padding-left: 14px;
    margin: 16px 0 0;
}

/* ─── Books ─── */
.book-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: clamp(20px, 3vw, 28px);
}

@media (min-width: 640px) {
    .book-list {
        grid-template-columns: 1fr 1fr;
    }
}

.book-item {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(78, 110, 57, 0.2);
}

.book-item__title {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.3;
}

.book-item__title a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 230, 160, 0.4);
}

.book-item__title a:hover { color: var(--link-hover); }

.book-item__subtitle {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
}

.book-item__text {
    margin: 0 0 10px;
    font-size: 0.88rem;
    color: var(--text-soft);
    line-height: 1.55;
}

.book-item__author {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hex-accent);
}

/* ─── Language grid ─── */
.language-block { margin-top: 8px; }

.language-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.lang-chip {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(78, 110, 57, 0.12);
    border: 1px solid rgba(78, 110, 57, 0.28);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.3;
}

/* ─── Scale library ─── */
#scale-library {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scale-fold {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.scale-fold--domain {
    background: var(--surface);
    border: 1px solid var(--surface-border);
}

.scale-fold--facet {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
}

.scale-fold__summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
}

.scale-fold--facet .scale-fold__summary {
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

.scale-fold__summary::-webkit-details-marker { display: none; }

.scale-fold__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    background: rgba(78, 110, 57, 0.2);
    color: var(--hex-accent);
    flex-shrink: 0;
}

.scale-fold__content {
    padding: 0 18px 18px;
}

.scale-fold__lead {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin: 0 0 12px;
    line-height: 1.6;
}

.scale-fold__body {
    color: var(--text-soft);
    font-size: 0.86rem;
    margin: 0;
    padding: 0 16px 14px;
    line-height: 1.55;
}

.scale-fold__facets { margin-top: 4px; }

.scale-domain--honesty .scale-fold__letter { background: rgba(78, 110, 57, 0.25); color: #b8d4a0; }
.scale-domain--emotionality .scale-fold__letter { background: rgba(140, 90, 126, 0.2); color: #e8b8dc; }
.scale-domain--extraversion .scale-fold__letter { background: rgba(232, 93, 76, 0.2); color: #ffb4a8; }
.scale-domain--agreeableness .scale-fold__letter { background: rgba(126, 140, 10, 0.2); color: #d4e07a; }
.scale-domain--conscientiousness .scale-fold__letter { background: rgba(201, 162, 39, 0.2); color: #f0d878; }
.scale-domain--openness .scale-fold__letter { background: rgba(10, 126, 140, 0.2); color: #9ed4da; }

/* ─── Score overview ─── */
.score-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: clamp(24px, 4vh, 36px);
}

.score-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 96px;
    padding: 14px 14px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border-bottom: none;
    color: rgba(255, 255, 255, 0.88);
    transition: transform 0.15s;
    border: 1px solid transparent;
}

.score-pill:visited { color: rgba(255, 255, 255, 0.88); }
.score-pill:hover { transform: translateY(-3px); border-bottom: none; color: #fff; }

.score-pill__letter {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
}

.score-pill__name {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
    text-align: center;
    line-height: 1.2;
}

.score-pill__value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.score-pill--honesty { background: rgba(78, 110, 57, 0.14); border-color: rgba(78, 110, 57, 0.35); }
.score-pill--emotionality { background: rgba(140, 90, 126, 0.12); border-color: rgba(140, 90, 126, 0.3); }
.score-pill--extraversion { background: rgba(232, 93, 76, 0.12); border-color: rgba(232, 93, 76, 0.3); }
.score-pill--agreeableness { background: rgba(126, 140, 10, 0.12); border-color: rgba(126, 140, 10, 0.3); }
.score-pill--conscientiousness { background: rgba(201, 162, 39, 0.12); border-color: rgba(201, 162, 39, 0.3); }
.score-pill--openness { background: rgba(10, 126, 140, 0.12); border-color: rgba(10, 126, 140, 0.3); }

/* ─── Trait result zones ─── */
.trait-stream {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vh, 16px);
    margin-top: clamp(28px, 4vh, 40px);
}

.flow-zone--trait {
    padding: clamp(36px, 7vh, 64px) 0;
    scroll-margin-top: 72px;
}

.trait-zone__intro {
    text-align: center;
    margin-bottom: clamp(16px, 2.5vh, 24px);
}

.hex-mark {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 9vw, 4.25rem);
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: lowercase;
}

.hex-mark__hi {
    font-size: 1.22em;
    color: #fff;
    text-transform: uppercase;
}

.hex-mark__lo {
    opacity: 0.28;
    font-size: 0.92em;
}

.trait-zone--honesty { background: linear-gradient(180deg, rgba(78, 110, 57, 0.1), transparent 72%); }
.trait-zone--honesty .hex-mark__hi { color: var(--trait-honesty); }

.trait-zone--emotionality { background: linear-gradient(180deg, rgba(140, 90, 126, 0.08), transparent 72%); }
.trait-zone--emotionality .hex-mark__hi { color: var(--trait-emotionality); }

.trait-zone--extraversion { background: linear-gradient(180deg, rgba(232, 93, 76, 0.08), transparent 72%); }
.trait-zone--extraversion .hex-mark__hi { color: var(--trait-extraversion); }

.trait-zone--agreeableness { background: linear-gradient(180deg, rgba(126, 140, 10, 0.07), transparent 72%); }
.trait-zone--agreeableness .hex-mark__hi { color: var(--trait-agreeableness); }

.trait-zone--conscientiousness { background: linear-gradient(180deg, rgba(201, 162, 39, 0.07), transparent 72%); }
.trait-zone--conscientiousness .hex-mark__hi { color: var(--trait-conscientiousness); }

.trait-zone--openness { background: linear-gradient(180deg, rgba(10, 126, 140, 0.08), transparent 72%); }
.trait-zone--openness .hex-mark__hi { color: var(--trait-openness); }

.trait-zone--altruism { background: linear-gradient(180deg, rgba(78, 110, 57, 0.05), transparent 72%); }

.trait-panel {
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: rgba(0, 0, 0, 0.2);
    scroll-margin-top: 80px;
}

.trait-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px clamp(20px, 3vw, 28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trait-panel__letter {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    opacity: 0.9;
}

.trait-panel__titles {
    flex: 1;
    min-width: 0;
}

.trait-panel__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    color: #fff;
}

.trait-panel__score {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    opacity: 0.85;
}

.trait-panel--honesty .trait-panel__head { background: linear-gradient(90deg, rgba(78, 110, 57, 0.22), transparent); }
.trait-panel--emotionality .trait-panel__head { background: linear-gradient(90deg, rgba(140, 90, 126, 0.2), transparent); }
.trait-panel--extraversion .trait-panel__head { background: linear-gradient(90deg, rgba(232, 93, 76, 0.2), transparent); }
.trait-panel--agreeableness .trait-panel__head { background: linear-gradient(90deg, rgba(126, 140, 10, 0.2), transparent); }
.trait-panel--conscientiousness .trait-panel__head { background: linear-gradient(90deg, rgba(201, 162, 39, 0.2), transparent); }
.trait-panel--openness .trait-panel__head { background: linear-gradient(90deg, rgba(10, 126, 140, 0.22), transparent); }
.trait-panel--altruism .trait-panel__head { background: linear-gradient(90deg, rgba(78, 110, 57, 0.15), transparent); }

.trait-panel__description {
    margin: 20px;
    box-shadow: none;
}

.trait-panel__description p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.trait-panel__audio {
    margin: 0 20px 20px;
    box-shadow: none;
}

.trait-audio__label {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hex-accent);
}

.trait-panel__audio audio {
    width: 100%;
    height: 40px;
}

.trait-audio__links {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.trait-audio__links a {
    color: var(--link);
    border-bottom: 1px solid rgba(200, 230, 160, 0.4);
    text-decoration: none;
}

.trait-audio__links a:hover {
    color: var(--link-hover);
}

.trait-panel__charts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px 20px;
}

.trait-panel__facet-charts {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.trait-panel__facets {
    padding: 4px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trait-facet-fold {
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.trait-facet-fold__summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.88rem;
}

.trait-facet-fold__summary::-webkit-details-marker { display: none; }

.trait-facet-fold__score {
    font-family: var(--font-display);
    font-size: 1rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.trait-facet-fold__body {
    margin: 0;
    padding: 0 16px 14px;
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.55;
}

.trait-panel__notes {
    margin: 0 20px 24px;
    box-shadow: none;
    border-style: dashed;
    border-color: rgba(78, 110, 57, 0.35);
    background: rgba(78, 110, 57, 0.06);
}

.trait-panel__notes--empty {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.12);
}

.trait-notes__label {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hex-accent);
}

.trait-notes__body {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.65;
}

.trait-notes__body p {
    margin: 0 0 0.75em;
}

.trait-notes__body p:last-child {
    margin-bottom: 0;
}

.trait-notes__body ul,
.trait-notes__body ol {
    margin: 0 0 0.75em;
    padding-left: 1.25em;
}

.trait-notes__placeholder {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

.trait-notes__placeholder code {
    font-size: 0.82em;
    color: rgba(200, 230, 160, 0.85);
}

.chart-card {
    box-shadow: none;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px;
}

.chart-card .bellCurve {
    width: 100%;
    min-height: clamp(240px, 32vw, 300px);
}

.chart-card__caption {
    margin: 12px 4px 4px;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.55;
}

.chart-card--domain .bellCurve {
    min-height: clamp(260px, 34vw, 320px);
}

/* ─── Charts (scale library) ─── */
.results-figure {
    margin-top: clamp(32px, 5vh, 48px);
    text-align: center;
}

.results-figure__frame {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.results-figure__frame img {
    display: block;
    width: 100%;
    height: auto;
}

.results-figure__link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    border-bottom: none;
}

.results-figure__link:hover { color: var(--link-hover); }

/* ─── Disclaimer ─── */
.disclaimer-panel {
    border-color: rgba(201, 162, 39, 0.25);
    background: rgba(201, 162, 39, 0.06);
}

/* ─── Footer ─── */
.site-footer {
    padding: 32px 0 48px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
    border-top: 1px solid var(--surface-border);
}

.site-footer a {
    color: var(--link);
    text-decoration: none;
    border-bottom: none;
}

.site-footer a:hover { color: var(--link-hover); }

/* ─── Prose links ─── */
a { color: var(--link); }
a:hover { color: var(--link-hover); }

@media (max-width: 600px) {
    .nav-link { font-size: 0.72rem; }
    .chart-card .bellCurve { min-height: 240px; }
}
