/*
Theme Name: RenaSci
Theme URI: https://renasci.xyz
Author: RenaSci
Description: A WordPress theme for AI-era scholarly curation, multimodal research objects, and living journals.
Version: 0.3.12
Text Domain: renasci
*/

:root {
    --paper: #f3f8f9;
    --paper-strong: #fbfdff;
    --ink: #071a2e;
    --muted: #5d707b;
    --line: #cbd9de;
    --teal: #16b8c7;
    --red: #b77a5a;
    --gold: #caa67a;
    --blue: #0b385a;
    --soft-teal: #dff7f8;
    --soft-red: #f0e2da;
    --soft-gold: #f2e9dc;
    --soft-blue: #e1eef4;
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

a {
    color: var(--teal);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    z-index: 1000;
    padding: 8px 12px;
    color: #fff;
    background: var(--ink);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(7, 26, 46, .12);
    background: rgba(243, 248, 249, .9);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 34px rgba(7, 26, 46, .06);
}

.site-header__inner,
.site-footer__inner,
.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand__wordmark {
    display: block;
    width: clamp(112px, 10vw, 172px);
    height: auto;
    flex: 0 0 auto;
}

.brand__text {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.brand__mark {
    color: var(--red);
    letter-spacing: 0;
}

.brand__name {
    color: var(--ink);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.05;
    white-space: nowrap;
}

.brand__cn {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu a {
    color: var(--ink);
    font-size: 15px;
    text-decoration: none;
}

.main-menu a:hover {
    color: var(--teal);
}

.lang-pill {
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(251, 253, 255, .84);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(7, 26, 46, .06);
}

.site-hero {
    min-height: clamp(520px, 72vh, 760px);
    color: #fff;
    background-position: center right;
    background-size: cover;
    isolation: isolate;
    position: relative;
}

.site-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(4, 13, 28, .92), rgba(4, 17, 31, .72) 40%, rgba(5, 25, 39, .24) 72%, rgba(5, 25, 39, .08)),
        linear-gradient(180deg, rgba(5, 15, 29, .18), rgba(5, 15, 29, .4));
}

.site-hero__inner {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(72px, 14vh, 132px) 0 72px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #6de7ee;
    font-size: 14px;
    font-weight: 700;
}

.site-hero h1,
.page-title {
    max-width: 860px;
    margin: 0;
    font-size: 5.35rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.site-hero p {
    max-width: 760px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1.35rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #061624;
    background: linear-gradient(135deg, rgba(109, 231, 238, .96), rgba(251, 253, 255, .92));
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.button--ghost {
    color: #fff;
    border-color: rgba(109, 231, 238, .54);
    background: rgba(7, 26, 46, .34);
    backdrop-filter: blur(10px);
}

.section {
    padding: clamp(56px, 8vw, 96px) 0;
}

.section--white {
    background: var(--paper-strong);
}

.section__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 32px;
    align-items: end;
    margin-bottom: 32px;
}

.section__header h2,
.entry-content h2,
.manifesto h2 {
    margin: 0;
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.section__header p {
    margin: 0;
    color: var(--muted);
}

.manifesto-strip {
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(22, 184, 199, .11), transparent 42%),
        var(--paper-strong);
}

.manifesto-strip__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 32px;
    align-items: center;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0;
}

.manifesto-strip strong {
    font-size: 2rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.manifesto-strip p {
    margin: 0;
    color: var(--muted);
}

.portal-grid,
.work-grid,
.issue-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.portal,
.work-card,
.issue-card,
.entry-link {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
}

.portal,
.work-card,
.issue-card {
    padding: 22px;
}

.renasci-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 0 16px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(251, 253, 255, .96), rgba(251, 253, 255, .62)),
        linear-gradient(135deg, var(--soft-teal), var(--soft-blue));
    border: 1px solid rgba(7, 26, 46, .14);
    border-radius: 8px;
    clip-path: polygon(0 12%, 84% 0, 100% 100%, 14% 88%);
    box-shadow: 5px 5px 0 rgba(7, 26, 46, .08);
}

.renasci-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.renasci-icon--public,
.renasci-icon--data,
.renasci-icon--platform {
    color: var(--teal);
    background:
        linear-gradient(135deg, rgba(255, 253, 246, .92), rgba(228, 241, 238, .86)),
        var(--soft-teal);
}

.renasci-icon--learning,
.renasci-icon--journal,
.renasci-icon--versions {
    color: var(--red);
    background:
        linear-gradient(135deg, rgba(255, 253, 246, .92), rgba(245, 228, 223, .88)),
        var(--soft-red);
}

.renasci-icon--peer,
.renasci-icon--media,
.renasci-icon--toolkit {
    color: var(--gold);
    background:
        linear-gradient(135deg, rgba(255, 253, 246, .92), rgba(247, 239, 217, .9)),
        var(--soft-gold);
}

.renasci-icon--oversight,
.renasci-icon--ai,
.renasci-icon--ethics,
.renasci-icon--work {
    color: var(--blue);
    background:
        linear-gradient(135deg, rgba(255, 253, 246, .92), rgba(229, 235, 246, .9)),
        var(--soft-blue);
}

.portal h3,
.work-card h3,
.issue-card h3,
.entry-link h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.portal p,
.work-card p,
.issue-card p,
.entry-link p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.portal:nth-child(4n+1) {
    border-top: 5px solid var(--teal);
}

.portal:nth-child(4n+2) {
    border-top: 5px solid var(--red);
}

.portal:nth-child(4n+3) {
    border-top: 5px solid var(--gold);
}

.portal:nth-child(4n+4) {
    border-top: 5px solid var(--blue);
}

.work-card__meta,
.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #fff;
    font-size: 13px;
}

.work-card a,
.issue-card a {
    color: var(--ink);
    text-decoration: none;
}

.work-card a:hover,
.issue-card a:hover {
    color: var(--teal);
}

.split-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.band-note {
    border-left: 5px solid var(--red);
    padding-left: 20px;
}

.band-note p {
    color: var(--muted);
}

.page-shell {
    padding: 68px 0 96px;
}

.page-title {
    color: var(--ink);
}

.page-title--manifesto {
    max-width: 860px;
    font-size: 5.2rem;
}

.page-subtitle {
    max-width: 900px;
    margin: 12px 0 0;
    color: var(--red);
    font-size: clamp(1.55rem, 2.6vw, 2.9rem);
    font-weight: 850;
    line-height: 1.16;
    letter-spacing: 0;
    text-wrap: balance;
}

.page-lead {
    max-width: 780px;
    margin: 20px 0 40px;
    color: var(--muted);
    font-size: 20px;
}

.entry-content,
.manifesto {
    max-width: 820px;
}

.page-shell--standard .entry-content {
    max-width: none;
}

.entry-content p,
.manifesto p {
    margin: 0 0 1.15em;
}

.page-intro-band {
    padding-top: 18px;
}

.notice-panel {
    padding: 24px;
    border: 1px solid var(--line);
    border-left: 7px solid var(--teal);
    border-radius: 8px;
    background: var(--paper-strong);
}

.notice-panel h3 {
    margin: 10px 0;
    font-size: 24px;
}

.notice-panel p {
    margin: 0;
    color: var(--muted);
}

.entry-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 32px 0;
}

.entry-link {
    display: block;
    padding: 18px;
    color: var(--ink);
    text-decoration: none;
}

.entry-link .renasci-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
}

.entry-link .renasci-icon svg {
    width: 22px;
    height: 22px;
}

.entry-link[href]:hover {
    border-color: var(--teal);
}

.entry-link.is-empty {
    opacity: .62;
}

.citation {
    margin: 36px 0;
    padding: 20px;
    border-left: 5px solid var(--gold);
    background: var(--soft-gold);
}

.site-footer {
    border-top: 1px solid var(--line);
    background:
        linear-gradient(120deg, rgba(22, 184, 199, .18), transparent 36%),
        #061624;
    color: rgba(255, 255, 255, .82);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 34px 0;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 860px) {
    .site-header__inner,
    .section__header,
    .manifesto-strip__inner,
    .split-band,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        align-items: flex-start;
        padding: 16px 0;
    }

    .main-menu {
        justify-content: flex-start;
    }

    .portal-grid,
    .work-grid,
    .issue-grid,
    .entry-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .site-header__inner,
    .site-footer__inner,
    .container,
    .site-hero__inner,
    .manifesto-strip__inner {
        width: min(100% - 28px, var(--max));
    }

    .site-hero {
        min-height: 620px;
    }

    .site-hero h1,
    .page-title {
        font-size: 40px;
    }
}

.section--cream {
    background:
        linear-gradient(120deg, rgba(22, 184, 199, .13), transparent 34%),
        linear-gradient(72deg, transparent 62%, rgba(202, 166, 122, .16) 62% 72%, transparent 72%),
        #edf5f6;
}

.section--ink {
    color: #fff;
    background: var(--ink);
}

.feature-split,
.data-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
    gap: 42px;
    align-items: start;
}

.feature-split h2 {
    margin: 0 0 18px;
    font-size: 2.75rem;
    line-height: 1.2;
}

.feature-split p {
    margin: 0;
    color: var(--muted);
}

.visual-panel {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
}

.visual-panel figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.button--line {
    border-color: var(--line);
    background: transparent;
}

.product-grid,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.version-grid,
.commons-grid,
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.version-card,
.license-card,
.commit-card,
.partner-card {
    display: block;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper-strong);
    text-decoration: none;
}

.version-card h3,
.license-card h3,
.commit-card h3,
.partner-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.version-card p,
.license-card p,
.commit-card p,
.partner-card p {
    color: var(--muted);
    font-size: 15px;
}

.version-card .button {
    margin-top: 8px;
}

.commit-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.commit-card {
    border-left: 5px solid var(--blue);
}

.license-card {
    border-left: 5px solid var(--teal);
}

.license-card .button {
    margin-top: 10px;
}

.commit-card span {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--soft-blue);
    font-size: 13px;
    font-weight: 800;
}

.partner-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 8px;
    background: #eef2f5;
}

.partner-card--type .type-mark {
    display: grid;
    place-items: center;
    height: 120px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0;
}

.product-card {
    display: block;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper-strong);
    text-decoration: none;
}

.product-card:hover {
    border-color: var(--teal);
}

.product-card:nth-child(4n+1) {
    border-top: 5px solid var(--teal);
}

.product-card:nth-child(4n+2) {
    border-top: 5px solid var(--red);
}

.product-card:nth-child(4n+3) {
    border-top: 5px solid var(--gold);
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 14px;
    padding: 3px 9px;
    border-radius: 999px;
    color: var(--ink);
    background: var(--soft-gold);
    font-size: 13px;
    font-weight: 800;
}

.metric {
    display: block;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    text-decoration: none;
}

.metric span {
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.metric p,
.section--ink .data-band p {
    color: rgba(255, 255, 255, .76);
}

@media (max-width: 860px) {
    .feature-split,
    .data-band,
    .product-grid,
    .metric-grid,
    .version-grid,
    .commons-grid,
    .partner-grid,
    .commit-row {
        grid-template-columns: 1fr;
    }
}

.essay-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 850px);
    gap: 36px;
    align-items: start;
}

.essay-toc {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
}

.essay-toc strong {
    color: var(--red);
}

.essay-toc a {
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
}

.long-essay h3 {
    margin: 2.2em 0 .7em;
    font-size: 26px;
}

.long-essay a {
    color: var(--teal);
    text-underline-offset: 4px;
}

.note-link {
    margin-left: 2px;
    font-weight: 800;
    text-decoration: none;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.chart-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.chart-card h3 {
    margin: 0 0 16px;
}

.chart-card p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .74);
    font-size: 14px;
}

.bar-chart {
    display: grid;
    grid-template-columns: 47fr 53fr;
    min-height: 76px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
}

.bar-chart span {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.bar-chart span:first-child {
    background: var(--teal);
}

.bar-chart span:last-child {
    background: rgba(255, 255, 255, .18);
}

.layer-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.layer-mini span {
    display: grid;
    place-items: center;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-weight: 800;
}

@media (max-width: 860px) {
    .essay-shell,
    .chart-row {
        grid-template-columns: 1fr;
    }

    .essay-toc {
        position: static;
    }
}

body[data-lang="zh"] .lang-en,
body[data-lang="en"] .lang-zh {
    display: none;
}

.page-shell .entry-content {
    max-width: none;
}

.entry-content .section {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.section__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
    gap: 32px;
    align-items: end;
    margin-bottom: 32px;
}

.section__head h2,
.short-manifesto h2,
.long-essay h2 {
    margin: 0;
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: 0;
}

.section__head p,
.page-copy p {
    margin: 0;
    color: var(--muted);
}

.section-subtitle {
    display: block;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: clamp(1.1rem, 1.55vw, 1.55rem);
    font-weight: 750;
    line-height: 1.35;
}

.manifesto-layout,
.media-layout,
.page-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
    gap: 42px;
    align-items: start;
}

.short-manifesto {
    padding: 30px;
    border: 1px solid var(--line);
    border-left: 7px solid var(--red);
    border-radius: 8px;
    background: var(--paper-strong);
}

.page-copy {
    max-width: 850px;
}

.subtitle {
    color: var(--muted);
    font-weight: 800;
}

.thesis-line {
    padding: 14px 16px;
    border-left: 4px solid var(--teal);
    background: rgba(15, 118, 110, .08);
}

.timeline,
.media-stack {
    display: grid;
    gap: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
}

.timeline-item strong {
    color: var(--red);
    font-size: 24px;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
}

.poster-frame {
    margin: 0;
    padding: 18px;
    border-radius: 8px;
    background: var(--ink);
}

.poster-frame img {
    width: 100%;
    border-radius: 6px;
}

.video-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #18211f, #0f766e);
    text-align: center;
}

.video-placeholder strong {
    display: block;
    font-size: 26px;
}

.video-placeholder span {
    color: rgba(255, 255, 255, .78);
}

.media-card,
.layer-card,
.source-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
}

.media-card h3,
.layer-card h3,
.source-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.media-card p,
.layer-card p,
.source-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.layer-grid,
.source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-card {
    color: var(--ink);
    text-decoration: none;
}

.source-card span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 999px;
    color: #fff;
    background: var(--teal);
    font-weight: 900;
}

.bar-chart {
    display: flex;
}

.bar-chart span {
    flex: var(--value, 1) 1 0;
    min-width: 120px;
    padding: 0 10px;
}

@media (max-width: 860px) {
    .section__head,
    .manifesto-layout,
    .media-layout,
    .page-split,
    .source-grid,
    .layer-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }
}

/* RenaSci visual system v2: cyber-cubist collage, bilingual-safe layout, mobile polish. */
html {
    overflow-x: hidden;
    background: #f7f8f4;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    overflow-x: hidden;
    background:
        linear-gradient(115deg, rgba(185, 71, 47, .08) 0 10%, transparent 10% 36%, rgba(15, 118, 110, .08) 36% 45%, transparent 45%),
        linear-gradient(68deg, transparent 0 62%, rgba(214, 157, 35, .10) 62% 68%, transparent 68%),
        repeating-linear-gradient(90deg, rgba(24, 33, 31, .018) 0 1px, transparent 1px 42px),
        var(--paper);
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: .55;
    background:
        linear-gradient(90deg, rgba(40, 90, 168, .08), transparent 18% 82%, rgba(185, 71, 47, .07)),
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(15, 118, 110, .035) 47px 48px);
}

.site-header {
    border-bottom-color: rgba(24, 33, 31, .13);
    background: rgba(247, 248, 244, .86);
    box-shadow: 0 10px 28px rgba(24, 33, 31, .06);
}

.site-header::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--teal), var(--gold), var(--red), transparent);
    opacity: .7;
}

.site-header__inner {
    min-height: 70px;
}

.brand {
    min-width: 0;
    flex-wrap: wrap;
    line-height: 1.1;
}

.brand__mark,
.brand__name {
    font-size: 1.16rem;
    white-space: nowrap;
}

.brand__mark {
    text-shadow: 1px 0 0 rgba(15, 118, 110, .35);
}

.brand__cn {
    white-space: nowrap;
}

.site-nav {
    min-width: 0;
}

.main-menu {
    gap: 12px;
}

.main-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    white-space: nowrap;
}

.main-menu a:not(.lang-pill) {
    padding: 2px 0;
}

.main-menu a:not(.lang-pill):hover {
    color: var(--red);
}

.lang-pill {
    border-color: rgba(24, 33, 31, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .54);
}

.site-hero {
    min-height: 690px;
    overflow: hidden;
    background-position: center right;
}

.site-hero::before {
    background:
        linear-gradient(90deg, rgba(4, 12, 27, .94), rgba(5, 18, 32, .78) 42%, rgba(6, 28, 43, .28) 74%, rgba(6, 28, 43, .08)),
        linear-gradient(180deg, rgba(4, 12, 27, .18), rgba(4, 12, 27, .44));
}

.site-hero::after {
    position: absolute;
    right: max(-80px, -7vw);
    bottom: 36px;
    z-index: -1;
    width: min(520px, 54vw);
    height: min(360px, 40vw);
    content: "";
    opacity: .46;
    clip-path: polygon(6% 8%, 88% 0, 100% 78%, 18% 100%);
    background:
        linear-gradient(135deg, rgba(22, 184, 199, .72), rgba(22, 184, 199, .08) 42%),
        linear-gradient(45deg, rgba(202, 166, 122, .36), transparent 62%),
        linear-gradient(100deg, rgba(11, 56, 90, .72), rgba(22, 184, 199, .32));
    mix-blend-mode: screen;
}

.site-hero__inner {
    position: relative;
    padding-top: 8.5rem;
}

.site-hero__inner::before {
    display: block;
    width: 86px;
    height: 86px;
    margin-bottom: 1.2rem;
    content: "";
    clip-path: polygon(10% 0, 70% 9%, 52% 35%, 100% 48%, 56% 60%, 74% 100%, 32% 74%, 0 94%, 18% 54%, 0 22%);
    background: linear-gradient(135deg, #6de7ee, var(--teal) 48%, var(--gold));
    opacity: .86;
    box-shadow: 12px 10px 0 rgba(255, 255, 255, .12);
}

.eyebrow {
    letter-spacing: 0;
    text-transform: none;
}

.site-hero h1,
.page-title {
    max-width: 980px;
    font-size: 5.35rem;
    line-height: 1.03;
    letter-spacing: 0;
    text-wrap: balance;
}

.site-hero h1 {
    color: #fff;
    text-shadow: 0 0 28px rgba(22, 184, 199, .26), 2px 0 0 rgba(22, 184, 199, .36);
}

.site-hero p {
    font-size: 1.35rem;
}

.button,
.lang-pill,
.tag,
.status {
    border-radius: 6px;
}

.button {
    position: relative;
    overflow: hidden;
    box-shadow: 5px 5px 0 rgba(24, 33, 31, .14);
}

.button::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, .34) 46%, transparent 52%);
    transform: translateX(-110%);
}

.section,
.page-shell,
.manifesto-strip {
    position: relative;
    isolation: isolate;
}

.section > .container,
.page-shell > .container,
.manifesto-strip__inner {
    position: relative;
    z-index: 1;
}

.section::before,
.page-shell::before,
.manifesto-strip::before {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    content: "";
    opacity: .13;
    clip-path: polygon(0 24%, 62% 0, 100% 38%, 72% 100%, 18% 76%);
    background: linear-gradient(135deg, var(--red), var(--gold) 45%, var(--teal));
}

.section::before {
    top: 28px;
    left: -92px;
    width: 220px;
    height: 170px;
}

.section:nth-of-type(2n)::before {
    left: auto;
    right: -88px;
    background: linear-gradient(135deg, var(--blue), var(--teal) 50%, var(--gold));
    transform: rotate(18deg);
}

.page-shell::before {
    top: 96px;
    right: -80px;
    width: 260px;
    height: 210px;
}

.manifesto-strip::before {
    left: 7%;
    bottom: -54px;
    width: 160px;
    height: 110px;
    opacity: .1;
}

.section__header h2,
.section__head h2,
.short-manifesto h2,
.long-essay h2,
.feature-split h2,
.entry-content h2,
.manifesto h2 {
    font-size: 2.75rem;
    line-height: 1.15;
    letter-spacing: 0;
    text-wrap: balance;
}

.long-essay h3 {
    font-size: 1.75rem;
    letter-spacing: 0;
}

.page-lead {
    max-width: 900px;
    font-size: 1.28rem;
    text-wrap: pretty;
}

.portal,
.work-card,
.issue-card,
.entry-link,
.product-card,
.version-card,
.license-card,
.commit-card,
.partner-card,
.media-card,
.layer-card,
.source-card,
.short-manifesto,
.notice-panel,
.visual-panel {
    position: relative;
    overflow: hidden;
    border-color: rgba(24, 33, 31, .14);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(24, 33, 31, .06);
}

.portal::before,
.work-card::before,
.issue-card::before,
.entry-link::before,
.product-card::before,
.version-card::before,
.license-card::before,
.commit-card::before,
.partner-card::before,
.media-card::before,
.layer-card::before,
.source-card::before,
.short-manifesto::before,
.notice-panel::before {
    position: absolute;
    top: -34px;
    right: -42px;
    width: 112px;
    height: 88px;
    content: "";
    opacity: .12;
    clip-path: polygon(0 0, 100% 20%, 68% 100%, 12% 72%);
    background: linear-gradient(135deg, var(--teal), var(--gold), var(--red));
}

.portal h3,
.work-card h3,
.issue-card h3,
.entry-link h3,
.product-card h3,
.version-card h3,
.license-card h3,
.commit-card h3,
.partner-card h3 {
    letter-spacing: 0;
    text-wrap: balance;
}

.portal p,
.work-card p,
.issue-card p,
.entry-link p,
.product-card p,
.version-card p,
.license-card p,
.commit-card p,
.partner-card p,
.source-card p,
.media-card p,
.layer-card p {
    overflow-wrap: anywhere;
}

.section--cream {
    background:
        linear-gradient(120deg, rgba(22, 184, 199, .13), transparent 32%),
        linear-gradient(72deg, transparent 62%, rgba(202, 166, 122, .16) 62% 72%, transparent 72%),
        #edf5f6;
}

.section--ink {
    background:
        linear-gradient(135deg, rgba(22, 184, 199, .24), transparent 34%),
        linear-gradient(72deg, transparent 58%, rgba(202, 166, 122, .18) 58% 66%, transparent 66%),
        #061624;
}

.metric {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .10), transparent 48%),
        rgba(255, 255, 255, .055);
}

.entry-content {
    overflow-wrap: break-word;
}

.renasci-bilingual {
    width: 100%;
}

.site-header__inner > *,
.site-footer__inner > *,
.section__header > *,
.section__head > *,
.manifesto-strip__inner > *,
.feature-split > *,
.data-band > *,
.manifesto-layout > *,
.media-layout > *,
.page-split > *,
.essay-shell > *,
.team-grid > *,
.partner-showcase > *,
.product-grid > *,
.portal-grid > *,
.work-grid > *,
.issue-grid > *,
.source-grid > *,
.layer-grid > * {
    min-width: 0;
}

@media (hover: hover) {
    .button,
    .renasci-icon,
    .portal,
    .work-card,
    .issue-card,
    .entry-link,
    .product-card,
    .version-card,
    .license-card,
    .partner-card,
    .metric {
        transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
    }

    .button:hover,
    .portal:hover,
    .work-card:hover,
    .issue-card:hover,
    .entry-link[href]:hover,
    .product-card:hover,
    .version-card:hover,
    .license-card:hover,
    .partner-card:hover,
    .metric:hover {
        transform: translateY(-3px);
        box-shadow: 8px 12px 0 rgba(24, 33, 31, .10), 0 20px 44px rgba(24, 33, 31, .10);
    }

    .button:hover::after {
        animation: renasci-sheen .9s ease;
    }

    .portal:hover .renasci-icon,
    .work-card:hover .renasci-icon,
    .issue-card:hover .renasci-icon,
    .entry-link[href]:hover .renasci-icon,
    .product-card:hover .renasci-icon {
        transform: rotate(-4deg) translateY(-2px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .site-header::after {
        animation: renasci-scan 7s linear infinite;
    }

    .site-hero::after,
    .section::before,
    .page-shell::before {
        animation: renasci-drift 18s ease-in-out infinite alternate;
    }
}

@keyframes renasci-scan {
    0% {
        transform: translateX(-30%);
    }
    100% {
        transform: translateX(30%);
    }
}

@keyframes renasci-drift {
    0% {
        transform: translate3d(0, 0, 0) rotate(-3deg);
    }
    100% {
        transform: translate3d(22px, -12px, 0) rotate(7deg);
    }
}

@keyframes renasci-sheen {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(115%);
    }
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.footer-brand .brand__wordmark {
    width: clamp(112px, 10vw, 168px);
    padding: 3px 0;
    filter: drop-shadow(0 8px 18px rgba(22, 184, 199, .14));
}

.footer-brand .brand__name {
    color: #fff;
}

.footer-brand .brand__cn {
    color: rgba(255, 255, 255, .68);
}

.footer-domain {
    justify-self: end;
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
    text-decoration: none;
}

.section--ink .section__header p,
.section--ink .section__head p {
    color: rgba(255, 255, 255, .76);
}

.team-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.founder-card,
.team-partner {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .09), transparent 46%),
        rgba(255, 255, 255, .055);
    text-decoration: none;
    box-shadow: 0 20px 44px rgba(0, 0, 0, .16);
}

.founder-card::before,
.team-partner::before {
    position: absolute;
    top: -38px;
    right: -48px;
    width: 126px;
    height: 96px;
    content: "";
    opacity: .28;
    clip-path: polygon(0 0, 100% 24%, 70% 100%, 12% 72%);
    background: linear-gradient(135deg, var(--teal), var(--gold), var(--red));
}

.founder-card h3,
.team-partner h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.25;
}

.founder-card p,
.team-partner p {
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: .95rem;
}

.team-partner {
    display: grid;
    align-content: space-between;
    gap: 22px;
}

.team-partner img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 253, 246, .92);
}

.partner-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.partner-feature {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(24, 33, 31, .14);
    border-radius: 8px;
    color: var(--ink);
    background: var(--paper-strong);
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(24, 33, 31, .08);
}

.partner-feature:nth-child(1) {
    border-top: 6px solid var(--teal);
}

.partner-feature:nth-child(2) {
    border-top: 6px solid var(--red);
}

.partner-feature:nth-child(3) {
    border-top: 6px solid var(--gold);
}

.partner-logo {
    display: grid;
    place-items: center;
    height: 132px;
    min-height: 132px;
    margin: 20px 20px 0;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .10), transparent 44%),
        #eef2f5;
}

.partner-logo--dark {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .10), transparent 44%),
        #eef2f5;
}

.partner-logo img {
    width: auto;
    max-width: 150px;
    max-height: 92px;
    object-fit: contain;
}

.partner-copy {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.partner-role,
.partner-link {
    color: var(--teal);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: 0;
}

.partner-copy h3 {
    margin: 12px 0;
    font-size: 1.65rem;
    line-height: 1.2;
}

.partner-copy p {
    margin: 0;
    color: var(--muted);
}

.partner-link {
    margin-top: auto;
    padding-top: 24px;
    color: var(--red);
}

.page-shell--manifesto {
    padding-top: clamp(48px, 7vw, 82px);
}

.manifesto-workspace {
    display: grid;
    grid-template-columns: minmax(230px, 282px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.manifesto-sidebar {
    position: sticky;
    top: 96px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(24, 33, 31, .14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .10), transparent 52%),
        var(--paper-strong);
    box-shadow: 0 16px 34px rgba(24, 33, 31, .07);
}

.manifesto-nav {
    display: grid;
    gap: 16px;
}

.manifesto-nav__group {
    display: grid;
    gap: 8px;
}

.manifesto-nav__group-label {
    display: flex;
    gap: 8px;
    align-items: baseline;
    justify-content: space-between;
    padding: 0 2px;
    color: var(--muted);
}

.manifesto-nav__group-label span {
    color: var(--red);
    font-size: .78rem;
    font-weight: 1000;
}

.manifesto-nav__group-label small {
    font-size: .72rem;
    line-height: 1.25;
}

.manifesto-nav__group-items {
    display: grid;
    gap: 8px;
}

.manifesto-nav__button {
    display: grid;
    gap: 3px;
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid rgba(24, 33, 31, .13);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 253, 246, .76);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.manifesto-nav__button span {
    font-size: .96rem;
    font-weight: 900;
    line-height: 1.2;
}

.manifesto-nav__button small {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
}

.manifesto-nav__button.is-active {
    border-color: var(--teal);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(214, 157, 35, .22), transparent 56%),
        var(--teal);
}

.manifesto-nav__button.is-active small {
    color: rgba(255, 255, 255, .76);
}

.manifesto-panel {
    min-width: 0;
    min-height: 560px;
    padding: clamp(20px, 3vw, 38px);
    border: 1px solid rgba(24, 33, 31, .14);
    border-radius: 8px;
    background:
        linear-gradient(108deg, rgba(255, 253, 246, .96), rgba(255, 253, 246, .86)),
        var(--paper-strong);
    box-shadow: 0 20px 48px rgba(24, 33, 31, .08);
}

.manifesto-panel.is-loading {
    opacity: .82;
}

.manifesto-panel__content {
    min-width: 0;
}

.manifesto-loader {
    display: grid;
    place-items: center;
    min-height: 240px;
    border: 1px dashed rgba(24, 33, 31, .22);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, .42);
    font-weight: 800;
}

.manifesto-loader--error {
    color: var(--red);
}

.manifesto-panel .section {
    margin: 0;
    padding: 0;
    background: transparent;
}

.manifesto-panel .section::before {
    display: none;
}

.manifesto-panel .container {
    width: 100%;
    max-width: none;
}

.manifesto-panel .manifesto-layout,
.manifesto-panel .media-layout {
    gap: 28px;
}

.manifesto-panel .essay-shell {
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 28px;
}

.manifesto-panel .essay-toc {
    top: 96px;
    max-height: calc(100vh - 124px);
    overflow: auto;
}

.manifesto-panel .page-copy {
    max-width: none;
}

.manifesto-panel .long-essay {
    max-width: 820px;
}

.manifesto-panel .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manifesto-panel .timeline-item {
    display: block;
    min-height: 210px;
}

.manifesto-panel .timeline-item strong {
    display: block;
    margin-bottom: 18px;
    font-size: 1.6rem;
}

.manifesto-panel .poster-frame {
    max-width: 620px;
    margin: 0 auto;
    padding: 14px;
    background: #121b1a;
}

.manifesto-panel .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manifesto-data-section {
    color: var(--ink);
}

.manifesto-data-section .section__head {
    align-items: start;
}

.manifesto-data-section .section__head p {
    color: var(--muted);
}

.evidence-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 14px;
    margin-top: 26px;
}

.evidence-metric {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid rgba(24, 33, 31, .16);
    border-radius: 8px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 253, 246, .95), rgba(255, 253, 246, .74)),
        linear-gradient(135deg, rgba(15, 118, 110, .14), transparent 44%, rgba(214, 157, 35, .16));
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(24, 33, 31, .06);
}

.evidence-metric--wide {
    grid-column: span 2;
}

.metric-kicker {
    color: var(--teal);
    font-size: .78rem;
    font-weight: 900;
}

.evidence-metric strong {
    display: block;
    color: var(--red);
    font-size: clamp(2.25rem, 3.1vw, 3.35rem);
    line-height: 1;
    word-break: keep-all;
}

.evidence-metric p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.55;
}

.chart-suite {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.chart-panel {
    padding: 24px;
    border: 1px solid rgba(24, 33, 31, .15);
    border-radius: 8px;
    background: var(--paper-strong);
    box-shadow: 0 14px 34px rgba(24, 33, 31, .06);
}

.chart-panel__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.chart-panel__head h3 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.chart-panel__head p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.progress-chart {
    display: grid;
    gap: 12px;
}

.progress-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 54px;
    gap: 12px;
    align-items: center;
}

.progress-row span,
.progress-row b {
    font-size: .9rem;
    font-weight: 900;
}

.progress-row div {
    height: 30px;
    overflow: hidden;
    border: 1px solid rgba(24, 33, 31, .12);
    border-radius: 999px;
    background: rgba(24, 33, 31, .06);
}

.progress-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--teal), var(--gold));
}

.curation-wheel {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.curation-wheel span,
.curation-wheel strong {
    display: grid;
    min-height: 54px;
    place-items: center;
    padding: 8px;
    border: 1px solid rgba(24, 33, 31, .13);
    border-radius: 8px;
    background: rgba(15, 118, 110, .08);
    font-size: .92rem;
    font-weight: 900;
    text-align: center;
}

.curation-wheel strong {
    grid-column: 1 / -1;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(214, 157, 35, .22), transparent 62%),
        var(--teal);
}

.mindmap-canvas {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: clamp(20px, 4vw, 42px);
    border: 1px solid rgba(24, 33, 31, .14);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 44%, rgba(15, 118, 110, .16), transparent 22%),
        linear-gradient(120deg, rgba(255, 253, 246, .96), rgba(255, 253, 246, .78)),
        var(--paper-strong);
    box-shadow: 0 18px 42px rgba(24, 33, 31, .07);
}

.mindmap-center,
.mindmap-branch {
    position: relative;
    z-index: 1;
    padding: 18px;
    border: 1px solid rgba(24, 33, 31, .16);
    border-radius: 8px;
    background: rgba(255, 253, 246, .9);
}

.mindmap-center {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    min-height: 230px;
    place-items: center;
    align-content: center;
    border: 3px solid var(--teal);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .16), transparent 58%),
        var(--paper-strong);
    text-align: center;
}

.mindmap-center strong {
    display: block;
    width: 100%;
    font-size: clamp(1.45rem, 2.15vw, 2.2rem);
    line-height: 1.05;
    word-break: keep-all;
    overflow-wrap: normal;
}

.mindmap-center span {
    display: block;
    width: 100%;
    color: var(--muted);
    font-weight: 800;
}

.mindmap-branch h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.mindmap-branch p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.58;
}

.mindmap-branch--print,
.mindmap-branch--curation {
    border-top: 5px solid var(--red);
}

.mindmap-branch--digital,
.mindmap-branch--future {
    border-top: 5px solid var(--teal);
}

.mindmap-branch--loss,
.mindmap-branch--ai {
    border-top: 5px solid var(--gold);
}

.mindmap-image-frame {
    margin: 0;
    padding: clamp(10px, 1.6vw, 18px);
    border: 1px solid rgba(24, 33, 31, .14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08), transparent 50%),
        var(--paper-strong);
    box-shadow: 0 18px 42px rgba(24, 33, 31, .07);
}

.mindmap-image-frame .comic-lightbox-link {
    background: #fff;
}

.mindmap-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.popular-explainer {
    display: grid;
    grid-template-columns: minmax(300px, .95fr) minmax(380px, 1.05fr);
    gap: 30px;
    align-items: start;
}

.popular-explainer--comic {
    grid-template-columns: 1fr;
    gap: 24px;
}

.comic-frame {
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(24, 33, 31, .16);
    border-radius: 8px;
    background: var(--paper-strong);
    box-shadow: 0 18px 42px rgba(24, 33, 31, .08);
}

.comic-frame--large {
    width: min(100%, 880px);
    justify-self: center;
}

.comic-lightbox-link {
    position: relative;
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.comic-frame img {
    width: 100%;
    border-radius: 6px;
}

.comic-lightbox-link span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border: 1px solid rgba(24, 33, 31, .14);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 253, 246, .88);
    font-size: .86rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(24, 33, 31, .12);
}

.popular-explainer--comic .comic-copy {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 18px 28px;
    align-items: start;
}

.popular-explainer--comic .comic-copy .eyebrow,
.popular-explainer--comic .comic-copy h2,
.popular-explainer--comic .comic-copy .section-subtitle {
    grid-column: 1;
}

.popular-explainer--comic .comic-copy .comic-steps {
    grid-column: 2;
    grid-row: 1 / span 3;
}

.comic-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.12;
}

.comic-copy .section-subtitle {
    margin-top: -8px;
}

.comic-steps {
    display: grid;
    gap: 12px;
}

.comic-steps article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(24, 33, 31, .14);
    border-radius: 8px;
    background: rgba(255, 253, 246, .86);
}

.comic-steps span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--red);
    font-weight: 900;
}

.comic-steps h3 {
    grid-column: 2;
    margin: 0 0 4px;
    font-size: 1.04rem;
    line-height: 1.25;
}

.comic-steps p {
    grid-column: 2;
    margin: 0;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.55;
}

.renasci-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    padding: clamp(16px, 4vw, 40px);
    background: rgba(10, 15, 14, .88);
    backdrop-filter: blur(8px);
}

.renasci-lightbox__close {
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.renasci-lightbox__body {
    display: grid;
    min-height: 0;
    place-items: center;
    gap: 10px;
}

.renasci-lightbox img {
    max-width: min(100%, 980px);
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.renasci-lightbox__caption {
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
}

body.has-renasci-lightbox {
    overflow: hidden;
}

@media (max-width: 1120px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 10px;
        min-width: 0;
        padding: 12px 0;
    }

    .brand__cn {
        flex-basis: auto;
    }

    .site-nav {
        width: 100%;
        min-width: 0;
    }

    .main-menu {
        justify-content: flex-start;
    }

    .site-hero h1,
    .page-title {
        font-size: 4.45rem;
    }

    .team-grid,
    .partner-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .founder-card {
        grid-column: 1 / -1;
    }

    .manifesto-workspace {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .manifesto-panel .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .evidence-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .popular-explainer {
        grid-template-columns: 1fr;
    }

    .popular-explainer--comic .comic-copy {
        grid-template-columns: 1fr;
    }

    .popular-explainer--comic .comic-copy .eyebrow,
    .popular-explainer--comic .comic-copy h2,
    .popular-explainer--comic .comic-copy .section-subtitle,
    .popular-explainer--comic .comic-copy .comic-steps {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 860px) {
    .site-header {
        position: sticky;
    }

    .site-header__inner,
    .site-footer__inner,
    .container,
    .site-hero__inner,
    .manifesto-strip__inner {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }

    .brand {
        gap: 8px;
    }

    .brand__wordmark {
        width: clamp(104px, 28vw, 142px);
    }

    .brand__mark,
    .brand__name {
        font-size: 1.05rem;
    }

    .brand__cn {
        color: var(--muted);
        font-size: .82rem;
    }

    .site-nav {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .main-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
        padding: 2px 0 8px;
    }

    .main-menu li {
        flex: 0 0 auto;
        min-width: 0;
    }

    .main-menu a:not(.lang-pill),
    .lang-pill {
        min-height: 36px;
        padding: 6px 11px;
        border: 1px solid rgba(24, 33, 31, .13);
        border-radius: 6px;
        background: rgba(255, 253, 246, .78);
        font-size: .92rem;
        white-space: nowrap;
    }

    .site-hero {
        min-height: 620px;
    }

    .site-hero__inner {
        padding-top: 5.4rem;
        padding-bottom: 4.2rem;
    }

    .site-hero h1,
    .page-title {
        font-size: 3.55rem;
    }

    .site-hero p,
    .page-lead {
        font-size: 1.12rem;
        line-height: 1.7;
    }

    .section {
        padding: 4.2rem 0;
    }

    .page-shell {
        padding: 4.2rem 0 5rem;
    }

    .section__header,
    .section__head,
    .manifesto-strip__inner,
    .feature-split,
    .data-band,
    .manifesto-workspace,
    .manifesto-layout,
    .media-layout,
    .page-split,
    .essay-shell,
    .chart-row,
    .split-band {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section__header h2,
    .section__head h2,
    .short-manifesto h2,
    .long-essay h2,
    .feature-split h2,
    .entry-content h2,
    .manifesto h2 {
        font-size: 2.1rem;
    }

    .portal-grid,
    .work-grid,
    .issue-grid,
    .entry-links,
    .product-grid,
    .metric-grid,
    .version-grid,
    .commons-grid,
    .partner-grid,
    .commit-row,
    .source-grid,
    .layer-grid {
        grid-template-columns: 1fr;
    }

    .essay-toc {
        position: static;
    }

    .manifesto-sidebar {
        position: static;
    }

    .manifesto-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manifesto-nav__group-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manifesto-panel {
        min-height: 420px;
        padding: 18px;
    }

    .manifesto-panel .essay-shell,
    .manifesto-panel .timeline,
    .manifesto-panel .source-grid,
    .team-grid,
    .partner-showcase {
        grid-template-columns: 1fr;
    }

    .evidence-dashboard,
    .chart-suite,
    .mindmap-canvas {
        grid-template-columns: 1fr;
    }

    .evidence-metric--wide,
    .mindmap-center {
        grid-column: auto;
    }

    .mindmap-center {
        grid-row: auto;
        min-height: 190px;
    }

    .chart-panel__head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
        line-height: 1.72;
    }

    .site-header__inner,
    .site-footer__inner,
    .container,
    .site-hero__inner,
    .manifesto-strip__inner {
        width: calc(100% - 12px);
        max-width: 340px;
        padding-right: 0;
        padding-left: 0;
    }

    .site-hero h1,
    .page-title,
    .page-subtitle,
    .manifesto-strip strong,
    .section__header h2,
    .section__head h2,
    .feature-split h2 {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .manifesto-strip strong {
        display: block;
        font-size: 1.6rem;
        max-width: 100%;
    }

    .site-hero p,
    .page-lead,
    .manifesto-strip p,
    .section__header p,
    .section__head p,
    .feature-split p {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .brand {
        align-items: center;
    }

    .brand__wordmark {
        width: 116px;
    }

    .brand__name {
        font-size: 1.02rem;
    }

    .brand__cn {
        display: block;
        max-width: 190px;
        overflow: hidden;
        font-size: .72rem;
        text-overflow: ellipsis;
    }

    .main-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

    .main-menu li {
        width: 100%;
    }

    .main-menu a:not(.lang-pill),
    .lang-pill {
        width: 100%;
        justify-content: center;
        padding-right: 8px;
        padding-left: 8px;
        font-size: .88rem;
    }

    .site-hero {
        min-height: 560px;
    }

    .site-hero__inner::before {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .site-hero h1,
    .page-title {
        font-size: 2.75rem;
        line-height: 1.08;
    }

    .page-subtitle {
        font-size: 2rem;
    }

    .site-hero p,
    .page-lead {
        font-size: 1.02rem;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .footer-domain {
        justify-self: start;
    }

    .manifesto-nav {
        grid-template-columns: 1fr;
    }

    .manifesto-nav__group-items {
        grid-template-columns: 1fr;
    }

    .manifesto-nav__button {
        min-height: 58px;
    }

    .button {
        width: 100%;
    }

    .portal,
    .work-card,
    .issue-card,
    .entry-link,
    .product-card,
    .version-card,
    .license-card,
    .commit-card,
    .partner-card,
    .media-card,
    .layer-card,
    .source-card,
    .short-manifesto,
    .notice-panel {
        padding: 18px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .partner-feature,
    .founder-card,
    .team-partner {
        min-height: auto;
    }

    .partner-logo {
        height: 116px;
        min-height: 116px;
        margin: 16px 16px 0;
    }

    .bar-chart {
        min-height: 96px;
    }

    .bar-chart span {
        min-width: 0;
        font-size: .9rem;
    }

    .evidence-metric,
    .chart-panel {
        min-height: auto;
        padding: 18px;
    }

    .evidence-metric strong {
        font-size: 2.6rem;
    }

    .curation-wheel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comic-steps article {
        grid-template-columns: 1fr;
    }

    .comic-steps h3,
    .comic-steps p {
        grid-column: auto;
    }
}

@media (max-width: 380px) {
    .site-hero h1,
    .page-title {
        font-size: 2.35rem;
    }

    .main-menu a:not(.lang-pill),
    .lang-pill {
        font-size: .86rem;
        padding-left: 9px;
        padding-right: 9px;
    }
}
