/* ==========================================================
   home-v3.css — 首页专属样式（依赖 site-v3.css 提供令牌 / 导航 / 页脚外壳）
   设计语言：取景框 / 时间轴 / 关键帧 —— 动画设计师的工作台
   ========================================================== */

html { scroll-behavior: smooth; }
body { font-size: 16px; line-height: 1.6; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(0.35) contrast(1.18) brightness(0.88);
    transform: scale(1.06);
    animation: heroZoom 2.4s var(--ease) forwards;
}
/* SVG is visible until the video actually plays; no unrelated project poster. */
.hero__motion { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media video { position: relative; opacity: 0; transition: opacity .6s ease; }
.hero__media.is-playing video { opacity: 1; }
.hero__motion-orbit { transform-origin: 1080px 510px; animation: heroOrbit 34s linear infinite; }
.hero__motion-path { stroke-dasharray: 900 650; animation: heroFlow 14s linear infinite; }
.hero__motion-keys { animation: heroKeyPulse 5s ease-in-out infinite; }
.hero__media.is-playing .hero__motion { visibility: hidden; }
.hero__media.is-playing .hero__motion * { animation-play-state: paused; }
@keyframes heroOrbit { to { transform: rotate(360deg); } }
@keyframes heroFlow { to { stroke-dashoffset: -1550; } }
@keyframes heroKeyPulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
    .hero__motion-orbit, .hero__motion-path, .hero__motion-keys { animation: none; }
}
@keyframes heroZoom { to { transform: scale(1); } }
/* 叠加层：点阵（LED / 半调网点）+ 扫描线 + 动态颗粒 + 暗角
   —— 让画面的低分辨率读起来像"屏幕质感"而不是糊 */
.hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__fx::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 50% 50%, transparent 0 0.9px, rgba(11, 11, 12, 0.62) 1.4px) 0 0 / 4px 4px,
        repeating-linear-gradient(180deg, rgba(11, 11, 12, 0.28) 0 1px, transparent 1px 3px);
}
.hero__fx::after {
    content: '';
    position: absolute; inset: -50%;
    width: 200%; height: 200%;
    opacity: 0.22;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: v3grain 0.9s steps(5) infinite;
}
.hero__fx i {
    position: absolute; inset: 0;
    background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(11, 11, 12, 0.75) 100%);
}
/* 扫描光带：缓慢自上而下，像监视器刷新 */
.hero__fx b {
    position: absolute; left: 0; right: 0; top: -20%;
    height: 18%;
    background: linear-gradient(180deg, transparent, rgba(236, 232, 225, 0.05) 50%, transparent);
    animation: fxSweep 7s linear infinite;
}
@keyframes fxSweep { to { transform: translateY(700%); } }

.hero__shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.05) 30%, rgba(11,11,12,0.15) 60%, rgba(11,11,12,0.92) 100%),
        radial-gradient(120% 80% at 20% 90%, rgba(11,11,12,0.7) 0%, transparent 60%);
}

/* 取景框 */
.hero__frame { position: absolute; inset: 84px var(--gutter) 128px; pointer-events: none; }
.hero__frame .c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--paper); opacity: 0.7; }
.hero__frame .c--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero__frame .c--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero__frame .c--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero__frame .c--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.hero__frame .cross {
    position: absolute; top: 50%; left: 50%;
    width: 18px; height: 18px;
    transform: translate(-50%, -50%);
    opacity: 0.45;
}
.hero__frame .cross::before, .hero__frame .cross::after {
    content: ''; position: absolute; background: var(--paper);
}
.hero__frame .cross::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.hero__frame .cross::after { top: 50%; left: 0; right: 0; height: 1px; }

.hero__hud {
    position: absolute;
    top: 100px;
    display: flex; gap: 18px; align-items: center;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--mute);
}
.hero__hud--tl { left: calc(var(--gutter) + 36px); }
.hero__hud--tr { right: calc(var(--gutter) + 36px); }
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }

.hero__content {
    position: absolute;
    left: calc(var(--gutter) + 36px);
    right: calc(var(--gutter) + 36px);
    top: 84px;
    bottom: 128px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.hero__kicker {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--paper);
    justify-content: center;
    margin-top: clamp(18px, 2.4vw, 30px);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 1.8s forwards;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 标题：SVG 描边 → 填充 + 弹跳小球（动画十二法则之一）+ 关键帧轨迹 */
.hero__title {
    --hfs: clamp(52px, 7.8vw, 136px);
    line-height: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hero__svg {
    display: block;
    margin: 0 auto;
    overflow: visible;
    width: calc(var(--vbw, 1100) * var(--hfs) / 200);
    max-width: 100%;
    height: auto;
}
.hs-t1 { font-family: var(--f-sans); font-weight: 700; font-size: 200px; letter-spacing: -0.045em; }
.hs-t2 { font-family: var(--f-sans); font-weight: 700; font-size: 200px; letter-spacing: -0.045em; }
.hs-t { fill: var(--paper); }
.hero__svg.is-ready .hs-t {
    fill: transparent;
    stroke: var(--paper);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
}
.hero__svg.is-play .hs-t { animation: hsDraw 1.7s var(--ease) forwards, hsFill 0.9s ease forwards; }
.hero__svg.is-play .hs-t1 { animation-delay: 0.15s, 1.3s; }
.hero__svg.is-play .hs-t2 { animation-delay: 0.4s, 1.55s; }
.hero__svg.is-static .hs-t { animation: none; fill: var(--paper); stroke-opacity: 0; stroke-dashoffset: 0; }
/* 第二行：写完描边后不填充，保留空心字 */
.hero__svg.is-play .hs-t2 { animation: hsDraw 1.7s var(--ease) 0.4s forwards; }
.hero__svg.is-ready .hs-t2 { stroke-width: 2; }
.hero__svg.is-static .hs-t2 { fill: transparent; stroke-opacity: 1; }
@keyframes hsDraw { to { stroke-dashoffset: 0; } }
@keyframes hsFill { to { fill: var(--paper); stroke-opacity: 0; } }

.hs-trail {
    fill: none;
    stroke: var(--signal);
    stroke-width: 1.5;
    stroke-dasharray: 2 7;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    opacity: 0.75;
    transition: opacity 1.2s ease;
}
.hero__svg.is-done .hs-trail { opacity: 0.4; }
.hs-ball { fill: var(--signal); }
.hs-key path {
    fill: var(--ink);
    stroke: var(--signal);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.7, 0.64, 1);
}
.hs-key text {
    font-family: var(--f-mono);
    font-size: 17px;
    letter-spacing: 0.08em;
    fill: var(--mute);
    text-anchor: middle;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}
.hs-key--end text { text-anchor: start; }
.hs-key.is-on path { transform: scale(1); }
.hs-key.is-on text { opacity: 1; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__badge {
    display: inline-flex;
    margin-top: 22px;
    padding: 6px 14px;
    border: 1px solid currentColor;
    border-radius: 99px;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.hero__badge[hidden] { display: none; }

.hero__foot {
    position: absolute;
    left: var(--gutter); right: var(--gutter); bottom: 0;
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 0.8fr auto;
    gap: 24px;
    padding: 22px 0 28px;
    border-top: 1px solid var(--line-2);
    font-size: 0.86rem;
    color: var(--paper);
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 1.2s forwards;
}
.hero__cell { display: flex; flex-direction: column; gap: 4px; }
.hero__scroll {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
    align-self: end;
}
.hero__scroll i { position: relative; width: 1px; height: 38px; background: var(--line-2); overflow: hidden; }
.hero__scroll i::after {
    content: ''; position: absolute; left: 0; top: -40%;
    width: 1px; height: 40%;
    background: var(--signal);
    animation: drip 1.8s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ==========================================================
   SECTION 通用
   ========================================================== */
.sec {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(96px, 12vw, 168px) var(--gutter) 0;
}
.sec__head {
    display: flex; align-items: baseline; gap: 22px;
    padding-bottom: 18px;
    margin-bottom: clamp(40px, 6vw, 72px);
    border-bottom: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.sec__no { color: var(--signal); }
.sec__name { color: var(--paper); }
.sec__name em { font-style: normal; color: var(--faint); margin-left: 8px; letter-spacing: 0.2em; }
.sec__aside { margin-left: auto; color: var(--faint); }
.sec__aside--link { color: var(--mute); transition: color 0.3s; }
.sec__aside--link:hover { color: var(--signal); }

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   01 PROFILE
   ========================================================== */
.profile__main {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px var(--gutter);
}
.profile__statement {
    grid-column: 1 / span 10;
    font-weight: 700;
    font-size: clamp(2.1rem, 5.4vw, 5rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
}
.profile__statement mark {
    background: none;
    color: var(--paper);
    position: relative;
    white-space: nowrap;
    background-image: linear-gradient(var(--signal), var(--signal));
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 0% 0.14em;
    transition: background-size 1.2s var(--ease) 0.4s;
}
.profile__statement.is-in mark { background-size: 100% 0.14em; }
.profile__statement mark + mark { transition-delay: 0.7s; }

.profile__body {
    grid-column: 5 / span 8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: clamp(16px, 3vw, 40px);
}
.profile__body p { color: var(--mute); font-size: 0.98rem; line-height: 1.9; }
.profile__body strong { color: var(--paper); font-weight: 500; }

.stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: clamp(64px, 9vw, 120px);
    border-top: 1px solid var(--line-2);
}
.stats__item {
    position: relative;
    padding: 22px 20px 0 0;
    display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px;
}
.stats__item::before {
    content: '';
    position: absolute; top: -5px; left: 0;
    width: 9px; height: 9px;
    background: var(--ink);
    border: 1px solid var(--signal);
    transform: rotate(45deg);
    transition: background 0.3s;
}
.stats__item:hover::before { background: var(--signal); }
.stats dd {
    font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.stats dd small { font-size: 0.5em; color: var(--signal); margin-left: 2px; font-weight: 400; }
.stats dd b { font-weight: inherit; }
.stats dt { font-size: 0.82rem; color: var(--mute); }
.stats dt span {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: 2px;
}

/* 工具带 */
.toolband {
    margin-top: clamp(88px, 11vw, 150px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 22px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.toolband__track {
    display: flex; align-items: center; gap: 36px;
    width: max-content;
    animation: band 48s linear infinite;
}
.toolband:hover .toolband__track { animation-play-state: paused; }
.toolband span {
    font-size: clamp(1.6rem, 3.4vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(236, 232, 225, 0.32);
    transition: color 0.3s, -webkit-text-stroke-color 0.3s;
}
.toolband span:hover { color: var(--paper); -webkit-text-stroke-color: var(--paper); }
.toolband i { font-style: normal; color: var(--signal); font-size: 0.8rem; }
@keyframes band { to { transform: translateX(-50%); } }

/* ==========================================================
   02 SELECTED WORK
   ========================================================== */
.meta {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.meta span:first-child { color: var(--signal); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-mono);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line-2);
    transition: gap 0.4s var(--ease), border-color 0.3s, color 0.3s;
}
.link-arrow span { color: var(--signal); }
.link-arrow:hover, .feature:hover .link-arrow { gap: 18px; border-color: var(--signal); }

/* --- 主推 --- */
.lead {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
    align-items: stretch;
    margin-bottom: clamp(96px, 12vw, 160px);
}
.lead__cover {
    grid-column: 1 / span 5;
    align-self: start;
    width: 100%;
    min-width: 0;
    position: sticky;
    top: 96px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--ink-2);
}
.lead__cover img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
    transition: transform 1.2s var(--ease);
}
.lead__cover:hover img { transform: scale(1.04); }
.lead__live {
    position: absolute; left: 16px; top: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    background: rgba(11, 11, 12, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--line-2);
    border-radius: 99px;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.lead__info {
    grid-column: 6 / span 7;
    display: flex; flex-direction: column;
    padding-top: 6px;
}
.lead__title {
    margin: 22px 0 22px;
    font-weight: 700;
    font-size: clamp(2.2rem, 4.6vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}
.lead__title a { transition: color 0.3s; }
.lead__title a:hover { color: var(--signal); }
.lead__desc { max-width: 560px; color: var(--mute); line-height: 1.9; font-size: 0.98rem; }

.lead__nums {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 34px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.lead__nums > div { padding: 16px 0 16px 16px; border-left: 1px solid var(--line); }
.lead__nums > div:first-child { border-left: 0; padding-left: 0; }
.lead__nums dt {
    font-family: var(--f-mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.lead__nums dd { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; margin-top: 4px; }

.lead__shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 34px;
    margin-top: auto;
}
.lead__shots img {
    width: 100%;
    aspect-ratio: 9 / 13;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--line);
    background: var(--ink-2);
    transition: transform 0.6s var(--ease), border-color 0.3s;
}
.lead__shots img:hover { transform: translateY(-6px); border-color: var(--line-2); }
.lead .link-arrow { align-self: flex-start; }

/* --- 精选行 --- */
.feature {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
    align-items: end;
    padding: clamp(40px, 5vw, 64px) 0;
    border-top: 1px solid var(--line);
}
.feature__media {
    grid-column: 1 / span 8;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9.4;
    background: var(--ink-2);
}
.feature__media img {
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(0.75) brightness(0.92);
    transform: scale(1.01);
    transition: transform 1.2s var(--ease), filter 0.6s ease;
}
.feature:hover .feature__media img { transform: scale(1.05); filter: none; }
.feature__media::after {
    content: '';
    position: absolute; inset: 14px;
    border: 1px solid rgba(236, 232, 225, 0);
    transition: border-color 0.5s, inset 0.5s var(--ease);
    pointer-events: none;
}
.feature:hover .feature__media::after { border-color: rgba(236, 232, 225, 0.5); inset: 18px; }

.feature__info {
    grid-column: 9 / span 4;
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 16px;
}
.feature--flip .feature__media { grid-column: 5 / span 8; order: 2; }
.feature--flip .feature__info { grid-column: 1 / span 4; order: 1; }

.feature__no {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--signal);
}
.tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    border: 1px solid var(--line-2);
    border-radius: 99px;
    font-size: 0.74rem;
    color: var(--paper);
}
.tag .dot { animation: none; width: 6px; height: 6px; }
.tag--alt .dot { background: var(--paper); }
.feature__title {
    font-weight: 700;
    font-size: clamp(1.9rem, 3.4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}
.feature:hover .feature__title { color: var(--signal); }
.feature__desc { color: var(--mute); font-size: 0.94rem; line-height: 1.85; }
.feature__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.feature__meta li {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
}
.feature__meta li + li::before { content: '/'; margin-right: 14px; color: var(--line-2); }

/* ==========================================================
   03 ARCHIVE
   ========================================================== */
.archive__bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 18px;
    margin-bottom: 36px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 8px 15px;
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: 0.82rem;
    color: var(--mute);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.filters button sup { font-family: var(--f-mono); font-size: 0.6rem; color: var(--faint); }
.filters button:hover { border-color: var(--line-2); color: var(--paper); }
.filters button.is-on { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.filters button.is-on sup { color: rgba(11, 11, 12, 0.5); }

.views { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.views button {
    padding: 6px 14px;
    border-radius: 99px;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    transition: color 0.3s, background 0.3s;
}
.views button.is-on { background: var(--ink-3); color: var(--paper); }

/* Grid */
.archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px;
}
.archive__grid[hidden], .archive__list[hidden] { display: none; }
.wcard { display: block; animation: cardIn 0.7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.wcard__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ink-2);
}
.wcard__media img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1) brightness(0.85);
    transition: filter 0.6s ease, transform 1s var(--ease);
}
.wcard:hover .wcard__media img { filter: none; transform: scale(1.05); }
.wcard__no {
    position: absolute; left: 12px; top: 12px;
    font-family: var(--f-mono);
    font-size: 0.66rem;
    padding: 3px 8px;
    background: rgba(11, 11, 12, 0.72);
    color: var(--paper);
    letter-spacing: 0.08em;
}
.wcard__go {
    position: absolute; right: 12px; bottom: 12px;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    background: var(--signal);
    color: var(--ink);
    border-radius: 50%;
    font-size: 1rem;
    transform: scale(0) rotate(-45deg);
    transition: transform 0.5s var(--ease);
}
.wcard:hover .wcard__go { transform: scale(1) rotate(0); }
.wcard__body { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.wcard__title { font-size: 1.12rem; font-weight: 500; line-height: 1.35; }
.wcard__en { display: block; font-size: 0.8rem; color: var(--faint); margin-top: 2px; font-weight: 400; }
.wcard__cat {
    text-align: right;
    flex-shrink: 0;
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    line-height: 1.8;
}
.wcard__cat > span { display: block; }

/* Index list */
.archive__list { list-style: none; border-top: 1px solid var(--line); }
.irow {
    display: grid;
    grid-template-columns: 64px 1.6fr 1fr 1fr 70px 30px;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: padding 0.5s var(--ease), color 0.3s;
}
.irow::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--paper);
    transform: scaleY(0); transform-origin: bottom;
    transition: transform 0.45s var(--ease);
    z-index: -1;
}
.irow:hover { padding-left: 18px; padding-right: 18px; color: var(--ink); }
.irow:hover::before { transform: scaleY(1); }
.irow__no, .irow__cat, .irow__year {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
    transition: color 0.3s;
}
.irow:hover .irow__no, .irow:hover .irow__cat, .irow:hover .irow__year, .irow:hover .irow__en { color: rgba(11, 11, 12, 0.6); }
.irow__title { font-size: clamp(1.3rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.irow__en { color: var(--faint); font-size: 0.88rem; transition: color 0.3s; }
.irow__thumb { display: none; }
.irow__go { color: var(--signal); font-size: 1.1rem; text-align: right; transition: transform 0.4s var(--ease); }
.irow:hover .irow__go { transform: translateX(4px) rotate(-45deg); }
.archive__list { position: relative; z-index: 0; isolation: isolate; }

.archive__preview {
    position: fixed; left: 0; top: 0;
    width: 320px; aspect-ratio: 4 / 3;
    pointer-events: none;
    z-index: 800;
    overflow: hidden;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.3s ease, transform 0.4s var(--ease);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.archive__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.archive__preview img { width: 100%; height: 100%; object-fit: cover; }
.archive__noscript { color: var(--mute); }

/* ==========================================================
   04 CONTACT
   ========================================================== */
.contact { padding-bottom: 0; }
.contact__title {
    font-weight: 700;
    font-size: clamp(2.6rem, 7vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: clamp(48px, 7vw, 96px);
}
.contact__title em {
    font-style: normal;
    color: var(--signal);
}
.contact__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
}
.contact__desc { grid-column: 1 / span 4; color: var(--mute); line-height: 1.9; font-size: 0.98rem; }
.contact__desc strong { color: var(--paper); font-weight: 500; }
.contact__links { grid-column: 6 / span 7; border-top: 1px solid var(--line); }
.contact__row {
    width: 100%;
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    transition: padding 0.45s var(--ease);
}
.contact__row .val { font-size: clamp(1.05rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; transition: color 0.3s; }
.contact__row .act {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--faint);
    transition: color 0.3s;
}
.contact__row:hover { padding-left: 12px; }
.contact__row:hover .val { color: var(--signal); }
.contact__row:hover .act { color: var(--paper); }

.foot {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-top: clamp(96px, 12vw, 160px);
    padding: 26px 0 90px;
    border-top: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--faint);
}
.foot a { transition: color 0.3s; }
.foot a:hover { color: var(--signal); }

/* ==========================================================
   时间轴 HUD
   ========================================================== */
.hud {
    position: fixed;
    left: 50%; bottom: 18px;
    z-index: 950;
    width: min(720px, calc(100% - 2 * var(--gutter)));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px 18px;
    background: rgba(19, 19, 21, 0.78);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: 99px;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--mute);
    transform: translate(-50%, 140%);
    transition: transform 0.7s var(--ease);
}
.hud.is-on { transform: translate(-50%, 0); }
.hud__scene b { color: var(--paper); font-weight: 500; }
.hud__scene em { font-style: normal; color: var(--paper); margin-left: 10px; text-transform: uppercase; }
.hud__ruler {
    position: relative;
    height: 16px;
    background:
        repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10%) 0 100% / 100% 9px no-repeat,
        repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2%) 0 100% / 100% 5px no-repeat;
    cursor: pointer;
}
.hud__ruler .kfm {
    position: absolute; top: 0;
    width: 6px; height: 6px;
    background: var(--faint);
    transform: translateX(-50%) rotate(45deg);
    transition: background 0.3s;
}
.hud__ruler .kfm.is-past { background: var(--signal); }
.hud__head {
    position: absolute; top: -4px; bottom: -2px;
    left: 0;
    width: 1px;
    background: var(--signal);
    pointer-events: none;
}
.hud__head::before {
    content: '';
    position: absolute; top: 0; left: -4px;
    border: 4.5px solid transparent;
    border-top: 6px solid var(--signal);
}
.hud__tc { color: var(--paper); font-variant-numeric: tabular-nums; }


/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
    .profile__statement { grid-column: 1 / -1; }
    .profile__body { grid-column: 1 / -1; }
    .lead__cover { grid-column: 1 / span 6; }
    .lead__info { grid-column: 7 / span 6; }
    .lead__shots { display: none; }
    .feature__media, .feature--flip .feature__media { grid-column: 1 / -1; order: 1; }
    .feature__info, .feature--flip .feature__info { grid-column: 1 / -1; order: 2; }
    .feature__info { max-width: 640px; }
    .archive__grid { grid-template-columns: repeat(2, 1fr); }
    .irow { grid-template-columns: 50px 1.6fr 1fr 60px 24px; }
    .irow__en { display: none; }
    .contact__desc { grid-column: 1 / -1; max-width: 560px; }
    .contact__links { grid-column: 1 / -1; }
}

@media (max-width: 760px) {

    .hero { min-height: 560px; }
    .hero__frame { inset: 72px 14px 150px; }
    .hero__hud { top: 84px; font-size: 0.64rem; gap: 12px; }
    .hero__hud--tl { left: 28px; }
    .hero__hud--tr { right: 28px; }
    .hero__hud--tr span:not(:last-child) { display: none; }
    .hero__content { left: 20px; right: 20px; top: 72px; bottom: 150px; }
    .hero__kicker { font-size: 0.66rem; letter-spacing: 0.12em; }
    .hero__title { --hfs: clamp(40px, 12.5vw, 72px); }
    .hero__svg.is-ready .hs-t2 { stroke-width: 3.6; }
    .hs-key text { display: none; }
    .hero__foot { grid-template-columns: 1fr 1fr; gap: 14px 18px; font-size: 0.8rem; padding-bottom: 22px; }
    .hero__cell:first-child { grid-column: 1 / -1; }
    .hero__scroll { display: none; }

    .sec__head { flex-wrap: wrap; gap: 8px 16px; }
    .sec__aside { margin-left: 0; width: 100%; }
    .profile__body { grid-template-columns: 1fr; gap: 18px; }
    .stats { grid-template-columns: repeat(2, 1fr); border-top: 0; }
    .stats__item { border-top: 1px solid var(--line-2); padding-bottom: 26px; }
    .stats__item:last-child { grid-column: 1 / -1; }

    .lead { gap: 28px; }
    .lead__cover, .lead__info { grid-column: 1 / -1; }
    .lead__cover { aspect-ratio: 4 / 4.4; position: relative; top: auto; }
    .lead__nums { grid-template-columns: repeat(2, 1fr); }
    .lead__nums > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .lead__nums > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .lead__shots { display: grid; }

    .feature { gap: 22px; }
    .archive__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
    .wcard__body { flex-direction: column; gap: 4px; padding-top: 10px; }
    .wcard__title { font-size: 0.94rem; }
    .wcard__en { font-size: 0.72rem; }
    .wcard__cat { text-align: left; font-size: 0.6rem; }
    .wcard__cat > span { display: inline; }
    .wcard__cat > span + span::before { content: ' · '; }
    .wcard__go { display: none; }
    .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
    .filters::-webkit-scrollbar { display: none; }
    .filters button { flex-shrink: 0; }
    .archive__bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    .filters { min-width: 0; }
    .views { align-self: flex-start; }
    .irow { grid-template-columns: 64px 1fr 22px; gap: 14px; padding: 14px 0; }
    .irow__cat, .irow__year, .irow__no { display: none; }
    .irow__thumb { display: block; width: 64px; aspect-ratio: 4/3; object-fit: cover; }
    .irow:hover { padding-left: 0; padding-right: 0; color: inherit; }
    .irow:hover::before { transform: scaleY(0); }

    .contact__row { grid-template-columns: 70px 1fr auto; }
    .hud { display: none; }
    .foot { padding-bottom: 36px; }
}

@media (hover: none) {
    .archive__preview { display: none; }
    .wcard__media img { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__fx::after, .hero__fx b { animation: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .hero__kicker, .hero__foot { transform: none; opacity: 1; }
    .reveal { opacity: 1; transform: none; }
}

/* 首屏副标题：手机上在「—」后整体换行，不拆散单词 */
#hero-subtitle { text-align: center; }
#hero-subtitle .nw { white-space: nowrap; }
