/* ═══════════════════ DESIGN TOKENS ═══════════════════ */
:root {
    --blue: #8A9BB5;
    --blue-light: #B8C5D4;
    --blue-dark: #5A6B80;
    --sage: #B5BFA8;
    --sage-light: #D0D8C8;
    --sage-dark: #8A9A7B;
    --terra: #C08060;
    --terra-light: #D8A888;
    --bg: #F8F6F3;
    --bg-alt: #F0ECE6;
    --text: #2C3E50;
    --text-light: #6B7B8D;
    --text-faint: #9AACBE;
    --white: #FFFFFF;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --max-w: 1100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════ RESET & BASE ═══════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

/* ═══════════════════ SIDE NAV ═══════════════════ */
.side-nav {
    position: fixed;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    z-index: 100;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.3rem 0;
    flex-direction: row-reverse;
}
.nav-item .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-faint);
    opacity: 0.3;
    transition: var(--transition);
    flex-shrink: 0;
}
.nav-item .label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-faint);
    white-space: nowrap;
    transition: var(--transition);
    letter-spacing: 0.02em;
}
.nav-item:hover .label,
.nav-item.active .label {
    color: var(--text);
}
.nav-item:hover .dot {
    opacity: 0.7;
    background: var(--terra);
}
.nav-item.active .dot {
    opacity: 1;
    background: var(--terra);
    transform: scale(1.4);
}
.nav-item.active .label {
    font-weight: 700;
    color: var(--terra);
}
@media (max-width: 900px) {
    .side-nav { display: none; }
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, var(--bg) 0%, #EDE8E0 50%, var(--bg-alt) 100%);
}
.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}
.venue-badge {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--blue);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    margin-bottom: 2rem;
}
.hero-title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}
.hero-accent { color: var(--terra); }
.hero-tagline {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-style: italic;
}
.hero-stat {
    margin-bottom: 2.5rem;
}
.stat-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: var(--mono);
    font-size: 2.2rem;
    font-weight: 500;
}
.stat-bad { color: var(--terra); }
.stat-arrow { color: var(--text-faint); font-size: 1.5rem; }
.stat-good { color: var(--sage-dark); }
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 0.3rem; }

.abstract-box {
    max-width: 650px;
    margin: 0 auto 2rem;
    padding: 1.2rem 1.5rem;
    background: rgba(138, 155, 181, 0.06);
    border: 1px solid var(--blue-light);
    border-radius: 10px;
    text-align: left;
}
.abstract-header {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.6rem;
}
.abstract-preview {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
}
.abstract-expanded {
    display: none;
    margin-top: 0.5rem;
}
.abstract-expanded.show { display: block; animation: fadeIn 0.4s ease; }
.abstract-expanded p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
}
.abstract-btn {
    display: block;
    margin: 0.8rem auto 0;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--blue-dark);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 1px dashed var(--blue-light);
    padding: 0;
}
.abstract-btn:hover { border-bottom-color: var(--blue-dark); }
.hero-cta {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.8rem;
    border-radius: 6px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--text); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--blue-light); color: var(--text); }
.btn-secondary:hover { background: var(--blue); color: var(--white); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--text-faint); }
.btn-ghost:hover { border-color: var(--text); }

.hero-authors {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-light);
}
.author-affil { font-size: 0.8rem; color: var(--text-faint); }
.author-note { font-size: 0.75rem; color: var(--text-faint); }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-faint);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-faint), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ═══════════════════ HINTON INLINE ASIDE ═══════════════════ */
.hinton-aside {
    margin-top: 3rem;
    padding: 2rem 2.5rem;
    background: var(--text);
    border-radius: 12px;
    position: relative;
}
.hinton-quote-inline {
    font-family: var(--serif);
    font-size: 1.15rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
    font-style: italic;
    margin-bottom: 1rem;
}
.hinton-quote-inline strong { color: var(--terra-light); font-style: normal; }
.hinton-quote-inline cite {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-style: normal;
    color: rgba(255,255,255,0.4);
    margin-top: 0.8rem;
    letter-spacing: 0.03em;
}
.hinton-note {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
.hinton-note em { color: var(--terra-light); font-style: normal; font-weight: 700; }

/* ═══════════════════ CORE INSIGHT (WHY IT WORKS) ═══════════════════ */
.insight-mechanism { margin-bottom: 3rem; }
.mechanism-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.mechanism-step {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    flex: 0 1 220px;
}
.mechanism-scenario { background: rgba(192, 128, 96, 0.08); border: 1px solid var(--terra-light); }
.mechanism-role { background: rgba(181, 191, 168, 0.12); border: 1px solid var(--sage); }
.mechanism-output { background: rgba(138, 155, 181, 0.08); border: 1px solid var(--blue-light); }
.mech-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.mech-label {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.mechanism-step p { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }
.mechanism-step strong { color: var(--text); }
.mechanism-arrow {
    font-size: 1.5rem;
    color: var(--text-faint);
    flex-shrink: 0;
}

.mechanism-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.mech-compare-item {
    border-radius: 10px;
    padding: 1.5rem;
}
.mech-principles {
    background: var(--white);
    border: 1px solid #E0DCD6;
}
.mech-roles {
    background: linear-gradient(135deg, #EDF1E8, #E8ECF2);
    border: 1px solid var(--sage);
}
.mech-compare-label {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.mech-compare-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}
.mech-compare-metaphor {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-light);
    padding-top: 0.8rem;
    border-top: 1px solid #E0DCD6;
}

.tom-box {
    background: rgba(138, 155, 181, 0.06);
    border: 1px solid var(--blue-light);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    max-width: 750px;
    margin: 0 auto;
}
.tom-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.6rem;
}
.tom-box p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-light);
}
.tom-box strong { color: var(--text); }
.cite-link { color: var(--blue-dark); text-decoration: underline; text-decoration-color: var(--blue-light); text-underline-offset: 2px; }
.cite-link:hover { text-decoration-color: var(--blue-dark); }

/* ═══════════════════ SECTIONS ═══════════════════ */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-label {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.8rem;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 2.5rem;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
}

/* ═══════════════════ PROBLEM ═══════════════════ */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}
.problem-vs {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-faint);
    align-self: center;
}
.problem-card {
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}
.problem-principles {
    background: var(--white);
    border: 1px solid #E0DCD6;
}
.problem-role {
    background: linear-gradient(135deg, #F0F4E8, #E8EEF4);
    border: 1px solid var(--sage-light);
}
.card-label {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}
.principle-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}
.principle-rule {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
    background: #F5F3F0;
    border-radius: 4px;
    color: var(--text-light);
    border-left: 3px solid var(--terra-light);
}
.rule-fade { opacity: 0.4; }
.card-verdict {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #E0DCD6;
}
.verdict-bad { color: var(--terra); }
.verdict-good { color: var(--sage-dark); }
.verdict-mid { color: var(--blue); }

.role-prompt-box {
    background: var(--text);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
}
.role-prompt-header {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.4rem;
}
.role-prompt-text {
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.6;
    color: #D4D0C8;
}
.role-prompt-text strong { color: var(--terra-light); }
.role-arrow-down {
    text-align: center;
    color: var(--sage-dark);
    font-size: 1.2rem;
    margin: 0.3rem 0;
}
.role-activates { margin-bottom: 1rem; }
.role-activates-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.role-values { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.value-tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    background: var(--sage);
    color: var(--white);
    border-radius: 3rem;
    font-weight: 500;
}

.section-insight {
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text);
    border-left: 4px solid var(--sage);
    padding: 1.2rem 1.8rem;
    background: rgba(181, 191, 168, 0.08);
    border-radius: 0 8px 8px 0;
}

/* ═══════════════════ COMPARISON ═══════════════════ */
.comparison-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tab-btn {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--text-faint);
    border-radius: 6px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn:hover { border-color: var(--text); color: var(--text); }
.tab-btn.active {
    background: var(--text);
    color: var(--white);
    border-color: var(--text);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.prompt-box {
    background: var(--white);
    border: 1px solid #E0DCD6;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
}
.prompt-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}
.prompt-box p { font-size: 0.95rem; font-style: italic; color: var(--text); }

.response-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.response-card {
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.65;
}
.response-principle { background: var(--white); border: 1px solid #E0DCD6; }
.response-role { background: linear-gradient(135deg, #EDF1E8, #E8ECF2); border: 1px solid var(--sage-light); }
.response-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.7rem;
}
.response-verdict {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid #E0DCD6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.example-source {
    font-size: 0.72rem;
    color: var(--text-faint);
    text-align: right;
    margin-top: 0.8rem;
    font-style: italic;
}

/* ═══════════════════ RESULTS ═══════════════════ */
.results-highlights {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.highlight-card {
    background: var(--white);
    border: 1px solid #E0DCD6;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}
.highlight-featured {
    background: var(--text);
    color: var(--white);
    border-color: var(--text);
}
.highlight-number {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.highlight-featured .highlight-number { font-size: 1.4rem; }
.highlight-text { font-size: 0.85rem; line-height: 1.5; }
.highlight-detail { font-size: 0.75rem; color: var(--text-faint); }
.highlight-featured .highlight-detail { color: rgba(255,255,255,0.6); }
.highlight-featured .highlight-text { color: rgba(255,255,255,0.9); }

.results-table-wrap { overflow-x: auto; }
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-family: var(--mono);
}
.results-table th {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.7rem 0.8rem;
    border-bottom: 2px solid var(--text);
    text-align: center;
    color: var(--text);
}
.results-table th:first-child,
.results-table th:nth-child(2) { text-align: left; }
.results-table td {
    padding: 0.5rem 0.8rem;
    text-align: center;
    border-bottom: 1px solid #E8E4DE;
}
.results-table td:first-child,
.results-table td:nth-child(2) { text-align: left; }
.model-cell {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text);
    vertical-align: middle;
}
.row-ours { background: rgba(181, 191, 168, 0.12); }
.row-best { background: rgba(181, 191, 168, 0.22); }
.model-sep td { border-top: 2px solid #E0DCD6; }
.role-selection-flow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.flow-step {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid #E0DCD6;
    border-radius: 8px;
    padding: 1.2rem;
}
.flow-num {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.flow-content strong { font-size: 0.92rem; display: block; margin-bottom: 0.3rem; }
.flow-content p { font-size: 0.83rem; line-height: 1.55; color: var(--text-light); }
.flow-content a { color: var(--blue-dark); }
@media (max-width: 768px) { .role-selection-flow { grid-template-columns: 1fr; } }

.collapsible-section { margin-top: 1rem; }
.collapse-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--blue-dark);
    background: none;
    border: 1px dashed var(--blue-light);
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
}
.collapse-btn:hover { border-color: var(--blue-dark); background: rgba(138,155,181,0.05); }
.collapse-chevron { transition: transform 0.3s ease; font-size: 0.7rem; }
.collapse-btn.open .collapse-chevron { transform: rotate(180deg); }
.collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.collapse-content.show { max-height: 3000px; }
.role-table { font-size: 0.75rem; }
.role-table td, .role-table th { padding: 0.35rem 0.5rem; }
.table-note {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 0.8rem;
    line-height: 1.5;
}

/* ═══════════════════ PCA INSIGHT ═══════════════════ */
.pca-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}
.pca-img {
    border-radius: 8px;
    border: 1px solid #E0DCD6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.figure-caption {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 0.6rem;
    font-style: italic;
}
.pca-cards { display: flex; flex-direction: column; gap: 1rem; }
.insight-card {
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    border-left: 4px solid;
}
.insight-mother { background: rgba(192, 128, 96, 0.08); border-color: var(--terra); }
.insight-principal { background: rgba(138, 155, 181, 0.08); border-color: var(--blue); }
.insight-combo { background: rgba(181, 191, 168, 0.08); border-color: var(--sage); }
.insight-role {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.insight-axis {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}
.insight-card p { font-size: 0.88rem; line-height: 1.55; }
.insight-bonus {
    font-size: 0.85rem;
    padding: 1rem 1.2rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px dashed var(--text-faint);
    color: var(--text-light);
}

/* ═══════════════════ METHOD ═══════════════════ */
.method-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.pipeline-figure {
    margin-top: 2.5rem;
    background: var(--white);
    border: 1px solid #E0DCD6;
    border-radius: 10px;
    padding: 1.5rem;
}
.pipeline-figure img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.8rem;
}
.pipeline-figure figcaption {
    font-size: 0.8rem;
    color: var(--text-faint);
    line-height: 1.5;
    font-style: italic;
}
.prompt-header {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 0.8rem;
}
.code-block {
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.7;
    background: var(--text);
    color: #D4D0C8;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
}
.code-hl { color: var(--terra-light); font-weight: 500; }
.prompt-note {
    font-family: var(--serif);
    font-style: italic;
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.pipeline-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.step-content strong { font-size: 0.95rem; }
.step-content p { font-size: 0.85rem; color: var(--text-light); margin-top: 0.2rem; }
.pipeline-arrow {
    text-align: center;
    color: var(--text-faint);
    font-size: 1.2rem;
    padding: 0.3rem 0 0.3rem 1rem;
}
.pipeline-note {
    font-size: 0.78rem;
    color: var(--text-faint);
    font-style: italic;
    margin-top: 1rem;
    padding-left: 3rem;
}

.not-required {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.not-item {
    font-size: 0.88rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.not-x {
    color: var(--terra);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ═══════════════════ AGENTIC ═══════════════════ */
.agentic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.agentic-scenario {
    background: var(--white);
    border: 1px solid #E0DCD6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}
.scenario-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.scenario-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.stat-before { font-family: var(--mono); font-size: 1.8rem; color: var(--terra); font-weight: 500; }
.stat-after { font-family: var(--mono); font-size: 1.8rem; color: var(--sage-dark); font-weight: 500; }
.stat-arrow-small { color: var(--text-faint); font-size: 1.2rem; }
.scenario-label { font-size: 0.82rem; color: var(--text-light); }
.agentic-note { font-size: 0.85rem; color: var(--text-light); text-align: center; }

/* ═══════════════════ GOING FURTHER ═══════════════════ */
.further-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.further-card {
    background: var(--white);
    border: 1px solid #E0DCD6;
    border-radius: 10px;
    padding: 1.5rem;
}
.further-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.further-title {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.further-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}
.further-card strong { color: var(--text); }
.further-verdict {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.further-outlook {
    background: rgba(138, 155, 181, 0.06);
    border: 1px solid var(--blue-light);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
    text-align: center;
}
.further-outlook strong { color: var(--text); }

@media (max-width: 768px) {
    .further-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
    text-align: center;
}
.footer-title {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
}
.footer-link:hover { color: var(--white); border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.link-icon { font-size: 1.5rem; }
.link-text { font-size: 0.85rem; font-weight: 500; }

.bibtex-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: left;
    position: relative;
}
.bibtex-box pre {
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    white-space: pre-wrap;
    overflow-x: auto;
}
.copy-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: var(--transition);
}
.copy-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.footer-meta { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 2rem; }

/* ═══════════════════ SCROLL ANIMATIONS ═══════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 768px) {
    .problem-grid { grid-template-columns: 1fr; }
    .problem-vs { text-align: center; }
    .response-grid { grid-template-columns: 1fr; }
    .results-highlights { grid-template-columns: 1fr; }
    .pca-layout { grid-template-columns: 1fr; }
    .method-layout { grid-template-columns: 1fr; }
    .agentic-grid { grid-template-columns: 1fr; }
    .not-required { gap: 1rem; }
    .hero-title { font-size: 1.8rem; }
    .stat-flow { font-size: 1.6rem; }
}
