:root {
    --paper: #f3f6fb;
    --paper-soft: #e9eef7;
    --ink: #11182b;
    --ink-soft: #566078;
    --line: rgba(17, 24, 43, 0.14);
    --violet: #765dff;
    --violet-deep: #5542e8;
    --cyan: #3edfc2;
    --orange: #ff9d59;
    --night: #0b1021;
    --night-soft: #131a31;
    --white: #ffffff;
    --container: min(92vw, 1440px);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--violet) var(--paper-soft);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(circle at 12% 2%, rgba(118, 93, 255, .10), transparent 28rem),
        radial-gradient(circle at 90% 38%, rgba(62, 223, 194, .08), transparent 24rem),
        linear-gradient(rgba(17, 24, 43, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 43, .035) 1px, transparent 1px);
    background-size: auto, auto, 72px 72px, 72px 72px;
    mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .35) 34rem, transparent 60rem);
    pointer-events: none;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(118, 93, 255, .42);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    color: var(--white);
    background: var(--night);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: none;
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 50;
    opacity: .045;
    pointer-events: none;
    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='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: 100%;
    height: 2px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    transform: scaleX(0);
    transform-origin: left;
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: var(--container);
    height: 88px;
    transform: translateX(-50%);
    transition: height .35s var(--ease), background-color .35s ease, box-shadow .35s ease, padding .35s var(--ease), width .35s var(--ease), border-radius .35s ease;
}

.site-header.is-scrolled {
    top: 10px;
    width: min(94vw, 1320px);
    height: 64px;
    padding: 0 18px;
    background: rgba(243, 246, 251, .84);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(34, 42, 70, .10);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}

.brand-mark {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 8px);
    grid-template-rows: repeat(2, 8px);
    gap: 3px;
    width: 19px;
    height: 19px;
    transform: rotate(45deg);
}

.brand-mark span {
    display: block;
    border-radius: 2px;
    background: var(--ink);
}

.brand-mark span:nth-child(2) {
    background: var(--violet);
}

.brand-mark span:nth-child(3) {
    background: var(--cyan);
}

.brand-type {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
}

.brand-type em {
    padding: 0 3px;
    color: var(--violet);
    font-style: normal;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 42px;
    font-size: 14px;
    font-weight: 600;
}

.site-nav a {
    position: relative;
    padding: 10px 0;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--violet);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--ease);
}

.site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-signal {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 9px;
    color: var(--ink-soft);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}

.signal-dot,
.live-pip {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28b989;
    box-shadow: 0 0 0 5px rgba(40, 185, 137, .12);
    animation: signalPulse 2.4s ease-in-out infinite;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
    gap: clamp(36px, 6vw, 112px);
    align-items: center;
    width: var(--container);
    min-height: max(780px, 100svh);
    margin: 0 auto;
    padding: 136px 0 76px;
}

.eyebrow,
.section-kicker,
.story-meta,
.row-meta,
.project-topline,
.project-type,
.visual-toolbar,
.visual-footer,
.field-note,
.coordinate {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 29px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
}

.eyebrow-line {
    width: 44px;
    height: 1px;
    background: var(--ink);
}

.hero-title {
    max-width: 800px;
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(50px, 5.55vw, 90px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.065em;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

.word-window {
    position: relative;
    display: inline-flex;
    min-width: 2.15em;
    height: 1.08em;
    margin: 0 .12em;
    overflow: hidden;
    color: var(--violet-deep);
    vertical-align: -.08em;
}

.word-window::after {
    position: absolute;
    right: 0;
    bottom: .04em;
    left: 0;
    height: .07em;
    content: "";
    border-radius: 999px;
    background: var(--cyan);
    opacity: .72;
    transform: scaleX(.78);
    transform-origin: left;
}

.word-window span {
    display: inline-block;
    transition: opacity .28s ease, transform .45s var(--ease), filter .28s ease;
}

.word-window span.is-changing {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(-35%);
}

.hero-lead {
    max-width: 600px;
    margin: 34px 0 0;
    color: var(--ink-soft);
    font-size: clamp(16px, 1.18vw, 19px);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 38px;
}

.primary-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-width: 186px;
    padding: 16px 18px 16px 20px;
    overflow: hidden;
    color: var(--white);
    background: var(--ink);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    transition: color .35s ease, transform .35s var(--ease), box-shadow .35s ease;
}

.primary-link::before {
    position: absolute;
    inset: 0;
    content: "";
    background: var(--violet-deep);
    transform: translateY(102%);
    transition: transform .4s var(--ease);
}

.primary-link:hover::before {
    transform: none;
}

.primary-link:hover {
    box-shadow: 0 14px 32px rgba(85, 66, 232, .25);
}

.primary-link > span {
    position: relative;
    z-index: 1;
}

.link-arrow {
    font-size: 18px;
    transition: transform .35s var(--ease);
}

.primary-link:hover .link-arrow {
    transform: translate(3px, -3px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    transition: border-color .25s ease, color .25s ease;
}

.text-link:hover {
    color: var(--violet-deep);
    border-color: var(--violet-deep);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 34px;
    width: max-content;
    margin: 68px 0 0;
}

.hero-metrics div {
    position: relative;
    padding-left: 15px;
}

.hero-metrics div::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 2px;
    content: "";
    background: var(--line);
}

.hero-metrics div:first-child::before {
    background: var(--violet);
}

.hero-metrics dt {
    margin-bottom: 7px;
    color: #8790a4;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.hero-metrics dd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.live-pip {
    width: 5px;
    height: 5px;
    box-shadow: none;
}

.hero-visual {
    position: relative;
    min-height: 625px;
    overflow: hidden;
    color: #e8ecff;
    background:
        radial-gradient(circle at 50% 44%, rgba(118, 93, 255, .20), transparent 32%),
        linear-gradient(145deg, #10162a 0%, #080d1b 70%);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 3px 3px 44px 3px;
    box-shadow: 0 42px 100px rgba(25, 31, 58, .22);
    transform-style: preserve-3d;
}

.hero-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(rgba(153, 166, 213, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(153, 166, 213, .07) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
    pointer-events: none;
}

.hero-visual::after {
    position: absolute;
    top: 0;
    left: -40%;
    width: 30%;
    height: 100%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(91, 229, 207, .07), transparent);
    transform: skewX(-14deg);
    animation: fieldScan 8s ease-in-out infinite;
    pointer-events: none;
}

.visual-toolbar,
.visual-footer {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 20px;
    color: #8f98b8;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
}

.toolbar-state {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
}

.toolbar-state i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.signal-stage {
    position: relative;
    height: 520px;
    overflow: hidden;
}

#inference-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.field-core {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 108px;
    height: 108px;
    place-items: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.field-core::before {
    position: absolute;
    inset: 20px;
    content: "";
    border-radius: 50%;
    background: rgba(118, 93, 255, .12);
    border: 1px solid rgba(168, 151, 255, .55);
    box-shadow: 0 0 45px rgba(118, 93, 255, .30), inset 0 0 24px rgba(62, 223, 194, .10);
}

.core-ring {
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(133, 226, 215, .24);
    border-radius: 50%;
    animation: coreSpin 16s linear infinite;
}

.core-ring-b {
    inset: -17px;
    border-style: solid;
    border-color: rgba(118, 93, 255, .12);
    animation-direction: reverse;
    animation-duration: 24s;
}

.core-ring-b::after {
    position: absolute;
    top: 7px;
    left: 28px;
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px var(--cyan);
}

.core-label {
    position: relative;
    z-index: 1;
    color: #e5e4ff;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}

.field-note {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 9px 12px;
    background: rgba(7, 12, 26, .72);
    border-left: 1px solid var(--violet);
    backdrop-filter: blur(8px);
}

.field-note span {
    color: #747e9e;
    font-size: 7px;
    letter-spacing: .14em;
}

.field-note strong {
    color: #dbe1fb;
    font-size: 9px;
    letter-spacing: .05em;
}

.field-note-a { top: 20%; left: 9%; }
.field-note-b { top: 13%; right: 10%; border-color: var(--cyan); }
.field-note-c { right: 8%; bottom: 16%; border-color: var(--orange); }

.coordinate {
    position: absolute;
    color: #556080;
    font-size: 7px;
    letter-spacing: .12em;
}

.coordinate-x { bottom: 9%; left: 7%; }
.coordinate-y { top: 52%; right: -30px; transform: rotate(90deg); }

.visual-footer {
    height: 52px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    border-bottom: 0;
}

.mono-clock {
    color: #c3cae2;
}

.topic-rail {
    overflow: hidden;
    color: #dce2f3;
    background: var(--night);
    border-top: 1px solid rgba(255, 255, 255, .09);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.topic-track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    height: 54px;
    animation: railMove 30s linear infinite;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
}

.topic-track i {
    width: 6px;
    height: 6px;
    border: 1px solid var(--cyan);
    transform: rotate(45deg);
}

.section {
    width: var(--container);
    margin: 0 auto;
    padding: 130px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px);
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
}

.section-kicker {
    display: block;
    margin-bottom: 17px;
    color: var(--violet-deep);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .2em;
}

.section-heading h2 {
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(42px, 4.5vw, 70px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.055em;
}

.section-heading > p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.85;
}

.writing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: clamp(40px, 6vw, 92px);
}

.featured-story {
    min-width: 0;
}

.story-visual {
    position: relative;
    display: block;
    height: clamp(350px, 37vw, 535px);
    overflow: hidden;
    color: #e9edfb;
    background:
        radial-gradient(circle at 72% 34%, rgba(118, 93, 255, .5), transparent 28%),
        linear-gradient(135deg, #17203b, #080e1d 72%);
}

.story-visual::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 54px 54px;
    transition: transform .8s var(--ease);
}

.story-visual:hover::after {
    transform: scale(1.06) rotate(.5deg);
}

.story-index {
    position: absolute;
    top: 25px;
    left: 27px;
    z-index: 2;
    color: #8993b1;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    line-height: 1.15;
    letter-spacing: .14em;
}

.story-index strong {
    display: block;
    margin-top: 5px;
    color: var(--white);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: -.08em;
}

.reasoning-map {
    position: absolute;
    top: 50%;
    left: 54%;
    z-index: 2;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
}

.reasoning-map::before,
.reasoning-map::after {
    position: absolute;
    top: 50%;
    left: 50%;
    content: "";
    background: rgba(255, 255, 255, .13);
    transform: translate(-50%, -50%);
}

.reasoning-map::before { width: 140%; height: 1px; }
.reasoning-map::after { width: 1px; height: 140%; }

.map-orbit {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(62, 223, 194, .35);
    border-radius: 50%;
    animation: coreSpin 22s linear infinite;
}

.map-orbit-one::before,
.map-orbit-two::before {
    position: absolute;
    width: 9px;
    height: 9px;
    content: "";
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 22px var(--cyan);
}

.map-orbit-one::before { top: 25px; right: 48px; }
.map-orbit-two { inset: 50px; border-color: rgba(164, 147, 255, .5); animation-direction: reverse; animation-duration: 14s; }
.map-orbit-two::before { right: 5px; bottom: 23px; width: 6px; height: 6px; background: var(--violet); box-shadow: 0 0 18px var(--violet); }

.map-node {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange);
}

.map-node-a { top: 14%; left: 5%; }
.map-node-b { right: 0; bottom: 20%; }
.map-node-c { bottom: -2%; left: 32%; }

.map-copy {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #f0efff;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: clamp(19px, 2vw, 29px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: .08em;
    transform: translate(-50%, -50%);
}

.visual-caption {
    position: absolute;
    right: 24px;
    bottom: 23px;
    z-index: 2;
    color: #747f9d;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 7px;
    letter-spacing: .15em;
}

.story-content {
    padding-top: 28px;
}

.story-meta,
.row-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #7c859a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .13em;
}

.story-meta span:first-child,
.row-meta span {
    color: var(--violet-deep);
}

.story-content h3 {
    max-width: 760px;
    margin: 18px 0 16px;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(28px, 2.7vw, 43px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.story-content h3 a {
    background-image: linear-gradient(var(--violet), var(--violet));
    background-position: 100% 100%;
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size .5s var(--ease), background-position 0s .5s;
}

.story-content h3 a:hover {
    background-position: 0 100%;
    background-size: 100% 2px;
}

.story-content p {
    max-width: 690px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.85;
}

.story-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 23px;
    color: var(--violet-deep);
    font-size: 13px;
    font-weight: 750;
}

.story-link span {
    transition: transform .3s var(--ease);
}

.story-link:hover span {
    transform: translate(3px, -3px);
}

.story-list {
    border-top: 1px solid var(--line);
}

.story-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 28px;
    gap: 20px;
    align-items: center;
    min-height: 186px;
    border-bottom: 1px solid var(--line);
}

.row-main {
    padding: 31px 0;
}

.row-main h3 {
    margin: 16px 0 9px;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.03em;
    transition: color .25s ease, transform .35s var(--ease);
}

.row-main p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.7;
}

.row-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 12px;
    transition: color .3s ease, background .3s ease, border-color .3s ease, transform .3s var(--ease);
}

.story-row:hover .row-main h3 {
    color: var(--violet-deep);
    transform: translateX(5px);
}

.story-row:hover .row-arrow {
    color: var(--white);
    background: var(--violet-deep);
    border-color: var(--violet-deep);
    transform: rotate(45deg);
}

.projects-section {
    position: relative;
    width: 100%;
    padding-right: max(4vw, calc((100vw - 1440px) / 2));
    padding-left: max(4vw, calc((100vw - 1440px) / 2));
    color: #e7ebf8;
    background: var(--night);
}

.projects-section::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 78% 10%, rgba(118, 93, 255, .14), transparent 34rem),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    pointer-events: none;
}

.projects-section > * {
    position: relative;
    z-index: 1;
}

.section-heading-light .section-kicker {
    color: var(--cyan);
}

.section-heading-light > p {
    color: #919bb6;
}

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

.project-card {
    position: relative;
    display: flex;
    min-height: 420px;
    padding: 25px;
    overflow: hidden;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 2px;
    transform-style: preserve-3d;
    transition: border-color .35s ease, background .35s ease, transform .18s ease;
}

.project-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(118, 93, 255, .13), transparent 30%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.project-card:hover {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(143, 126, 255, .48);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card-wide {
    grid-row: span 2;
    min-height: 856px;
}

.project-topline {
    position: absolute;
    top: 24px;
    right: 24px;
    left: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #68728f;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.project-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 10px rgba(255, 157, 89, .7);
}

.project-status-live i {
    background: var(--cyan);
    box-shadow: 0 0 10px rgba(62, 223, 194, .7);
}

.project-copy {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    max-width: 560px;
}

.project-type {
    color: var(--cyan);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .15em;
}

.project-copy h3 {
    margin: 12px 0 14px;
    font-family: "SF Pro Display", "PingFang SC", sans-serif;
    font-size: clamp(34px, 4vw, 60px);
    font-weight: 520;
    line-height: 1;
    letter-spacing: -.05em;
}

.project-card:not(.project-card-wide) .project-copy h3 {
    font-size: clamp(28px, 3vw, 42px);
}

.project-copy p {
    max-width: 530px;
    margin: 0;
    color: #919bb6;
    font-size: 14px;
    line-height: 1.75;
}

.project-open {
    position: absolute;
    right: 25px;
    bottom: 25px;
    z-index: 3;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #aab3ca;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    transition: color .3s ease, background .3s ease, transform .35s var(--ease);
}

.project-card:hover .project-open {
    color: var(--night);
    background: var(--cyan);
    transform: rotate(45deg);
}

.project-glyph {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.project-glyph-memory {
    top: 14%;
    left: 50%;
    width: min(70%, 470px);
    aspect-ratio: 1;
    transform: translateX(-50%);
}

.project-glyph-memory span {
    position: absolute;
    inset: calc(var(--n, 0) * 8%);
    border: 1px solid rgba(127, 109, 255, calc(.55 - var(--n, 0) * .07));
    border-radius: 48% 52% 45% 55% / 58% 43% 57% 42%;
    animation: memoryMorph calc(9s + var(--n, 0) * 2s) ease-in-out infinite alternate;
}

.project-glyph-memory span:nth-child(1) { --n: 0; }
.project-glyph-memory span:nth-child(2) { --n: 1; animation-direction: alternate-reverse; }
.project-glyph-memory span:nth-child(3) { --n: 2; }
.project-glyph-memory span:nth-child(4) { --n: 3; animation-direction: alternate-reverse; }
.project-glyph-memory span:nth-child(5) { --n: 4; }

.project-glyph-memory::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    content: "";
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 45px 10px rgba(62, 223, 194, .38);
    transform: translate(-50%, -50%);
}

.project-glyph-aster {
    top: 38px;
    right: 12%;
    width: 180px;
    height: 180px;
}

.aster-core {
    position: absolute;
    inset: 45px;
    border: 1px solid rgba(62, 223, 194, .65);
    transform: rotate(45deg);
    animation: coreSpin 12s linear infinite;
}

.aster-core::before,
.aster-core::after {
    position: absolute;
    inset: 17px -17px;
    content: "";
    border: 1px solid rgba(118, 93, 255, .55);
}

.aster-core::after {
    inset: -17px 17px;
}

.aster-orbit {
    position: absolute;
    inset: 15px;
    border: 1px dashed rgba(255, 255, 255, .13);
    border-radius: 50%;
    animation: coreSpin 24s linear infinite reverse;
}

.project-glyph-note {
    top: 80px;
    right: 10%;
    width: 210px;
    padding: 24px;
    color: #8e98b3;
    background: rgba(8, 13, 29, .7);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 18px 18px 0 rgba(118, 93, 255, .07);
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    transform: rotate(-4deg);
}

.project-glyph-note span {
    display: block;
    margin-bottom: 20px;
    color: var(--cyan);
}

.project-glyph-note i {
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 12px;
    background: rgba(255, 255, 255, .12);
}

.project-glyph-note i:nth-child(3) { width: 78%; }
.project-glyph-note i:nth-child(4) { width: 53%; }

.about-section {
    display: grid;
    grid-template-columns: .55fr 1.45fr;
    gap: clamp(50px, 9vw, 150px);
    align-items: center;
}

.about-mark {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: var(--paper);
    background: var(--violet-deep);
    border-radius: 50% 50% 6% 50%;
    box-shadow: 28px 28px 0 var(--cyan);
    font-family: "Songti SC", "STSong", serif;
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 700;
    line-height: .95;
    text-align: center;
    transform: rotate(-3deg);
}

.about-mark::after {
    position: absolute;
    inset: 22px;
    content: "";
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: inherit;
}

.about-copy blockquote {
    max-width: 900px;
    margin: 0;
    font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
    font-size: clamp(34px, 4vw, 62px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.045em;
}

.about-bottom {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 50px;
    align-items: end;
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.about-bottom p {
    max-width: 590px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.9;
}

.back-to-top {
    position: fixed;
    right: clamp(18px, 3vw, 44px);
    bottom: clamp(18px, 3vw, 38px);
    z-index: 60;
    display: grid;
    width: 52px;
    height: 52px;
    padding: 0;
    place-items: center;
    color: #edf0ff;
    background: rgba(8, 12, 25, .92);
    border: 1px solid rgba(118, 93, 255, .42);
    border-radius: 50% 50% 12% 50%;
    box-shadow: 0 16px 38px rgba(24, 29, 56, .22);
    cursor: pointer;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(.92);
    visibility: hidden;
    transition: opacity .25s ease, transform .3s var(--ease), visibility .25s ease, background-color .2s ease, border-color .2s ease;
}

.back-to-top::before {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(62, 223, 194, .18);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.back-to-top > span {
    position: relative;
    display: grid;
    gap: 1px;
    place-items: center;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--cyan);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.back-to-top small {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 6px;
    font-weight: 800;
    letter-spacing: .16em;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
}

.back-to-top:hover {
    background: #11172b;
    border-color: rgba(62, 223, 194, .56);
    transform: translateY(-3px);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 32px;
    align-items: center;
    padding: 42px max(4vw, calc((100vw - 1440px) / 2));
    color: #929bb4;
    background: #080c19;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px;
}

.footer-brand .brand-mark span {
    background: #dce2f3;
}

.footer-brand .brand-mark span:nth-child(2) { background: var(--violet); }
.footer-brand .brand-mark span:nth-child(3) { background: var(--cyan); }
.footer-brand .brand-type { color: #dce2f3; }

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
    color: #d5daea;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
}

.footer-links a {
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--cyan);
}

.copyright {
    grid-column: 3;
    color: #555f79;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 8px;
    letter-spacing: .1em;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes signalPulse {
    0%, 100% { opacity: .65; transform: scale(.82); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes fieldScan {
    0%, 15% { left: -45%; }
    60%, 100% { left: 125%; }
}

@keyframes coreSpin {
    to { transform: rotate(360deg); }
}

@keyframes railMove {
    to { transform: translateX(-50%); }
}

@keyframes memoryMorph {
    0% { border-radius: 48% 52% 45% 55% / 58% 43% 57% 42%; transform: rotate(0deg) scale(1); }
    100% { border-radius: 62% 38% 59% 41% / 38% 61% 39% 62%; transform: rotate(18deg) scale(.96); }
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr);
        gap: 42px;
    }

    .hero-title {
        font-size: clamp(48px, 6vw, 70px);
    }

    .hero-metrics {
        grid-template-columns: repeat(2, auto);
    }

    .hero-metrics div:last-child {
        display: none;
    }

    .hero-visual {
        min-height: 570px;
    }

    .signal-stage {
        height: 465px;
    }

    .project-card-wide {
        min-height: 756px;
    }

    .project-card {
        min-height: 370px;
    }
}

@media (max-width: 900px) {
    :root { --container: min(90vw, 720px); }

    .site-nav {
        gap: 26px;
    }

    .header-signal span:last-child {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 150px;
    }

    .hero-copy {
        padding-bottom: 20px;
    }

    .hero-visual {
        min-height: 610px;
    }

    .signal-stage { height: 505px; }

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

    .section-heading > p {
        max-width: 570px;
    }

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

    .story-list {
        margin-top: 12px;
    }

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

    .project-card-wide {
        grid-row: auto;
        min-height: 650px;
    }

    .project-card {
        min-height: 420px;
    }

    .about-section {
        grid-template-columns: 230px 1fr;
        gap: 60px;
    }

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

    .site-footer p {
        grid-column: 1;
        grid-row: 2;
    }

    .footer-links {
        grid-column: 2;
        grid-row: 1;
    }

    .copyright {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }
}

@media (max-width: 640px) {
    :root { --container: calc(100vw - 32px); }

    .site-header {
        height: 72px;
    }

    .site-header.is-scrolled {
        width: calc(100vw - 20px);
        padding: 0 14px;
    }

    .site-nav {
        justify-self: end;
        gap: 18px;
        font-size: 12px;
    }

    .site-nav a:last-child,
    .header-signal {
        display: none;
    }

    .hero {
        gap: 42px;
        padding: 116px 0 48px;
    }

    .eyebrow {
        gap: 9px;
        margin-bottom: 22px;
        font-size: 8px;
    }

    .eyebrow-line { width: 22px; }

    .hero-title {
        font-size: clamp(38px, 12vw, 56px);
        line-height: 1.13;
        letter-spacing: -.07em;
    }

    .hero-lead {
        margin-top: 26px;
        font-size: 15px;
        line-height: 1.78;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin-top: 29px;
    }

    .primary-link {
        width: 100%;
    }

    .hero-metrics {
        gap: 22px;
        margin-top: 43px;
    }

    .hero-metrics dd { font-size: 10px; }

    .hero-visual {
        min-height: 500px;
        border-radius: 2px 2px 28px 2px;
    }

    .signal-stage { height: 396px; }

    .field-note-b { right: 5%; }
    .field-note-c { right: 5%; bottom: 10%; }
    .coordinate-y { display: none; }

    .visual-footer span:first-child { display: none; }

    .section {
        padding: 88px 0;
    }

    .section-heading {
        margin-bottom: 42px;
    }

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

    .story-visual {
        height: 390px;
    }

    .reasoning-map {
        left: 54%;
        width: 220px;
        height: 220px;
    }

    .story-content h3 {
        font-size: 30px;
    }

    .story-row {
        min-height: 170px;
    }

    .project-card-wide {
        min-height: 560px;
    }

    .project-card {
        min-height: 390px;
    }

    .project-glyph-memory {
        top: 17%;
        width: 78%;
    }

    .project-copy {
        padding-right: 36px;
    }

    .project-glyph-aster,
    .project-glyph-note {
        right: 6%;
        transform: scale(.84);
        transform-origin: top right;
    }

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

    .about-mark {
        width: 180px;
        box-shadow: 17px 17px 0 var(--cyan);
    }

    .about-bottom {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .site-footer p,
    .footer-links,
    .copyright {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}

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

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
