:root {
    --ink: #f2f7ff;
    --ink-soft: #c5d4ea;
    --ink-faint: #91a9ca;
    --blue: #75bdff;
    --blue-deep: #123678;
    --cyan: #81e3f4;
    --warm: #f0c78a;
    --page-width: 1180px;
    --section-gap: clamp(88px, 10vw, 148px);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 2.2);
    --soft-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 24px 70px rgba(0, 8, 30, 0.22);
    --shadow-hover: 0 30px 80px rgba(0, 8, 30, 0.32);
    --focus-ring: 0 0 0 3px rgba(105, 215, 238, 0.45);
    /* Compatibility aliases used by the original standalone article pages. */
    --primary-color: #d6e8ff;
    --secondary-color: #75bdff;
    --accent-color: #81e3f4;
    --text-color: var(--ink);
    --text-light: var(--ink-soft);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 118px;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    padding-bottom: 118px;
    background-color: #071b50;
    background-image: url("../images/welcome-bg.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(2, 11, 40, 0.03), rgba(2, 10, 38, 0.13));
}

body.intro-running {
    overflow: hidden;
}

button,
a {
    font: inherit;
}

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

button {
    color: inherit;
}

svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

::selection {
    color: #fff;
    background: rgba(38, 100, 225, 0.78);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 16px;
    color: #fff;
    background: #102a66;
    border-radius: 999px;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Opening sequence */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 50% 42%, rgba(79, 144, 255, 0.36), transparent 34%),
        linear-gradient(150deg, rgba(5, 22, 58, 0.94), rgba(12, 46, 105, 0.92)),
        url("../images/welcome-bg.jpg") center / cover;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.72s var(--soft-ease),
        visibility 0.72s step-end;
}

.intro-overlay::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: linear-gradient(110deg, transparent 43%, rgba(255, 255, 255, 0.22) 50%, transparent 57%);
    transform: translateX(-65%) rotate(-8deg);
    opacity: 0;
}

.intro-overlay.is-playing::after {
    animation: introSweep 1.2s 0.35s var(--soft-ease) forwards;
}

.intro-overlay.is-leaving {
    opacity: 0;
    pointer-events: none;
}

.intro-overlay.is-leaving .intro-brand {
    transform: translateY(-12px) scale(1.035);
    opacity: 0;
}

.intro-skipped .intro-overlay {
    display: none;
}

.intro-brand {
    position: relative;
    z-index: 2;
    width: min(88vw, 560px);
    text-align: center;
    transition: all 0.5s var(--soft-ease);
}

.intro-mark {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    place-items: center;
    font-family: "Songti SC", "STSong", serif;
    font-size: 30px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.55),
        inset -1px -1px 0 rgba(255, 255, 255, 0.18),
        0 18px 50px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(0.72) rotate(-8deg);
}

.intro-kicker,
.intro-caption {
    margin: 0;
    letter-spacing: 0.24em;
    opacity: 0;
    transform: translateY(12px);
}

.intro-kicker {
    font-size: 11px;
    font-weight: 700;
}

.intro-title {
    margin: 12px 0 16px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(52px, 9vw, 92px);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    opacity: 0;
    transform: translateY(24px) scale(0.96);
}

.intro-line {
    width: min(280px, 58vw);
    height: 1px;
    margin: 0 auto 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}

.intro-line span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    transform: translateX(-110%);
}

.intro-caption {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.74);
}

.intro-overlay.is-playing .intro-mark {
    animation: introMark 0.65s 0.08s var(--spring) forwards;
}

.intro-overlay.is-playing .intro-kicker {
    animation: introRise 0.55s 0.25s var(--soft-ease) forwards;
}

.intro-overlay.is-playing .intro-title {
    animation: introTitle 0.7s 0.32s var(--spring) forwards;
}

.intro-overlay.is-playing .intro-line span {
    animation: introLine 0.7s 0.6s var(--soft-ease) forwards;
}

.intro-overlay.is-playing .intro-caption {
    animation: introRise 0.55s 0.72s var(--soft-ease) forwards;
}

.intro-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.intro-orbit-one {
    width: 56vw;
    height: 56vw;
    animation: orbitFloat 9s ease-in-out infinite;
}

.intro-orbit-two {
    width: 78vw;
    height: 78vw;
    animation: orbitFloat 12s 0.8s ease-in-out infinite reverse;
}

@keyframes introMark {
    0% { opacity: 0; transform: scale(0.72) rotate(-8deg); }
    72% { opacity: 1; transform: scale(1.07) rotate(1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes introRise {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes introTitle {
    0% { opacity: 0; transform: translateY(24px) scale(0.96); letter-spacing: 0.2em; }
    100% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0.12em; }
}

@keyframes introLine {
    to { transform: translateX(110%); }
}

@keyframes introSweep {
    0% { opacity: 0; transform: translateX(-65%) rotate(-8deg); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translateX(65%) rotate(-8deg); }
}

@keyframes orbitFloat {
    0%, 100% { transform: scale(0.96) rotate(0deg); opacity: 0.55; }
    50% { transform: scale(1.04) rotate(5deg); opacity: 1; }
}

/* Ambient field */
.ambient-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.ambient-blob,
.cursor-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
}

.ambient-blob-one {
    top: 9%;
    left: -8%;
    width: 34vw;
    height: 34vw;
    background: radial-gradient(circle, rgba(123, 190, 255, 0.1), transparent 68%);
    animation: ambientDrift 14s ease-in-out infinite;
}

.ambient-blob-two {
    right: -8%;
    top: 38%;
    width: 38vw;
    height: 38vw;
    background: radial-gradient(circle, rgba(255, 235, 190, 0.055), transparent 68%);
    animation: ambientDrift 17s 1.4s ease-in-out infinite reverse;
}

.cursor-aurora {
    left: 0;
    top: 0;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(129, 219, 255, 0.17), rgba(108, 197, 255, 0.04) 38%, transparent 70%);
    transform: translate3d(calc(var(--ambient-x, 50vw) - 190px), calc(var(--ambient-y, 30vh) - 190px), 0);
    transition: opacity 0.35s ease;
    will-change: transform;
}

.grain {
    position: absolute;
    inset: 0;
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

@keyframes ambientDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(5vw, -3vh, 0) scale(1.08); }
}

/* Floating navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 18px 20px 0;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: min(100%, var(--page-width));
    min-height: 70px;
    margin: 0 auto;
    padding: 8px 10px 8px 16px;
    border-radius: 28px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 178px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    font-family: "Songti SC", "STSong", serif;
    font-size: 19px;
    background: #173b7d;
    border-radius: 15px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.28);
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-family: "Songti SC", "STSong", serif;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.brand-copy small {
    color: var(--ink-faint);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.nav-link {
    position: relative;
    display: grid;
    min-width: 66px;
    min-height: 42px;
    place-items: center;
    padding: 0 12px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
    border-radius: 16px;
    transition:
        color 0.25s ease,
        transform 0.3s var(--spring),
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px) scale(1.02);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0;
    transform: translateX(-50%) scale(0);
    transition: all 0.3s var(--spring);
}

.nav-link.active::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.nav-cta,
.spring-button,
.icon-action,
.topic-chip,
.social-link {
    --hover-scale: 1;
    --hover-lift: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    cursor: pointer;
}

.nav-cta {
    min-height: 48px;
    padding: 0 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 18px;
    background: rgba(8, 28, 73, 0.2);
}

.nav-cta svg,
.spring-button svg,
.text-link svg,
.resource-link svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s var(--spring);
}

.nav-cta:hover svg,
.spring-button:hover svg,
.text-link:hover svg,
.resource-link:hover svg {
    transform: translateX(3px) scale(1.08);
}

.menu-toggle {
    display: none;
}

/* Page composition */
.page-shell {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 0 auto;
}

.page-section {
    scroll-margin-top: 112px;
}

.hero-section {
    padding-top: clamp(42px, 6vw, 76px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.55fr);
    gap: 22px;
    align-items: stretch;
}

.profile-card,
.focus-card,
.stat-card,
.article-card,
.resource-card,
.about-section {
    border-radius: 32px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    min-height: 530px;
    padding: clamp(28px, 4vw, 48px);
}

.profile-topline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 650;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #51c995;
    box-shadow: 0 0 0 5px rgba(81, 201, 149, 0.14);
}

.profile-avatar {
    position: relative;
    display: grid;
    width: 90px;
    height: 90px;
    margin: 54px 0 28px;
    place-items: center;
    color: #fff;
    font-family: "Songti SC", "STSong", serif;
    font-size: 37px;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.52), transparent 24%),
        #153f89;
    border-radius: 31px;
    box-shadow: 0 18px 40px rgba(15, 55, 128, 0.25);
}

.profile-avatar::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(43, 103, 213, 0.18);
    border-radius: 38px;
    transform: rotate(7deg);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.profile-card h1 {
    margin: 0;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
}

.profile-role {
    margin: 14px 0 20px;
    color: #a9d6ff;
    font-size: 15px;
    font-weight: 700;
}

.profile-intro {
    max-width: 34em;
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.9;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 30px;
}

.spring-button {
    min-height: 50px;
    padding: 0 20px;
    color: #d8ebff;
    font-size: 13px;
    font-weight: 750;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
}

.primary-action {
    color: #fff;
    background: rgba(5, 23, 62, 0.22);
}

.icon-action {
    width: 50px;
    height: 50px;
    color: #bce5ff;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
}

.icon-action svg {
    width: 20px;
    height: 20px;
}

.hero-dashboard {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 22px;
}

.focus-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: clamp(30px, 4vw, 52px);
}

.focus-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.focus-heading h2,
.section-heading h2,
.about-copy h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.focus-heading h2 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.28;
}

.focus-index,
.about-number {
    color: rgba(201, 227, 255, 0.34);
    font-family: Georgia, serif;
    font-size: 62px;
    font-style: italic;
    line-height: 1;
}

.focus-card > p {
    max-width: 48em;
    margin: 28px 0 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.focus-track {
    height: 5px;
    margin-top: auto;
    overflow: hidden;
    background: rgba(38, 83, 156, 0.11);
    border-radius: 999px;
}

.focus-track span {
    display: block;
    width: 68%;
    height: 100%;
    background: linear-gradient(90deg, #2d69dc, #73d8ec);
    border-radius: inherit;
}

.focus-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--ink-faint);
    font-size: 11px;
}

.focus-meta strong {
    color: #a9d8ff;
    letter-spacing: 0.08em;
}

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

.stat-card {
    display: grid;
    min-height: 176px;
    padding: 28px 32px;
    align-content: end;
}

.stat-number {
    font-family: Georgia, serif;
    font-size: 50px;
    line-height: 1;
}

.stat-label {
    margin-top: 10px;
    font-weight: 750;
}

.stat-card small {
    margin-top: 5px;
    color: var(--ink-faint);
    font-size: 11px;
}

.topic-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 8px 0;
}

.topic-label {
    margin-right: 6px;
    color: var(--ink-faint);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.topic-chip {
    min-height: 42px;
    padding: 0 17px;
    color: #d4eaff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
}

.content-block {
    padding-top: var(--section-gap);
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 0.55fr);
    gap: 30px;
    align-items: end;
    margin-bottom: 32px;
}

.section-heading h2 {
    font-size: clamp(42px, 5vw, 64px);
}

.section-heading > p {
    margin: 0 0 8px;
    color: var(--ink-soft);
    line-height: 1.8;
}

/* Writing layout */
.article-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
    gap: 22px;
}

.article-featured {
    display: grid;
    grid-template-rows: minmax(230px, 1fr) auto;
    min-height: 590px;
    overflow: hidden;
    cursor: pointer;
}

.article-visual {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 70% 30%, rgba(107, 220, 241, 0.55), transparent 23%),
        linear-gradient(145deg, rgba(18, 59, 136, 0.94), rgba(35, 93, 185, 0.82));
}

.article-number {
    position: absolute;
    top: 28px;
    left: 32px;
    font-family: Georgia, serif;
    font-size: 18px;
    font-style: italic;
    opacity: 0.7;
}

.article-glyph {
    position: absolute;
    right: 8%;
    bottom: -6%;
    font-family: Georgia, serif;
    font-size: clamp(108px, 15vw, 210px);
    font-style: italic;
    letter-spacing: -0.12em;
    opacity: 0.16;
    transform: rotate(-7deg);
    transition: transform 0.6s var(--spring), opacity 0.4s ease;
}

.article-featured:hover .article-glyph {
    opacity: 0.24;
    transform: rotate(-3deg) scale(1.04);
}

.visual-orbit {
    position: absolute;
    right: 14%;
    top: 17%;
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.035), 0 0 0 58px rgba(255, 255, 255, 0.025);
}

.article-copy {
    position: relative;
    padding: 30px 34px 34px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--ink-faint);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.article-meta span {
    color: #8fd6ff;
}

.article-copy h3 {
    margin: 18px 0 12px;
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 600;
    line-height: 1.35;
}

.article-copy > p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: #a9ddff;
    font-size: 13px;
    font-weight: 750;
}

.article-stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.article-compact {
    display: grid;
    grid-template-columns: 74px 1fr;
    min-height: 0;
    cursor: pointer;
}

.compact-index {
    display: grid;
    place-items: center;
    color: rgba(200, 226, 255, 0.42);
    font-family: Georgia, serif;
    font-size: 32px;
    font-style: italic;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.article-compact .article-copy {
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.article-compact .article-copy h3 {
    font-size: clamp(23px, 2.2vw, 31px);
}

.article-compact .text-link {
    align-self: flex-end;
    margin-top: auto;
}

/* Resource library */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.resource-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr;
    grid-template-rows: 1fr auto;
    gap: 16px;
    min-height: 220px;
    padding: 22px;
}

.resource-card.is-extra:not(.is-visible) {
    display: none;
}

.resource-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #d7edff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.04em;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.58);
}

.resource-copy {
    min-width: 0;
}

.resource-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.resource-heading h3 {
    margin: 2px 0 0;
    overflow: hidden;
    font-family: "Songti SC", "STSong", serif;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-order {
    color: rgba(208, 229, 255, 0.42);
    font-family: Georgia, serif;
    font-size: 11px;
    font-style: italic;
}

.resource-description {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.6;
}

.resource-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

.resource-details span {
    padding: 4px 8px;
    color: #c9def7;
    font-size: 9px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.resource-link {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: end;
    padding-top: 14px;
    color: #b8e1ff;
    font-size: 12px;
    font-weight: 750;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.resource-link[aria-disabled="true"] {
    color: var(--ink-faint);
    cursor: not-allowed;
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.resource-toggle {
    min-width: 220px;
}

.resource-toggle.is-expanded svg {
    transform: rotate(180deg);
}

/* About */
.about-section {
    display: grid;
    grid-template-columns: 100px minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 34px;
    align-items: start;
    margin-top: var(--section-gap);
    padding: clamp(32px, 5vw, 58px);
}

.about-copy h2 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.4;
}

.about-note p {
    margin: 4px 0 26px;
    color: var(--ink-soft);
    line-height: 1.9;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    min-height: 40px;
    padding: 0 15px;
    color: #d4eaff;
    font-size: 11px;
    font-weight: 750;
    border-radius: 999px;
}

.social-link[aria-disabled="true"] {
    opacity: 0.56;
    cursor: not-allowed;
}

/* MapleBlog-inspired fixed liquid footer dock. */
.site-dock {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 120;
    width: min(calc(100% - 40px), var(--page-width));
    padding: 11px 18px;
    color: var(--ink-soft);
    border-radius: 28px;
    transform: translate3d(-50%, 0, 0);
    transition:
        transform 0.3s var(--spring),
        padding 0.38s var(--soft-ease),
        box-shadow 0.3s ease;
}

.site-dock.liquid-surface {
    position: fixed;
    transform: translate3d(calc(-50% + var(--magnet-x, 0px)), var(--magnet-y, 0px), 0);
}

.dock-collapsed,
.dock-expanded,
.dock-copyright,
.dock-actions,
.dock-menu,
.dock-stats {
    display: flex;
    align-items: center;
}

.dock-collapsed {
    min-height: 42px;
    justify-content: space-between;
    gap: 20px;
}

.dock-copyright {
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.dock-copyright-extra {
    color: var(--ink-faint);
    font-size: 9px;
    letter-spacing: 0.18em;
}

.dock-actions,
.dock-menu {
    gap: 4px;
}

.dock-action,
.dock-menu a {
    min-height: 36px;
    padding: 0 13px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        transform 0.3s var(--spring),
        opacity 0.25s ease;
}

.dock-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dock-icon-action {
    width: 36px;
    padding-inline: 0;
    justify-content: center;
}

.dock-action-logo {
    display: block;
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s var(--spring);
}

.dock-icon-action:hover .dock-action-logo {
    transform: scale(1.08);
}

.dock-action:hover,
.dock-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px) scale(1.04);
}

.dock-action[aria-disabled="true"] {
    opacity: 0.58;
}

.dock-top {
    width: 0;
    padding-inline: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.dock-top.is-visible {
    width: 70px;
    padding-inline: 13px;
    opacity: 1;
    pointer-events: auto;
}

.dock-top svg {
    width: 15px;
    height: 15px;
}

.dock-expanded {
    max-height: 0;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    border-top: 1px solid transparent;
    opacity: 0;
    transform: translateY(8px);
    transition:
        max-height 0.38s var(--soft-ease),
        padding 0.38s var(--soft-ease),
        opacity 0.28s ease,
        transform 0.38s var(--soft-ease),
        border-color 0.28s ease;
}

.site-dock.is-expanded {
    padding: 13px 18px 15px;
}

.site-dock.is-expanded .dock-expanded {
    max-height: 82px;
    padding-top: 10px;
    border-top-color: rgba(255, 255, 255, 0.13);
    opacity: 1;
    transform: translateY(0);
}

.dock-stats {
    gap: 9px;
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.dock-stats i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
}

/* Existing article pages */
.container {
    width: min(calc(100% - 32px), 920px);
    margin: 0 auto;
    padding: 34px 0;
}

.article-container {
    position: relative;
    isolation: isolate;
}

.article-content ul {
    padding-left: 1.4em;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content pre,
.code-block {
    max-width: 100%;
    overflow-x: auto;
}

.back-link {
    border-radius: 18px !important;
}

/* Reveal and focus */
.reveal-card {
    opacity: 0;
    translate: 0 24px;
    transition:
        opacity 0.72s var(--soft-ease),
        translate 0.72s var(--soft-ease);
}

.reveal-card.is-visible {
    opacity: 1;
    translate: 0 0;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

@media (max-width: 1040px) {
    .topbar {
        grid-template-columns: auto 1fr auto;
    }

    .brand-link {
        min-width: 150px;
    }

    .brand-copy small {
        display: none;
    }

    .nav-link {
        min-width: 58px;
        padding-inline: 9px;
    }

    .hero-grid {
        grid-template-columns: minmax(290px, 0.85fr) minmax(0, 1.15fr);
    }

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

@media (max-width: 820px) {
    html {
        scroll-padding-top: 92px;
    }

    .site-header {
        padding: 12px 12px 0;
    }

    .topbar {
        min-height: 62px;
        padding: 7px 8px 7px 12px;
        border-radius: 24px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .brand-link {
        min-width: 0;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .menu-toggle {
        position: relative;
        z-index: 6;
        display: grid;
        grid-column: 3;
        width: 46px;
        height: 46px;
        padding: 0;
        place-content: center;
        gap: 6px;
        color: var(--ink);
        border: 0;
        border-radius: 16px;
        background: transparent;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 19px;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.3s var(--spring);
    }

    .menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.75px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3.75px) rotate(-45deg);
    }

    .topbar.liquid-surface > .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: grid;
        gap: 5px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 24px;
        background: rgba(5, 20, 58, 0.48);
        box-shadow: 0 24px 60px rgba(0, 8, 30, 0.34);
        backdrop-filter: blur(18px) saturate(1.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top;
        transition: all 0.3s var(--spring);
    }

    .topbar.liquid-surface > .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-link {
        min-height: 46px;
    }

    .nav-cta {
        display: none;
    }

    .page-shell {
        width: min(calc(100% - 24px), var(--page-width));
    }

    .hero-section {
        padding-top: 28px;
    }

    .hero-grid,
    .article-showcase {
        grid-template-columns: 1fr;
    }

    .profile-card {
        min-height: 510px;
    }

    .focus-card {
        min-height: 310px;
    }

    .article-featured {
        min-height: 540px;
    }

    .article-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 1fr;
    }

    .article-compact {
        grid-template-columns: 60px 1fr;
        min-height: 280px;
    }

    .article-compact .article-meta time {
        display: none;
    }

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

    .about-section {
        grid-template-columns: 70px 1fr;
    }

    .about-note {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    :root {
        --section-gap: 84px;
    }

    body {
        background-attachment: scroll;
    }

    .intro-title {
        font-size: 54px;
    }

    .intro-orbit-one {
        width: 110vw;
        height: 110vw;
    }

    .intro-orbit-two {
        width: 150vw;
        height: 150vw;
    }

    .brand-copy {
        display: none;
    }

    .topbar {
        grid-template-columns: auto 1fr auto;
    }

    .profile-card,
    .focus-card,
    .stat-card,
    .article-card,
    .resource-card,
    .about-section {
        border-radius: 26px;
    }

    .profile-card {
        min-height: 500px;
        padding: 28px;
    }

    .profile-avatar {
        margin-top: 40px;
    }

    .focus-card {
        min-height: 340px;
        padding: 28px;
    }

    .focus-index {
        font-size: 44px;
    }

    .stat-grid {
        gap: 12px;
    }

    .stat-card {
        min-height: 154px;
        padding: 22px;
    }

    .stat-number {
        font-size: 40px;
    }

    .topic-row {
        gap: 8px;
    }

    .topic-label {
        width: 100%;
        margin-bottom: 2px;
    }

    .topic-chip {
        min-height: 38px;
        padding-inline: 14px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .section-heading h2 {
        font-size: 42px;
    }

    .section-heading > p {
        font-size: 13px;
    }

    .article-featured {
        min-height: 520px;
        grid-template-rows: 240px auto;
    }

    .article-copy {
        padding: 25px;
    }

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

    .article-compact {
        min-height: 238px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        min-height: 190px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 30px;
    }

    .about-number {
        font-size: 46px;
    }

    .about-note {
        grid-column: 1;
    }

    .site-dock {
        bottom: 10px;
        width: calc(100% - 24px);
        padding: 8px 10px 8px 14px;
        border-radius: 23px;
    }

    .dock-collapsed {
        min-height: 44px;
        gap: 8px;
    }

    .dock-copyright {
        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .dock-copyright-extra,
    .dock-actions > a,
    .dock-expanded {
        display: none;
    }

    .dock-top,
    .dock-top.is-visible {
        width: 58px;
        padding-inline: 10px;
        opacity: 1;
        pointer-events: auto;
    }

    .container {
        width: calc(100% - 20px);
        padding-top: 16px;
    }

    .article-container {
        margin: 12px auto !important;
        padding: 24px !important;
        border-radius: 24px !important;
    }

    .article-title {
        font-size: 30px !important;
    }
}

@media (hover: none), (pointer: coarse) {
    .cursor-aurora {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .intro-overlay {
        display: none;
    }

    .reveal-card {
        opacity: 1;
        translate: none;
    }
}
