:root {
  color-scheme: dark;
  --background: #0e0b15;
  --paper: #f8f3ee;
  --muted: #b6adbf;
  --acid: #e9ff88;
  --line: #ffffff29;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--background);
  color: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }
.bar {
  position: sticky; z-index: 5; top: 0; display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 5vw; border-bottom: 1px solid var(--line); background: #0e0b15e8; backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .05em; font: 800 19px/1 var(--mono); letter-spacing: -.07em; }
.mark { color: var(--acid); font-size: 24px; margin-right: .4em; }
.dot, .index-link span { color: var(--acid); }
.edition, .eyebrow, .hero-foot, .orbit-caption, .controls, .card-meta { font: 11px/1.4 var(--mono); letter-spacing: .13em; }
.edition, .hero-foot, .orbit-caption { color: var(--muted); }
.edition span { margin: 0 8px; color: var(--acid); }
.index-link { padding: 9px 0; font-size: 14px; }
.index-link span { margin-left: 8px; }
.hero {
  isolation: isolate; position: relative; display: flex; align-items: center; min-height: calc(100svh - 70px); padding: 70px 8vw 86px; overflow: hidden;
  background: radial-gradient(ellipse at 72% 50%, #281638, transparent 57%), #100c19;
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #0e0b15e6, #0e0b1544 44%, transparent 67%), linear-gradient(0deg, #0e0b15 0%, transparent 22%);
}
.hero-copy { position: relative; }
.eyebrow { color: var(--acid); }
.pulse { display: inline-block; margin: 0 6px 1px 0; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 16px #e9ff8880; }
h1 { margin: .16em 0 .17em; font-size: clamp(88px, 12vw, 188px); line-height: .96; letter-spacing: -.1em; font-weight: 900; }
.comma { color: #f8f3ee35; font-size: .53em; vertical-align: .32em; margin-left: .13em; }
.period { color: var(--acid); font-size: .52em; margin-left: .15em; }
.intro { color: #ded4e4; max-width: 320px; line-height: 1.8; margin: 26px 0 29px; }
.enter { display: inline-flex; align-items: center; gap: 30px; background: var(--acid); color: #191b10; border-radius: 100px; padding: 13px 19px; font-weight: 700; font-size: 14px; }
.enter:hover { background: #f4ffbd; }
.enter span { font-size: 19px; }
.hero-foot { position: absolute; bottom: 26px; left: 5vw; right: 5vw; display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.orbit-caption { position: absolute; bottom: 16%; right: 8vw; }
.orbit-caption span { display: inline-block; width: 34px; margin: 0 9px 3px 0; border-top: 1px solid #c4a1dd; }
section[id] { scroll-margin-top: 86px; }
.gallery, .archive { padding: 76px 8vw; max-width: 1600px; margin: 0 auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.section-head h2 { font-size: clamp(36px, 5vw, 66px); letter-spacing: -.08em; line-height: 1.05; margin: 12px 0 0; }
.section-head > p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0; text-align: right; }
.section-head a:hover, footer a:hover { color: var(--acid); }
.stage {
  position: relative; isolation: isolate; min-height: clamp(360px, 52vw, 560px); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 40%, #352045, #130d20 66%, #0d0b12); cursor: grab; touch-action: pan-y;
}
.stage.dragging { cursor: grabbing; user-select: none; }
.stage-grid { position: absolute; inset: 48% -60% -50%; transform: perspective(350px) rotateX(46deg); transform-origin: top center; opacity: .45;
  background: repeating-linear-gradient(90deg, transparent 0 55px, #ad7df13b 56px 57px), repeating-linear-gradient(0deg, transparent 0 37px, #ad7df13b 38px 39px);
}
.cards { position: absolute; inset: 0; perspective: 1050px; }
.card {
  position: absolute; left: 50%; top: 49%; width: min(47%, 375px); min-width: 200px; border: 1px solid #ffffff45;
  background: #171020; color: var(--paper); text-align: left; padding: 0; box-shadow: 0 25px 65px #0009; cursor: pointer;
  transform: translate3d(calc(-50% + var(--x)), calc(-50% + var(--y)), var(--z)) rotateY(var(--angle));
  opacity: var(--opacity); transition: transform .6s cubic-bezier(.2,.75,.2,1), opacity .4s, border-color .2s;
}
.card:hover, .card.active { border-color: #e9ff8899; }
.dragging .card { cursor: grabbing; transition: none; }
.cover { width: 100%; aspect-ratio: 1.65; display: block; object-fit: cover; background: #27123a; pointer-events: none; }
.card-copy { padding: 12px 15px 16px; display: block; }
.card-meta { color: var(--acid); font-size: 10px; }
.card-title { display: block; margin-top: 6px; font-size: clamp(17px, 2.4vw, 25px); font-weight: 800; }
.card-arrow { float: right; color: var(--acid); }
.controls { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); }
.controls button, #close-reader { width: 44px; height: 44px; margin-left: 8px; border: 1px solid var(--line); color: var(--paper); background: #ffffff0a; border-radius: 50%; font-size: 19px; }
.controls button:hover, #close-reader:hover { color: var(--acid); border-color: var(--acid); }
.archive { padding-top: 25px; }
.index-row { width: 100%; display: grid; grid-template-columns: 60px minmax(0,1fr) 28px; gap: 10px; align-items: center; text-align: left; background: transparent; color: var(--paper); padding: 23px 10px; border: 0; border-top: 1px solid var(--line); }
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-row:hover { background: #ffffff09; }
.index-row strong { display: block; font-size: clamp(16px, 3vw, 23px); }
.index-row small { display: block; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.index-row > span:not(.index-copy) { color: var(--acid); font: 12px var(--mono); }
footer { display: flex; align-items: center; justify-content: space-between; padding: 29px 8vw; border-top: 1px solid var(--line); font-size: 13px; }
dialog { border: 1px solid #ddd0f04d; padding: 0; width: min(91vw, 750px); max-height: 90svh; color: var(--paper); background: #181222; }
dialog::backdrop { background: #08050dc9; backdrop-filter: blur(9px); }
.reader-inner { position: relative; padding: 36px clamp(20px, 6vw, 68px) 48px; }
#close-reader { position: absolute; right: 15px; top: 15px; }
#reader-content h2 { margin: 16px 0; font-size: clamp(26px, 6vw, 52px); line-height: 1.15; letter-spacing: -.04em; }
#reader-content p { line-height: 1.9; color: #d9d0e1; }
#reader-content .eyebrow { padding-right: 40px; color: var(--acid); }
#reader-content .cover { margin-top: 23px; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 680px) {
  .bar { height: 58px; }
  .edition, .orbit-caption { display: none; }
  .hero { align-items: end; min-height: calc(100svh - 58px); padding: 65px 7vw 80px; }
  .hero::after { background: linear-gradient(0deg, #0e0b15 0%, #0e0b1566 50%, transparent 80%); }
  h1 { font-size: clamp(76px, 20vw, 120px); }
  .intro { margin: 17px 0 22px; font-size: 14px; max-width: 260px; }
  .hero-foot { bottom: 17px; }
  .gallery, .archive { padding-inline: 5vw; }
  .section-head > p { font-size: 11px; }
  .stage { min-height: 345px; }
  .index-row { grid-template-columns: 35px minmax(0,1fr) 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
