/* V4 · 文字空间与作品阅读，统一既有样式的层叠。 */
:root { --gutter: clamp(22px,5vw,80px); --maxw: 1280px; }
body { background: #090e13; }
.hero { height: 245vh; }
.hero-inner { gap: 48px; }
.hero h1 { font-size: clamp(66px,12.6vw,190px); letter-spacing: -.055em; }
.hero-intro { max-width: 490px; font-size: 15px; }
.avatar { width: clamp(140px,14vw,205px); }
.hero-beat { top: 16vh; }
.beat-l1,.beat-l2 { font-size: clamp(40px,6.8vw,102px); }
.marquee { padding: 28px 0; }
.marq-row span { font-size: clamp(42px,5.8vw,86px); -webkit-text-stroke-color: rgba(237,232,222,.19); }
.marq-row + .marq-row { display: none; }
.site-header { background: rgba(9,14,19,.85); }
.proj-city-layout { grid-template-columns: minmax(310px,30%) minmax(0,1fr); min-height: 0; }
.proj-index-panel { padding: 68px 38px 36px var(--gutter); overflow: visible; max-height: none; background: #0b1015; }
.proj-city-header { margin-bottom: 40px; }
.proj-city-header .sec-no { font-size: 10px; letter-spacing: .13em; margin-bottom: 22px; }
.proj-city-header h2 { font-size: clamp(32px,3.2vw,48px); line-height: 1.27; letter-spacing: -.045em; }
.proj-city-header h2 em { color: var(--gold); font-weight: 400; font-style: normal; }
.proj-city-lead { font-size: 13px; max-width: 25ch; margin-top: 26px; line-height: 1.8; }
.proj-city-note { font-size: 11px; color: var(--steel); margin-top: 12px; }
.proj-index-list { margin-top: 0; border-top: 1px solid var(--ink-line); gap: 0; }
.proj-index-item { padding: 20px 0 22px 14px; border: 0; border-bottom: 1px solid var(--ink-line); border-radius: 0; }
.proj-index-item.is-active { background: linear-gradient(90deg,rgba(223,166,106,.085),transparent); border-color: var(--ink-line); }
.proj-index-item:hover,.proj-index-item:focus-within { border-color: var(--ink-line); background-color: rgba(237,232,222,.025); }
.proj-index-item::before { top: 0; transform: none; width: 2px; }
.proj-index-item.is-active::before { height: 100%; }
.proj-index-select { width: 100%; display: flex; gap: 15px; text-align: left; align-items: start; min-height: 48px; padding-right: 16px; }
.proj-index-no { width: 18px; padding-top: 5px; margin: 0; flex: none; }
.proj-index-heading { display: grid; gap: 7px; flex: 1; }
.proj-index-title { display: block; font-size: 21px; font-weight: 400; margin: 0; }
.proj-index-title .badge { font-size: 9px; margin-left: 8px; }
.proj-index-cue { color: var(--steel); font-size: 17px; transition: color .2s,transform .2s; }
.proj-index-item.is-active .proj-index-cue { color: var(--gold); transform: translate(2px,-2px); }
.proj-index-summary { max-height: none; opacity: 1; padding-left: 33px; margin-top: 10px; font-size: 12px; line-height: 1.7; color: #8d9ba6; }
.proj-index-item.is-active .proj-index-summary,.proj-index-item:hover .proj-index-summary { max-height: none; }
.proj-index-cta { opacity: 1; transform: none; margin: 14px 0 0 33px; min-height: 30px; font-size: 12px; color: var(--text-light-2); }
.proj-index-cta:hover,.proj-index-cta:focus-visible,.is-active .proj-index-cta { color: var(--gold); }
.proj-index-foot { display: flex; align-items: start; gap: 12px; margin-top: 36px; color: var(--steel); font-size: 10px; line-height: 1.9; letter-spacing: .08em; }
.proj-index-foot .lmark { transform: scale(.65); transform-origin: top left; margin-top: 3px; }
.city-column { min-width: 0; display: flex; flex-direction: column; background: #090d12; }
.proj-city-stage { display: block; height: clamp(540px,57vw,750px); min-height: 0; isolation: isolate; }
.city-canvas-wrap { width: 100%; height: 100%; min-height: 0; }
#cityCanvas { touch-action: pan-y; cursor: default; }
.proj-city-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg,rgba(9,13,18,.3),transparent 18%,transparent 82%,rgba(9,13,18,.8)),linear-gradient(90deg,rgba(9,13,18,.12),transparent 12%,transparent 88%,rgba(9,13,18,.16)); }
.city-stage-heading { position: absolute; top: 29px; left: 30px; right: 30px; z-index: 3; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; color: #728593; pointer-events: none; }
.city-stage-heading span:first-child::before { content: ''; width: 5px; height: 5px; background: var(--gold); display: inline-block; margin-right: 9px; border-radius: 50%; }
.city-stage-foot { position: absolute; left: 30px; right: 30px; bottom: 20px; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: 10px; color: #70828f; }
.city-controls { position: static; transform: none; left: auto; bottom: auto; border: 0; border-radius: 0; padding: 0; gap: 8px; background: none; backdrop-filter: none; opacity: 1; font-size: 10px; letter-spacing: .04em; }
.city-status { color: var(--gold); font-size: 10px; padding: 0 9px 0 0; min-width: 52px; }
.city-control-btn { padding: 0 12px; min-height: 32px; border-radius: 2px; font-size: 10px; background: rgba(9,13,18,.5); }
.city-control-btn:disabled { cursor: default; opacity: .35; }
.city-pins { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.city-pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 4px 8px; color: #9daeba; background: rgba(9,13,18,.7); font: 10px var(--font-mono); border: 1px solid rgba(168,184,212,.2); border-radius: 2px; transition: color .18s,border-color .18s,background .18s; }
.city-pin[hidden] { display: none; }
.city-pin::before { content: ''; display: block; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.city-pin.is-active { color: #e7b780; border-color: rgba(223,166,106,.55); background: rgba(29,24,19,.86); }
.city-pin:hover { color: var(--gold); }
.city-info-panel { position: static; max-width: none; width: 100%; display: block; padding: 25px 30px 27px; min-height: 190px; border: 0; border-top: 1px solid rgba(237,232,222,.11); opacity: 1; transform: none; pointer-events: auto; background: #0d1319; backdrop-filter: none; border-radius: 0; }
.city-info-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 17px; }
.city-info-kicker { font: 9px var(--font-mono); letter-spacing: .16em; color: var(--steel); margin-bottom: 7px; }
.city-info-title { font-size: 24px; margin: 0; font-weight: 400; }
.city-info-open { display: inline-flex; gap: 20px; align-items: center; min-height: 40px; color: var(--gold); font-size: 12px; white-space: nowrap; }
.city-info-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; margin-bottom: 18px; }
.city-info-facts dt { font-size: 10px; color: var(--steel); margin-bottom: 5px; }
.city-info-facts dd { font-size: 12px; line-height: 1.65; color: #a7b2ba; }
.city-info-stack { display: flex; flex-wrap: wrap; gap: 7px; }
.city-info-stack span { font: 10px var(--font-mono); color: #97a8b6; padding: 3px 8px; border: 1px solid rgba(168,184,212,.15); border-radius: 2px; }
.city-fallback { min-height: 0; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 62%,#19232c,#090d12 68%); }
.city-fallback-icon { width: 100px; height: 100px; color: var(--gold); opacity: .5; }
.city-fallback-title { font-weight: 400; }
#experience { padding-top: clamp(80px,10vw,140px); padding-bottom: 110px; }
#experience .sec-head { margin-bottom: 56px; }
.tl { border-top: 0; padding: 0; }
.tl::after { background: var(--gold-deep); transform: scaleY(var(--tlp,0)); }
.tl-head { padding: 30px 0; }
.tl-title { font-size: clamp(22px,2.3vw,30px); }
.tl-org { font-size: 13px; margin-top: 7px; }
.tl-period { font-size: 11px; letter-spacing: .09em; }
.skills-section { background: #10171e; }
.skill-groups { gap: 24px; }
.skill-group { background: rgba(11,16,21,.32); padding: 26px; }
.chip { border-radius: 3px; padding: 0 13px; font-size: 13px; min-height: 38px; }
.chip::before { border-radius: 3px; }
.terrain-canvas { opacity: .4; }
.skill-result { backdrop-filter: none; background: rgba(9,14,19,.78); }
.detail-in { max-width: 1200px; }
.detail h1 { font-size: clamp(36px,5.4vw,78px); }
.arch-layers.is-spread { transform: rotateX(31deg) rotateZ(-10deg) scale(.94); margin: 45px 0 55px; gap: 35px; }
.arch-stage { padding: 40px; }
.arch-link-svg { z-index: 2; }
.arch-note { position: relative; z-index: 3; background: #0b1015; }
.detail-shot { background: linear-gradient(145deg,#e6e0d2,#eee9dd); }
.closing { min-height: 680px; padding-top: 120px; padding-bottom: 100px; }
.closing .big-l { width: 40px; height: 54px; margin-bottom: 30px; }
.closing h2 { max-width: none; font-size: clamp(36px,4.3vw,62px); line-height: 1.25; }
.closing-kicker { font-size: 9px; color: var(--steel); letter-spacing: .24em; margin-bottom: 34px; }
.closing-link { display: inline-flex; align-items: center; gap: 35px; margin-top: 34px; padding: 8px 0; border-bottom: 1px solid rgba(223,166,106,.5); font-size: 13px; color: var(--gold); }
.closing::after { background: linear-gradient(90deg,rgba(9,14,19,.9),rgba(9,14,19,.56) 42%,transparent 75%); }
.site-foot { font-size: 10px; }
.footer-note { color: var(--steel); }
@media (max-width:1100px) {
  .proj-city-layout { grid-template-columns: minmax(285px,32%) minmax(0,1fr); }
  .proj-index-panel { padding: 55px 25px 30px 30px; border-right: 1px solid var(--ink-line); border-bottom: 0; }
  .proj-city-stage { height: 630px; }
  .proj-city-header h2 { font-size: 34px; }
  .city-stage-heading span:last-child { display: none; }
  .city-stage-foot > span { display: none; }
  .city-stage-foot { justify-content: end; }
}
@media (max-width:820px) {
  .hero { height: 215vh; }
  .hero h1 { font-size: clamp(68px,19vw,108px); }
  .avatar { position: absolute; right: 0; top: 0; width: 82px; }
  .hero-inner { gap: 24px; }
  .hero-inner > div { padding-top: 42px; }
  .hero .eyebrow { max-width: calc(100% - 96px); font-size: 9px; letter-spacing: .12em; margin-bottom: 48px; }
  .avatar-cap { font-size: 8px; }
  .hero-intro { font-size: 14px; line-height: 1.8; }
  .hero-cta { gap: 10px; margin-top: 24px; }
  .btn { min-height: 44px; font-size: 13px; padding: 0 18px; }
  .hero-beat { top: 20vh; }
  .beat-k { font-size: 9px; letter-spacing: .14em; }
  .proj-city-layout { display: flex; flex-direction: column; }
  .proj-index-panel { display: contents; }
  .proj-city-header { order: 0; margin: 0; padding: 48px 24px 27px; }
  .proj-city-header h2 { font-size: 38px; }
  .proj-city-header h2 br { display: none; }
  .proj-city-header h2 em { display: block; }
  .proj-city-header .sec-no { margin-bottom: 17px; }
  .proj-city-lead { max-width: none; margin-top: 20px; }
  .proj-city-note,.proj-index-foot { display: none; }
  .city-column { display: contents; }
  .proj-city-stage { order: 1; width: 100%; height: 370px; min-height: 0; }
  .city-stage-heading { top: 14px; left: 24px; right: 24px; font-size: 8px; }
  .city-stage-foot { bottom: 13px; left: 24px; right: 24px; }
  .city-control-btn { min-height: 34px; }
  .proj-index-list { order: 2; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); background: #0b1117; }
  .proj-index-item { padding: 17px 12px; border-bottom: 0; border-right: 1px solid var(--ink-line); }
  .proj-index-item:last-child { border-right: 0; }
  .proj-index-select { gap: 7px; padding: 0; min-height: 50px; flex-direction: column; }
  .proj-index-no { padding: 0; font-size: 9px; }
  .proj-index-title { font-size: 15px; }
  .proj-index-title .badge { display: none; }
  .proj-index-type { font-size: 9px; line-height: 1.5; }
  .proj-index-cue,.proj-index-summary { display: none; }
  .proj-index-cta { margin: 9px 0 0; font-size: 10px; min-height: 32px; }
  .city-info-panel { order: 3; padding: 23px 24px 28px; min-height: 0; border-top: 0; }
  .city-info-title { font-size: 23px; }
  .city-info-facts { gap: 20px; }
  #experience { padding: 70px 24px; }
  .sec-title h2,.skills-header h2 { font-size: 40px; }
  .tl-head { padding: 25px 0; }
  .skill-groups { gap: 16px; }
  .skill-group { padding: 22px; }
  .skills-header { margin-bottom: 36px; }
  .skills-section { padding: 70px 24px; }
  .skill-result { padding: 20px; margin-top: 25px; }
  .arch-stage { padding: 24px 18px; }
  .arch-layers.is-spread { transform: rotateX(20deg) rotateZ(-5deg) scale(.96); margin: 20px 0 30px; gap: 25px; }
  .arch-layer { padding: 16px 12px; }
  .anode { padding: 0 12px; font-size: 12px; }
  .closing { min-height: 560px; padding: 70px 24px; align-items: start; }
  .closing h2 { font-size: 34px; }
  .closing .sec-lead { font-size: 13px; }
  .closing-kicker { margin-bottom: 25px; }
  .footer-note { display: none; }
}
@media (max-width:360px) {
  .closing h2 { font-size: 29px; }
  .proj-city-header h2 { font-size: 32px; }
  .proj-city-stage { height: 330px; }
  .proj-index-item { padding: 16px 9px; }
  .proj-index-title { font-size: 13px; }
  .city-info-facts { grid-template-columns: 1fr; gap: 12px; }
  .city-info-open { gap: 7px; font-size: 11px; }
}
.reduce-motion *,.reduce-motion *::before,.reduce-motion *::after { animation: none !important; transition: none !important; }
.reduce-motion .hero { height: auto; }
.reduce-motion .hero-inner,.reduce-motion .hero-foot { opacity: 1; transform: none; }
.reduce-motion .hero-beat,.reduce-motion .spot { display: none; }
.reduce-motion .avatar { transform: none; }
.reduce-motion .reveal { opacity: 1; transform: none; }
.reduce-motion .type-cursor { display: none; }
.reduce-motion .big-l path { stroke-dashoffset: 0; }
