/* ==========================================================================
   SLX About Me — Enhanced Edition
   更高级的策展式个人档案页面
   ========================================================================== */

/* ---------- Page Base ---------- */
.about-preview-page {
  background: var(--bg);
  overflow-x: hidden;
}

.about-preview-main {
  background: var(--bg);
}

.preview-section {
  padding-block: clamp(100px, 14vh, 180px);
}

/* ---------- Hero ---------- */
.preview-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 8vh, 96px);
  overflow: hidden;
}

.preview-hero-media,
.preview-hero-media picture,
.preview-hero-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.preview-hero-media img {
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.05);
}

/* 极淡的底部渐变 — 只覆盖照片下方 35% 区域 */
.preview-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 55%,
    rgba(10, 10, 10, 0.35) 78%,
    rgba(10, 10, 10, 0.72) 100%
  );
}

.preview-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 64px);
}

.preview-hero-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(245, 244, 240, 0.6);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.preview-hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.18;
  color: var(--fg);
  text-wrap: balance;
}

.title-line {
  display: block;
  font-size: clamp(28px, 4.5vw, 64px);
  opacity: 0;
  transform: translateY(30px);
  animation: titleReveal 1s var(--ease-cinema) forwards;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.45s; }

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

.preview-hero-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 4vh, 48px);
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.2s forwards;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245, 244, 240, 0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.6); opacity: 0.9; }
}

.scroll-text {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 244, 240, 0.45);
}

.preview-hero-caption {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(26px, 5vh, 58px);
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid rgba(245, 244, 240, 0.2);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
  color: rgba(245, 244, 240, 0.5);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 1.6s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---------- Manifesto ---------- */
.preview-manifesto {
  padding-block: clamp(120px, 18vh, 220px);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(32px, 6vw, 80px);
  max-width: 980px;
  margin: 0 auto;
}

.manifesto-aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}

.manifesto-index {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-quiet);
}

.manifesto-label {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-top: 8px;
}

.manifesto-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg);
  letter-spacing: 0.02em;
  margin: 0 0 clamp(24px, 3vw, 40px);
}

.manifesto-prose {
  font-family: var(--serif);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 300;
  line-height: 2;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.manifesto-prose p { margin: 0; }
.manifesto-prose p + p { margin-top: 1.2em; }

/* ---------- Stats ---------- */
.preview-stats {
  padding-block: clamp(80px, 10vh, 140px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding-block: 8px;
}

.stat-number {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.stat-unit {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  color: var(--fg-muted);
  margin-left: 2px;
}

.stat-label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-quiet);
  margin-top: 12px;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--line), transparent);
  opacity: 0.6;
}

/* ---------- Section Header ---------- */
.preview-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.preview-section-head--center {
  align-items: center;
  text-align: center;
}

.preview-section-index {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-quiet);
}

.preview-section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.2;
}

.preview-section-subtitle {
  font-family: var(--serif);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 300;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin: 4px 0 0;
}

/* ---------- Timeline ---------- */
.preview-timeline {
  padding-block: clamp(100px, 14vh, 180px);
}

.timeline-track {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: clamp(24px, 4vw, 48px);
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 10%, var(--line) 90%, transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: clamp(48px, 6vh, 72px);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-node {
  position: absolute;
  left: calc(-1 * clamp(24px, 4vw, 48px));
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  transform: translateX(-50%);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.timeline-item.is-visible .timeline-node {
  border-color: var(--ink-ivory-soft);
  background: var(--ink-ivory);
  box-shadow: 0 0 0 4px rgba(237, 230, 211, 0.08);
}

.timeline-card {
  padding-left: clamp(16px, 2vw, 28px);
}

.timeline-year {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-quiet);
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.timeline-item.is-visible .timeline-year {
  border-color: var(--line);
  color: var(--fg-muted);
}

.timeline-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  color: var(--fg);
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.timeline-desc {
  font-family: var(--serif);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 300;
  line-height: 1.85;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  margin: 0;
  max-width: 52ch;
}

/* ---------- Rooms ---------- */
.preview-rooms {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 24px);
}

.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.6s var(--ease), transform 0.6s var(--ease-cinema);
}

.room-card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
}

.room-card-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.room-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.08) saturate(1.04);
  transition: transform 1.2s var(--ease-cinema), filter 0.8s var(--ease);
}

.room-card:hover .room-card-visual img {
  transform: scale(1.08);
  filter: brightness(1.16) saturate(1.08);
}

.room-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.18) 100%);
  transition: opacity 0.6s var(--ease);
}

.room-card:hover .room-card-shade {
  opacity: 0.45;
}

.room-card-body {
  padding: clamp(16px, 1.8vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-card-num {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-quiet);
}

.room-card-title {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  color: var(--fg);
  margin: 0;
  letter-spacing: 0.02em;
}

.room-card-desc {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

.room-card-arrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-quiet);
  margin-top: 10px;
  transition: color 0.4s var(--ease), letter-spacing 0.6s var(--ease);
}

.room-card:hover .room-card-arrow {
  color: var(--accent);
  letter-spacing: 0.18em;
}

/* ---------- Portrait ---------- */
.preview-portrait {
  padding-block: clamp(80px, 10vh, 140px);
  overflow: hidden;
}

.preview-portrait-grid {
  display: grid;
  grid-template-columns: minmax(280px, 42fr) minmax(320px, 58fr);
  grid-template-rows: auto auto;
  gap: clamp(16px, 2vw, 32px);
  max-width: 1480px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 64px);
  align-items: center;
}

.portrait-image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-image--primary {
  grid-row: 1 / 3;
  align-self: center;
  min-height: clamp(620px, 72vw, 920px);
}

.portrait-image--secondary {
  grid-column: 2;
  grid-row: 2;
  min-height: clamp(300px, 34vw, 520px);
}

.portrait-image {
  --parallax-y: 0px;
}

.portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: translateY(var(--parallax-y));
  transition: filter 0.8s var(--ease);
}

.portrait-image:hover img {
  filter: brightness(1.05);
}

.portrait-text {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(16px, 2vw, 32px) 0;
}

.portrait-index {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-quiet);
  margin-bottom: 16px;
}

.portrait-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: 0 0 clamp(20px, 2vw, 32px);
}

.portrait-desc {
  font-family: var(--serif);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 300;
  line-height: 1.9;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  margin: 0;
  max-width: 42ch;
}

/* ---------- Contact ---------- */
.preview-contact {
  padding-block: clamp(100px, 14vh, 180px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(20px, 2vw, 28px);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease), transform 0.5s var(--ease-cinema);
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 163, 115, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.contact-link:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}

.contact-link:hover::before {
  opacity: 1;
}

.contact-link-name {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.contact-link-handle {
  position: relative;
  z-index: 1;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.contact-link-arrow {
  position: absolute;
  top: clamp(20px, 2vw, 28px);
  right: clamp(20px, 2vw, 28px);
  z-index: 1;
  color: var(--fg-quiet);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease-cinema);
}

.contact-link:hover .contact-link-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.contact-link--static {
  cursor: default;
}

.contact-link--static:hover {
  transform: none;
  border-color: var(--line-soft);
  background: var(--bg-card);
}

.contact-link--static:hover::before {
  opacity: 0;
}

/* ---------- Closing ---------- */
.preview-closing {
  position: relative;
  min-height: max(clamp(860px, 96vh, 1160px), 75vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(80px, 12vh, 160px);
  overflow: hidden;
  background: #050505;
}

.preview-closing-media,
.preview-closing-media picture,
.preview-closing-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.preview-closing-media img {
  object-fit: contain;
  object-position: center;
  filter: brightness(0.86) saturate(0.98);
}

.preview-closing-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.44) 0%, rgba(0,0,0,0.24) 40%, rgba(0,0,0,0.52) 100%);
}

.preview-closing-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  padding-inline: clamp(20px, 5vw, 64px);
}

.closing-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(245, 244, 240, 0.78);
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.closing-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.6vw, 64px);
  font-weight: 400;
  color: rgba(255, 253, 245, 0.98);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 clamp(24px, 3vw, 40px);
  white-space: nowrap;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.62);
}

.closing-prose {
  font-family: var(--serif);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 300;
  line-height: 2;
  color: rgba(245, 244, 240, 0.86);
  letter-spacing: 0.04em;
  margin-bottom: clamp(32px, 4vw, 56px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.closing-prose p { margin: 0; }
.closing-prose p + p { margin-top: 0.8em; }

.closing-caption {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vw, 40px);
  z-index: 3;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(245, 244, 240, 0.68);
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52);
  white-space: nowrap;
}

/* ---------- Scroll Reveals ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.9s var(--ease-cinema), transform 0.9s var(--ease-cinema);
}

[data-reveal="up"] {
  transform: translateY(30px);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="scale"] {
  transform: scale(0.96);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="150"] { transition-delay: 0.15s; }
[data-delay="160"] { transition-delay: 0.16s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="240"] { transition-delay: 0.24s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .manifesto-aside {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    padding-top: 0;
  }

  .manifesto-label {
    writing-mode: horizontal-tb;
    margin-top: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .stat-divider {
    display: none;
  }

  .stat-divider:nth-of-type(2) {
    display: block;
    width: 100%;
    height: 1px;
    grid-column: 1 / -1;
    background: linear-gradient(to right, transparent, var(--line), transparent);
  }

  .preview-portrait-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .portrait-image--primary {
    grid-row: auto;
    min-height: clamp(460px, 126vw, 720px);
  }

  .portrait-image--secondary {
    grid-column: 1;
    grid-row: auto;
    min-height: clamp(240px, 64vw, 420px);
  }

  .portrait-text {
    grid-column: 1;
    grid-row: auto;
  }

  .preview-hero-title {
    line-height: 1.15;
  }
}

@media (max-width: 640px) {
  .rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .room-card-visual {
    aspect-ratio: 1 / 0.78;
  }

  .room-card-body {
    min-height: 128px;
    padding: 13px 12px 14px;
    gap: 5px;
  }

  .room-card-num {
    font-size: 9px;
  }

  .room-card-title {
    font-size: clamp(18px, 6vw, 22px);
    line-height: 1.25;
  }

  .room-card-desc {
    font-size: 12px;
    line-height: 1.45;
  }

  .room-card-arrow {
    font-size: 10px;
    margin-top: auto;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-divider:nth-of-type(2) {
    display: none;
  }

  .stat-number {
    font-size: 36px;
  }

  .timeline-track {
    padding-left: 32px;
  }

  .timeline-node {
    left: -32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .title-line {
    font-size: clamp(24px, 8vw, 38px);
  }

  .preview-hero-caption {
    left: clamp(20px, 5vw, 64px);
    right: auto;
  }

  .closing-title {
    font-size: clamp(24px, 7vw, 34px);
  }

  .preview-closing {
    min-height: max(clamp(780px, 106vh, 980px), 133vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-hero-media img,
  .preview-hero-title .title-line,
  .preview-hero-scroll,
  .preview-hero-caption {
    animation: none;
  }

  .preview-hero-title .title-line {
    opacity: 1;
    transform: none;
  }

  .preview-hero-scroll,
  .preview-hero-caption {
    opacity: 1;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
