/* =================================================================
   É — digital zine
   Editorial. Black / paper / grey. One restrained accent.
   ================================================================= */

:root {
  --paper:   #ece8e1;   /* warm off-white stock */
  --paper-2: #e3ddd3;
  --ink:     #14110d;   /* near-black, warm */
  --ink-2:   #3a352d;
  --grey:    #8c857a;
  --hair:    rgba(20,17,13,0.16);
  --accent:  #c8431f;   /* the one accent — vermillion, used sparingly */
  --glow:    #ff5a2b;

  --serif: "Fraunces", "Songti SC", "STSong", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  /* Latin → Fraunces, Chinese → calligraphic 楷体/行楷 (per-glyph fallback) */
  --serif-art: "Fraunces", "STXingkai", "华文行楷", "STKaiti", "华文楷体", "KaiTi", "楷体", "Songti SC", Georgia, serif;
  --mono:  "Space Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(20px, 5vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; height: 100vh; }

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- grain / print texture ---------- */
.grain {
  position: fixed; inset: -50%;
  z-index: 9000; pointer-events: none;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain 6s steps(5) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 4%); }
  80% { transform: translate(4%, 2%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9500;
  background: var(--paper);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: opacity .9s var(--ease), visibility .9s;
}
#preloader.done { opacity: 0; visibility: hidden; }
.preloader__mark {
  font-family: var(--serif); font-size: clamp(64px, 16vw, 200px);
  font-weight: 300; line-height: 1; letter-spacing: -0.02em;
}
.preloader__bar {
  width: min(46vw, 320px); height: 1px; background: var(--hair); overflow: hidden;
}
.preloader__bar span { display: block; height: 100%; width: 0%; background: var(--ink); }
.preloader__count { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--grey); }

/* ---------- fixed chrome ---------- */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2vw, 26px) var(--gut);
  mix-blend-mode: difference; color: #fff;
}
.chrome__mark {
  font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -.02em;
  display: flex; gap: 2px; align-items: baseline;
}
.chrome__mark span { font-size: 14px; opacity: .6; }
.chrome__nav { display: flex; gap: clamp(14px, 2.4vw, 40px); }
.chrome__nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  position: relative; padding-bottom: 4px;
}
.chrome__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .5s var(--ease);
}
.chrome__nav a:hover::after, .chrome__nav a.active::after { width: 100%; }
@media (max-width: 720px) { .chrome__nav { display: none; } }

.chrome__right { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }

/* language toggle */
.lang {
  background: none; border: none; color: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
}
.lang__opt { opacity: .4; transition: opacity .3s var(--ease); }
.lang__opt.active { opacity: 1; }
.lang__sep { opacity: .3; }

/* sound — a small installation, not a player */
.sound {
  background: none; border: none; color: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.sound__viz { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__viz i {
  width: 2px; height: 3px; background: currentColor; display: block;
  transition: height .25s var(--ease);
}
.sound.playing .sound__viz i { animation: eq .9s ease-in-out infinite; }
.sound__viz i:nth-child(2){ animation-delay:.15s } .sound__viz i:nth-child(3){ animation-delay:.3s }
.sound__viz i:nth-child(4){ animation-delay:.1s } .sound__viz i:nth-child(5){ animation-delay:.25s }
@keyframes eq { 0%,100%{ height:3px } 50%{ height:14px } }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 850; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- shared editorial bits ---------- */
.folio {
  position: absolute; top: clamp(80px, 12vh, 140px); left: var(--gut);
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--grey);
}
.folio span:first-child { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

.section-title {
  font-family: var(--serif-art); font-weight: 300;
  font-size: clamp(48px, 11vw, 168px); line-height: .96; letter-spacing: -.03em;
}

section { position: relative; padding: clamp(90px, 16vh, 200px) var(--gut); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); }
.revealed [data-reveal], [data-reveal].revealed { opacity: 1; transform: none; }

/* ═══════════ COVER ═══════════ */
.cover {
  height: 100svh; min-height: 640px;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(80px,11vh,120px) var(--gut) clamp(28px,5vh,52px);
  overflow: hidden;
}
.cover__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cover > *:not(.cover__field) { position: relative; z-index: 1; }

.cover__masthead {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hair); padding-bottom: 14px;
}
.cover__center { display: flex; flex-direction: column; justify-content: center; }
.cover__kicker {
  font-family: var(--serif-art); font-style: italic; font-size: clamp(16px,2.4vw,28px);
  color: var(--ink-2); margin-bottom: clamp(6px,1.4vh,18px);
}
.cover__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(64px, 18vw, 248px); line-height: .96; letter-spacing: -.045em;
}
/* overflow-hidden masks the GSAP reveal; padding keeps descenders (g/y/p) visible */
.cover__title .line {
  display: block; overflow: hidden;
  padding-bottom: 0.16em; margin-bottom: -0.12em;
}
.cover__title .line:nth-child(2) { text-indent: clamp(20px, 8vw, 160px); }
.cover__cjk {
  font-family: var(--serif-art); font-size: clamp(24px,3.4vw,48px); letter-spacing: .35em;
  color: var(--ink-2); margin-top: clamp(10px,2vh,26px); padding-left: 4px;
}
.cover__statement {
  max-width: 56ch; margin-left: auto;
  font-family: var(--serif); font-size: clamp(15px,1.5vw,20px); line-height: 1.55;
  color: var(--ink-2);
}
.cover__foot {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-2);
}
.cover__scroll i { display: inline-block; margin-left: 6px; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(5px) } }

/* ═══════════ SELF ═══════════ */
.self__lead {
  max-width: 22ch; margin: clamp(20px,6vh,80px) 0 clamp(40px,10vh,120px);
  font-family: var(--serif-art); font-weight: 300;
  font-size: clamp(30px,5.5vw,82px); line-height: 1.12; letter-spacing: -.02em;
}
.self__lead em { color: var(--accent); font-style: italic; }

/* torn-paper photo collage */
.self__collage {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(6px, 1.4vw, 22px);
  border-top: 1px solid var(--hair); padding-top: clamp(30px,6vh,70px);
}
.frag { flex: 0 0 auto; }
.frag__paper {
  position: relative; width: var(--w, 240px); margin: 0;
  transform: rotate(var(--rot, 0deg));
  transition: transform .6s var(--ease), filter .6s var(--ease);
  filter: drop-shadow(0 16px 30px rgba(20,17,13,.22));
}
.frag__paper img {
  width: 100%; height: auto; display: block;
  filter: grayscale(1) contrast(1.08) brightness(1.03) sepia(.08);
  transition: filter .6s var(--ease);
}
.frag__paper figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.frag:hover .frag__paper { transform: rotate(0deg) scale(1.04); z-index: 6; }
.frag:hover .frag__paper img { filter: grayscale(0) contrast(1) brightness(1); }

/* text woven into the collage as torn notes */
.frag--note .frag__paper {
  background: var(--paper); padding: clamp(20px,2vw,30px);
  display: flex; align-items: center;
}
.frag--note p {
  font-family: var(--serif-art); font-size: clamp(17px,1.5vw,23px); line-height: 1.45; color: var(--ink-2);
}
.frag--note em { color: var(--accent); font-style: italic; }

/* irregular torn edges */
.torn-1 { clip-path: polygon(2% 5%,17% 0,39% 6%,61% 1%,83% 7%,99% 3%,97% 23%,100% 46%,96% 69%,99% 89%,82% 97%,59% 99%,37% 95%,15% 100%,3% 91%,0 69%,4% 47%,1% 25%); }
.torn-2 { clip-path: polygon(0 8%,14% 2%,33% 7%,55% 0,74% 6%,92% 1%,100% 18%,97% 40%,100% 62%,95% 84%,98% 98%,78% 95%,57% 100%,35% 96%,14% 99%,2% 90%,5% 66%,0 43%,3% 22%); }
.torn-3 { clip-path: polygon(3% 2%,25% 6%,48% 0,70% 5%,90% 1%,98% 4%,100% 26%,96% 48%,99% 70%,94% 90%,99% 99%,80% 96%,58% 100%,36% 95%,14% 99%,1% 93%,4% 71%,0 49%,2% 27%,0 9%); }
.torn-4 { clip-path: polygon(1% 6%,20% 0,42% 5%,64% 0,86% 6%,100% 2%,98% 24%,100% 47%,95% 67%,99% 86%,84% 98%,61% 94%,40% 99%,18% 95%,2% 99%,4% 78%,0 56%,3% 33%); }

.self__tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(40px,8vh,90px);
}
.self__tags li {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--hair); border-radius: 100px; padding: 8px 16px; color: var(--ink-2);
  transition: all .4s var(--ease);
}
.self__tags li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ═══════════ ARCHIVE ═══════════ */
.archive__head {
  display: grid; grid-template-columns: 1fr; gap: clamp(20px,4vh,40px);
  margin-bottom: clamp(40px,8vh,90px);
}
@media (min-width: 860px) { .archive__head { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.archive__note { max-width: 42ch; font-family: var(--serif); font-size: clamp(16px,1.4vw,20px); color: var(--ink-2); }

.archive__list { list-style: none; border-top: 1px solid var(--ink); }
.work {
  border-bottom: 1px solid var(--hair); cursor: pointer;
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center;
  gap: clamp(12px,3vw,40px); padding: clamp(22px,4vh,46px) 0;
  position: relative; transition: padding .5s var(--ease);
}
.work::before {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: 0;
}
.work:hover { padding-left: clamp(14px,2vw,34px); padding-right: clamp(14px,2vw,34px); }
.work:hover::before { transform: scaleY(1); }
.work > * { position: relative; z-index: 1; transition: color .5s var(--ease); }
.work:hover, .work:hover * { color: var(--paper); }
.work__idx { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--grey); }
.work__title { font-family: var(--serif); font-weight: 300; font-size: clamp(26px,5vw,68px); line-height: 1; letter-spacing: -.02em; }
.work__open { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.work__open i { display: inline-block; transition: transform .5s var(--ease); }
.work:hover .work__open i { transform: translate(4px,-4px); }
.archive__empty {
  padding: clamp(30px,6vh,60px) 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(18px,2vw,26px); color: var(--grey);
}
.archive__empty code {
  font-family: var(--mono); font-style: normal; font-size: .8em; background: var(--paper-2);
  padding: 2px 8px; border-radius: 4px; color: var(--ink-2);
}

/* ═══════════ PERSONA ═══════════ */
.persona { background: var(--ink); color: var(--paper); }
.persona .folio { color: rgba(236,232,225,.5); }
.persona .folio span:first-child { color: var(--paper); border-color: var(--paper); }
.persona .section-title { color: var(--paper); }
.persona__head {
  display: grid; gap: clamp(20px,4vh,40px); margin-bottom: clamp(40px,8vh,80px);
}
@media (min-width: 860px) { .persona__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.persona__note { max-width: 44ch; font-family: var(--serif); font-size: clamp(16px,1.4vw,20px); color: rgba(236,232,225,.66); }

.persona__stage {
  display: grid; gap: clamp(28px,4vw,56px); align-items: stretch;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .persona__stage { grid-template-columns: 0.9fr 1.1fr; } }

.persona__object { position: relative; min-height: 380px; }
#avatar-canvas { width: 100%; height: 100%; display: block; min-height: 380px; cursor: grab; }
#avatar-canvas:active { cursor: grabbing; }
.persona__object-cap {
  position: absolute; left: 0; bottom: 0; display: flex; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(236,232,225,.5);
}

/* the persona interface */
.persona__terminal {
  border: 1px solid rgba(236,232,225,.18); background: rgba(236,232,225,.02);
  display: flex; flex-direction: column; min-height: 460px;
}
.terminal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid rgba(236,232,225,.14);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(236,232,225,.6);
}
#persona-status::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--glow); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 10px var(--glow); animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity: .4 } 50%{ opacity: 1 } }

.terminal__stream {
  flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 22px;
  max-height: 46vh; scrollbar-width: thin; scrollbar-color: rgba(236,232,225,.3) transparent;
}
.msg { display: flex; flex-direction: column; gap: 8px; max-width: 90%; }
.msg__who {
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(236,232,225,.4);
}
.msg__body {
  font-family: var(--serif); font-size: clamp(16px,1.4vw,20px); line-height: 1.5;
}
.msg--user { align-self: flex-end; align-items: flex-end; text-align: right; }
.msg--user .msg__who { color: var(--glow); }
.msg--user .msg__body { color: var(--paper); }
.msg--persona .msg__body { color: rgba(236,232,225,.92); }
.msg--persona .msg__body .word { opacity: 0; }
.msg__body.cursor::after {
  content: "▍"; color: var(--glow); margin-left: 2px; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal__compose {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  border-top: 1px solid rgba(236,232,225,.14);
}
.terminal__caret { font-family: var(--mono); color: var(--glow); font-size: 16px; }
.terminal__input {
  flex: 1; background: none; border: none; outline: none; color: var(--paper);
  font-family: var(--mono); font-size: 14px; letter-spacing: .02em;
}
.terminal__input::placeholder { color: rgba(236,232,225,.35); }
.terminal__send {
  background: none; border: none; cursor: pointer; color: rgba(236,232,225,.6);
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  transition: color .3s var(--ease);
}
.terminal__send:hover { color: var(--glow); }
.terminal__prompts {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px;
}
.terminal__prompts button {
  background: none; cursor: pointer; color: rgba(236,232,225,.55);
  border: 1px solid rgba(236,232,225,.16); border-radius: 100px; padding: 6px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  transition: all .35s var(--ease);
}
.terminal__prompts button:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }

/* ═══════════ LABS — 字场 ═══════════ */
.labs { background: var(--paper-2); }
.labs__head {
  display: grid; gap: clamp(20px,4vh,40px); margin-bottom: clamp(30px,5vh,56px);
}
@media (min-width: 860px) { .labs__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.labs__note { max-width: 44ch; font-family: var(--serif); font-size: clamp(16px,1.4vw,20px); color: var(--ink-2); }

.labs__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.labs__tab {
  background: none; border: 1px solid var(--hair); border-radius: 100px; padding: 8px 18px;
  cursor: pointer; color: var(--ink-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: all .35s var(--ease);
}
.labs__tab:hover { border-color: var(--ink); color: var(--ink); }
.labs__tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.labs__stage { position: relative; border-top: 1px solid var(--ink); }
#labs-canvas {
  width: 100%; height: clamp(360px, 58vh, 600px); display: block;
  cursor: crosshair; touch-action: none;
}
.labs__controls {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--hair);
}
.labs__input {
  flex: 1; min-width: 220px; background: none; border: none; outline: none;
  border-bottom: 1px solid var(--ink); padding: 8px 2px; color: var(--ink);
  font-family: var(--serif); font-size: clamp(18px,2vw,26px);
}
.labs__input::placeholder { color: var(--grey); }
.labs__btn {
  background: none; border: 1px solid var(--ink); cursor: pointer; color: var(--ink);
  border-radius: 100px; padding: 9px 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  transition: all .35s var(--ease);
}
.labs__btn:hover { background: var(--ink); color: var(--paper); }
.labs__hint {
  position: absolute; top: 14px; right: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey);
  pointer-events: none;
}

/* ═══════════ COLOPHON ═══════════ */
.colophon__big {
  font-family: var(--serif-art); font-weight: 300; font-style: italic;
  font-size: clamp(40px,9vw,140px); line-height: .9; letter-spacing: -.03em;
  margin-bottom: clamp(40px,8vh,80px);
}
.colophon__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: clamp(28px,4vw,64px); border-top: 1px solid var(--hair); padding-top: clamp(28px,5vh,48px);
}
.colophon__col p { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 12px 0 18px; }
.colophon__k { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--grey); }
.link-cv {
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  border-bottom: 1px solid var(--ink); padding-bottom: 3px; transition: all .35s var(--ease);
}
.link-cv:hover { color: var(--accent); border-color: var(--accent); }
.link-cv i { display: inline-block; transition: transform .4s var(--ease); }
.link-cv:hover i { transform: translate(3px,3px); }
.colophon__sign {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(50px,10vh,110px); padding-top: 20px; border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey);
}

/* ═══════════ READER OVERLAY ═══════════ */
.reader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.reader.open { opacity: 1; visibility: visible; }
.reader__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px var(--gut); color: var(--paper); border-bottom: 1px solid rgba(236,232,225,.14);
}
.reader__meta { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.reader__idx { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--glow); }
.reader__title {
  font-family: var(--serif); font-size: clamp(18px,2.4vw,32px); font-weight: 300;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reader__actions { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.reader__dl, .reader__close {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper); background: none; border: none; cursor: pointer; transition: color .3s var(--ease);
}
.reader__dl:hover, .reader__close:hover { color: var(--glow); }
.reader__frame { flex: 1; background: #2b2824; }
#reader-frame { width: 100%; height: 100%; border: none; }

/* ═══════════ 留言墙 / WALL ═══════════ */
.wall__head {
  display: grid; gap: clamp(20px,4vh,40px); margin-bottom: clamp(30px,5vh,56px);
}
@media (min-width: 860px) { .wall__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.wall__intro { max-width: 42ch; font-family: var(--serif); font-size: clamp(16px,1.4vw,20px); color: var(--ink-2); }

.wall__form {
  display: flex; flex-direction: column; gap: 12px; max-width: 640px;
  margin-bottom: clamp(34px,6vh,64px);
}
.wall__name, .wall__text {
  background: none; border: 1px solid var(--hair); color: var(--ink);
  padding: 12px 14px; outline: none; transition: border-color .3s var(--ease);
}
.wall__name { font-family: var(--mono); font-size: 13px; letter-spacing: .05em; }
.wall__text { font-family: var(--serif); font-size: 17px; line-height: 1.45; resize: vertical; min-height: 64px; }
.wall__name:focus, .wall__text:focus { border-color: var(--ink); }
.wall__name::placeholder, .wall__text::placeholder { color: var(--grey); }
.wall__post {
  align-self: flex-start; background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  border-radius: 100px; padding: 11px 26px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: all .35s var(--ease);
}
.wall__post:hover { background: none; color: var(--ink); }
.wall__status { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--accent); }

.wall__grid { columns: clamp(220px, 26vw, 300px); column-gap: 20px; }
.wall__note {
  break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 20px;
  position: relative; background: var(--paper); padding: 22px 22px 18px;
  border: 1px solid var(--hair); box-shadow: 0 14px 30px rgba(20,17,13,.12);
  transform: rotate(var(--rot, 0deg)); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.wall__note::before {
  content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 2px 5px rgba(20,17,13,.4);
}
.wall__note:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 22px 44px rgba(20,17,13,.2); z-index: 3; }
.wall__msg { font-family: var(--serif); font-size: clamp(16px,1.5vw,20px); line-height: 1.5; color: var(--ink); word-break: break-word; }
.wall__meta {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--grey);
}
.wall__del {
  position: absolute; top: 8px; right: 10px; background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 12px; color: var(--grey); opacity: 0;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.wall__note:hover .wall__del { opacity: 1; }
.wall__del:hover { color: var(--accent); }
.wall__empty { font-family: var(--serif); font-style: italic; font-size: clamp(18px,2vw,26px); color: var(--grey); }

.colophon__wx { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-2); margin-top: 12px; }
.colophon__wx span:first-child { color: var(--grey); margin-right: 8px; }

/* ═══════════ 点歌台 / JUKEBOX ═══════════ */
.jukebox-scrim {
  position: fixed; inset: 0; z-index: 950; background: rgba(20,17,13,.42);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
  backdrop-filter: blur(2px);
}
.jukebox-scrim.show { opacity: 1; visibility: visible; }

.jukebox {
  position: fixed; top: 0; right: 0; height: 100%; width: min(92vw, 410px); z-index: 980;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; border-left: 1px solid var(--hair);
  box-shadow: -36px 0 90px rgba(20,17,13,.28);
  transform: translateX(102%); transition: transform .65s var(--ease);
}
.jukebox.open { transform: none; }

.jukebox__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(20px,3vw,28px); border-bottom: 1px solid var(--hair);
}
.jukebox__title { font-family: var(--serif-art); font-size: clamp(22px,3vw,30px); letter-spacing: .12em; }
.jukebox__close {
  background: none; border: none; cursor: pointer; color: var(--ink);
  font-family: var(--mono); font-size: 16px; transition: transform .4s var(--ease);
}
.jukebox__close:hover { transform: rotate(90deg); color: var(--accent); }

.jukebox__now {
  display: flex; gap: 18px; align-items: center;
  padding: clamp(20px,3vw,26px); border-bottom: 1px solid var(--hair);
}
.jukebox__disc {
  width: 78px; height: 78px; flex-shrink: 0; border-radius: 50%; position: relative;
  background:
    repeating-radial-gradient(circle at 50% 50%, #1a1712 0 1px, #2a261f 1px 3px),
    radial-gradient(circle at 50% 50%, #14110d 0%, #2a261f 100%);
  box-shadow: 0 8px 20px rgba(20,17,13,.3);
}
.jukebox__disc span {
  position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--paper) inset;
}
.jukebox__disc.spinning { animation: spin 4.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.jukebox__meta { min-width: 0; flex: 1; }
.jukebox__np { display: block; font-family: var(--serif-art); font-size: clamp(18px,2vw,22px); line-height: 1.2; }
.jukebox__artist {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--grey); margin-top: 4px;
}
.jukebox__controls { display: flex; gap: 10px; margin-top: 14px; }
.jukebox__controls button {
  width: 34px; height: 34px; border: 1px solid var(--hair); border-radius: 50%;
  background: none; cursor: pointer; color: var(--ink); font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .35s var(--ease);
}
.jukebox__controls button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.jukebox__list { flex: 1; overflow-y: auto; list-style: none; padding: 6px 0; scrollbar-width: thin; }
.jukebox__track {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline;
  padding: 11px clamp(20px,3vw,26px); cursor: pointer; transition: background .3s var(--ease);
}
.jukebox__track:hover { background: var(--paper-2); }
.jukebox__track.current { background: var(--ink); color: var(--paper); }
.jukebox__num { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--grey); }
.jukebox__track.current .jukebox__num, .jukebox__track.current .jukebox__a { color: rgba(236,232,225,.7); }
.jukebox__t { font-family: var(--serif-art); font-size: clamp(16px,1.6vw,19px); }
.jukebox__a {
  grid-column: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  color: var(--grey); margin-top: 2px;
}
.jukebox__empty { padding: 30px clamp(20px,3vw,26px); font-family: var(--serif); font-style: italic; color: var(--grey); }
.jukebox__foot {
  padding: 16px clamp(20px,3vw,26px); border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey);
}

/* ═══════════ responsive ═══════════ */
@media (max-width: 720px) {
  .cover__statement { margin-left: 0; }
  .terminal__stream { max-height: 50vh; }
  .msg { max-width: 100%; }
}
