/* —— Reference: danielaandmoe.com — warm editorial + hand-drawn —— */
:root {
  --cream: #faf6f0;
  --cream-deep: #f0e8dc;
  --sand: #e8ddd0;
  --blush: #edd9cc;
  --sage: #7a9b8a;
  --sage-light: #d4e4da;
  --terracotta: #c4694f;
  --terracotta-deep: #a8533c;
  --ink: #2a2622;
  --ink-soft: #5c554c;
  --ink-faint: #8a8278;
  --white: #fffcf8;
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans: "Karla", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 4.25rem;
  --scroll-lead: clamp(11rem, 22vh, 17rem);
  --max: 68rem;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 2rem);
}

/* 隐藏默认光标 */
body,
.custom-cursor,
.cursor-trail {
  cursor: none;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* —— Floating doodle lines —— */
.deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  color: var(--terracotta);
  opacity: 0.35;
}

/* —— Custom Cursor Effect —— */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform 0.15s var(--ease), background 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
  will-change: transform;
}

.custom-cursor.is-hovering {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(196, 105, 79, 0.4) 0%, rgba(196, 105, 79, 0.1) 70%, transparent 100%);
  border: 2px solid rgba(196, 105, 79, 0.6);
  mix-blend-mode: normal;
  animation: cursor-glow 1.5s ease-in-out infinite;
}

@keyframes cursor-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(196, 105, 79, 0.4), 0 0 30px rgba(196, 105, 79, 0.2);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    box-shadow: 0 0 25px rgba(196, 105, 79, 0.6), 0 0 50px rgba(196, 105, 79, 0.3);
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.custom-cursor.is-clicking {
  transform: translate(-50%, -50%) scale(0.8);
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease);
  will-change: transform;
}

/* —— 欢迎区域 —— */
.hero-welcome {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  text-align: center;
  overflow: hidden;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.animated-text-container {
  position: relative;
  width: 100%;
  max-width: 1040px;
  height: clamp(240px, 46vw, 470px);
  margin: 0 auto;
}

#textCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.welcome-subtitle {
  margin: 0;
  display: inline-block;
  padding: 0.4rem 0.95rem;
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.16);
  background-image: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  box-shadow: 0 0 0 rgba(196, 105, 79, 0);
  transform: translate3d(var(--subtitle-float-x, 0), var(--subtitle-float-y, 0), 0)
    scale(var(--subtitle-scale, 1));
  transition:
    transform 0.18s var(--ease),
    color 0.18s var(--ease),
    letter-spacing 0.22s var(--ease),
    background-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
  will-change: transform;
}

.welcome-subtitle.is-typing::after {
  content: "";
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 0.18em;
  vertical-align: -0.08em;
  background: currentColor;
  animation: subtitle-caret-blink 0.9s steps(1) infinite;
}

.welcome-subtitle.is-hovered {
  --subtitle-scale: 1.04;
  color: transparent;
  letter-spacing: 0.13em;
  background-color: rgba(255, 252, 248, 0.76);
  background-image:
    radial-gradient(
      circle at var(--subtitle-glow-x, 50%) var(--subtitle-glow-y, 50%),
      #e58d70 0%,
      var(--terracotta) 16%,
      #8a4a38 34%,
      var(--ink) 52%,
      var(--ink-soft) 72%
    );
  -webkit-background-clip: text, border-box;
  background-clip: text, border-box;
  -webkit-text-fill-color: transparent;
  box-shadow: 0 18px 40px rgba(196, 105, 79, 0.16);
}

@keyframes subtitle-caret-blink {
  0%, 48% {
    opacity: 1;
  }
  49%, 100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-subtitle {
    transform: none;
  }
}

.welcome-cat {
  margin-top: 2rem;
  width: clamp(150px, 25vw, 220px);
  animation: welcome-cat-bounce 2s ease-in-out infinite;
}

.welcome-cat-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s var(--ease);
}

@keyframes welcome-cat-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(1deg); }
  75% { transform: translateY(5px) rotate(-1deg); }
}

/* —— 顶部留白 + 滚动提示 —— */
.page-main {
  position: relative;
}

.scroll-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: clamp(4rem, 10vh, 8rem);
  padding-bottom: 1.5rem;
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}

.scroll-lead.is-hidden {
  opacity: 0;
}

.scroll-lead-line {
  display: block;
  width: 1px;
  height: clamp(3rem, 8vh, 5rem);
  background: linear-gradient(to bottom, transparent, var(--terracotta));
  animation: scroll-pulse 2s var(--ease) infinite;
}

.scroll-lead-text {
  margin-top: 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.65); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* 滚动差分层 */
[data-parallax] {
  --parallax-y: 0px;
  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

.parallax-sprite-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.parallax-sprite {
  position: absolute;
}

.parallax-sprite__img {
  width: 100%;
  height: 100%;
  background-image: url("图片/retouch_2026051720050402.png");
  background-repeat: no-repeat;
  border-radius: 22px;
  opacity: var(--sprite-opacity, 0.14);
  filter: saturate(0.95);
  transform: rotate(var(--sprite-rot, 0deg)) scale(var(--sprite-scale, 1));
  transform-origin: center;
  will-change: transform;
  mix-blend-mode: multiply;
}

.parallax-decor-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.parallax-decor {
  position: absolute;
  width: var(--decor-w, clamp(120px, 16vw, 200px));
}

.parallax-decor__img {
  width: 100%;
  height: auto;
  display: block;
  opacity: var(--decor-opacity, 0.14);
  filter: saturate(0.95);
  transform: rotate(var(--decor-rot, 0deg)) scale(var(--decor-scale, 1));
  transform-origin: center;
  mix-blend-mode: multiply;
}

.hero-welcome > :not(.parallax-decor-layer) {
  position: relative;
  z-index: 1;
}

.section > :not(.parallax-decor-layer) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-sprite-layer {
    display: none;
  }

  .parallax-decor-layer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax] {
    transform: none !important;
    will-change: auto;
  }

  .scroll-lead-line {
    animation: none;
  }

  .custom-cursor,
  .cursor-trail {
    display: none;
  }
}

.deco--tl {
  top: calc(var(--header-h) + var(--scroll-lead) * 0.3);
  left: 2%;
  width: min(120px, 18vw);
}

.deco--br {
  bottom: 8%;
  right: 3%;
  width: min(100px, 15vw);
  color: var(--sage);
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(42, 38, 34, 0.08);
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.04em;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 255px 8px 225px 8px / 8px 225px 8px 255px;
  background: var(--white);
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-resume:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 3px 4px 0 var(--sand);
}

.btn-resume svg {
  color: var(--terracotta);
  flex-shrink: 0;
}

.btn-resume:hover svg {
  color: var(--blush);
}

.btn-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-scroll:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 3px 4px 0 var(--sand);
}

.btn-scroll svg {
  color: var(--terracotta);
}

.btn-scroll:hover svg {
  color: var(--blush);
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.site-nav a::before {
  content: "· ";
  opacity: 0;
  transition: opacity 0.2s;
}

.site-nav a:hover::before,
.site-nav a.is-active::before {
  opacity: 1;
  color: var(--terracotta);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* —— Shared typography —— */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 5vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow--center {
  text-align: center;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-title--center {
  text-align: center;
}

.section-intro {
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.75;
}

.section-intro--center {
  text-align: center;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

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

.link-sketch {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.link-sketch:hover {
  color: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
}

.link-sketch--light {
  color: var(--white);
  border-color: rgba(255, 252, 248, 0.6);
}

.link-sketch--light:hover {
  color: var(--white);
  border-color: var(--white);
}

/* —— Hero（参考站：日期 + 分栏巨名 + 照片 + 居中故事） —— */
.hero {
  min-height: calc(100vh - var(--scroll-lead) - var(--header-h));
  min-height: calc(100dvh - var(--scroll-lead) - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2rem;
  text-align: center;
}

.hero-date {
  margin: 0 0 2rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero-names {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.name-stack {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.92;
}

.name-line {
  display: block;
  font-family: var(--serif);
  font-size: clamp(4rem, 14vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.name-line--accent {
  font-style: italic;
  color: var(--terracotta);
  margin-left: clamp(1rem, 8vw, 4rem);
}

.hero-photo {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.photo-stage {
  position: relative;
  padding-top: clamp(4.5rem, 12vw, 6.5rem);
}

/* 猫猫坐在相框上方 */
.cat-seat {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: clamp(160px, 22vw, 220px);
  transform: translateX(-50%);
  pointer-events: none;
}

/* 三阶段猫咪动画 */
.cat-stages {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(180px, 28vw, 260px);
  z-index: 25;
  pointer-events: none;
}

.cat-stage {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}

.cat-stage-1 {
  transform: translateX(-50%) translateY(-30px);
}

.cat-stage-1.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cat-stage-2 {
  width: 70%;
  transform: translateX(-50%) translateY(-40px) rotate(-15deg);
}

.cat-stage-2.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(10px) rotate(-10deg);
}

.cat-stage-2.is-falling {
  animation: cat-fall 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.cat-stage-3 {
  width: 85%;
  transform: translateX(-50%) translateY(20px);
}

.cat-stage-3.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  animation: cat-idle 3s ease-in-out infinite;
}

@keyframes cat-fall {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(10px) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(50px) rotate(-25deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(90px) rotate(-35deg);
  }
}

@keyframes cat-idle {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  25% { transform: translateX(-50%) translateY(-2px) rotate(1deg); }
  75% { transform: translateX(-50%) translateY(2px) rotate(-1deg); }
}

/* 便贴纸落下动画 */
.sticky-note {
  position: absolute;
  inset: 8%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(165deg, #faf0c8 0%, #f3e2a0 100%);
  border: 1.5px solid var(--ink);
  border-radius: 2px 255px 3px 255px / 255px 2px 255px 3px;
  box-shadow: 3px 4px 0 rgba(42, 38, 34, 0.12);
  transform: rotate(-2deg);
  transform-origin: center top;
  transition:
    transform 0.65s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.4s ease 0.2s;
}

.sticky-note.is-falling {
  animation: sticky-fall 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes sticky-fall {
  0% {
    transform: rotate(-2deg) translateY(0);
    opacity: 1;
  }
  100% {
    transform: rotate(30deg) translateY(250px);
    opacity: 0;
  }
}

/* 隐藏不需要的元素 */
.cat-seat,
.cat-doodle-svg,
.cat-head-group,
.cat-paw-swat,
.cat-eyes-group,
.cat-eye-left,
.cat-eye-right,
.cat-on-frame,
.desk-cat,
.cat-body,
.cat-head,
.cat-ear,
.cat-eyes,
.cat-eye,
.cat-pupil,
.cat-nose,
.cat-mouth,
.cat-whiskers,
.cat-whisker,
.cat-paws,
.cat-paw,
.cat-tail,
.cat-doodle,
.cat-paw-hit {
  display: none;
}

.photo-sketch {
  position: relative;
  width: clamp(200px, 28vw, 280px);
  padding: 10px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 6px 8px 0 var(--sand);
  transform: rotate(2deg);
  overflow: visible;
}

.photo-inner {
  position: relative;
  overflow: visible;
  border-radius: 2px;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
}

.avatar-switcher {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 350px;
  z-index: 10;
  pointer-events: none;
}

.avatar-switcher .avatar-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  z-index: 1;
  /* 关键：淡出时增加延迟，确保新旧图片重叠，防止背景透出（闪烁） */
  transition: opacity 0.3s var(--ease), z-index 0s 0.3s;
}

.avatar-switcher .avatar-img.is-active {
  opacity: 1;
  z-index: 2;
  /* 激活时立即显示，不设延迟 */
  transition: opacity 0.3s var(--ease);
}

/* 眨眼图片特殊处理：瞬间切换，无过渡，确保无缝 */
.avatar-img--blink.is-active {
  transition: none !important;
  z-index: 3; /* 眨眼时置于最顶层 */
}

.avatar-img--blink:not(.is-active) {
  transition: none !important;
}

@media (max-width: 640px) {
  .avatar-switcher {
    height: 280px;
  }
}

.photo-inner .avatar-img {
  display: none;
}

/* 便签纸单独定位 */
.hero-photo > .sticky-note {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 90%;
  max-width: 320px;
  height: 80%;
  max-height: 350px;
  transform: translateX(-50%) rotate(-2deg);
  transform-origin: center top;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(165deg, #faf0c8 0%, #f3e2a0 100%);
  border: 1.5px solid var(--ink);
  border-radius: 2px 255px 3px 255px / 255px 2px 255px 3px;
  box-shadow: 3px 4px 0 rgba(42, 38, 34, 0.12);
  transition:
    transform 0.65s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.4s ease 0.2s;
}

.hero-photo > .sticky-note .tape--left {
  left: 15%;
  transform: rotate(-8deg);
  top: -8px;
}

.hero-photo > .sticky-note .tape--right {
  right: 15%;
  transform: rotate(6deg);
  top: -8px;
}

.hero-photo > .sticky-note .sticky-note__text {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.hero-photo > .sticky-note .sticky-note__hint {
  font-size: 0.75rem;
}

.hero-photo > .sticky-note .sticky-note-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
  z-index: 20;
  pointer-events: none;
}

.hero-photo > .sticky-note.is-shaking {
  animation: sticky-shake 0.6s ease-in-out;
}

.hero-photo > .sticky-note.is-falling {
  animation: sticky-fall 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes sticky-shake {
  0%, 100% { transform: translateX(-50%) rotate(-2deg); }
  20% { transform: translateX(-50%) rotate(-8deg); }
  40% { transform: translateX(-50%) rotate(4deg); }
  60% { transform: translateX(-50%) rotate(-6deg); }
  80% { transform: translateX(-50%) rotate(2deg); }
}

@keyframes sticky-fall {
  0% {
    transform: translateX(-50%) rotate(-2deg);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(300px) rotate(32deg);
    opacity: 0;
  }
}

.photo-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--cream-deep);
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
    linear-gradient(160deg, var(--cream-deep), var(--sand));
  transition: opacity 0.5s var(--ease) 0.35s;
}

.photo-stage.is-revealing .photo-cover,
.photo-stage.is-revealed .photo-cover {
  opacity: 0;
  pointer-events: none;
  display: none;
}

/* 便签纸 */
.sticky-note {
  position: absolute;
  inset: 8%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(165deg, #faf0c8 0%, #f3e2a0 100%);
  border: 1.5px solid var(--ink);
  border-radius: 2px 255px 3px 255px / 255px 2px 255px 3px;
  box-shadow: 3px 4px 0 rgba(42, 38, 34, 0.12);
  transform: rotate(-2deg);
  transform-origin: center top;
  transition:
    transform 0.65s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.4s ease 0.2s;
}

.tape {
  position: absolute;
  top: -6px;
  width: 2.2rem;
  height: 0.85rem;
  background: rgba(255, 252, 248, 0.65);
  border: 1px solid rgba(42, 38, 34, 0.15);
  opacity: 0.9;
}

.tape--left {
  left: 12%;
  transform: rotate(-8deg);
}

.tape--right {
  right: 12%;
  transform: rotate(6deg);
}

.sticky-note__text {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 500;
  color: var(--ink);
}

.sticky-note__hint {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* —— 滚动揭晓动画 —— */
.photo-stage.is-swatting .cat-paw-hit {
  animation: paw-swat 0.55s var(--ease) forwards;
}

.photo-stage.is-swatting .cat-seat {
  animation: cat-bounce 0.55s var(--ease);
}

.photo-stage.is-revealing .sticky-note {
  transform: translate(40%, 95%) rotate(32deg);
  opacity: 0;
  pointer-events: none;
}

.photo-stage.is-revealing .photo-cover,
.photo-stage.is-revealed .photo-cover {
  opacity: 0;
  pointer-events: none;
}

.photo-stage.is-revealed .avatar-img {
  transform: scale(1);
}

.photo-stage.is-revealed .sticky-note {
  display: none;
}

@keyframes paw-swat {
  0% { transform: rotate(12deg) translateY(0); }
  35% { transform: rotate(-38deg) translateY(18px) scale(1.1); }
  55% { transform: rotate(-48deg) translateY(22px); }
  100% { transform: rotate(8deg) translateY(4px); }
}

@keyframes cat-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(6px) rotate(-2deg); }
  60% { transform: translateX(-50%) translateY(2px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .photo-stage.is-swatting .cat-paw-hit,
  .photo-stage.is-swatting .cat-seat {
    animation: none;
  }

  .photo-stage.is-revealing .sticky-note {
    transform: none;
    opacity: 0;
  }
}

.photo-deco {
  position: absolute;
  bottom: -12px;
  right: -20px;
  width: 64px;
  height: 64px;
  color: var(--sage);
  transform: rotate(-12deg);
  z-index: 1;
}

.hero-story {
  max-width: 36rem;
  margin: 0 auto;
}

.story-headline {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
}

.story-body {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ink-soft);
}

/* —— Projects —— */
.projects {
  border-top: 1px solid rgba(42, 38, 34, 0.1);
  max-width: none;
  padding-left: clamp(1.25rem, 6vw, 4rem);
  padding-right: clamp(1.25rem, 6vw, 4rem);
}

.projects .section-head {
  max-width: var(--max);
  margin: 0 auto 3rem;
}

.project-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 255px 8px 225px 8px / 8px 225px 8px 255px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project-card:hover {
  transform: translate3d(0, calc(var(--parallax-y, 0px) - 6px), 0) rotate(-0.5deg);
  box-shadow: 8px 10px 0 var(--sand);
}

.project-visual {
  position: relative;
  min-height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-deep);
  border-bottom: 1.5px solid var(--ink);
}

.project-visual--sage {
  background: var(--sage-light);
}

.project-visual--blush {
  background: var(--blush);
}

.project-visual--sand {
  background: var(--sand);
}

.project-icon {
  width: 56px;
  height: 56px;
  color: var(--ink);
  opacity: 0.55;
}

.project-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.project-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.project-body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--ink);
}

.project-body p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink);
}

/* —— Experience —— */
.experience {
  max-width: none;
  background: var(--cream-deep);
  padding-left: clamp(1.25rem, 6vw, 4rem);
  padding-right: clamp(1.25rem, 6vw, 4rem);
}

.experience .section-head {
  max-width: var(--max);
  margin: 0 auto 1rem;
}

/* —— Skills Grid —— */
.skills-grid {
  max-width: var(--max);
  margin: 0 auto 8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 8px 0 var(--sand);
  border-color: var(--terracotta);
}

.skill-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--blush);
  border-radius: 50%;
  color: var(--terracotta);
}

.skill-card-title {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.skill-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.skill-tags li {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  background: var(--cream);
  border: 1px solid rgba(42, 38, 34, 0.12);
  border-radius: 100px;
  color: var(--ink-soft);
  line-height: 1.45;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.skill-tags li small {
  display: block;
  font-size: 0.7rem;
  color: var(--terracotta);
  font-weight: 400;
}

.skill-card:hover .skill-tags li {
  background: var(--white);
  border-color: var(--terracotta);
  color: var(--ink);
}

.section-sub-header {
  max-width: var(--max);
  margin: 0 auto 2rem;
  text-align: center;
}

.section-sub-header .eyebrow {
  margin-bottom: 0.5rem;
}

.section-sub-header .panel-title {
  margin: 0;
}

/* —— Phone Mockup —— */
.phone-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.phone {
  width: 220px;
  height: 400px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.1);
}

.phone-screen {
  width: 100%;
  height: calc(100% - 20px);
  background: #fff;
  border-radius: 19px;
  overflow: hidden;
  position: relative;
}

.phone-home-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px auto 0;
  cursor: pointer;
  transition: background 0.3s;
}

.phone-home-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* —— Xiaohongshu App —— */
.xiaohongshu-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.xiaohongshu-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  background: #fff;
}

.status-time {
  font-size: 10px;
  font-weight: 600;
  color: #000;
}

.status-icons {
  display: flex;
  gap: 4px;
}

.status-icons svg {
  width: 12px;
  height: 12px;
  color: #000;
}

.xiaohongshu-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 2px 6px 4px;
  background: #fff;
  border-bottom: none;
  writing-mode: horizontal-tb;
  width: 100%;
}

.header-menu {
  display: none;
}

.header-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 140px;
  padding: 0 4px;
}

.header-tabs .tab {
  font-size: 12px;
  font-weight: 500;
  color: #999;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  letter-spacing: normal;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  direction: ltr;
  padding: 2px 6px;
  flex: 1;
  text-align: center;
}

.header-tabs .tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: #ff4757;
  border-radius: 1px;
  transition: width 0.25s ease;
}

.header-tabs .tab.active {
  color: #000;
}

.header-tabs .tab.active::after {
  width: 24px;
}

.header-tabs .tab:hover {
  color: #333;
}

.header-search {
  display: none;
}

.xiaohongshu-categories {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  overflow-x: auto;
  white-space: nowrap;
}

.xiaohongshu-categories::-webkit-scrollbar {
  display: none;
}

.category {
  font-size: 14px;
  color: #666;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f5f5f5;
  transition: all 0.25s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.category.active {
  background: #ff4757;
  color: #fff;
}

.category:hover {
  background: #e8e8e8;
}

.category.active:hover {
  background: #ff3847;
}

.xiaohongshu-categories svg {
  width: 16px;
  height: 16px;
  color: #999;
  flex-shrink: 0;
}

.xiaohongshu-feed {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f8f8f8;
  position: relative;
  min-height: 0;
  cursor: default;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f0f0f0;
}

.xiaohongshu-feed::-webkit-scrollbar {
  width: 4px;
}

.xiaohongshu-feed::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.xiaohongshu-feed::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.xiaohongshu-feed::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding-bottom: 10px;
}

.grid-item {
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.grid-image {
  position: relative;
  padding-bottom: 100%;
  background: #f5f5f5;
}

.grid-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-image img[src=""] {
  display: none;
}

.like-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.like-badge:hover {
  background: rgba(0, 0, 0, 0.7);
}

.like-icon {
  width: 14px;
  height: 14px;
  fill: rgba(255, 255, 255, 0.9);
  transition: all 0.2s;
}

.like-badge.liked .like-icon {
  fill: #ff4757;
  animation: like-pop 0.3s ease;
}

@keyframes like-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.like-count {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.like-badge.liked .like-count {
  color: #ff4757;
}

.grid-caption {
  padding: 10px 8px;
  font-size: 12px;
  color: #333;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #fff;
}

.xiaohongshu-nav {
  display: flex;
  justify-content: space-around;
  padding: 4px 0 8px;
  border-top: 1px solid #f0f0f0;
  background: white;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  color: #999;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-label {
  font-size: 12px;
  font-weight: 400;
}

.nav-item.active {
  color: #ff4757;
}

.nav-item.active .nav-label {
  font-weight: 600;
}

.nav-item.nav-add {
  width: 36px;
  height: 36px;
  background: #ff4757;
  border-radius: 50%;
  color: white;
  box-shadow: 0 3px 10px rgba(255, 71, 87, 0.4);
  margin-top: -6px;
}

.add-label {
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.nav-item:hover {
  color: #ff6b9d;
}

.nav-item.nav-add:hover {
  transform: scale(1.1);
}

.xiaohongshu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8f8f8;
  min-height: 0;
}

.xiaohongshu-feed {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f8f8f8;
  position: relative;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.xiaohongshu-profile {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  min-height: 0;
}

.profile-header {
  padding: 12px;
  display: block;
  text-align: center;
}

.profile-avatar {
  margin-bottom: 8px;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8e8e8;
  margin: 0 auto;
}

.profile-info {
  margin-bottom: 8px;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 3px 0;
}

.profile-id,
.profile-location,
.profile-bio {
  font-size: 10px;
  color: #999;
  margin: 1.5px 0;
}

.profile-buttons {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.profile-follow,
.profile-chat {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.profile-follow {
  background: #ff4757;
  color: #fff;
}

.profile-chat {
  background: #f0f0f0;
  color: #333;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  padding: 4px 0 6px;
  border-top: none;
  border-bottom: none;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #000;
}

.stat-label {
  font-size: 7px;
  color: #999;
}

.profile-tabs {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  justify-content: center;
}

.tab-item {
  text-align: center;
  font-size: 11px;
  color: #999;
  padding: 5px 12px;
  position: relative;
  cursor: pointer;
}

.tab-item.active {
  color: #000;
  font-weight: 500;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #ff4757;
  border-radius: 1px;
}

.profile-content {
  padding: 4px 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.profile-post {
  background: #f5f5f5;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-post:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-post.demo-highlight {
  animation: demoHighlight 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 3px #ff4757, 0 4px 16px rgba(255, 71, 87, 0.4);
  will-change: transform, box-shadow;
}

@keyframes demoHighlight {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    opacity: 1;
  }
  30% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(255, 71, 87, 0.3);
    opacity: 1;
  }
  60% {
    transform: scale(0.98);
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px #ff4757, 0 4px 16px rgba(255, 71, 87, 0.4);
    opacity: 1;
  }
}

.post-image {
  width: 50px;
  height: 50px;
  background: #e8e8e8;
  position: relative;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}

.post-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-footer {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 6px;
  background: transparent;
  min-height: auto;
}

.post-caption {
  font-size: 10px;
  color: #333;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  margin-bottom: 4px;
}

.post-float-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.post-float-overlay.show {
  display: block;
  pointer-events: auto;
}

.post-float-box {
  position: absolute;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border: none;
  border-radius: 0 16px 16px 0;
  padding: 0;
  width: 280px;
  max-height: none;
  height: auto;
  box-shadow: 
    inset -2px 0 10px rgba(0, 0, 0, 0.05),
    2px 0 25px rgba(0, 0, 0, 0.12),
    8px 8px 32px rgba(42, 38, 34, 0.08);
  animation: slideOutFromPhone 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border-left: 2px solid rgba(255, 71, 87, 0.15);
}

@keyframes slideOutFromPhone {
  0% {
    opacity: 0;
    transform: translateX(-100%) scale(0.98);
    box-shadow: 
      inset -2px 0 10px rgba(0, 0, 0, 0.05),
      2px 0 10px rgba(0, 0, 0, 0.05);
  }
  50% {
    opacity: 1;
    box-shadow: 
      inset -2px 0 10px rgba(0, 0, 0, 0.05),
      4px 0 20px rgba(0, 0, 0, 0.1),
      10px 10px 30px rgba(42, 38, 34, 0.08);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    box-shadow: 
      inset -2px 0 10px rgba(0, 0, 0, 0.05),
      2px 0 25px rgba(0, 0, 0, 0.12),
      8px 8px 32px rgba(42, 38, 34, 0.08);
  }
}

.post-float-box.arrow-left {
  border-left: 3px solid var(--terracotta);
  border-right: none;
}

.post-float-box.arrow-right {
  border-right: 3px solid var(--terracotta);
  border-left: none;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15), 0 8px 32px rgba(42, 38, 34, 0.1);
  transform-origin: top right;
}

@keyframes floatBoxSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.post-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--sand);
  background: var(--cream);
  border-radius: 16px 16px 0 0;
}

.post-float-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--serif);
}

.post-float-close {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-faint);
  transition: all 0.2s ease;
  border: none;
}

.post-float-close:hover {
  background: var(--sand);
  color: var(--ink);
}

.post-float-content {
  flex: 1;
  padding: 14px 16px;
  overflow-y: auto;
  min-height: 0;
  background: var(--white);
  flex-shrink: 0;
}

.post-float-content::-webkit-scrollbar {
  width: 4px;
}

.post-float-content::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 2px;
}

.post-float-content::-webkit-scrollbar-thumb {
  background: var(--sand);
  border-radius: 2px;
}

.post-float-content::-webkit-scrollbar-thumb:hover {
  background: var(--ink-faint);
}

.post-float-content h3 {
  font-size: 12px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-weight: 500;
  font-family: var(--sans);
}

.post-float-summary {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-family: var(--sans);
  white-space: pre-wrap;
  word-break: break-word;
}

.post-float-tags-wrapper {
  padding: 10px 16px;
  background: var(--cream);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  flex-shrink: 0;
}

.post-float-tags {
  font-size: 11px;
  color: var(--terracotta);
  font-family: var(--sans);
  word-break: break-all;
  line-height: 1.6;
}

.post-float-stats {
  display: flex;
  gap: 16px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--sand);
  background: var(--cream);
  flex-shrink: 0;
}
  border-radius: 0 0 16px 16px;
}

.post-float-stat {
  text-align: center;
  flex: 1;
}

.post-float-stat-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--terracotta);
  font-family: var(--serif);
}

.post-float-stat-label {
  font-size: 9px;
  color: var(--ink-faint);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-like {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 1px 3px;
  border-radius: 6px;
  transition: background 0.15s;
}

.post-like:hover {
  background: rgba(0, 0, 0, 0.05);
}

.post-like-icon {
  width: 11px;
  height: 11px;
  fill: #999;
  transition: all 0.15s;
}

.post-like.liked .post-like-icon {
  fill: #ff4757;
  animation: like-pop 0.3s ease;
}

.post-like-count {
  font-size: 8px;
  color: #999;
  font-weight: 500;
}

.post-like.liked .post-like-count {
  color: #ff4757;
}

@keyframes like-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* —— Learning Timeline (Vertical) —— */
.learning-timeline {
  max-width: var(--max);
  margin: 0 auto 12rem;
  padding: 0 1rem;
}

.timeline-vertical {
  position: relative;
}

.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    var(--terracotta) 0%,
    var(--blush) 50%,
    var(--sage-light) 100%
  );
  border-radius: 2px;
  opacity: 0.6;
}

.timeline-empty-slot {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 6rem;
}

.timeline-empty-slot:last-child {
  margin-bottom: 0;
}

.timeline-empty-slot:nth-child(odd) {
  flex-direction: row;
  justify-content: flex-end;
}

.timeline-empty-slot:nth-child(even) {
  flex-direction: row;
  justify-content: flex-start;
}

.timeline-card {
  flex: 0 0 calc(50% - 3rem);
  max-width: calc(50% - 3rem);
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 255px 12px 225px 12px / 12px 225px 12px 255px;
  padding: 1.5rem 1.75rem;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--cream);
  border: 2.5px solid var(--terracotta);
  border-radius: 50%;
  z-index: 2;
  transition: all 0.35s var(--ease);
  box-shadow: 0 0 0 4px rgba(196, 105, 79, 0.08);
}

.timeline-empty-slot:nth-child(odd) .timeline-dot {
  border-color: var(--terracotta);
}

.timeline-empty-slot:nth-child(even) .timeline-dot {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(122, 155, 138, 0.08);
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: var(--terracotta);
  border-radius: 50%;
  opacity: 0.35;
  transition: all 0.35s var(--ease);
}

.timeline-empty-slot:nth-child(even) .timeline-dot::before {
  background: var(--sage);
}

.timeline-empty-slot:hover .timeline-dot {
  transform: translateX(-50%) scale(1.15);
  box-shadow: 0 0 0 6px rgba(196, 105, 79, 0.15);
}

.timeline-empty-slot:nth-child(even):hover .timeline-dot {
  box-shadow: 0 0 0 6px rgba(122, 155, 138, 0.15);
}

.timeline-empty-slot:hover .timeline-dot::before {
  opacity: 0.8;
  transform: translate(-50%, -50%) scale(1.3);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--terracotta);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.timeline-empty-slot:nth-child(even) .timeline-card::before {
  background: var(--sage);
  left: auto;
  right: 0;
}

.timeline-empty-slot:nth-child(odd) .timeline-card:hover {
  transform: translateX(8px) rotate(-0.3deg);
  box-shadow: 6px 8px 0 var(--sand);
}

.timeline-empty-slot:nth-child(even) .timeline-card:hover {
  transform: translateX(-8px) rotate(0.3deg);
  box-shadow: -6px 8px 0 var(--sand);
}

.timeline-card:hover::before {
  opacity: 1;
}

.timeline-card--empty {
  background: linear-gradient(135deg, var(--white) 0%, var(--cream-deep) 100%);
}

.timeline-card--empty:hover {
  background: linear-gradient(135deg, var(--blush) 0%, var(--white) 100%);
}

.timeline-date {
  display: inline-block;
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--terracotta-deep);
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.8rem;
  background: rgba(196, 105, 79, 0.12);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}

.timeline-empty-slot:nth-child(even) .timeline-date {
  color: var(--sage);
  background: rgba(122, 155, 138, 0.08);
}

.timeline-card:hover .timeline-date {
  background: rgba(196, 105, 79, 0.15);
}

.timeline-empty-slot:nth-child(even) .timeline-card:hover .timeline-date {
  background: rgba(122, 155, 138, 0.15);
}

.timeline-title {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.timeline-desc {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.7;
}

.timeline-placeholder {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.timeline-plus {
  width: 28px;
  height: 28px;
  color: var(--ink-faint);
  opacity: 0.3;
  transition: all 0.3s var(--ease);
}

.timeline-card:hover .timeline-plus {
  opacity: 0.6;
  transform: rotate(90deg);
  color: var(--terracotta);
}

.timeline-empty-slot:nth-child(even) .timeline-card:hover .timeline-plus {
  color: var(--sage);
}

.timeline-image-container {
  margin-top: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
}

.timeline-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .learning-timeline {
    padding: 0;
  }

  .timeline-vertical::before {
    left: 21px;
    transform: none;
  }

  .timeline-empty-slot {
    flex-direction: row !important;
  }

  .timeline-empty-slot:nth-child(even) {
    flex-direction: row !important;
  }

  .timeline-card {
    flex: 1 !important;
    max-width: none !important;
  }

  .timeline-dot {
    margin: 0 1rem !important;
  }

  .timeline-card {
    padding: 1.25rem 1.25rem;
    max-width: none;
  }

  .timeline-empty-slot:nth-child(odd) .timeline-card:hover,
  .timeline-empty-slot:nth-child(even) .timeline-card:hover {
    transform: translateX(4px);
    box-shadow: 4px 6px 0 var(--sand);
  }

  .timeline-empty-slot:nth-child(even) .timeline-card::before {
    left: 0 !important;
    right: auto !important;
  }
}



.panel-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
}

.panel-text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: 1rem 0;
  border-top: 1px solid rgba(42, 38, 34, 0.12);
}

.timeline li:first-child {
  border-top: none;
  padding-top: 0;
}

.timeline time {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 0.25rem;
}

.timeline strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.timeline span {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--ink-soft);
}

/* —— Contact —— */
.contact {
  text-align: center;
  padding-bottom: 5rem;
  border-top: 1px solid rgba(42, 38, 34, 0.1);
}

.contact-deco {
  display: block;
  width: min(200px, 50%);
  margin: 0 auto 2rem;
  color: var(--sage);
  opacity: 0.6;
}

.contact-lead {
  max-width: 28rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  padding: 0.6rem 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.contact-pill:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.contact-pill svg {
  color: var(--terracotta);
}

.contact-pill:hover svg {
  color: var(--blush);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
}

.footer-note a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  --reveal-y: 28px;
  transform: translate3d(0, calc(var(--parallax-y, 0px) + var(--reveal-y)), 0);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  --reveal-y: 0px;
}

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

@media (max-width: 640px) {
  .hero-names {
    flex-direction: column;
    align-items: center;
  }

  .name-stack {
    align-items: center;
  }

  .name-line--accent {
    margin-left: 0;
  }

  .photo-sketch {
    transform: rotate(0);
  }

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

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

  .nav-toggle {
    display: flex;
  }

  .btn-resume {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  .btn-resume span {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(42, 38, 34, 0.1);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }
}

/* —— Carousel —— */
.timeline-with-text {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

.timeline-with-text.timeline-reverse {
  justify-content: flex-end;
}

.timeline-text-content {
  flex: 0 0 calc(50% - 3rem);
  padding: 1.5rem 1.75rem;
}

.timeline-with-text:nth-child(odd) .timeline-text-content {
  margin-left: 0;
}

.timeline-with-text:nth-child(even) .timeline-text-content {
  margin-left: 3.5rem;
}

.timeline-with-text .timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  margin: 0;
}

.timeline-card--carousel {
  flex: 0 0 calc(50% - 3rem);
  padding: 1rem;
}

.timeline-card--image {
  flex: 0 0 calc(45% - 2rem);
  padding: 1rem;
  margin-right: 1rem;
}

.timeline-card--image .timeline-image-container {
  margin-top: 0;
}

.timeline-card--fan-stack {
  flex: 0 0 calc(45% - 2rem);
  padding: 1.5rem;
  margin-right: 1rem;
}

.timeline-spaced {
  margin-top: 12rem;
}

.timeline-card--double-image {
  flex: 0 0 calc(50% - 3rem);
  padding: 1rem;
}

.double-image-container {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.double-image {
  flex: 1;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.double-image:hover {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(199, 89, 78, 0.2), 4px 8px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.timeline-card--coming-soon {
  flex: 0 0 calc(50% - 3rem);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.coming-soon-text {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.2;
}

.coming-soon-sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.5em;
  margin-top: 1rem;
  opacity: 0.7;
}

.fan-container {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.fan-image {
  position: absolute;
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center bottom;
  cursor: pointer;
  border: 3px solid transparent;
}

.fan-image:hover {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(199, 89, 78, 0.2), 4px 8px 20px rgba(0, 0, 0, 0.25);
  transform-origin: center bottom;
}

.fan-container:hover .fan-image:hover {
  transform: scale(1.08);
}

.fan-container:hover .fan-image-1:hover {
  transform: rotate(-30deg) translateX(-60px) translateY(-20px) scale(1.08);
}

.fan-container:hover .fan-image-2:hover {
  transform: rotate(-15deg) translateX(-35px) translateY(-10px) scale(1.08);
}

.fan-container:hover .fan-image-3:hover {
  transform: rotate(15deg) translateX(35px) translateY(-10px) scale(1.08);
}

.fan-container:hover .fan-image-4:hover {
  transform: rotate(30deg) translateX(60px) translateY(-20px) scale(1.08);
}

.fan-image-1 {
  transform: rotate(-15deg) translateX(-30px);
  z-index: 4;
}

.fan-image-2 {
  transform: rotate(-8deg) translateX(-15px);
  z-index: 3;
}

.fan-image-3 {
  transform: rotate(8deg) translateX(15px);
  z-index: 2;
}

.fan-image-4 {
  transform: rotate(15deg) translateX(30px);
  z-index: 1;
}

.fan-container:hover .fan-image-1 {
  transform: rotate(-30deg) translateX(-60px) translateY(-20px);
}

.fan-container:hover .fan-image-2 {
  transform: rotate(-15deg) translateX(-35px) translateY(-10px);
}

.fan-container:hover .fan-image-3 {
  transform: rotate(15deg) translateX(35px) translateY(-10px);
}

.fan-container:hover .fan-image-4 {
  transform: rotate(30deg) translateX(60px) translateY(-20px);
}

/* —— Image Viewer Modal —— */
.image-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 38, 34, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 10000;
  cursor: pointer;
}

.image-viewer-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.image-viewer-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.image-viewer-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.image-viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.image-viewer-image {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: zoomIn 0.3s ease;
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* —— Project Detail Modal —— */
.project-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 38, 34, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.project-detail-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.project-detail-box {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 8px 32px 8px 32px / 32px 8px 32px 8px;
  max-width: 70rem;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 12px 0 rgba(196, 105, 79, 0.15);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease);
}

.project-detail-overlay.show .project-detail-box {
  transform: translateY(0) scale(1);
}

.project-detail-header {
  padding: 2rem 2.25rem 1.5rem;
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--cream-deep) 100%);
}

.project-detail-title-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-phone-screen-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
  align-items: center;
}

.project-phone-screen-btn {
  padding: 0.5rem 0.875rem;
  border: 1.5px solid var(--sand);
  background: var(--white);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.project-phone-screen-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}

.project-phone-screen-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.project-phone-screen-cancel-btn {
  border-color: var(--sand);
  color: var(--ink);
  opacity: 0.7;
}

.project-phone-screen-cancel-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  opacity: 1;
}

.project-detail-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(196, 105, 79, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.project-detail-title {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.project-detail-date {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink);
}

.project-detail-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s;
  flex-shrink: 0;
}

.project-detail-close:hover {
  transform: rotate(90deg);
  background: var(--terracotta);
}

.project-detail-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.project-detail-content {
  padding: 2rem 2.25rem;
  padding-right: 10rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-detail-video-panel {
  width: 400px;
  padding: 2rem;
  background: var(--cream-deep);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 1.5px solid var(--sand);
  overflow-y: auto;
  overflow-x: visible;
  flex-shrink: 0;
}

.project-detail-phone-panel {
  width: 400px;
  padding: 2rem;
  background: var(--cream-deep);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1.5px solid var(--sand);
  overflow-y: auto;
  overflow-x: visible;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
}

.phone-mockup-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  align-items: center;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  margin: 0;
  box-shadow: 0 16px 40px rgba(42, 38, 34, 0.25);
  position: relative;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen-content {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.phone-screen-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-screen-label {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.project-video-placeholder {
  aspect-ratio: 4/3;
  background: var(--white);
  border: 1.5px dashed var(--sand);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(42, 38, 34, 0.08);
  z-index: 1;
  width: 100%;
}

.project-video-placeholder:hover {
  /* 完全禁用 CSS hover，避免与 JS 冲突 */
}

.project-video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.project-video-label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 0.5rem;
  font-weight: 400;
}

.project-video-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--terracotta);
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(42, 38, 34, 0.2));
}

.project-video-placeholder.has-video svg {
  position: relative;
  z-index: 2;
}

.project-video-placeholder.has-video::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 38, 34, 0.3);
  z-index: 1;
}

.project-video-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s var(--ease);
}

.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.video-play-icon {
  width: 48px;
  height: 48px;
  color: var(--terracotta);
  z-index: 2;
  transition: opacity 0.3s var(--ease);
  filter: drop-shadow(0 2px 4px rgba(42, 38, 34, 0.2));
}

.project-detail-content::-webkit-scrollbar {
  width: 8px;
}

.project-detail-content::-webkit-scrollbar-track {
  background: var(--cream-deep);
  border-radius: 4px;
}

.project-detail-content::-webkit-scrollbar-thumb {
  background: var(--ink-faint);
  border-radius: 4px;
  transition: background 0.2s;
}

.project-detail-content::-webkit-scrollbar-thumb:hover {
  background: var(--ink-soft);
}

.project-detail-role {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(122, 155, 138, 0.08);
  border-radius: 8px;
}

.project-detail-section {
  margin-bottom: 2.5rem;
}

.project-detail-section-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed var(--sand);
}

.project-detail-feature {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.project-detail-feature-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--terracotta);
  margin-top: 0.15rem;
}

.project-detail-feature-content {
  flex: 1;
}

.project-detail-feature-title {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.project-detail-feature-desc {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.8;
  margin: 0;
}

.project-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-detail-tag-item {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 100px;
  letter-spacing: 0.04em;
  transition: all 0.2s var(--ease);
}

.project-detail-tag-item:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .project-detail-overlay {
    padding: 1rem;
  }
  
  .project-detail-box {
    max-height: 90vh;
    border-radius: 8px 20px 8px 20px / 20px 8px 20px 8px;
  }
  
  .project-detail-header {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  
  .project-detail-title {
    font-size: 1.5rem;
  }
  
  .project-detail-content {
    padding: 1.5rem 1.25rem;
  }
}

.carousel-container {
  position: relative;
  flex: 0 0 55%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-deep);
}

.carousel-images {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 252, 248, 0.85);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s var(--ease);
  opacity: 0;
}

.timeline-card--carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
}

.carousel-btn--prev {
  left: 8px;
}

.carousel-btn--next {
  right: 8px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 252, 248, 0.5);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.carousel-dot.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: scale(1.2);
}

.carousel-dot:hover {
  background: var(--blush);
}

.carousel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}

.carousel-content .timeline-date {
  margin-bottom: 0.75rem;
}

.carousel-content .timeline-title {
  margin-bottom: 0.75rem;
}

.carousel-content .timeline-desc {
  margin-bottom: 0;
  transition: opacity 0.3s var(--ease);
}

@media (max-width: 768px) {
  .timeline-card--carousel {
    flex-direction: column;
    padding: 1rem;
  }

  .carousel-container {
    flex: none;
    width: 100%;
  }

  .carousel-content {
    padding: 0.75rem 0 0;
  }

  .carousel-btn {
    opacity: 1;
    width: 28px;
    height: 28px;
  }

  .carousel-btn svg {
    width: 14px;
    height: 14px;
  }
}
