﻿/* ==========================================================================
   Cassini Photography Exhibition Room
   Visual system referencing Shopify Editions — Fall '26
   --------------------------------------------------------------------------
   0. fonts
   1. reset / base
   2. tokens
   3. background stack + grain + chrome
   4. top bar
   5. left rail + wires
   6. chapter shell + display type
   7. hero
   8. index
   9. gallery
   10. epoch
   11. lightbox
   12. motion primitives
   13. responsive
   ========================================================================== */

/* 0 ─────────────────────────────────────────────────────────── fonts */
@font-face {
  font-family: "GT Standard L";
  src: url("../fonts/gt-standard-l-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "GT Standard M";
  src: url("../fonts/gt-standard-m-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* 1 ───────────────────────────────────────────────────── reset / base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #051daa;
}

body {
  margin: 0;
  min-height: 100%;
  color: #fff;
  font-family: "GT Standard M", "Inter", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

::selection { background: #fff; color: #051daa; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 2 ─────────────────────────────────────────────────────────── tokens */
:root {
  --blue:   #051daa;
  --purple: #7000a9;
  --yellow: #f2e400;
  --grey:   #55595c;
  --azure:  #0c55ae;
  --slate:  #0f0f0f;

  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --display: "GT Standard L", "Inter", Helvetica, Arial, var(--cjk);
  --text:    "GT Standard M", "Inter", Helvetica, Arial, var(--cjk);
  --ui:      "Inter", Helvetica, Arial, var(--cjk);
  --mono:    "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace, var(--cjk);

  --topbar-h: 50px;
  --rail-w: 182px;
  --pad-r: 40px;
  --gap: 10px;
  --content: 1180px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.33, 0, .2, 1);
}

/* 墨色：整站文字/细线/边框的颜色。黄色展区翻成黑墨，其余白墨。
   用 @property 注册后可以直接对颜色做补间。 */
@property --ink {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffffff;
}

html {
  --ink: #ffffff;
  transition: --ink .55s cubic-bezier(.33, 0, .2, 1);
}
html[data-ink="dark"] { --ink: #0d0d0d; }

:root {
  --line:       color-mix(in srgb, var(--ink, #fff) 15%, transparent);
  --line-soft:  color-mix(in srgb, var(--ink, #fff) 9%, transparent);
  --line-hard:  color-mix(in srgb, var(--ink, #fff) 32%, transparent);
  --fill:       color-mix(in srgb, var(--ink, #fff) 7%, transparent);
  --fill-hover: color-mix(in srgb, var(--ink, #fff) 13%, transparent);
  --ink-dim:    color-mix(in srgb, var(--ink, #fff) 70%, transparent);
  --ink-faint:  color-mix(in srgb, var(--ink, #fff) 48%, transparent);
}

/* 3 ─────────────────────────────────── background stack + grain + chrome */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-stack__layer {
  position: absolute;
  inset: 0;
  will-change: opacity;
  backface-visibility: hidden;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* 视窗四角的取景框角标（参考站左下角的那两个小方括号） */
.frame-corners {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
.frame-corners span {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1px solid color-mix(in srgb, var(--ink) 55%, transparent);
}
.frame-corners span:nth-child(1) { left: 15px;  bottom: 15px; border-right: 0; border-top: 0; }
.frame-corners span:nth-child(2) { left: 34px;  bottom: 15px; border-left: 0;  border-top: 0; }
.frame-corners span:nth-child(3) { right: 15px; top: 15px;    border-left: 0;  border-bottom: 0; }
.frame-corners span:nth-child(4) { right: 34px; top: 15px;    border-right: 0; border-bottom: 0; }

/* 顶部/底部进度细线 */
.scroll-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  z-index: 45;
  pointer-events: none;
  background: color-mix(in srgb, #fff 10%, transparent);
}
.scroll-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  transform-origin: 0 50%;
}

/* 4 ──────────────────────────────────────────────────────────── top bar */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 15px;
  background: #fff;
  color: #0f0f0f;
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: -.01em;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  white-space: nowrap;
}
.topbar__glyph { width: 15px; height: 15px; flex: none; }
.topbar__brand small {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in srgb, #0f0f0f 62%, transparent);
  transform: translateY(.5px);
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #0f0f0f;
  cursor: pointer;
  transition: opacity .2s;
}
.topbar__item:hover { opacity: .55; }

.topbar__spacer { flex: 1; }

.topbar__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: color-mix(in srgb, #0f0f0f 55%, transparent);
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: #0f0f0f;
  color: #fff;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .5s var(--ease-out), background .3s, color .3s;
}
.pill:hover { background: #2c2c2c; transform: translateY(-1px); }
.pill--ghost {
  background: color-mix(in srgb, #fff 9%, transparent);
  border: 1px solid var(--line);
  color: #fff;
}
.pill--ghost:hover { background: color-mix(in srgb, #fff 18%, transparent); }
.pill--paper { background: #fff; color: #0f0f0f; }
.pill--paper:hover { background: color-mix(in srgb, #fff 82%, #0f0f0f); }

/* 5 ───────────────────────────────────────────────────── left rail + wires */
.rail {
  position: fixed;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 44;
  width: calc(var(--rail-w) - 15px);
  font-family: var(--ui);
}
.rail__list { display: grid; gap: 7px; }
.rail__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 17px;
  font-size: 12px;
  font-weight: 450;
  letter-spacing: .005em;
  color: var(--ink-dim);
  transition: color .35s var(--ease-soft), opacity .35s;
}
.rail__item:hover { color: #fff; }
.rail__item::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  transform: translateY(-50%);
  transition: background .3s, border-color .3s, transform .5s var(--ease-out);
}
.rail__item.is-active { color: #fff; font-weight: 600; }
.rail__item.is-active::after {
  background: #fff;
  border-color: #fff;
  transform: translateY(-50%) scale(1.25);
  animation: rail-dot 2.4s var(--ease-soft) infinite;
}
@keyframes rail-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  50%      { box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}
.rail__num {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--ink-faint);
  width: 14px;
  flex: none;
  transition: color .3s;
}
.rail__item.is-active .rail__num { color: #fff; }
.rail__item.is-active .rail__label { transform: translateX(1px); }
.rail__label { transition: transform .5s var(--ease-out); white-space: nowrap; }

.wires {
  position: fixed;
  inset: 0;
  z-index: 43;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.wire {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 34%, transparent);
  stroke-width: .75;
  transition: stroke-dashoffset 1.1s var(--ease-soft);
}
.wire-node { fill: var(--ink); }
.wire-node-halo { fill: none; stroke: color-mix(in srgb, #fff 40%, transparent); stroke-width: .75; }
.wire-pulse {
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 9 400;
  animation: wire-pulse 3.4s linear infinite;
  opacity: .9;
}
@keyframes wire-pulse {
  0%   { stroke-dashoffset: 0; opacity: 0; }
  12%  { opacity: .95; }
  86%  { opacity: .95; }
  100% { stroke-dashoffset: -320; opacity: 0; }
}

/* 6 ──────────────────────────────────────────── chapter shell + display type */
main { position: relative; z-index: 2; }

.chapter {
  position: relative;
  padding: calc(var(--topbar-h) + 46px) var(--pad-r) 96px calc(var(--rail-w) + 10px);
}
.chapter__inner { max-width: var(--content); }

.chapter--full {
  padding: 0;
  min-height: 100svh;
}

/* 巨型标题 */
.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: .84;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0;
}
.display .mask { display: block; overflow: hidden; padding-bottom: .02em; }
.display .mask__i {
  display: block;
  transform: translateY(104%);
  transition: transform 1.15s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.is-in .display .mask__i,
.display.is-in .mask__i { transform: translateY(0); }

/* 章节眉标：编号 + 竖线 + 中文小注 */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border: 1px solid currentColor;
  transform: translateY(-1px);
}
.eyebrow em {
  font-family: var(--text);
  font-style: normal;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--ink-faint);
}

.lead {
  font-family: var(--text);
  font-size: clamp(16px, 1.32vw, 19px);
  line-height: 1.42;
  color: var(--ink-dim);
  max-width: 46ch;
}

/* 7 ─────────────────────────────────────────────────────────────── hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--topbar-h) + 26px) var(--pad-r) 42px calc(var(--rail-w) + 10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero__graph {
  position: absolute;
  inset: calc(var(--topbar-h) + 8px) 8px 8px calc(var(--rail-w) + 2px);
  z-index: 0;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  background:
    radial-gradient(120% 90% at 72% 30%, color-mix(in srgb, #051daa 35%, #000a52) 0%, #00093f 58%, #00062c 100%);
  overflow: hidden;
}
.hero__graph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      transparent calc(100% - 430px),
      color-mix(in srgb, #00062c 78%, transparent) calc(100% - 240px),
      color-mix(in srgb, #00062c 96%, transparent) 100%);
  pointer-events: none;
}
#constellation {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__stack { position: relative; z-index: 2; pointer-events: none; }

.hero__title {
  font-size: clamp(58px, 12.4vw, 196px);
  letter-spacing: -.045em;
  line-height: .8;
  margin-bottom: 22px;
}
.hero__title .mask__i { transition-duration: 1.35s; }

.hero__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  pointer-events: auto;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero__meta b { font-weight: 400; color: #fff; }

.hero__meta em {
  font-style: normal;
  font-family: var(--text);
  letter-spacing: .04em;
  text-transform: none;
  color: var(--ink-faint);
  font-size: 12px;
}

/* 竖排细字（贴在画布右上边缘） */
.hero__vertical {
  position: absolute;
  right: 26px;
  top: calc(var(--topbar-h) + 34px);
  bottom: auto;
  z-index: 3;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 38%, transparent);
  pointer-events: none;
}

/* 向下滚动提示 */
.scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .3s;
}
.scrollcue:hover { color: #fff; }
.scrollcue__line {
  position: relative;
  display: block;
  width: 1px;
  height: 40px;
  background: color-mix(in srgb, #fff 22%, transparent);
  overflow: hidden;
}
.scrollcue__line i {
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: #fff;
  animation: cue 2.2s var(--ease-soft) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-110%); }
  55%  { transform: translateY(260%); }
  100% { transform: translateY(260%); }
}

/* 8 ────────────────────────────────────────────────────────────── index */
.index-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.index-head .display { font-size: clamp(52px, 9.6vw, 148px); }
.index-head .lead { max-width: 34ch; padding-bottom: 10px; }

.entries { margin-top: 8px; }

.entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px 44px;
  align-items: center;
  gap: 26px;
  padding: 30px 18px 30px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .45s var(--ease-soft), padding-left .45s var(--ease-out);
}
.entry::before {
  content: "";
  position: absolute;
  inset: 0 0 0 -18px;
  background: var(--fill);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
  pointer-events: none;
}
.entry:hover { padding-left: 18px; }
.entry:hover::before { opacity: 1; }
.entry:hover .entry__title { transform: translateX(4px); }
.entry:hover .entry__arrow { transform: translateX(6px); opacity: 1; }
.entry:hover .entry__thumbs img { transform: translateY(-3px); }

.entry__num {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 11px;
  position: relative;
  z-index: 1;
}
.entry__num b { font-weight: 400; color: #fff; }
.entry__main { position: relative; z-index: 1; min-width: 0; }
.entry__title {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
  transition: transform .55s var(--ease-out);
}
.entry__sub {
  display: block;
  margin-top: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.entry__thumbs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.entry__thumbs img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  transition: transform .55s var(--ease-out);
  background: color-mix(in srgb, #fff 8%, transparent);
}
.entry__arrow {
  position: relative;
  z-index: 1;
  justify-self: end;
  opacity: .5;
  transition: transform .55s var(--ease-out), opacity .3s;
}

/* 9 ──────────────────────────────────────────────────────────── gallery */
.gal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 22px;
}
.gal-head .display { font-size: clamp(48px, 9.2vw, 142px); }
.gal-head .display--three { font-size: clamp(44px, 8.2vw, 124px); }
.gal-head__aside {
  display: grid;
  gap: 9px;
  padding-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}
.gal-head__aside b { color: #fff; font-weight: 400; }

.gal-rule {
  height: 1px;
  background: var(--line);
  margin-bottom: 10px;
}


/* 浮动图板：图片绝对定位、由 JS 逐帧驱动 transform。
   鼠标靠近时被推开，指到的那张放大；点击进全屏。 */
.board {
  position: relative;
  width: 100%;
  margin-top: 28px;
  /* 高度由 JS 设定 */
}

.plate {
  position: relative;
  width: var(--pw, 180px);
  height: var(--ph, 113px);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  overflow: hidden;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity .85s var(--ease-out) var(--d, 0ms), border-color .4s;
  backface-visibility: hidden;
}
.board .plate {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 50% 50%;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .20), 0 2px 6px rgba(0, 0, 0, .10);
}
.board .plate.is-in { opacity: 1; }
.board .plate.is-hover {
  box-shadow: 0 34px 70px rgba(0, 0, 0, .38), 0 6px 14px rgba(0, 0, 0, .18);
  border-color: var(--line-hard);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.05s var(--ease-out), filter .6s;
  transform: scale(1.005);
}
.plate:hover img,
.plate.is-hover img { transform: scale(1.03); }

/* 模糊占位 */
.plate__ph {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.06);
  transition: opacity .6s var(--ease-soft);
  opacity: 1;
}
.plate.is-ready .plate__ph { opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-soft), visibility 0s .62s; }

/* 编号角标 */
.plate__idx {
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .45s var(--ease-soft), transform .45s var(--ease-out);
}
.plate:hover .plate__idx,
.plate.is-hover .plate__idx { opacity: 1; transform: none; }

/* 悬停时底部信息条 */
.plate__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--ease-soft), transform .45s var(--ease-out);
}
.plate:hover .plate__cap,
.plate.is-hover .plate__cap { opacity: 1; transform: none; }
.plate__cap i { font-style: normal; opacity: .6; }

/* 章节结尾的分隔+跳转 */
.chapter__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.chapter__foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  transition: gap .4s var(--ease-out);
}
.chapter__foot a:hover { gap: 14px; }

/* 10 ───────────────────────────────────────────────────────────── epoch */
.epoch {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--topbar-h) + 13vh) var(--pad-r) 46px calc(var(--rail-w) + 10px);
}
.epoch__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.epoch__clock {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(56px, 13vw, 208px);
  line-height: .86;
  letter-spacing: -.045em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: .04em;
  white-space: nowrap;
}
.epoch__clock span { display: inline-block; }
.epoch__tick {
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: .18em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-left: .5em;
  transform: translateY(-.1em);
}

.epoch__rule { height: 1px; background: var(--line); margin: 44px 0 30px; }

.epoch__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.epoch__mail .eyebrow { margin-bottom: 12px; }
.epoch__mail a {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 3.1vw, 46px);
  line-height: 1.02;
  letter-spacing: -.03em;
  border-bottom: 2px solid color-mix(in srgb, #fff 30%, transparent);
  padding-bottom: 6px;
  transition: border-color .4s, color .4s, transform .6s var(--ease-out);
}
.epoch__mail a:hover {
  border-color: #fff;
  transform: translateY(-2px);
}
.epoch__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.9;
}
.epoch__cols b { display: block; color: #fff; font-weight: 400; }

.epoch__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 44px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.epoch__foot a { color: #fff; transition: gap .4s var(--ease-out); display: inline-flex; gap: 8px; align-items: center; }
.epoch__foot a:hover { gap: 14px; }

/* 11 ────────────────────────────────────────────────────────── lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, #000 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s var(--ease-soft);
}
.lb.is-open { opacity: 1; pointer-events: auto; }

.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, #fff 10%, transparent);
}
.lb__bar b { color: #fff; font-weight: 400; }
.lb__close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  padding: 6px 11px;
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  border-radius: 999px;
  transition: background .3s, border-color .3s;
}
.lb__close:hover { background: color-mix(in srgb, #fff 14%, transparent); border-color: #fff; }

.lb__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 74px;
}
.lb__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  transform: scale(.965);
  opacity: 0;
  transition: transform .55s var(--ease-out), opacity .4s var(--ease-soft);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.lb.is-open .lb__img { transform: none; opacity: 1; }

.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, #fff 20%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #000 30%, transparent);
  transition: background .3s, border-color .3s, transform .4s var(--ease-out);
}
.lb__nav:hover { background: color-mix(in srgb, #fff 16%, transparent); border-color: #fff; }
.lb__nav--prev { left: 16px; }
.lb__nav--next { right: 16px; }
.lb__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lb__nav--next:hover { transform: translateY(-50%) translateX(3px); }
.lb__nav[disabled] { opacity: .25; pointer-events: none; }

.lb__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 55%, transparent);
}
.lb__track { display: flex; gap: 4px; }
.lb__track i {
  display: block;
  width: 14px; height: 2px;
  background: color-mix(in srgb, #fff 22%, transparent);
  transition: background .3s;
}
.lb__track i.is-on { background: #fff; }

/* 12 ──────────────────────────────────────────────────── motion primitives */
[data-rv] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .95s var(--ease-out), transform .95s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-rv].is-in { opacity: 1; transform: none; }

/* 章节切换：入场遮罩 */
.chapter--veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
}

/* 13 ──────────────────────────────────────────────────────── responsive */
@media (max-width: 1180px) {
  :root { --rail-w: 150px; --pad-r: 24px; --content: 100%; }
  .entry { grid-template-columns: minmax(0, 1fr) 44px; }
  .entry__thumbs { display: none; }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; --pad-r: 16px; --topbar-h: 48px; }
  .rail, .wires, .hero__vertical { display: none; }
  .chapter, .hero, .epoch { padding-left: 16px; padding-right: 16px; }
  .hero__graph { inset: calc(var(--topbar-h) + 8px) 8px 8px 8px; }
  .topbar { gap: 14px; }
  .topbar__item--hide { display: none; }
  .topbar__meta { display: none; }
  .gal-head__aside { text-align: left; gap: 5px; }
  .entry { grid-template-columns: minmax(0, 1fr) 32px; gap: 16px; }
  .entry__thumbs { display: none; }
  .epoch__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .epoch__clock { font-size: clamp(42px, 15vw, 96px); }
  .lb__stage { padding: 14px 12px; }
  .lb__nav { width: 38px; height: 38px; }
  .lb__nav--prev { left: 4px; } .lb__nav--next { right: 4px; }
}

@media (max-width: 560px) {
  .hero__title { font-size: 15vw; }
  .gal-head .display, .index-head .display { font-size: 13.5vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rv], .plate { opacity: 1 !important; transform: none !important; }
  .display .mask__i { transform: none !important; }
}



/* ══════════════════════════════════════════════════════════════════
   墨色接管：把显式写死的白字统一交给 --ink，
   这样 2077 展区（黄底）翻成黑墨时，文字/细线/导航轨会一起过渡。
   ══════════════════════════════════════════════════════════════════ */
body { color: var(--ink); }

.rail__item:hover,
.rail__item.is-active,
.rail__item.is-active .rail__num { color: var(--ink); }
.rail__item.is-active::after { background: var(--ink); border-color: var(--ink); }
.rail__item::after { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
@keyframes rail-dot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 45%, transparent); }
  50%      { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 0%, transparent); }
}

.wire-node { fill: var(--ink); }
.wire-pulse { stroke: var(--ink); }

.scroll-bar { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.scroll-bar i { background: var(--ink); }

.entry__num b,
.gal-head__aside b,
.epoch__cols b { color: var(--ink); }

.chapter__foot a,
.epoch__foot a,
.epoch__clock,
.epoch__mail a,
.scrollcue:hover { color: var(--ink); }

.epoch__mail a { border-bottom-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.epoch__mail a:hover { border-bottom-color: var(--ink); }
.epoch__foot a { color: var(--ink); }

.chapter__foot a:hover { color: var(--ink); }

.frame-corners span { border-color: color-mix(in srgb, var(--ink) 55%, transparent); }

/* 查看器永远白墨（它自己是深底） */
.lb { --ink: #ffffff; }



