:root {
  --pink: #f7b8c8;
  --pink-deep: #e8789a;
  --pink-soft: #fde4ec;
  --blue: #bfd8f2;
  --blue-soft: #e6f0fb;
  --cream: #fbf3e8;
  --card: rgba(255, 253, 249, 0.82);
  --card-solid: #fffdf9;
  --ink: #4a3f3d;
  --ink-soft: #7d706c;
  --ink-mute: #a69a95;
  --line: rgba(74, 63, 61, 0.08);
  --berry: #8c3b55;
  --berry-deep: #6f2c42;
  --shadow: 0 16px 48px rgba(232, 120, 154, 0.16), 0 2px 8px rgba(74, 63, 61, 0.06);
  --shadow-sm: 0 6px 20px rgba(232, 120, 154, 0.12);
  --radius: 26px;
  --radius-sm: 14px;
  --maxw: 1160px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fdf7f1;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

/* 背景：粉 → 米 → 浅蓝 */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #fde8ef 0%, #fdf6ee 50%, #e9f1fb 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.75;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob--pink { width: 52vw; height: 52vw; background: #f9c2d2; top: -12vw; left: -10vw; }
.blob--blue { width: 48vw; height: 48vw; background: #c7dcf4; top: 20vh; right: -14vw; animation-delay: -6s; }
.blob--cream { width: 50vw; height: 50vw; background: #fdecd6; bottom: -16vw; left: 22vw; animation-delay: -12s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, 5vh) scale(1.08); }
}

/* 导航 */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}
.nav {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.nav__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.nav__brand { font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav__link {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.nav__link:hover { color: var(--ink); background: var(--pink-soft); }
.nav__link.is-active { color: #fff; background: var(--ink); }
.nav__cta { flex-shrink: 0; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #5a4d4b; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--pink-soft); }
.btn--light { background: #fff; color: var(--berry); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }

/* 通用 */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 40px;
  scroll-margin-top: 96px;
}
.section__head { text-align: center; margin-bottom: 40px; }
.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--pink-deep);
}
.section__label--light { color: var(--pink); }
.section__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.25; margin-top: 8px; }
.section__sub { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }

.card {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--berry);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.chip--blue { background: var(--blue-soft); color: #3d5a7a; }

/* 首页 */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 130px;
  padding-bottom: 90px;
  position: relative;
}

.hero__text {
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.hero__title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-top: 22px;
}
.hero__role {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  color: var(--pink-deep);
  margin-top: 18px;
}
.hero__tagline {
  margin-top: 26px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  display: inline-block;
}
.hero__tagline-label { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.hero__bio { margin-top: 20px; font-size: 15.5px; color: var(--ink-soft); max-width: 520px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}
.tag:hover { transform: translateY(-2px); background: var(--pink-soft); }
.tag:nth-child(3n+1) { color: var(--berry); }
.tag:nth-child(3n+2) { color: #3d5a7a; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 440px;
}
.stage {
  position: relative;
  width: 400px;
  height: 500px;
  z-index: 2;
}
.stage__circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eaf2fc, var(--blue) 75%);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.35), var(--shadow);
}
.stage__img {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 480px;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(74, 63, 61, 0.18));
}
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.7);
  z-index: 1;
  animation: float 7s ease-in-out infinite;
}
.bubble--1 { width: 70px; height: 70px; top: 6%; left: 6%; }
.bubble--2 { width: 38px; height: 38px; top: 18%; right: 8%; animation-delay: -2s; }
.bubble--3 { width: 26px; height: 26px; bottom: 14%; left: 14%; animation-delay: -4s; }
.bubble--4 { width: 48px; height: 48px; bottom: 8%; right: 20%; animation-delay: -1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.now-card {
  position: absolute;
  left: -2%;
  bottom: 14%;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  max-width: 190px;
}
.now-card__label { font-size: 10px; font-weight: 800; letter-spacing: 2px; color: var(--pink-deep); }
.now-card strong { font-size: 14px; }
.now-card span:last-child { color: var(--ink-soft); }
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-mute);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 教育背景 */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.edu-card { overflow: hidden; display: flex; flex-direction: column; }
.edu-card__media {
  position: relative;
  margin: 16px 16px 0;
  aspect-ratio: 4 / 3;
}
.edu-card__media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}
.edu-card__seal {
  position: absolute;
  right: 16px;
  bottom: -24px;
  width: clamp(64px, 7vw, 76px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(74, 63, 61, 0.12);
}
.edu-card__logo { width: 100%; height: auto; object-fit: contain; border-radius: 50%; }
.edu-card__body { padding: 40px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.edu-card__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.edu-card__school { font-size: clamp(20px, 5.6vw, 24px); font-weight: 800; margin-top: 4px; }
.edu-card__major { font-size: 15px; font-weight: 700; color: var(--pink-deep); }
.edu-card__motto {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.edu-card__motto-label { flex-shrink: 0; font-size: 12px; color: var(--ink-soft); }
.edu-card__motto-text {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 1em;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.edu-card__motto-text > span { white-space: nowrap; }
.edu-card__facts { display: grid; grid-template-columns: 72px 1fr; gap: 8px 12px; font-size: 14px; margin: 8px 0 16px; }
.edu-card__facts dt { font-weight: 800; color: var(--ink); }
.edu-card__facts dd { color: var(--ink-soft); }

/* 实习经历：时间轴 */
.gallery__arrow:focus-visible, .gallery__image:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }
.timeline { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding: 0 0 16px; }
.timeline-viewport { padding: 0 8px; margin: 0 -8px; min-width: 0; }
.timeline-viewport:focus-visible, .gallery__track:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; border-radius: 16px; }
.timeline__item { min-width: 0; }
.timeline__item[hidden] { display: none; }
.exp-card { padding: 26px; }
.exp-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.exp-card__who { display: flex; flex-wrap: wrap; gap: 8px; }
.who {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  background: var(--ink);
  color: #fff;
}
.who:nth-child(2) { background: var(--pink-soft); color: var(--berry); }
.who:nth-child(3) { background: var(--blue-soft); color: #3d5a7a; }
.exp-card__summary { margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); }

.exp-card__list { margin-top: 22px; display: grid; gap: 18px; }
.exp-card__list li {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}
.exp-card__list h4 { font-size: 15.5px; font-weight: 800; }
.exp-card__list p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--pink-soft);
  color: var(--berry);
  font-size: 12.5px;
  font-weight: 700;
}
.stat b { font-size: 16px; font-weight: 900; white-space: nowrap; }

.works { display: grid; gap: 24px; }
.work-card { overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; }
.work-card__cover { background: #fff; border: 0; padding: 20px; cursor: zoom-in; display: block; width: 100%; }
.work-card__cover img { width: 100%; height: auto; object-fit: contain; }
.work-card__body { padding: 30px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.work-card__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.work-card__title { font-size: 25px; font-weight: 800; }
.work-card__desc { font-size: 14px; color: var(--ink-soft); }
.work-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* 技能与爱好 */
.archive { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; padding: 48px; align-items: center; }
.archive__deck-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.archive__stack { position: relative; width: min(100%, 260px); height: 320px; margin: 20px 0 24px; }
.archive__back { position: absolute; inset: 0; border: 2px solid #fff; border-radius: 22px; box-shadow: var(--shadow-sm); }
.archive__back--last { background: var(--blue); transform: translate(18px, 0) rotate(9deg); }
.archive__back--middle { background: var(--pink); transform: translate(-14px, 0) rotate(-8deg); }
.archive__back--front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.35) 12px 13px), var(--blue-soft);
  color: #3d5a7a;
  outline: 1px solid rgba(61, 90, 122, 0.16);
  outline-offset: -12px;
}
.archive__monogram { width: 90px; height: 90px; border-radius: 50%; border: 1px solid rgba(61, 90, 122, 0.2); display: grid; place-items: center; font-size: 26px; font-weight: 800; background: rgba(255, 255, 255, 0.5); margin-bottom: 18px; }
.archive__back-title { font-size: 25px; font-weight: 900; letter-spacing: 4px; }
.archive__back-sub { font-size: 11px; letter-spacing: 3px; margin-top: 6px; }
.archive__back-count { font-size: 11px; letter-spacing: 2px; margin-top: 26px; }
.archive__collection { font-size: 14px; color: var(--ink-soft); }
.archive__reset { padding: 4px 12px; border: 0; background: transparent; color: var(--ink-soft); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.archive__progress { font-size: 12px; color: var(--ink-soft); }
.archive__result { min-width: 0; }
.archive-card { min-height: 520px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card-solid); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.archive-card[hidden] { display: none; }
.archive-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--ink-soft); }
.archive-card__emblem { width: 140px; height: 140px; margin: 28px auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--pink-soft); border: 10px solid #fff; outline: 1px solid var(--pink); color: var(--berry); font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.archive-card:nth-child(2) .archive-card__emblem { background: var(--blue-soft); outline-color: var(--blue); color: #3d5a7a; font-size: 20px; }
.archive-card:nth-child(3) .archive-card__emblem { background: var(--cream); outline-color: var(--pink); }
.archive-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.archive-card ul { display: grid; gap: 10px; }
.archive-card li { position: relative; padding-left: 16px; font-size: 14px; color: var(--ink-soft); }
.archive-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink-deep);
}
.archive-card__photo { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 340px; margin: 18px 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; flex: 1; }
.archive-card__photo img { width: auto; height: auto; max-width: 100%; max-height: 390px; object-fit: contain; border-radius: 12px; }
.archive-card--hobby h3 { text-align: center; margin-bottom: 0; }
.archive__hint { min-height: 40px; margin-top: 16px; text-align: center; font-size: 13px; color: var(--ink-soft); }
button:focus-visible, a:focus-visible { outline: 2px solid #6f9bd6; outline-offset: 4px; }

/* 联系我 */
.contact {
  position: relative;
  padding: 56px clamp(28px, 6vw, 72px) 72px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(232, 120, 154, 0.55), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(191, 216, 242, 0.25), transparent 45%),
    linear-gradient(135deg, var(--berry), var(--berry-deep));
  box-shadow: 0 30px 80px rgba(140, 59, 85, 0.35);
  overflow: hidden;
}
.contact__title { font-size: clamp(30px, 4.6vw, 48px); font-weight: 900; line-height: 1.25; margin-top: 14px; }
.contact__sub { margin-top: 16px; max-width: 520px; color: rgba(255, 255, 255, 0.8); font-size: 15px; }
.contact__email { margin-top: 20px; font-size: clamp(16px, 2vw, 20px); font-weight: 700; overflow-wrap: anywhere; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact__back {
  position: absolute;
  right: clamp(28px, 6vw, 72px);
  bottom: 72px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}
.footer { text-align: center; margin-top: 36px; font-size: 12px; color: var(--ink-mute); letter-spacing: 1px; }

/* 灯箱 / toast */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(40, 33, 31, .92); backdrop-filter: blur(10px); padding: 72px 24px 24px; overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox__scroll { height: 100%; overflow: auto; overscroll-behavior: contain; }
.lightbox__scroll figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 14px; width: 100%; height: 100%; margin: 0 auto; }
.lightbox img { width: auto; max-width: min(100%, 1100px); max-height: 100%; height: auto; margin: 0; object-fit: contain; background: #fff; border-radius: 16px; }
.lightbox figcaption { max-width: min(100%, 760px); margin: 0; color: #fff; font-size: 14px; line-height: 1.8; text-align: center; }
.lightbox figcaption:empty { display: none; }
.lightbox.is-zoomed .lightbox__scroll figure { display: block; width: max-content; max-width: none; height: auto; }
.lightbox.is-zoomed img { max-width: none; max-height: none; }
.lightbox.is-zoomed figcaption { max-width: min(760px, calc(100vw - 48px)); margin: 16px auto 8px; }
.lightbox__zoom { position: absolute; top: 16px; left: 24px; min-height: 44px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: #4a3f3d; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.lightbox__close { position: absolute; top: 16px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: #4a3f3d; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox__close:focus-visible, .lightbox__scroll:focus-visible, .lightbox__zoom:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 120;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* 音乐：直接开关，拖到导航区域仍可操作，层级低于灯箱。 */
.music { position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; }
.music__toggle { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 15px 8px 9px; border: 1px solid var(--pink); border-radius: 999px; background: var(--card-solid); box-shadow: var(--shadow-sm); color: var(--berry); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.music__toggle { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.music.is-dragging .music__toggle { cursor: grabbing; }
.music__toggle:hover, .music__toggle[aria-pressed="true"] { background: var(--pink-soft); }
.music__record { display: block; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, var(--card-solid) 0 8%, var(--pink) 9% 25%, var(--berry) 26% 43%, var(--berry-deep) 44% 49%, var(--berry) 50% 67%, var(--berry-deep) 68% 73%, var(--berry) 74%); }
.music__toggle:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; }
.music audio { display: none; }
@media (max-width: 760px) {
  .music { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* 滚动进场 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* 手机端 */
@media (max-width: 960px) {
  .nav { gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav__brand, .nav__cta { display: none; }
  .nav__links { margin: 0; gap: 2px; }
  .nav__link { padding: 7px 11px; font-size: 13px; }

  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; gap: 20px; }
  .hero__visual { min-height: 380px; order: -1; margin-top: 10px; }
  .stage { width: 100%; height: 360px; }
  .stage__circle { width: 260px; height: 260px; }
  .stage__img { height: 340px; }
  .now-card { left: 0; right: auto; bottom: 70px; max-width: 170px; font-size: 12px; }
  .now-card strong { font-size: 13px; }
  .scroll-hint { position: static; transform: none; display: block; width: max-content; margin: 12px auto 0; }
  .hero__bio { font-size: 15px; }

  .section { padding-top: 56px; }
  .edu-grid { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 1fr; }
  .work-card__body { padding: 24px; }
  .archive { padding: 32px; gap: 32px; }

  .exp-card { padding: 20px; }
  .exp-card__head { gap: 10px; }
  .who { font-size: 14px; padding: 7px 14px; }

  .contact__back { position: static; display: block; margin-top: 24px; }
}

@media (max-width: 760px) {
  .archive { grid-template-columns: 1fr; gap: 28px; padding: 26px 20px; }
  .archive__stack { width: 190px; height: 245px; margin: 12px 0 20px; }
  .archive__monogram { width: 66px; height: 66px; font-size: 20px; margin-bottom: 12px; }
  .archive__back-title { font-size: 22px; }
  .archive__back-count { margin-top: 20px; }
  .archive-card { min-height: 500px; padding: 22px; }
  .archive-card__photo { min-height: 320px; }
  .archive-card__photo img { max-height: 360px; }
  .archive-card__emblem { width: 110px; height: 110px; margin: 28px auto; }
  .archive-card h3 { font-size: 22px; }
}

@media (max-width: 420px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .exp-card { padding: 16px; }
  .exp-card__list li { padding: 14px; }
  .archive { padding: 26px 14px; }
  .archive-card { padding: 18px; }
  .archive-card__meta { font-size: 10px; letter-spacing: 1px; }
  .edu-card__facts { grid-template-columns: 1fr; gap: 2px; }
  .edu-card__facts dd { margin-bottom: 8px; }
}

@media (hover: none) {
  .btn:hover, .tag:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .bubble { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 实习工作内容直接展示，横向手势仅用于图片组。 */
.exp-card__lead { margin-top: 22px; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.5; }
.exp-card__lead + .exp-card__summary { margin-top: 10px; }
.exp-card__list--phanthy { grid-template-columns: 1fr; }
.exp-card__list--kuaishou { grid-template-columns: 1fr; }
.exp-workspace figcaption { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.experience-gallery { min-width: 0; margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.gallery__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.gallery__head h3 { font-size: 20px; line-height: 1.5; }
.gallery__head p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.gallery__controls { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.gallery__arrow { width: 44px; height: 44px; flex-shrink: 0; padding: 0; font: inherit; font-size: 20px; border: 1px solid var(--line); border-radius: 50%; background: var(--card-solid); color: var(--berry); cursor: pointer; }
.gallery__arrow:hover { background: var(--pink-soft); }
.gallery__arrow:disabled { opacity: .35; cursor: default; }
.gallery__count { min-width: 36px; text-align: center; color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.gallery__track { --slide-width: 76%; --slide-gap: 18px; display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--pink-deep) transparent; padding: 4px 0 12px; }
.gallery__track::after { content: ""; flex: 0 0 calc(100% - var(--slide-width) - var(--slide-gap)); }
.gallery__slide { flex: 0 0 var(--slide-width); min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.gallery__image { position: relative; display: block; width: 100%; height: 390px; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card-solid); cursor: zoom-in; }
.gallery__image img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.gallery__zoom { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 8px; background: #fffdf9; border: 1px solid var(--line); color: var(--ink); font-size: 11px; }
.gallery__slide h4 { font-size: 17px; line-height: 1.6; }
.gallery__slide p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.gallery__hint { margin-top: 8px; font-size: 12px; color: var(--ink-soft); }
.experience-gallery--kuaishou .gallery__track { --slide-width: 37%; }
.experience-gallery--kuaishou .gallery__slide { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
.experience-gallery--kuaishou .gallery__image { height: 330px; }
.experience-gallery--kuaishou .gallery__slide p { margin-top: 6px; }
.exp-workspace { margin: 24px 0 0; }
.exp-workspace .gallery__image { height: auto; }
.exp-workspace img { height: auto; max-height: 360px; }
@media (max-width: 980px) {
  .exp-card__list--phanthy { grid-template-columns: 1fr; }
  .gallery__track { --slide-width: 83%; }
  .gallery__slide { gap: 18px; }
  .experience-gallery--kuaishou .gallery__track { --slide-width: 48%; }
}
@media (max-width: 760px) {
  .exp-card__list--kuaishou { grid-template-columns: 1fr; }
  .gallery__head { flex-direction: column; gap: 14px; }
  .gallery__head h3 { font-size: 18px; }
  .gallery__controls { align-self: flex-end; }
  .gallery__track, .experience-gallery--kuaishou .gallery__track { --slide-width: 88%; --slide-gap: 12px; gap: 12px; }
  .gallery__slide, .experience-gallery--kuaishou .gallery__slide { display: flex; flex-direction: column; align-items: stretch; padding: 12px; gap: 14px; }
  .gallery__image, .experience-gallery--kuaishou .gallery__image { height: 340px; }
  .gallery__slide h4 { font-size: 16px; }
  .lightbox { padding: 70px 12px 12px; }
}

/* 旅行仍是一张爱好卡，卡内浏览五张真实旅行照片。 */
.archive-card__album { min-width: 0; margin: 16px 0 18px; }
.archive-card__album .gallery__controls { justify-content: flex-end; margin-bottom: 12px; }
.archive-card__album .gallery__track { --slide-width: 100%; --slide-gap: 12px; gap: 12px; padding: 4px 0 10px; }
.archive-card__album .gallery__track::after { display: none; }
.archive-card__album .gallery__slide { flex: 0 0 100%; display: flex; flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.archive-card__album .archive-card__photo { margin: 0; min-height: 340px; height: 390px; flex: none; }
.archive-card__album figcaption p { text-align: center; font-size: 13px; margin-top: 8px; }
@media (max-width: 760px) {
  .archive-card__album .archive-card__photo { min-height: 320px; height: 360px; }
}

.archive-card__description { margin-top: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; text-align: center; }

.work-card__highlight { color: var(--berry); font-weight: 700; }

/* 公司直接并排；实习相册与旅行卡一样，每次完整显示一张照片。 */
.experience-gallery .gallery__head { flex-direction: column; gap: 14px; }
.experience-gallery .gallery__controls { align-self: flex-end; }
.experience-gallery .gallery__track { --slide-width: 100%; --slide-gap: 12px; gap: 12px; }
.experience-gallery .gallery__track::after { display: none; }
.experience-gallery .gallery__slide { flex: 0 0 100%; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 0; border: 0; background: transparent; }
.experience-gallery .gallery__image { height: 360px; }
.experience-gallery .gallery__slide h4 { font-size: 16px; }
.experience-gallery .gallery__slide p { margin-top: 6px; }
@media (max-width: 980px) {
}
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; }
}

/* 公司 Tab：滑动底板、固定入口与分层切换。 */
.experience-showcase { min-width: 0; --experience-progress: .5; }
.experience-showcase.reveal.is-in { transform: none; }
.experience-tabs { position: sticky; top: 100px; z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(100%, 720px); margin: 0 auto 28px; padding: 8px; border: 1px solid var(--line); border-radius: 26px; background: var(--card-solid); box-shadow: var(--shadow-sm); isolation: isolate; scroll-margin-top: 116px; }
.experience-tabs__indicator { position: absolute; left: 0; top: 8px; bottom: 8px; width: var(--indicator-width, calc(50% - 12px)); transform: translateX(var(--indicator-x, 8px)); border: 1px solid var(--pink); border-radius: 19px; background: var(--pink-soft); transition: transform .52s cubic-bezier(.22, 1, .36, 1), width .52s cubic-bezier(.22, 1, .36, 1); pointer-events: none; z-index: -1; }
.experience-tab { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 82px; padding: 14px 20px; border: 0; border-radius: 19px; background: transparent; color: var(--ink-soft); text-align: left; font: inherit; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.experience-tab__number { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-mute); font-size: 12px; font-weight: 700; transition: color .3s, background .3s, transform .45s cubic-bezier(.22, 1, .36, 1); }
.experience-tab__label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.experience-tab__company { color: var(--ink); font-size: 19px; font-weight: 800; transition: color .3s; }
.experience-tab__date { font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.experience-tab__arrow { margin-left: auto; color: var(--berry); font-size: 23px; opacity: .3; transform: translate(-3px, 3px); transition: transform .4s, opacity .4s; }
.experience-tab.is-selected .experience-tab__company { color: var(--berry); }
.experience-tab.is-selected .experience-tab__number { background: var(--berry); border-color: var(--berry); color: var(--card-solid); transform: rotate(-8deg); }
.experience-tab.is-selected .experience-tab__arrow { opacity: 1; transform: none; }
.experience-tab:hover .experience-tab__arrow { opacity: 1; transform: translate(2px, -2px); }
.experience-tab__ripple { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: var(--pink); pointer-events: none; }
.experience-tab:focus-visible, .experience-nav:focus-visible, .timeline__item:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; }
.experience-showcase .exp-card { padding: 34px; }
.experience-showcase .exp-card__head { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.experience-showcase .exp-card__list--kuaishou { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.experience-footer { margin-top: 20px; padding: 0 8px; }
.experience-footer__navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.experience-nav { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-solid); color: var(--berry); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.experience-nav:hover:not(:disabled) { background: var(--pink-soft); transform: translateY(-2px); }
.experience-nav:disabled { opacity: .35; cursor: default; }
.experience-footer__status { color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.experience-footer__progress { height: 3px; margin-top: 22px; border-radius: 99px; background: var(--line); overflow: hidden; }
.experience-footer__progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--pink-deep); transform: scaleX(var(--experience-progress)); transform-origin: left; transition: transform .55s cubic-bezier(.22, 1, .36, 1); }
@media (max-width: 960px) {
  .experience-tabs { top: 84px; scroll-margin-top: 100px; }
  .experience-showcase .exp-card { padding: 24px; }
}
@media (max-width: 760px) {
  .experience-tabs { gap: 6px; padding: 6px; border-radius: 21px; margin-bottom: 20px; }
  .experience-tabs__indicator { top: 6px; bottom: 6px; border-radius: 16px; }
  .experience-tab { gap: 9px; min-height: 76px; padding: 12px 10px; border-radius: 16px; }
  .experience-tab__number { flex-basis: 32px; height: 32px; font-size: 10px; }
  .experience-tab__company { font-size: 16px; }
  .experience-tab__date { font-size: 10px; }
  .experience-tab__arrow { display: none; }
  .experience-showcase .exp-card { padding: 20px; }
  .experience-showcase .exp-card__list--kuaishou { grid-template-columns: minmax(0, 1fr); }
  .experience-footer__navigation { gap: 8px; flex-wrap: wrap; }
  .experience-footer__status { order: -1; flex: 1 0 100%; margin-bottom: 4px; }
  .experience-nav { padding: 10px 14px; font-size: 12px; }
}
@media (max-width: 420px) {
  .experience-showcase .exp-card { padding: 16px; }
  .experience-tab { gap: 6px; padding: 12px 8px; }
  .experience-tab__number { flex-basis: 26px; height: 26px; }
  .experience-tab__company { font-size: 15px; }
  .experience-tab__date { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .experience-tabs__indicator, .experience-tab__number, .experience-tab__company, .experience-tab__arrow, .experience-nav, .experience-footer__progress span { transition: none; }
  .experience-nav:hover:not(:disabled) { transform: none; }
}

/* 概览先读重点，过程与图片在点击后展开。 */
.exp-story { display: grid; gap: 0; margin: 26px 0 0; padding: 0; list-style: none; }
.exp-story__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 22px 0 24px 30px; }
.exp-story__item::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--pink); }
.exp-story__item:first-child::before { top: 34px; }
.exp-story__item:last-child::before { bottom: auto; height: 0; }
.exp-story__item::after { content: ""; position: absolute; left: 1px; top: 30px; width: 14px; height: 14px; border: 2px solid var(--card-solid); border-radius: 50%; background: var(--berry); }
.exp-story__text { min-width: 0; }
.exp-story__item h4 { color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.5; }
.exp-story__item p { margin-top: 9px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }
.exp-story__label { margin-right: 8px; color: var(--berry); font-size: inherit; font-weight: 800; }
.exp-story .stats { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; vertical-align: middle; }
.exp-story .stat { gap: 6px; padding: 0; border-radius: 0; background: transparent; color: var(--berry-deep); font-weight: 700; }
.exp-story .stat b { font-size: 15.5px; }
.exp-story__foot { margin-top: 4px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: 14px; }
@media (max-width: 960px) {
  .exp-story__item { grid-template-columns: minmax(0, 1fr); padding-left: 26px; }
  .exp-story__item > :only-child { grid-column: auto; }
  }
.experience-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.experience-preview { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, transform .25s; }
.experience-preview:hover { border-color: var(--pink); transform: translateY(-2px); }
.experience-preview img { flex: 0 0 56px; width: 56px; height: 62px; object-fit: contain; border-radius: 6px; background: var(--card-solid); }
.experience-preview strong, .experience-preview small { display: block; }
.experience-preview strong { font-size: 14px; }
.experience-preview small { margin-top: 5px; color: var(--ink-soft); font-size: 11px; }
.experience-preview > span:last-child { margin-left: auto; color: var(--berry); }
.experience-preview--life { background: var(--blue-soft); }
.experience-preview:focus-visible, .experience-sources[hidden], .gallery__track { position: relative; }

/* 原生对话框与嵌套大图均使用 top layer。 */
.experience-modal { width: min(960px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 64px); margin: auto; padding: 0; border: 1px solid var(--pink); border-radius: 28px; background: var(--card-solid); color: var(--ink); box-shadow: var(--shadow); }
.experience-modal[open] { display: flex; flex-direction: column; }
.experience-modal::backdrop { background: rgba(52, 40, 37, .46); backdrop-filter: blur(7px); }
.experience-modal__header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.experience-modal__header h2 { font-size: 22px; line-height: 1.4; }
.experience-modal__close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card-solid); color: var(--berry); font: inherit; font-size: 26px; cursor: pointer; }
.experience-modal__close:hover { background: var(--pink-soft); }
.experience-modal__close:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }
.experience-modal__content { min-height: 0; padding: 26px; overflow-y: auto; overscroll-behavior: contain; }
.experience-modal .experience-gallery { margin: 0; padding: 0; border: 0; }
.experience-modal .gallery__head h3 { display: none; }
.experience-modal .exp-workspace { margin: 0; }
.experience-modal .exp-workspace img { max-height: none; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; }
.lightbox::backdrop { background: transparent; }

/* 五张真实照片组成可以走过去的暖色弧形照片墙：参考 Zestwell 画廊。 */
.experience-modal--gallery { --wall-top: #fbf1e3; --wall-bottom: #f3dcc0; --frame: #f1dfc3; --frame-edge: rgba(150, 108, 62, .38); width: calc(100vw - 24px); height: calc(100dvh - 24px); max-height: none; border-color: transparent; border-radius: 22px; background: linear-gradient(180deg, var(--wall-top) 0%, #f8ead8 48%, var(--wall-bottom) 100%); box-shadow: 0 30px 80px rgba(74, 48, 30, .3); overflow: hidden; }
.experience-modal--gallery::backdrop { background: rgba(52, 40, 37, .55); backdrop-filter: blur(8px); }
.experience-modal--gallery .experience-modal__header { position: absolute; top: 18px; left: 18px; z-index: 3; padding: 0; border: 0; background: transparent; pointer-events: none; }
.experience-modal--gallery .experience-modal__header h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.experience-modal--gallery .experience-modal__close { pointer-events: auto; font-size: 0; border-color: transparent; background: rgba(255, 251, 245, .78); color: var(--berry-deep); backdrop-filter: blur(10px); box-shadow: 0 4px 16px rgba(74, 48, 30, .12); }
.experience-modal--gallery .experience-modal__close::before { content: "←"; font-size: 22px; line-height: 1; }
.experience-modal--gallery .experience-modal__content { flex: 1; padding: 0; overflow: hidden; }
.experience-modal--gallery .experience-gallery { position: relative; display: flex; flex-direction: column; height: 100%; }
.experience-modal--gallery .gallery__head { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 40px 30px; pointer-events: none; }
.experience-modal--gallery .gallery__wall-title { flex: 1; min-width: 0; text-align: left; }
.experience-modal--gallery .gallery__head h3 { display: block; margin-top: 6px; color: var(--berry-deep); font-size: clamp(26px, 4vw, 56px); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }
.experience-modal--gallery .gallery__wall-title p { margin-top: 12px; color: rgba(74, 48, 30, .72); font-size: 13px; }
.gallery__eyebrow { display: block; color: rgba(74, 48, 30, .7); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.experience-modal--gallery .gallery__controls { align-self: flex-end; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 999px; background: rgba(255, 251, 245, .72); backdrop-filter: blur(10px); pointer-events: auto; }
.experience-modal--gallery .gallery__arrow { border-color: transparent; background: transparent; color: var(--berry-deep); }
.experience-modal--gallery .gallery__arrow:hover:not(:disabled) { background: var(--pink-soft); }
.experience-modal--gallery .gallery__count { color: var(--berry-deep); font-weight: 700; }
.experience-modal--gallery .gallery__hint { position: absolute; right: 40px; bottom: 100px; z-index: 2; margin: 0; color: rgba(74, 48, 30, .78); font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.9; text-align: right; text-transform: uppercase; pointer-events: none; }
.experience-modal--gallery .gallery__track { --slide-width: clamp(190px, 21vw, 280px); --slide-gap: clamp(48px, 6vw, 100px); flex: 1; min-height: 0; align-items: flex-end; gap: var(--slide-gap); padding: 96px calc(50% - var(--slide-width) / 2) 250px; perspective: 1400px; perspective-origin: 50% 35%; scroll-snap-type: none; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.experience-modal--gallery .gallery__track::-webkit-scrollbar { display: none; }
.experience-modal--gallery .gallery__slide { flex: 0 0 var(--slide-width); gap: 14px; transform-origin: 50% 100%; will-change: transform; }
.experience-modal--gallery .gallery__image { height: clamp(220px, 38dvh, 400px); padding: 10px; border: 1px solid var(--frame-edge); border-radius: 4px; background: var(--frame); box-shadow: 0 24px 50px rgba(90, 56, 28, .22), inset 0 0 0 1px rgba(255, 255, 255, .55); }
.experience-modal--gallery .gallery__image img { border-radius: 2px; }
.experience-modal--gallery .gallery__slide h4 { color: var(--berry-deep); font-size: 14px; }
.experience-modal--gallery .gallery__slide p { color: rgba(74, 48, 30, .72); font-size: 12px; }
.experience-modal--gallery .gallery__zoom { bottom: 18px; right: 18px; background: rgba(255, 251, 245, .9); color: var(--berry-deep); letter-spacing: .06em; }
.experience-modal--gallery .gallery__track.is-dragging { cursor: grabbing; }
.experience-modal--gallery .gallery__track.is-dragging .gallery__image { cursor: grabbing; }
@media (max-width: 760px) {
  .experience-project { padding: 15px 12px; border-radius: 16px; }
  .experience-projects { gap: 10px; margin-top: 18px; }
  .experience-project h4 { font-size: 14px; padding-right: 0; padding-top: 16px; }
  .experience-project__number { top: 10px; right: 12px; font-size: 9px; }
  .experience-project__brief { display: none; }
  .experience-project .stats { gap: 5px; }
  .experience-project .stat { padding: 5px 7px; flex-wrap: wrap; gap: 3px; font-size: 10px; }
  .experience-project .stat b { font-size: 13px; }
  .experience-project__more { font-size: 11px; padding-top: 12px; }
  .experience-previews { gap: 10px; }
  .experience-preview { padding: 12px; gap: 8px; }
  .experience-preview img { display: none; }
  .experience-preview strong { font-size: 12px; }
  .experience-preview small { font-size: 10px; }
  .experience-modal { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); border-radius: 20px; }
  .experience-modal__header { padding: 14px 16px; gap: 12px; }
  .experience-modal__header h2 { font-size: 18px; }
  .experience-modal__content { padding: 20px 16px; }
    .experience-modal--gallery { width: calc(100vw - 12px); height: calc(100dvh - 12px); }
  .experience-modal--gallery .gallery__head { padding: 0 16px 16px; flex-direction: row; align-items: flex-end; gap: 10px; }
  .experience-modal--gallery .gallery__head h3 { font-size: 22px; letter-spacing: -.01em; }
  .experience-modal--gallery .gallery__eyebrow { font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
  .experience-modal--gallery .gallery__controls { gap: 4px; padding: 4px 6px; }
  .experience-modal--gallery .gallery__count { min-width: 30px; font-size: 12px; }
  .experience-modal--gallery .gallery__hint { right: 18px; bottom: auto; top: 76px; }
  .experience-modal--gallery .gallery__head p { display: none; }
  .experience-modal--gallery .gallery__track { --slide-width: min(56vw, 250px); --slide-gap: 36px; padding-top: 120px; padding-bottom: 150px; }
  .experience-modal--gallery .gallery__image { height: min(34dvh, 300px); }
  .experience-modal--gallery .gallery__hint { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .experience-project, .experience-preview { transition: none; }
  .experience-project:hover, .experience-preview:hover { transform: none; }
}
