:root {
    --ink: #171717;
    --night: #121117;
    --paper: #F7F7F3;
    --white: #FFFFFF;
    --purple: #6B4EFF;
    --deep-purple: #3F2B73;
    --green: #2E7D62;
    --line: #D8D7D1;
    --serif: Georgia, "Noto Serif SC", "Songti SC", "STSong", serif;
    --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    --page: 1180px;
    --side: 220px;
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-width: 980px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

::selection {
    background: var(--purple);
    color: var(--white);
}

/* ============================
   COVER
   ============================ */
.cover {
    position: relative;
    min-height: clamp(700px, 88vh, 860px);
    overflow: hidden;
    background: var(--night);
    color: var(--paper);
}

.cover-grid {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    background-image:
        linear-gradient(rgba(247, 247, 243, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 247, 243, 0.055) 1px, transparent 1px);
    background-size: 80px 80px;
}

.cover::before,
.cover::after {
    content: "";
    position: absolute;
    z-index: 1;
    background: var(--purple);
}

.cover::before {
    top: 0;
    left: max(40px, calc((100% - var(--page)) / 2));
    width: 2px;
    height: 58%;
}

.cover::after {
    right: 0;
    bottom: 92px;
    width: 36%;
    height: 2px;
}

.cover-inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 80px), var(--page));
    min-height: inherit;
    margin: 0 auto;
    padding: 54px 0 70px;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 76px;
}

.cover-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.3em;
}

.cover-issue {
    color: var(--white);
    font-weight: 700;
}

.cover-label {
    color: rgba(247, 247, 243, 0.5);
}

.cover-name {
    align-self: center;
    padding: 60px 0 40px 62px;
    font-family: var(--serif);
    font-size: clamp(7rem, 12vw, 10rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    line-height: 0.82;
}

.cover-name span {
    display: block;
}

.cover-name span:last-child {
    margin-left: 0.42em;
    color: var(--white);
}

.cover-info {
    align-self: end;
    padding: 0 0 68px 34px;
    border-left: 1px solid rgba(247, 247, 243, 0.2);
}

.cover-status {
    margin-bottom: 28px;
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.cover-status span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 10px;
    background: var(--green);
    border-radius: 50%;
}

.cover-facts {
    display: flex;
    flex-direction: column;
    margin-bottom: 26px;
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.06em;
}

.cover-facts span:not(:last-child) {
    color: rgba(247, 247, 243, 0.68);
}

.cover-year {
    margin-bottom: 8px;
    color: var(--purple);
    font-family: var(--serif);
    font-size: 4.25rem;
    line-height: 1;
}

.cover-description {
    color: rgba(247, 247, 243, 0.52);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
}

.cover-ghost {
    position: absolute;
    right: -0.05em;
    top: 50%;
    z-index: 1;
    color: rgba(247, 247, 243, 0.035);
    font-family: var(--serif);
    font-size: min(38vw, 34rem);
    font-weight: 700;
    line-height: 0.7;
    transform: translateY(-42%);
    user-select: none;
}

.cover-divider {
    grid-column: 1 / -1;
    align-self: end;
    height: 1px;
    background: rgba(247, 247, 243, 0.18);
}

.cover-edge {
    position: absolute;
    bottom: 35px;
    color: rgba(247, 247, 243, 0.3);
    font-size: 0.61rem;
    letter-spacing: 0.2em;
}

.cover-edge-left { left: 0; }
.cover-edge-right { right: 0; }

/* ============================
   NAVIGATION
   ============================ */
.section-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    background: var(--night);
    border-top: 1px solid rgba(247, 247, 243, 0.1);
    border-bottom: 1px solid rgba(247, 247, 243, 0.16);
}

.nav-inner {
    width: min(calc(100% - 80px), var(--page));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.nav-brand,
.nav-links a {
    display: flex;
    align-items: center;
    position: relative;
    color: rgba(247, 247, 243, 0.72);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    white-space: nowrap;
}

.nav-brand {
    color: var(--white);
    font-weight: 600;
}

.nav-brand span {
    margin-left: 8px;
    color: rgba(247, 247, 243, 0.38);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: stretch;
    gap: 36px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--purple);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a span {
    margin-right: 7px;
    color: var(--purple);
}

/* ============================
   CONTENT & CHAPTER SYSTEM
   ============================ */
.content {
    width: min(calc(100% - 80px), var(--page));
    margin: 0 auto;
}

.chapter {
    padding: 120px 0 132px;
    scroll-margin-top: 54px;
    border-bottom: 1px solid var(--line);
}

.chapter-header {
    display: grid;
    grid-template-columns: var(--side) 1fr;
    gap: 40px;
    margin-bottom: 70px;
}

.chapter-index {
    position: relative;
    padding-top: 8px;
    border-top: 2px solid var(--purple);
}

.chapter-number {
    display: block;
    color: var(--purple);
    font-family: var(--serif);
    font-size: 3.5rem;
    line-height: 1;
}

.chapter-en {
    display: block;
    margin-top: 10px;
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.32em;
}

.chapter-note {
    display: block;
    margin-top: 62px;
    color: rgba(23, 23, 23, 0.5);
    font-size: 0.62rem;
    line-height: 1.9;
    letter-spacing: 0.18em;
}

.chapter-heading {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.chapter-title {
    font-family: var(--serif);
    font-size: clamp(3.75rem, 6vw, 5.8rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.chapter-caption,
.eyebrow {
    color: rgba(23, 23, 23, 0.55);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
}

.chapter-caption {
    margin-top: 20px;
}

.chapter-body {
    margin-left: calc(var(--side) + 40px);
}

.chapter-body h3 {
    color: var(--night);
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.45;
}

.chapter-body h4 {
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.4;
}

.chapter-body p,
.chapter-body li {
    font-size: 1rem;
    line-height: 1.82;
}

.chapter-body p + p {
    margin-top: 0.7em;
}

.chapter-body h3 + p,
.chapter-body h4 + p {
    margin-top: 18px;
}

.chapter-body strong {
    font-weight: 650;
}

.chapter-body ul:not(.tag-list) li,
.chapter-body ol li {
    position: relative;
    padding-left: 22px;
}

.chapter-body ul:not(.tag-list) li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 5px;
    height: 5px;
    background: var(--purple);
}

.chapter-body ol {
    counter-reset: ordered;
}

.chapter-body ol li {
    counter-increment: ordered;
}

.chapter-body ol li::before {
    content: counter(ordered, decimal-leading-zero);
    position: absolute;
    left: 0;
    color: var(--purple);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.section-intro {
    max-width: 750px;
    padding-left: 24px;
    border-left: 2px solid var(--purple);
    font-family: var(--serif);
    font-size: 1.35rem !important;
    line-height: 1.72 !important;
}

/* ============================
   PROFILE
   ============================ */
.profile-lead {
    max-width: 750px;
    margin-bottom: 72px;
}

.profile-lead h3 {
    margin-bottom: 22px;
    color: var(--purple);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

.profile-lead p:first-of-type {
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.55;
}

.profile-lead p:last-child {
    max-width: 700px;
    margin-top: 20px;
}

.profile-experience {
    display: grid;
    grid-template-columns: 190px 1fr;
    column-gap: 42px;
    padding: 38px 0 42px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.profile-experience .eyebrow {
    grid-column: 1;
    grid-row: 1 / 7;
    margin: 0;
}

.profile-experience h3,
.profile-experience h4,
.profile-experience > p:not(.eyebrow) {
    grid-column: 2;
}

.profile-experience h4 {
    margin: 10px 0 18px;
}

.profile-keywords {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 72px;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.profile-keywords article {
    min-width: 0;
    padding: 28px 24px 34px 0;
}

.profile-keywords article + article {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.profile-keywords h3 {
    margin-bottom: 22px;
}

.profile-keywords p,
.profile-keywords li {
    font-size: 0.9rem;
    line-height: 1.75;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 14px 0 20px;
}

.tag-list li {
    padding: 3px 9px;
    color: var(--purple);
    border: 1px solid rgba(107, 78, 255, 0.42);
    font-size: 0.72rem;
    line-height: 1.45;
    letter-spacing: 0.04em;
}

.tag-list-green li {
    color: var(--green);
    border-color: rgba(46, 125, 98, 0.42);
}

.profile-triad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 82px;
    border-top: 2px solid var(--purple);
}

.profile-triad article {
    padding: 26px 24px 0 0;
}

.profile-triad article + article {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.profile-triad h3 {
    margin: 9px 0 20px;
    font-family: var(--serif);
    font-size: 1.45rem;
}

.profile-triad p:not(.eyebrow) {
    font-size: 0.88rem;
    line-height: 1.78;
}

.profile-ai {
    margin-top: 96px;
    padding-top: 30px;
    border-top: 1px solid var(--ink);
}

.profile-ai h3 {
    margin: 8px 0 28px;
    font-family: var(--serif);
    font-size: 2rem;
}

.profile-ai-copy {
    max-width: 740px;
    columns: 2;
    column-gap: 42px;
}

.profile-ai-copy p {
    break-inside: avoid;
    font-size: 0.94rem;
}

.highlight-flow {
    max-width: 820px;
    margin-top: 34px !important;
    padding: 25px 0 25px 28px;
    color: var(--deep-purple);
    border-left: 4px solid var(--purple);
    border-top: 1px solid rgba(107, 78, 255, 0.28);
    border-bottom: 1px solid rgba(107, 78, 255, 0.28);
    font-family: var(--serif);
    font-size: 1.12rem !important;
    line-height: 1.72 !important;
}

/* ============================
   WORKFLOW
   ============================ */
.chapter-workflow {
    position: relative;
}

.chapter-workflow::before {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    margin-left: -50vw;
    background: var(--white);
}

.workflow-body {
    margin-left: 0;
}

.workflow-body > .section-intro {
    margin-left: calc(var(--side) + 40px);
}

.three-columns {
    display: grid;
    grid-template-columns: 0.95fr 0.95fr 1.2fr;
    gap: 22px;
    margin-top: 60px;
}

.column {
    min-height: 510px;
    padding: 28px 28px 32px;
    border: 1px solid var(--line);
    border-top-width: 4px;
}

.col-me {
    border-top-color: var(--purple);
    background: rgba(107, 78, 255, 0.045);
}

.col-ai {
    border-top-color: var(--green);
    background: rgba(46, 125, 98, 0.045);
}

.col-shared {
    border-top-color: var(--deep-purple);
    background: rgba(63, 43, 115, 0.035);
}

.column-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.column-head span {
    color: rgba(23, 23, 23, 0.16);
    font-family: var(--serif);
    font-size: 4rem;
    line-height: 0.8;
}

.column-head p {
    color: var(--purple);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.col-ai .column-head p { color: var(--green); }
.col-shared .column-head p { color: var(--deep-purple); }

.column h3 {
    margin: 26px 0 20px;
    font-family: var(--serif);
    font-size: 1.65rem;
}

.column ul {
    margin-bottom: 24px;
}

.column li {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.72;
}

.column li + li {
    border-top: 1px solid rgba(216, 215, 209, 0.72);
}

.col-ai ul li::before { background: var(--green) !important; }
.col-shared ul li::before { background: var(--deep-purple) !important; }

.col-note {
    padding-top: 18px;
    color: rgba(23, 23, 23, 0.65);
    border-top: 1px solid var(--line);
    font-size: 0.79rem !important;
    line-height: 1.7 !important;
}

.workflow-principle {
    display: grid;
    grid-template-columns: var(--side) 1fr;
    gap: 40px;
    margin-top: 70px;
    padding: 28px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.workflow-principle h3 {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--serif);
    font-size: 1.75rem;
}

.workflow-principle > div {
    grid-column: 2;
}

/* ============================
   DIALOGUE
   ============================ */
.dialogue-body {
    margin-left: 0;
}

.dialogue-topic {
    display: grid;
    grid-template-columns: var(--side) 1fr;
    gap: 40px;
    align-items: start;
    padding: 0 0 54px;
}

.dialogue-topic h3 {
    padding-top: 10px;
    color: var(--green);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
}

.topic-question {
    max-width: 780px;
    font-family: var(--serif);
    font-size: 2.15rem !important;
    line-height: 1.5 !important;
}

.dialogue-process-title {
    margin-bottom: 4px;
    padding: 18px 0;
    border-top: 2px solid var(--purple);
    color: var(--purple) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.18em;
}

.dialogue-block {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 34px;
    align-items: start;
    padding: 32px 0 36px;
    border-bottom: 1px solid var(--line);
}

.dialogue-number span {
    display: block;
    color: rgba(107, 78, 255, 0.27);
    font-family: var(--serif);
    font-size: 3.4rem;
    line-height: 1;
}

.dialogue-role {
    margin-top: 7px !important;
    color: rgba(23, 23, 23, 0.55);
    font-size: 0.65rem !important;
    letter-spacing: 0.09em;
}

.dialogue-question,
.dialogue-answer {
    padding-top: 5px;
    font-size: 0.96rem !important;
}

.dialogue-question strong,
.dialogue-answer strong {
    display: block;
    width: max-content;
    margin-bottom: 7px;
    font-size: 0.67rem;
    letter-spacing: 0.1em;
}

.dialogue-question strong {
    color: var(--purple);
}

.dialogue-answer strong {
    padding: 1px 7px;
    color: var(--white);
    background: var(--green);
}

.dialogue-findings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 92px;
    border-top: 1px solid var(--ink);
}

.dialogue-feature {
    padding: 34px 42px 12px 0;
}

.dialogue-feature + .dialogue-feature {
    padding-right: 0;
    padding-left: 42px;
    border-left: 1px solid var(--line);
}

.dialogue-feature h3 {
    margin: 8px 0 24px;
    font-family: var(--serif);
    font-size: 1.85rem;
}

.dialogue-feature p,
.dialogue-feature li {
    font-size: 0.91rem;
    line-height: 1.8;
}

.dialogue-feature ol {
    margin: 18px 0;
}

.feature-findings .eyebrow { color: var(--purple); }
.feature-plan .eyebrow { color: var(--green); }

.dialogue-conclusion {
    margin-top: 100px;
    padding: 34px 0 0;
    border-top: 4px solid var(--purple);
}

.dialogue-conclusion h3 {
    margin: 8px 0 28px;
    font-family: var(--serif);
    font-size: 2.1rem;
}

.conclusion-copy {
    max-width: 740px;
}

.dialogue-conclusion blockquote {
    position: relative;
    margin-top: 52px;
    padding: 28px 80px 38px;
    color: var(--deep-purple);
    border-top: 1px solid rgba(107, 78, 255, 0.35);
    border-bottom: 1px solid rgba(107, 78, 255, 0.35);
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.55;
}

.dialogue-conclusion blockquote::before {
    content: "“";
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--purple);
    font-family: var(--serif);
    font-size: 6rem;
    line-height: 1;
}

/* ============================
   CONTRACT / MANIFESTO
   ============================ */
.chapter-contract {
    border-bottom: 0;
}

.contract-body {
    margin-left: 0;
}

.contract-body > .section-intro {
    margin-left: calc(var(--side) + 40px);
    margin-bottom: 76px;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--ink);
}

.manifesto-rule {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    padding: 38px 54px 44px 0;
    border-bottom: 1px solid var(--line);
}

.manifesto-rule:nth-child(even) {
    padding-right: 0;
    padding-left: 54px;
    border-left: 1px solid var(--line);
}

.manifesto-rule::before {
    content: attr(data-rule);
    position: absolute;
    right: 28px;
    bottom: -0.28em;
    z-index: 0;
    color: rgba(107, 78, 255, 0.07);
    font-family: var(--serif);
    font-size: 10rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.manifesto-rule:nth-child(even)::before {
    right: 0;
}

.manifesto-rule > * {
    position: relative;
    z-index: 1;
}

.manifesto-rule h3 {
    max-width: 80%;
    margin-bottom: 28px;
    font-family: var(--serif);
    font-size: 1.65rem;
    line-height: 1.45;
}

.manifesto-rule p,
.manifesto-rule li {
    max-width: 470px;
    font-size: 0.91rem;
    line-height: 1.78;
}

.manifesto-rule ul {
    columns: 2;
    column-gap: 22px;
    margin-top: 14px;
}

.manifesto-rule li {
    break-inside: avoid;
}

.manifesto-final {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 60px;
    min-height: 390px;
    padding: 44px 0 48px !important;
    border-top: 3px solid var(--purple);
    border-left: 0 !important;
}

.manifesto-final h3 {
    max-width: none;
    font-size: 2.45rem;
}

.manifesto-final::before {
    right: 20px !important;
    color: rgba(107, 78, 255, 0.085);
    font-size: 15rem;
}

.final-rule-copy {
    padding-right: 120px;
}

.final-statement {
    grid-column: 1 / -1;
    max-width: none !important;
    margin-top: 16px !important;
    padding: 22px 28px;
    color: var(--white);
    background: var(--deep-purple);
    font-family: var(--serif);
    font-size: 1.25rem !important;
    letter-spacing: 0.03em;
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
    background: var(--night);
    color: rgba(247, 247, 243, 0.48);
}

.footer-inner {
    width: min(calc(100% - 80px), var(--page));
    min-height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
}

.footer-inner a {
    color: var(--purple);
}

.footer-inner a:hover {
    color: var(--white);
}

/* Basic contraction for narrower desktop windows. */
@media (max-width: 1100px) {
    :root {
        --side: 180px;
    }

    .cover-inner,
    .nav-inner,
    .content,
    .footer-inner {
        width: calc(100% - 64px);
    }

    .cover-name {
        padding-left: 36px;
    }

    .nav-links {
        gap: 20px;
    }

    .chapter {
        padding-top: 100px;
    }

    .three-columns {
        gap: 14px;
    }

    .column {
        padding-right: 20px;
        padding-left: 20px;
    }
}

/* ============================
   ATMOSPHERE & INTERACTION
   ============================ */
body.loading-active {
    overflow: hidden;
}

@media (min-width: 980px) {
    html {
        overflow-x: clip;
    }
}

.ambient-canvas,
.trail-canvas,
.ambient-edge,
.custom-cursor {
    position: fixed;
    pointer-events: none;
}

.ambient-canvas {
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.trail-canvas {
    inset: 0;
    z-index: 9997;
    width: 100%;
    height: 100%;
}

.content {
    position: relative;
    z-index: 2;
}

.site-footer {
    position: relative;
    z-index: 2;
}

.ambient-edge {
    top: 8vh;
    bottom: 8vh;
    z-index: 1;
    width: 3vw;
    min-width: 36px;
    opacity: 0.32;
    filter: blur(44px);
}

.ambient-edge-left {
    left: 0;
    background: linear-gradient(180deg, rgba(107, 78, 255, 0.2), rgba(107, 78, 255, 0.75), rgba(68, 255, 166, 0.18));
}

.ambient-edge-right {
    right: 0;
    background: linear-gradient(180deg, rgba(68, 255, 166, 0.16), rgba(68, 255, 166, 0.58), rgba(107, 78, 255, 0.28));
}

.cover-aurora {
    position: absolute;
    inset: -28%;
    z-index: 0;
    opacity: 0.7;
    background:
        radial-gradient(circle at 26% 38%, rgba(107, 78, 255, 0.28), transparent 28%),
        radial-gradient(circle at 76% 62%, rgba(68, 255, 166, 0.16), transparent 25%),
        radial-gradient(circle at 54% 18%, rgba(130, 71, 255, 0.12), transparent 22%);
    filter: blur(12px);
    animation: aurora-drift 13s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes aurora-drift {
    0% { transform: translate3d(-2.5%, -1.5%, 0) scale(1); }
    100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.cover-name {
    position: relative;
    z-index: 3;
    text-shadow:
        0 0 14px rgba(107, 78, 255, 0.34),
        0 0 34px rgba(68, 255, 166, 0.12);
}

.cover-name span {
    transform-origin: center;
}

.cover-name.is-glitching span:first-child {
    animation: name-glitch-purple 120ms steps(2, end) 1;
}

.cover-name.is-glitching span:last-child {
    animation: name-glitch-green 120ms steps(2, end) 1;
}

@keyframes name-glitch-purple {
    33% { transform: translate3d(2px, -1px, 0); text-shadow: -3px 0 #6b4eff, 3px 0 rgba(68, 255, 166, 0.55); }
    66% { transform: translate3d(-1px, 1px, 0); }
}

@keyframes name-glitch-green {
    33% { transform: translate3d(-2px, 1px, 0); text-shadow: 3px 0 #6b4eff, -3px 0 rgba(68, 255, 166, 0.55); }
    66% { transform: translate3d(1px, -1px, 0); }
}

.chapter-number {
    color: transparent;
    background: linear-gradient(135deg, #6b4eff 12%, #2e7d62 88%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 18px rgba(107, 78, 255, 0.12);
}

.nav-links a::after {
    background: linear-gradient(90deg, #6b4eff, #44ffa6);
    box-shadow: 0 0 10px rgba(107, 78, 255, 0.55);
}

.tag-list li,
.highlight-flow,
.dialogue-conclusion blockquote,
.final-statement {
    box-shadow: 0 0 16px rgba(107, 78, 255, 0.08);
}

.tag-list-green li {
    box-shadow: 0 0 14px rgba(46, 125, 98, 0.1);
}

/* Loading screen */
.site-loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: #09090d;
    color: var(--white);
    transition: opacity 420ms ease, visibility 420ms ease;
}

.js-enabled .site-loader {
    visibility: visible;
    opacity: 1;
}

.site-loader.is-leaving {
    visibility: hidden;
    opacity: 0;
}

.loader-grid {
    position: absolute;
    inset: -20%;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(107, 78, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(68, 255, 166, 0.09) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(560px) rotateX(60deg) translateY(-8%);
    transform-origin: center bottom;
    animation: loader-grid-shift 1.6s linear infinite;
}

@keyframes loader-grid-shift {
    to { background-position: 0 64px, 64px 0; }
}

.loader-scanline {
    position: absolute;
    inset: -10% 0 auto;
    height: 26%;
    opacity: 0.5;
    background: linear-gradient(180deg, transparent, rgba(68, 255, 166, 0.08), rgba(107, 78, 255, 0.18), transparent);
    animation: loader-scan 1.25s linear infinite;
}

@keyframes loader-scan {
    to { transform: translate3d(0, 470%, 0); }
}

.loader-content {
    position: relative;
    width: min(76vw, 650px);
    text-align: center;
}

.loader-label,
.loader-issue,
.loader-percent,
.loader-skip {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
}

.loader-label {
    color: rgba(247, 247, 243, 0.62);
}

.loader-name {
    margin: 16px 0 14px;
    color: transparent;
    background: linear-gradient(100deg, #8b72ff, #f7f7f3 46%, #44ffa6);
    -webkit-background-clip: text;
    background-clip: text;
    font-family: var(--serif);
    font-size: clamp(4rem, 9vw, 7rem);
    line-height: 1.1;
    letter-spacing: 0.03em;
    filter: drop-shadow(0 0 18px rgba(107, 78, 255, 0.38));
}

.loader-issue {
    color: rgba(247, 247, 243, 0.48);
}

.loader-progress {
    height: 2px;
    margin-top: 42px;
    overflow: hidden;
    background: rgba(247, 247, 243, 0.13);
}

.loader-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #6b4eff, #44ffa6);
    box-shadow: 0 0 16px rgba(68, 255, 166, 0.7);
    transform: scaleX(0);
    transform-origin: left;
}

.loader-percent {
    margin-top: 13px;
    color: rgba(247, 247, 243, 0.78);
    text-align: right;
}

.loader-skip {
    position: absolute;
    right: 34px;
    bottom: 28px;
    padding: 8px 4px;
    color: rgba(247, 247, 243, 0.6);
    border: 0;
    border-bottom: 1px solid rgba(68, 255, 166, 0.45);
    background: transparent;
    cursor: pointer;
}

.loader-skip:hover,
.loader-skip:focus-visible {
    color: var(--white);
}

/* Effects control */
.effects-toggle {
    position: fixed;
    right: 22px;
    bottom: 20px;
    z-index: 9000;
    padding: 9px 12px;
    color: rgba(247, 247, 243, 0.82);
    border: 1px solid rgba(107, 78, 255, 0.56);
    background: rgba(18, 17, 23, 0.88);
    box-shadow: 0 0 16px rgba(107, 78, 255, 0.2);
    font-family: var(--sans);
    font-size: 0.6rem;
    line-height: 1;
    letter-spacing: 0.14em;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.effects-toggle:hover,
.effects-toggle:focus-visible {
    border-color: rgba(68, 255, 166, 0.72);
    box-shadow: 0 0 18px rgba(68, 255, 166, 0.16);
}

.effects-off .cover-aurora,
.effects-off .ambient-edge,
.effects-off .cover-name.is-glitching span {
    animation: none !important;
}

.effects-off .cover-aurora {
    transform: none;
}

/* One-time reveal */
.js-enabled.animations-ready.effects-on .reveal-item:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 25px, 0);
}

.js-enabled.animations-ready.effects-on .reveal-item.is-visible:not(.reveal-complete) {
    animation: reveal-bounce 600ms cubic-bezier(0.22, 0.9, 0.3, 1.18) both;
    animation-delay: var(--reveal-delay, 0ms);
}

@keyframes reveal-bounce {
    0% { opacity: 0; transform: translate3d(0, 25px, 0); }
    72% { opacity: 1; transform: translate3d(0, -4px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

.effects-off .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Custom pointer */
.custom-cursor {
    top: 0;
    left: 0;
    z-index: 10000;
    width: 44px;
    height: 44px;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0);
    transition: opacity 140ms ease;
    will-change: transform;
}

.custom-cursor.is-visible {
    opacity: 1;
}

.cursor-dot,
.cursor-ring,
.cursor-tick {
    position: absolute;
    display: block;
}

.cursor-dot {
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f7f7f3;
    box-shadow: 0 0 8px #44ffa6, 0 0 14px #6b4eff;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    inset: 7px;
    border: 1px solid rgba(139, 114, 255, 0.92);
    border-right-color: rgba(68, 255, 166, 0.9);
    border-bottom-color: rgba(68, 255, 166, 0.55);
    border-radius: 50%;
    box-shadow: 0 0 9px rgba(107, 78, 255, 0.2);
    transition: inset 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.cursor-tick {
    background: rgba(247, 247, 243, 0.75);
    transition: transform 150ms ease;
}

.cursor-tick-top,
.cursor-tick-bottom {
    left: 50%;
    width: 1px;
    height: 4px;
}

.cursor-tick-left,
.cursor-tick-right {
    top: 50%;
    width: 4px;
    height: 1px;
}

.cursor-tick-top { top: 2px; }
.cursor-tick-right { right: 2px; }
.cursor-tick-bottom { bottom: 2px; }
.cursor-tick-left { left: 2px; }

.cursor-label {
    position: absolute;
    top: 50%;
    left: 48px;
    opacity: 0;
    color: #44ffa6;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    transform: translateY(-50%) translateX(-4px);
    transition: opacity 130ms ease, transform 130ms ease;
}

.custom-cursor.is-interactive .cursor-ring {
    inset: 2px;
}

.custom-cursor.is-nav .cursor-label,
.custom-cursor.is-card .cursor-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.custom-cursor.is-pressed .cursor-ring {
    inset: 10px;
    transform: rotate(20deg);
}

@media (hover: hover) and (pointer: fine) {
    body.custom-cursor-ready,
    body.custom-cursor-ready a,
    body.custom-cursor-ready button,
    body.custom-cursor-ready .tilt-card {
        cursor: none !important;
    }
}

/* ============================
   3D CARD INTERACTION
   ============================ */
.tilt-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --lock-y: 0deg;
    --card-lift: 0px;
    --card-push: 0px;
    position: relative;
    transform:
        perspective(980px)
        translate3d(0, var(--card-lift), var(--card-push))
        rotateX(var(--tilt-x))
        rotateY(calc(var(--tilt-y) + var(--lock-y)));
    transform-origin: center center;
    transform-style: preserve-3d;
    transition:
        transform 320ms cubic-bezier(0.2, 0.8, 0.25, 1),
        box-shadow 260ms ease,
        border-color 260ms ease,
        opacity 240ms ease,
        filter 240ms ease;
    backface-visibility: hidden;
}

.tilt-card.is-hovered {
    will-change: transform;
}

.tilt-card[role="button"]:focus-visible {
    outline: 2px solid rgba(107, 78, 255, 0.72);
    outline-offset: 5px;
}

/* PROFILE: restrained tilt and a thin purple-green edge. */
.profile-triad {
    gap: 18px;
}

.profile-triad article.tilt-card {
    overflow: visible;
    padding: 26px 24px 28px;
    border: 1px solid transparent;
    border-radius: 5px;
    background:
        linear-gradient(rgba(247, 247, 243, 0.96), rgba(247, 247, 243, 0.96)) padding-box,
        linear-gradient(135deg, rgba(107, 78, 255, 0.62), rgba(68, 255, 166, 0.48)) border-box;
    box-shadow: 0 10px 28px rgba(63, 43, 115, 0.06);
}

.effects-on .profile-triad article.tilt-card.is-hovered {
    --card-lift: -8px;
    --card-push: 10px;
    box-shadow:
        0 18px 38px rgba(63, 43, 115, 0.14),
        0 0 24px rgba(107, 78, 255, 0.1),
        0 0 18px rgba(68, 255, 166, 0.07);
}

/* WORKFLOW: three accent identities and lockable focus. */
.column.tilt-card {
    transform-style: preserve-3d;
}

.column.tilt-card.col-me {
    border-color: transparent;
    background:
        linear-gradient(rgba(245, 244, 248, 0.97), rgba(245, 244, 248, 0.97)) padding-box,
        linear-gradient(145deg, rgba(107, 78, 255, 0.9), rgba(107, 78, 255, 0.14) 70%) border-box;
}

.column.tilt-card.col-ai {
    border-color: transparent;
    background:
        linear-gradient(rgba(243, 247, 244, 0.97), rgba(243, 247, 244, 0.97)) padding-box,
        linear-gradient(145deg, rgba(46, 125, 98, 0.9), rgba(68, 255, 166, 0.12) 70%) border-box;
}

.column.tilt-card.col-shared {
    border-color: transparent;
    background:
        linear-gradient(rgba(245, 244, 247, 0.97), rgba(245, 244, 247, 0.97)) padding-box,
        linear-gradient(135deg, rgba(107, 78, 255, 0.86), rgba(68, 255, 166, 0.64)) border-box;
}

.col-shared .column-head p {
    color: transparent;
    background: linear-gradient(90deg, #6b4eff, #2e7d62);
    -webkit-background-clip: text;
    background-clip: text;
}

.effects-on .column.tilt-card.is-hovered,
.effects-on .column.tilt-card.is-locked {
    --card-lift: -10px;
    --card-push: 18px;
    box-shadow: 0 22px 42px rgba(23, 23, 23, 0.14), 0 0 24px rgba(107, 78, 255, 0.1);
}

.column.tilt-card.is-locked {
    box-shadow: 0 0 0 1px rgba(107, 78, 255, 0.48), 0 18px 38px rgba(63, 43, 115, 0.15);
}

.column.tilt-card.col-ai.is-locked {
    box-shadow: 0 0 0 1px rgba(46, 125, 98, 0.58), 0 18px 38px rgba(46, 125, 98, 0.14);
}

.column.tilt-card.col-shared.is-locked {
    box-shadow: 0 0 0 1px rgba(107, 78, 255, 0.45), 0 18px 38px rgba(68, 255, 166, 0.1);
}

.three-columns.has-column-focus .column:not(.is-focus-card) {
    opacity: 0.7;
    filter: saturate(0.72);
}

.column-head,
.column h3 {
    transform-style: preserve-3d;
}

.effects-on .column-head span {
    transform: translate3d(0, 0, 34px);
    text-shadow: 0 10px 22px rgba(63, 43, 115, 0.16);
}

.effects-on .column h3 {
    transform: translate3d(0, 0, 14px);
}

.column-head span,
.column h3 {
    transition: transform 300ms ease, text-shadow 300ms ease;
}

/* CONTRACT: shallow Y turn, number depth and a hover scan. */
.manifesto-rule.tilt-card {
    --manifesto-glow: rgba(107, 78, 255, 0.12);
    background: linear-gradient(135deg, rgba(247, 247, 243, 0.9), rgba(245, 244, 248, 0.94));
    box-shadow: inset 0 0 0 1px transparent;
}

.manifesto-rule.tilt-card::after {
    content: "";
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -52%;
    z-index: 2;
    width: 30%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(107, 78, 255, 0.13), rgba(68, 255, 166, 0.18), transparent);
    filter: blur(2px);
    pointer-events: none;
    transform: skewX(-16deg) translate3d(-170%, 0, 0);
}

.effects-on .manifesto-rule.tilt-card.is-hovered {
    --card-lift: -4px;
    --card-push: 8px;
    box-shadow: 0 18px 36px rgba(63, 43, 115, 0.11), inset 0 0 0 1px rgba(107, 78, 255, 0.22);
}

.effects-on .manifesto-rule.tilt-card.is-hovered::after {
    opacity: 1;
    animation: card-scan 900ms ease-out both;
}

.manifesto-rule.tilt-card.is-locked {
    --lock-y: 12deg;
    --card-lift: -4px;
    --card-push: 12px;
    box-shadow: 0 20px 42px rgba(63, 43, 115, 0.15), inset 0 0 0 1px rgba(107, 78, 255, 0.35);
}

.effects-on .manifesto-rule.tilt-card::before {
    transform: translate3d(0, 0, 26px);
    text-shadow: 0 10px 24px var(--manifesto-glow);
}

.effects-on .manifesto-rule.tilt-card h3 {
    transform: translate3d(0, 0, 18px);
    text-shadow: 0 8px 18px rgba(107, 78, 255, 0.08);
}

.effects-on .manifesto-rule.tilt-card > p,
.effects-on .manifesto-rule.tilt-card > ul,
.effects-on .manifesto-rule.tilt-card > div {
    transform: translate3d(0, 0, 7px);
}

.manifesto-rule.tilt-card::before,
.manifesto-rule.tilt-card h3,
.manifesto-rule.tilt-card > p,
.manifesto-rule.tilt-card > ul,
.manifesto-rule.tilt-card > div {
    transition: transform 320ms ease, color 260ms ease, text-shadow 260ms ease;
}

.manifesto-final.tilt-card {
    --manifesto-glow: rgba(107, 78, 255, 0.3);
    box-shadow: 0 0 28px rgba(107, 78, 255, 0.12), inset 0 3px 0 rgba(107, 78, 255, 0.9);
}

.effects-on .manifesto-final.tilt-card.is-hovered,
.manifesto-final.tilt-card.is-locked {
    box-shadow: 0 22px 48px rgba(63, 43, 115, 0.2), 0 0 34px rgba(107, 78, 255, 0.19), inset 0 3px 0 #6b4eff;
}

@keyframes card-scan {
    from { transform: skewX(-16deg) translate3d(-170%, 0, 0); }
    to { transform: skewX(-16deg) translate3d(570%, 0, 0); }
}

.effects-off .tilt-card,
.effects-off .tilt-card.is-hovered,
.effects-off .tilt-card.is-locked {
    --tilt-x: 0deg !important;
    --tilt-y: 0deg !important;
    --lock-y: 0deg !important;
    --card-lift: 0px !important;
    --card-push: 0px !important;
    transform: none !important;
}

.effects-off .manifesto-rule.tilt-card::after {
    opacity: 0 !important;
    animation: none !important;
}

.effects-off .three-columns.has-column-focus .column {
    opacity: 1;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .trail-canvas {
        display: none;
    }

    .cover-aurora,
    .ambient-edge,
    .loader-grid,
    .loader-scanline,
    .cover-name.is-glitching span {
        animation: none !important;
    }

    .js-enabled .reveal-item,
    .js-enabled.animations-ready.effects-on .reveal-item,
    .js-enabled.animations-ready.effects-on .reveal-item.is-visible {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .tilt-card,
    .tilt-card.is-hovered,
    .tilt-card.is-locked {
        --tilt-x: 0deg !important;
        --tilt-y: 0deg !important;
        --lock-y: 0deg !important;
        --card-lift: 0px !important;
        --card-push: 0px !important;
        transform: none !important;
        transition: none !important;
    }

    .manifesto-rule.tilt-card::after {
        opacity: 0 !important;
        animation: none !important;
    }

    .three-columns.has-column-focus .column {
        opacity: 1;
        filter: none;
    }

    .column-head span,
    .column h3,
    .manifesto-rule.tilt-card::before,
    .manifesto-rule.tilt-card h3,
    .manifesto-rule.tilt-card > p,
    .manifesto-rule.tilt-card > ul,
    .manifesto-rule.tilt-card > div {
        transform: none !important;
        transition: none !important;
    }
}
