/* =================================================================
   山东新鑫  ·  Clean Dark Tech Edition
   Page-flip nav · Gold + Ink · Logo on every page · No HUD clutter
   ================================================================= */

:root {
  --bg:          #0a0a0d;
  --bg-soft:     #111114;
  --bg-card:     #16161a;
  --ink:         #ededea;
  --ink-soft:    #a8a5a0;
  --ink-mute:    #6a6760;
  --ink-faint:   #3a3834;
  --gold:        #c9a36a;
  --gold-bright: #e6c893;
  --gold-dim:    #8b7049;
  --line:        rgba(201, 163, 106, 0.18);
  --line-strong: rgba(201, 163, 106, 0.4);
  --line-faint:  rgba(201, 163, 106, 0.08);

  --ff-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --ff-sans:  "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ff-mono:  "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-hud: cubic-bezier(0.83, 0, 0.17, 1);
}

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

html, body { height: 100%; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  touch-action: pan-y;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font: inherit; }

/* ================================================================
   Global backdrop ambience
   ================================================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 20% 20%, rgba(201, 163, 106, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 80%, rgba(201, 163, 106, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 163, 106, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 163, 106, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* ================================================================
   FIXED LOGO (top-left, always visible)
   ================================================================ */

.brand {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 95;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.brand img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
  transition: filter 0.4s ease;
}
.brand:hover { transform: translateY(-1px); }
.brand:hover img { filter: brightness(0) invert(1) opacity(1); }

/* ================================================================
   BOTTOM SCROLL HINT (just "滑动" + down arrow)
   ================================================================ */

.scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.scroll-hint__text {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.scroll-hint__arrow {
  color: var(--gold-bright);
  animation: arrowBounce 2s ease-in-out infinite;
  opacity: 0.75;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0);   opacity: 0.4; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* hide hint on last page */
body.is-last .scroll-hint { opacity: 0; }

/* ================================================================
   PROGRESS INDICATOR (right side)
   ================================================================ */

.prog {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: auto;
}

.prog__label {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.prog__label-num {
  color: var(--gold-bright);
  font-size: 20px;
  font-weight: 500;
  min-width: 26px;
  text-align: right;
  transition: all 0.4s var(--ease-out);
}
.prog__label-sep, .prog__label-total { color: var(--ink-faint); }

.prog__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 60vh;
  overflow: hidden;
}

.prog__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}
.prog__item i {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink-faint);
  transition: all 0.5s var(--ease-out);
}
.prog__item span {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.4s var(--ease-out);
  white-space: nowrap;
}
.prog__item:hover i { background: var(--ink-soft); width: 32px; }
.prog__item:hover span { opacity: 0.7; transform: translateX(0); }

.prog__item.is-active i {
  width: 40px;
  height: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(230, 200, 147, 0.5);
}
.prog__item.is-active span {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold-bright);
}

/* special: smaller dots for project pages group */
.prog__item.is-group-project i { width: 12px; }
.prog__item.is-group-project.is-active i { width: 28px; }

/* ================================================================
   FOCUS FLASH (corner frame during transitions)
   ================================================================ */

.focus-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 85;
  opacity: 0;
}

.focus-flash.is-active { animation: flashBorder 0.6s var(--ease-hud); }
@keyframes flashBorder {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}

.focus-flash span {
  position: absolute;
  width: 54px;
  height: 54px;
  border-color: var(--gold-bright);
  border-style: solid;
  border-width: 0;
  opacity: 0.8;
}
.focus-flash__tl { top: 24px;    left: 24px;    border-top-width: 2px;    border-left-width: 2px; }
.focus-flash__tr { top: 24px;    right: 24px;   border-top-width: 2px;    border-right-width: 2px; }
.focus-flash__bl { bottom: 24px; left: 24px;    border-bottom-width: 2px; border-left-width: 2px; }
.focus-flash__br { bottom: 24px; right: 24px;   border-bottom-width: 2px; border-right-width: 2px; }

.focus-flash.is-active span {
  animation: flashCorner 0.6s var(--ease-hud);
}
@keyframes flashCorner {
  0%   { transform: scale(0.7); opacity: 0; }
  40%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.05); opacity: 0; }
}

/* ================================================================
   DECK & PAGE LAYOUT
   ================================================================ */

.deck {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  z-index: 2;
}

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-out),
    visibility 0s linear 0.9s;
  padding: 80px 80px 80px;
  padding-top: calc(80px + env(safe-area-inset-top, 0));
}

.page.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.9s var(--ease-out),
    visibility 0s;
  z-index: 3;
}

.page.is-leaving-up   { opacity: 0; transform: translateY(-40px); }
.page.is-leaving-down { opacity: 0; transform: translateY(40px); }

.page__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.page__body--split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.split__text { display: flex; flex-direction: column; }
.split__visual { display: flex; justify-content: center; align-items: center; }

/* ================================================================
   Shared typography
   ================================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.ptitle {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--ink);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
}
.ptitle em {
  font-style: normal;
  color: var(--gold-bright);
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 0.85em;
}

.lead {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 2;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
}

.page.is-active .eyebrow { animation: rUp 0.8s var(--ease-out) 0.15s forwards; }
.page.is-active .ptitle  { animation: rUp 1s var(--ease-out) 0.3s forwards; }
.page.is-active .lead    { animation: rUp 0.8s var(--ease-out) 0.5s forwards; }

@keyframes rUp { to { opacity: 1; transform: translateY(0); } }

/* ================================================================
   PAGE · HERO
   ================================================================ */

.page--hero { padding: 0; }

.page__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  filter: brightness(0.55) contrast(1.05);
}
.page.is-active .page__media img { animation: heroZoom 16s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }

.page__media-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 13, 0.6) 0%, rgba(10, 10, 13, 0.3) 40%, rgba(10, 10, 13, 0.95) 100%),
    linear-gradient(90deg, rgba(10, 10, 13, 0.7) 0%, transparent 50%);
}

.page__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 163, 106, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 163, 106, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

.page__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(201, 163, 106, 0.08) 50%, transparent 100%);
  height: 40%;
  top: -40%;
  z-index: 1;
  pointer-events: none;
}
.page.is-active .page__scan { animation: scanSweep 5s ease-in-out infinite; }
@keyframes scanSweep {
  0%   { top: -40%; }
  100% { top: 140%; }
}

.page__body--hero {
  justify-content: center;
  padding: 0 80px;
}

.hero-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 110px;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 36px;
  color: var(--ink);
}
.tline { display: block; overflow: hidden; }
.tch {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}
.page.is-active .tch {
  animation: chIn 1s var(--ease-out) forwards;
  animation-delay: calc(0.5s + var(--d) * 0.08s);
}
@keyframes chIn { to { transform: translateY(0); opacity: 1; } }

.hero-sub {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 32px;
  opacity: 0;
}
.page.is-active .hero-sub { animation: rUp 0.9s var(--ease-out) 1.4s forwards; }

.hero-rule {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin-bottom: 24px;
}
.page.is-active .hero-rule { animation: hRule 1s var(--ease-out) 1.6s forwards; }
@keyframes hRule { to { width: 64px; } }

.hero-tag {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
}
.page.is-active .hero-tag { animation: rUp 0.9s var(--ease-out) 1.85s forwards; }

/* ================================================================
   PAGE · STATS
   ================================================================ */

.page--stats .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 60px;
  max-width: 900px;
}

.stat {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .stat { animation: rUp 0.8s var(--ease-out) forwards; }
.page.is-active .stat:nth-child(1) { animation-delay: 0.5s; }
.page.is-active .stat:nth-child(2) { animation-delay: 0.65s; }
.page.is-active .stat:nth-child(3) { animation-delay: 0.8s; }
.page.is-active .stat:nth-child(4) { animation-delay: 0.95s; }

.stat__k {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.stat__num {
  display: block;
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 72px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--gold-bright) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__num i {
  font-style: normal;
  font-size: 16px;
  color: var(--gold);
  margin-left: 6px;
  font-family: var(--ff-mono);
  font-weight: 400;
  -webkit-text-fill-color: var(--gold);
}

.stat__label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.stat__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-faint);
  position: relative;
  overflow: hidden;
}
.stat__bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  box-shadow: 0 0 8px rgba(230, 200, 147, 0.4);
}
.page.is-active .stat__bar i {
  animation: barFill 1.8s var(--ease-out) forwards;
  animation-delay: 1s;
}
@keyframes barFill { to { width: 100%; } }

/* ================================================================
   PAGE · ABOUT
   ================================================================ */

.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
  max-width: 500px;
}
.about-list li {
  background: var(--bg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-list em {
  font-style: normal;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 26px;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}
.about-list span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.framed-img { position: relative; width: 100%; max-width: 480px; }
.framed-img__box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.framed-img__box::before, .framed-img__box::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  z-index: 2;
  pointer-events: none;
}
.framed-img__box::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.framed-img__box::after  { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.framed-img__box img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.05);
}
.framed-img__cap {
  position: absolute;
  bottom: -26px;
  right: 0;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.framed-img--sm { max-width: 280px; }
.framed-img--sm .framed-img__box { aspect-ratio: 1 / 1; }

.split__visual--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 600px;
}

/* ================================================================
   PAGE · SERVICES
   ================================================================ */

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .svc-grid { animation: rUp 0.9s var(--ease-out) 0.55s forwards; }

.svc-cell {
  background: var(--bg);
  padding: 40px 36px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.4s ease;
  position: relative;
}
.svc-cell:hover { background: var(--bg-soft); }
.svc-cell:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}

.svc-cell__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.svc-cell h3 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.svc-cell p {
  margin-top: auto;
  font-family: var(--ff-mono);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
}

/* ================================================================
   PAGE · MEDIA tags
   ================================================================ */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .tag-row { animation: rUp 0.9s var(--ease-out) 0.65s forwards; }
.tag {
  padding: 6px 14px;
  border: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.tag:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ================================================================
   PAGE · PROJECTS INTRO (12-project index)
   ================================================================ */

.pi-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
  max-width: 900px;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .pi-list { animation: rUp 0.9s var(--ease-out) 0.6s forwards; }

.pi-col {
  background: var(--bg);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  transition: background 0.3s ease;
}
.pi-col:hover { background: var(--bg-soft); }

.pi-n {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  font-weight: 500;
}
.pi-t {
  font-family: var(--ff-serif);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.pi-y {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.15em;
}

/* ================================================================
   PAGE · PROJECT (12 individual pages)
   ================================================================ */

.page__body--project {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  padding-top: 20px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
}

/* 项目系列共用的小标识 — "PROJECTS · 精选 12 个近期项目" */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 6px 14px 6px 0;
  border: 1px solid rgba(201, 163, 106, 0.28);
  border-left: none;
  background: rgba(201, 163, 106, 0.05);
  position: relative;
  margin: 0 0 -8px 0;
  opacity: 0;
  transform: translateY(-12px);
  flex: 0 0 auto;
}
.page.is-active .section-tag { animation: tagIn 0.7s var(--ease-out) 0.05s forwards; }
@keyframes tagIn {
  to { opacity: 1; transform: translateY(0); }
}
.section-tag__rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-right: 4px;
}

.pp-head {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  opacity: 0;
  transform: translateY(20px);
}
.pp-head__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.page.is-active .pp-head { animation: rUp 0.9s var(--ease-out) 0.15s forwards; }

/* circular developer logo badge in upper-right of project header */
.pp-badge {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #f6f3ee;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 0 1px rgba(201, 163, 106, 0.12),
    0 0 0 6px rgba(10, 10, 13, 0.7),
    0 0 0 7px rgba(201, 163, 106, 0.18),
    0 18px 40px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transform: translateY(8px) scale(0.92);
  opacity: 0;
}
.page.is-active .pp-badge {
  animation: badgeIn 0.9s var(--ease-out) 0.55s forwards;
}
@keyframes badgeIn {
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.pp-badge img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  pointer-events: none;
}

.pp-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.pp-num::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.pp-title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.pp-meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.pp-img {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 50vh;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .pp-img { animation: rUp 1s var(--ease-out) 0.4s forwards; }

.pp-img__box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
}
.pp-img__box::before, .pp-img__box::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
  z-index: 2;
  pointer-events: none;
}
.pp-img__box::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.pp-img__box::after  { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.pp-img__box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.03);
  transform: scale(1.05);
}
.page.is-active .pp-img__box img {
  animation: ppImgIn 2s var(--ease-out) 0.4s forwards;
}
@keyframes ppImgIn { to { transform: scale(1); } }

.pp-desc {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .pp-desc { animation: rUp 0.9s var(--ease-out) 0.6s forwards; }

/* ================================================================
   PAGE · TIMELINE
   ================================================================ */

.page--timeline .tl {
  position: relative;
  padding-left: 80px;
  max-width: 720px;
  opacity: 0;
}
.page.is-active .tl { animation: rUp 0.9s var(--ease-out) 0.5s forwards; }

.page--timeline .tl::before {
  content: '';
  position: absolute;
  left: 60px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.page--timeline .tl::after {
  content: '';
  position: absolute;
  left: 60px; top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 8px rgba(230, 200, 147, 0.3);
}
.page.is-active .tl::after { animation: tlLine 1.6s var(--ease-out) 0.9s forwards; }
@keyframes tlLine { to { height: 100%; } }

.tl__item { position: relative; padding: 14px 0; }
.tl__item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 22px;
  width: 7px; height: 7px;
  background: var(--bg);
  border: 1px solid var(--gold);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.tl__item:hover::before {
  transform: scale(1.6);
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold-bright);
}

.tl__year {
  position: absolute;
  left: -80px;
  top: 14px;
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.08em;
  width: 44px;
  text-align: right;
}
.tl__item p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.tl__item p strong { color: var(--gold-bright); font-weight: 500; }
.tl__item--origin .tl__year { color: var(--gold-bright); }
.tl__item--origin::before {
  background: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-bright);
}

/* ================================================================
   PAGE · TESTIMONIAL
   ================================================================ */

.qt {
  position: relative;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--gold);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .qt:nth-of-type(1) { animation: rUp 0.9s var(--ease-out) 0.55s forwards; }
.page.is-active .qt:nth-of-type(2) { animation: rUp 0.9s var(--ease-out) 0.75s forwards; }

.qt::before {
  content: '"';
  position: absolute;
  left: 10px; top: -36px;
  font-family: var(--ff-serif);
  font-size: 72px;
  color: var(--gold-dim);
  opacity: 0.5;
  line-height: 1;
}
.qt p {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.qt footer {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ================================================================
   PAGE · CONTACT
   ================================================================ */

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
  max-width: 900px;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .ct-grid { animation: rUp 0.9s var(--ease-out) 0.5s forwards; }

.ct-cell {
  background: var(--bg);
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 140px;
  transition: background 0.3s ease;
}
.ct-cell:not(.ct-cell--static):hover { background: var(--bg-soft); }
.ct-cell:not(.ct-cell--static):hover .ct-cell__arrow {
  transform: translateX(6px);
  color: var(--gold-bright);
}

.ct-cell__k {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.ct-cell__v {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.ct-cell__v--sm { font-size: 15px; line-height: 1.65; }

.ct-cell__arrow {
  position: absolute;
  right: 32px; bottom: 28px;
  font-family: var(--ff-mono);
  font-size: 20px;
  color: var(--ink-mute);
  transition: all 0.4s var(--ease-out);
}

.ct-foot { text-align: center; opacity: 0; }
.page.is-active .ct-foot { animation: rUp 0.8s var(--ease-out) 0.8s forwards; }

.ct-signoff {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.ct-meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ================================================================
   RESPONSIVE · tablet
   ================================================================ */

@media (max-width: 1100px) {
  .page { padding: 80px 40px 80px; }
  .ptitle { font-size: 48px; }
  .hero-title { font-size: 80px; }
  .page__body--split { grid-template-columns: 1fr; gap: 40px; }
  .split__visual { display: none; }
  .split__visual--dual { display: grid; }
  .stat__num { font-size: 56px; }
  .pi-list { grid-template-columns: repeat(2, 1fr); }
  .pp-title { font-size: 44px; }
}

/* ================================================================
   RESPONSIVE · mobile
   ================================================================ */

@media (max-width: 700px) {
  .brand { top: 20px; left: 20px; }
  .brand img { height: 22px; }

  .scroll-hint { bottom: 20px; }
  .scroll-hint__text { font-size: 9px; }

  .prog {
    right: 14px;
    gap: 10px;
  }
  .prog__item span { display: none; }
  .prog__item i { width: 14px; }
  .prog__item:hover i { width: 20px; }
  .prog__item.is-active i { width: 24px; }
  .prog__item.is-group-project i { width: 8px; }
  .prog__item.is-group-project.is-active i { width: 20px; }
  .prog__label-num { font-size: 15px; }
  .prog__label { font-size: 9px; }
  .prog__label-total, .prog__label-sep { display: inline; }

  .focus-flash span { width: 36px; height: 36px; }
  .focus-flash__tl { top: 16px; left: 16px; }
  .focus-flash__tr { top: 16px; right: 16px; }
  .focus-flash__bl { bottom: 16px; left: 16px; }
  .focus-flash__br { bottom: 16px; right: 16px; }

  .page { padding: 68px 22px 70px; padding-right: 50px; }
  .page--hero { padding: 0; }
  .page__body--hero { padding: 0 22px; padding-right: 50px; }

  .ptitle { font-size: 38px; margin-bottom: 28px; }
  .hero-title { font-size: 54px; line-height: 1.12; margin-bottom: 24px; }
  .hero-sub { font-size: 15px; margin-bottom: 22px; }
  .hero-tag { font-size: 11px; letter-spacing: 0.2em; }

  .lead { font-size: 15px; line-height: 1.9; }
  .eyebrow { font-size: 10px; margin-bottom: 20px; }

  .page--stats .stats { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .stat__num { font-size: 44px; }
  .stat__num i { font-size: 12px; }
  .stat__k { font-size: 9px; margin-bottom: 10px; }
  .stat__label { font-size: 9px; margin-bottom: 12px; }

  .about-list { grid-template-columns: 1fr 1fr; }
  .about-list li { padding: 16px 14px; }
  .about-list em { font-size: 20px; }
  .about-list span { font-size: 9px; }

  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-cell { padding: 22px 18px; min-height: 140px; gap: 10px; }
  .svc-cell h3 { font-size: 17px; }
  .svc-cell__num { font-size: 11px; }

  .split__visual--dual { display: none; }

  /* projects intro */
  .pi-list { grid-template-columns: 1fr 1fr; }
  .pi-col { padding: 14px 14px; gap: 10px; }
  .pi-t { font-size: 13px; }
  .pi-n { font-size: 10px; }
  .pi-y { font-size: 9px; }

  /* individual project pages */
  .page__body--project { gap: 20px; padding-top: 6px; }
  .section-tag { font-size: 9px; letter-spacing: 0.24em; padding: 5px 10px 5px 0; }
  .section-tag__rule { width: 18px; }
  .pp-head { gap: 16px; }
  .pp-title { font-size: 32px; }
  .pp-num { font-size: 10px; }
  .pp-meta { font-size: 10px; }
  .pp-img { max-height: 40vh; }
  .pp-desc { font-size: 14px; line-height: 1.9; }
  .pp-badge {
    width: 64px;
    height: 64px;
    box-shadow:
      0 0 0 1px rgba(201, 163, 106, 0.12),
      0 0 0 4px rgba(10, 10, 13, 0.7),
      0 0 0 5px rgba(201, 163, 106, 0.18),
      0 12px 24px -8px rgba(0, 0, 0, 0.7);
  }

  .page--timeline .tl { padding-left: 60px; }
  .page--timeline .tl::before, .page--timeline .tl::after { left: 48px; }
  .tl__year { left: -60px; width: 36px; font-size: 12px; }
  .tl__item::before { left: -20px; }
  .tl__item p { font-size: 12px; }

  .qt p { font-size: 17px; }
  .qt { padding-left: 18px; margin-bottom: 28px; }

  .ct-grid { grid-template-columns: 1fr; }
  .ct-cell { padding: 22px 22px; min-height: 110px; }
  .ct-cell__v { font-size: 22px; }
  .ct-cell__v--sm { font-size: 13px; }
  .ct-signoff { font-size: 13px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 46px; }
  .ptitle { font-size: 30px; }
  .pp-title { font-size: 28px; }
  .page--stats .stats { grid-template-columns: 1fr; }
  .pi-list { grid-template-columns: 1fr; }
}

/* ================================================================
   PAGE · VOICES INTRO  (gallery of 4 letter thumbnails)
   ================================================================ */

.page__body--voices-intro {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  gap: 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vi-head {
  flex: 0 0 auto;
}
.vi-head .ptitle { font-size: clamp(36px, 5vw, 60px); }
.vi-lead {
  max-width: 580px;
  margin-top: 14px;
  font-size: 14px;
}

.vi-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
  flex: 0 0 auto;
}

.vi-thumb {
  position: relative;
  background: #f8f3ec;
  border: 1px solid var(--line-strong);
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  aspect-ratio: 3 / 4.2;        /* 关键 — 给缩略图自身比例,不再依赖父级伸展 */
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .vi-thumb { animation: rUp 0.7s var(--ease-out) forwards; }
.page.is-active .vi-thumb:nth-child(1) { animation-delay: 0.3s; }
.page.is-active .vi-thumb:nth-child(2) { animation-delay: 0.4s; }
.page.is-active .vi-thumb:nth-child(3) { animation-delay: 0.5s; }
.page.is-active .vi-thumb:nth-child(4) { animation-delay: 0.6s; }

.vi-thumb:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(201, 163, 106, 0.3),
    0 30px 50px -20px rgba(0, 0, 0, 0.85);
}
.vi-thumb img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.vi-thumb__cap {
  flex: 0 0 auto;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding: 12px 14px;
  background: rgba(10, 10, 13, 0.85);
  border-top: 1px solid var(--line-strong);
  text-align: left;
  line-height: 1.5;
}

.vi-hint {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  text-transform: uppercase;
  text-align: center;
  flex: 0 0 auto;
}

/* ================================================================
   PAGE · VOICE  (single letter detail page)
   ================================================================ */

.page__body--voice {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

.voice__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .voice__text { animation: rUp 0.9s var(--ease-out) 0.2s forwards; }

.voice-qt {
  position: relative;
  padding-left: 22px;
  margin: 0;
  border-left: 2px solid var(--gold);
}
.voice-qt__hl {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.voice-qt footer {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

.voice-note {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  max-width: 520px;
}
.voice-note--sign {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.voice__paper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .voice__paper { animation: rUp 1s var(--ease-out) 0.4s forwards; }

/* 桌面端 — 信件图片更大、更醒目（左侧主体） */
.voice__img {
  position: relative;
  display: block;
  background: #f8f3ec;
  border: 1px solid var(--line-strong);
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 3 / 4.3;
  margin: 0 auto;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 163, 106, 0.1),
    0 30px 60px -22px rgba(0, 0, 0, 0.85);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s;
}
.voice__img:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(201, 163, 106, 0.25),
    0 40px 80px -22px rgba(0, 0, 0, 0.9);
}
.voice__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f8f3ec;
}
.voice__zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 10, 13, 0.85);
  color: var(--gold);
  padding: 8px 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.voice__img:hover .voice__zoom,
.voice__img:focus .voice__zoom {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   PAGE · MOMENTS INTRO
   ================================================================ */

.page__body--moments-intro {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  gap: 18px;
  min-height: 0;
}
.mi-lead {
  max-width: 600px;
  margin-bottom: 4px;
}

.mi-stats {
  display: flex;
  gap: 50px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.mi-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mi-stat em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.mi-stat span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.mi-hero {
  position: relative;
  width: 100%;
  flex: 1 1 0;
  min-height: 180px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .mi-hero { animation: rUp 1s var(--ease-out) 0.4s forwards; }
.mi-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.7s var(--ease-out), filter 0.4s;
}
.mi-hero:hover img {
  transform: scale(1.04);
  filter: brightness(1) contrast(1.05);
}
.mi-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 28px;
  background: linear-gradient(to top, rgba(10,10,13,0.85) 0%, rgba(10,10,13,0.1) 50%, transparent 100%);
  pointer-events: none;
}
.mi-hero__cap {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--ink);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.mi-hero__zoom {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: rgba(10,10,13,0.75);
  padding: 8px 14px;
}

/* ================================================================
   PAGE · MOMENTS GRID  (3 photos per page, themed)
   ================================================================ */

.page--moments-grid .page__body {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ptitle--sm { font-size: clamp(36px, 4.5vw, 56px); }

.m-grid {
  display: grid;
  gap: 14px;
  width: 100%;
}
.m-grid--3 {
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 16 / 9;        /* 给容器固定比例,网格行就有可见高度了 */
}
.m-grid--2 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 7;
}

.m-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(20px);
  transition: border-color 0.3s, transform 0.5s var(--ease-out);
}
.page.is-active .m-card { animation: rUp 0.8s var(--ease-out) forwards; }
.page.is-active .m-card:nth-child(1) { animation-delay: 0.30s; }
.page.is-active .m-card:nth-child(2) { animation-delay: 0.42s; }
.page.is-active .m-card:nth-child(3) { animation-delay: 0.54s; }
.m-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.m-card--tall { grid-row: span 2; }
.m-card--wide { /* default; nothing special */ }

.m-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
  transition: transform 0.7s var(--ease-out), filter 0.4s;
}
.m-card:hover img {
  transform: scale(1.06);
  filter: brightness(1) contrast(1.05);
}
.m-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,13,0.85) 0%, rgba(10,10,13,0.05) 55%, transparent 100%);
  pointer-events: none;
}
.m-card__cap {
  position: absolute;
  left: 16px;
  bottom: 32px;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--ink);
  z-index: 2;
  pointer-events: none;
  letter-spacing: 0.04em;
}
.m-card__sub {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

.m-foot {
  flex: 0 0 auto;
  font-family: var(--ff-serif);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 6px;
}
.m-foot strong {
  color: var(--gold);
  font-weight: 500;
  font-style: italic;
}

/* ================================================================
   PAGE · MOMENT  (single event per page — simple browse)
   ================================================================ */

.page__body--moment {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
}

.moment__photo {
  position: relative;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  box-shadow:
    0 0 0 1px rgba(201, 163, 106, 0.08),
    0 30px 60px -22px rgba(0, 0, 0, 0.85);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}
.page.is-active .moment__photo { animation: rUp 0.9s var(--ease-out) 0.2s forwards; }
.moment__photo:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(201, 163, 106, 0.25),
    0 40px 80px -22px rgba(0, 0, 0, 0.9);
}
.moment__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.04);
  transition: transform 0.7s var(--ease-out), filter 0.4s;
  display: block;
}
.moment__photo:hover img {
  transform: scale(1.04);
  filter: brightness(1) contrast(1.04);
}
.moment__zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(10, 10, 13, 0.85);
  color: var(--gold);
  padding: 8px 14px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
}
.moment__photo:hover .moment__zoom,
.moment__photo:focus .moment__zoom {
  opacity: 1;
  transform: translateY(0);
}

.moment__caption {
  display: flex;
  flex-direction: column;
  gap: 22px;
  opacity: 0;
  transform: translateY(20px);
}
.page.is-active .moment__caption { animation: rUp 1s var(--ease-out) 0.4s forwards; }

.moment__title {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
}
.moment__desc {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  max-width: 460px;
  margin: 0;
}

/* ================================================================
   LIGHTBOX
   ================================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 5, 7, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease-out);
}
.lightbox.is-open .lightbox__inner { transform: scale(1); }
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  background: #f8f3ec;
  box-shadow:
    0 0 0 1px rgba(201, 163, 106, 0.2),
    0 60px 100px -30px rgba(0, 0, 0, 0.9);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 13, 0.85);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
  padding: 0;
}
.lightbox__close:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  transform: scale(1.05);
}
.lightbox__hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  text-transform: uppercase;
  pointer-events: none;
}

/* ================================================================
   MOBILE — voices, voice, moments
   ================================================================ */

@media (max-width: 720px) {
  /* voices intro */
  .page__body--voices-intro {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 30px;
  }
  .vi-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex: 0 0 auto;
  }
  .vi-thumb {
    aspect-ratio: 3 / 4;
  }
  .vi-thumb__cap { font-size: 9px; padding: 10px 12px; }

  /* voice (each letter detail) — 手机端：信件图片在上, 文字在下 */
  .page__body--voice {
    grid-template-columns: 1fr;
    gap: 18px;
    align-content: start;
    align-items: start;
  }
  .voice__text { gap: 12px; }
  .voice-qt { padding-left: 16px; }
  .voice-qt__hl { font-size: 19px; line-height: 1.45; margin-bottom: 10px; }
  .voice-qt footer { font-size: 10px; }
  .voice-note { font-size: 13px; line-height: 1.75; }
  .voice-note--sign { font-size: 9px; }

  /* 手机端把信件图片大方展示，aspect-ratio 自适应 */
  .voice__paper {
    width: 100%;
    align-items: stretch;
  }
  .voice__img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4.3;
    margin: 0;
  }
  .voice__img img {
    object-fit: contain;
    object-position: center;
  }
  .voice__zoom {
    bottom: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 9px;
    opacity: 1;
    transform: none;
  }

  /* moments intro */
  .mi-stats { gap: 28px; padding: 14px 0; }
  .mi-hero__overlay { padding: 18px; }
  .mi-hero__cap { font-size: 16px; }

  /* moments grid */
  .m-grid--3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.3fr 1fr;
  }
  .m-card--tall {
    grid-column: span 2;
    grid-row: span 1;
  }
  .m-grid--2 { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .m-card__cap { font-size: 14px; bottom: 28px; left: 12px; }
  .m-card__sub { font-size: 9px; bottom: 10px; left: 12px; }
  .m-foot { font-size: 12px; }

  /* moment (single event per page) */
  .page__body--moment {
    grid-template-columns: 1fr;
    gap: 18px;
    align-content: start;
    align-items: start;
  }
  .moment__photo {
    aspect-ratio: 4 / 3;
  }
  .moment__caption { gap: 12px; }
  .moment__title {
    font-size: 22px;
    line-height: 1.35;
    padding-left: 16px;
  }
  .moment__desc {
    font-size: 13px;
    line-height: 1.75;
  }
  .moment__zoom { display: none; }

  /* lightbox */
  .lightbox { padding: 14px; }
  .lightbox__close { top: 12px; right: 12px; width: 38px; height: 38px; font-size: 24px; }
  .lightbox__hint { bottom: 12px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* hide scrollbars on internal scroll containers — keep scroll functional but visually clean */
.page__body--moments-intro,
.page--moments-grid .page__body {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge legacy */
}
.page__body--moments-intro::-webkit-scrollbar,
.page--moments-grid .page__body::-webkit-scrollbar {
  display: none;                /* Chrome/Safari */
}

/* ================================================================
   PROGRESS PREVIEW (long-press / scrub)
   ================================================================ */

.prog-preview {
  position: fixed;
  right: 90px;
  top: 50%;
  z-index: 95;
  transform: translateY(-50%) translateX(8px);
  background: rgba(15, 15, 18, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(201, 163, 106, 0.35);
  border-radius: 4px;
  padding: 14px 22px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.18s var(--ease-out);
  box-shadow:
    0 0 0 1px rgba(201, 163, 106, 0.08),
    0 30px 60px -20px rgba(0, 0, 0, 0.85);
}
.prog-preview::before {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: rgba(15, 15, 18, 0.94);
  border-right: 1px solid rgba(201, 163, 106, 0.35);
  border-top: 1px solid rgba(201, 163, 106, 0.35);
  transform: translateY(-50%) rotate(45deg);
}
.prog-preview.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.prog-preview__num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}
.prog-preview__name {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}
.prog-preview__cn {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  color: var(--gold-bright);
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* during scrub, dim non-active dots and bring whole list slightly forward */
.prog__list.is-scrubbing {
  transition: transform 0.2s var(--ease-out);
  transform: translateX(-4px);
}
.prog__list.is-scrubbing .prog__item i {
  background: rgba(201, 163, 106, 0.35);
}
.prog__list.is-scrubbing .prog__item span {
  opacity: 0;
}

/* mobile prog hint — show small "长按预览" pill near label initially */
@media (max-width: 720px) {
  .prog-preview {
    right: 60px;
    min-width: 150px;
    padding: 10px 16px;
  }
  .prog-preview__cn {
    font-size: 18px;
  }
  .prog-preview__name { font-size: 10px; }
}

/* small one-time hint: "long-press to preview" */
.prog-hint {
  position: fixed;
  right: 60px;
  bottom: 70px;
  z-index: 88;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 163, 106, 0.3);
  padding: 8px 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}
.prog-hint.is-visible {
  opacity: 0.9;
  transform: translateX(0);
}
.prog-hint::before {
  content: '☞ ';
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .prog-hint { right: 44px; bottom: 80px; font-size: 9px; padding: 6px 10px; }
}
