:root {
  --paper: #f7f6f3;
  --paper-2: #eeece7;
  --ink: #16140f;
  --ink-soft: #4c4741;
  --muted: #8a837b;
  --line: rgba(22, 20, 15, 0.12);
  --accent: #b8502f;
  --accent-soft: #d0855f;
  --dark: #17140f;
  --radius: 18px;
  --max: 1240px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.site-header.is-stuck {
  background: rgba(247, 246, 243, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 11px;
  padding-bottom: 11px;
}

.brand { font-size: 17px; font-weight: 700; letter-spacing: 0.08em; }
.brand span { color: var(--muted); font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 26px);
  font-size: 14.5px;
}

.nav a { position: relative; padding: 4px 0; color: var(--ink-soft); transition: color 0.25s ease; }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav-cta { padding: 9px 18px !important; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

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

/* ---------- 封面 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px clamp(20px, 5vw, 56px) 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% 0 -10%;
  background:
    radial-gradient(38% 46% at 22% 28%, rgba(184, 80, 47, 0.13), transparent 70%),
    radial-gradient(34% 42% at 78% 22%, rgba(58, 96, 122, 0.10), transparent 70%),
    radial-gradient(40% 40% at 60% 82%, rgba(22, 20, 15, 0.07), transparent 72%);
  filter: blur(6px);
  animation: glowDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glowDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(0, -3%, 0) scale(1.06); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  flex: 1;
}

.hero-copy { max-width: 620px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(184, 80, 47, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 80, 47, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(184, 80, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 80, 47, 0); }
}

.hero-name {
  margin: 0;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.hero-role {
  margin: 16px 0 0;
  font-size: clamp(16px, 2vw, 21px);
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.hero-role i { font-style: normal; margin: 0 12px; color: var(--accent-soft); }

.hero-desc {
  margin: 24px 0 0;
  max-width: 520px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); }

.btn-light { border-color: var(--line); background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.btn-light:hover { border-color: var(--ink); background: #fff; }

.hero-facts {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 44px);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero-facts strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.hero-portrait {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 30px 70px rgba(22, 20, 15, 0.16);
  aspect-ratio: 4 / 5;
}

.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

.hero-strip {
  position: relative;
  z-index: 2;
  margin-top: clamp(40px, 6vw, 72px);
  padding-bottom: 26px;
  max-width: none;
}

.strip-label {
  margin: 0 0 14px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.strip-window {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.strip-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: stripScroll 70s linear infinite;
}

.strip-window:hover .strip-track { animation-play-state: paused; }

.strip-track img {
  width: clamp(120px, 12vw, 176px);
  height: clamp(84px, 8.4vw, 118px);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(22, 20, 15, 0.12);
  flex: none;
}

@keyframes stripScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 通用区块 ---------- */
.section {
  padding: clamp(72px, 9vw, 130px) clamp(20px, 5vw, 56px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-dark {
  max-width: none;
  margin: 0;
  background: var(--dark);
  color: var(--paper);
  padding-left: max(clamp(20px, 5vw, 56px), calc((100vw - var(--max)) / 2 + 20px));
  padding-right: max(clamp(20px, 5vw, 56px), calc((100vw - var(--max)) / 2 + 20px));
}

.section-dark .section-head p { color: rgba(247, 246, 243, 0.66); }
.section-dark .section-label { color: rgba(247, 246, 243, 0.5); }
.section-dark .section-label span { color: var(--accent-soft); }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 26px;
}

.section-label span { color: var(--accent); font-weight: 700; }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 56px); }

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.section-head p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.section-head strong { color: inherit; font-weight: 600; }

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about-text h2 { margin: 0 0 24px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.26; }
.about-text p { margin: 0 0 16px; color: var(--ink-soft); max-width: 620px; }

.skills {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 22px;
}

.skill-group h3 {
  margin: 0 0 12px;
  font-size: 12.5px;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-weight: 500;
}

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ink); font-size: 14px; }
.tags-soft li { border-color: var(--line); color: var(--ink-soft); }

.about-highlight { display: grid; gap: 16px; }

.highlight-card {
  padding: 24px 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(22, 20, 15, 0.05);
}

.highlight-card span { font-size: 12px; letter-spacing: 0.3em; color: var(--accent); }
.highlight-card h3 { margin: 10px 0 8px; font-size: 18px; }
.highlight-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 视频 ---------- */
.group-title {
  margin: clamp(30px, 4vw, 50px) 0 22px;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(247, 246, 243, 0.55);
  font-weight: 500;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.video-card { display: flex; flex-direction: column; }

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-card-vertical .video-thumb { aspect-ratio: 4 / 5; }

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.video-thumb:hover img { transform: scale(1.05); opacity: 0.85; }

.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(247, 246, 243, 0.92);
  transition: transform 0.35s ease, background 0.3s ease;
}

.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-left: 15px solid var(--ink);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.video-thumb:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }
.video-thumb:hover .play::after { border-left-color: #fff; }

.video-info { padding: 16px 4px 0; }
.video-info h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: 0.02em; }
.video-info p { margin: 0; font-size: 13.5px; color: rgba(247, 246, 243, 0.6); }

.more-videos {
  margin-top: clamp(38px, 5vw, 60px);
  padding-top: 32px;
  border-top: 1px solid rgba(247, 246, 243, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.more-videos p { margin: 0; color: rgba(247, 246, 243, 0.66); letter-spacing: 0.06em; }

/* ---------- 平面作品 ---------- */
.masonry { column-count: 4; column-gap: clamp(14px, 1.6vw, 22px); }

.masonry-item {
  break-inside: avoid;
  margin-bottom: clamp(14px, 1.6vw, 22px);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 12px 32px rgba(22, 20, 15, 0.08);
  cursor: zoom-in;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.masonry-item:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(22, 20, 15, 0.16); }
.masonry-item img { width: 100%; height: auto; }

/* ---------- VI ---------- */
.vi-section { background: linear-gradient(180deg, transparent, rgba(22, 20, 15, 0.035)); max-width: none; }
.vi-section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

.vi-gallery { display: grid; gap: clamp(26px, 3.4vw, 46px); }

.vi-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.vi-group-head h3 { margin: 0; font-size: clamp(17px, 2vw, 21px); letter-spacing: 0.02em; }
.vi-group-head span { font-size: 12.5px; letter-spacing: 0.2em; color: var(--muted); }

.vi-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(8px, 1vw, 14px); }

.vi-page {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 20, 15, 0.09);
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.vi-page:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(22, 20, 15, 0.18); }
.vi-page img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.vi-page span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(22, 20, 15, 0.6);
  color: #fff;
  font-size: 11px;
}

/* ---------- 经历 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }

.timeline li {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 56px);
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 1px solid rgba(247, 246, 243, 0.14);
}

.timeline li:last-child { border-bottom: 1px solid rgba(247, 246, 243, 0.14); }

.time { font-size: 14px; letter-spacing: 0.14em; color: rgba(247, 246, 243, 0.5); }
.timeline-body h3 { margin: 0 0 6px; font-size: clamp(19px, 2.4vw, 25px); }
.timeline-body .role { margin: 0 0 12px; color: var(--accent-soft); font-size: 14.5px; letter-spacing: 0.06em; }
.timeline-body p:last-child { margin: 0; color: rgba(247, 246, 243, 0.7); font-size: 15px; max-width: 640px; }

/* ---------- 生活与爱好（收藏夹式，默认收起） ---------- */
.life-folder {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(22, 20, 15, 0.07);
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.life-folder.is-open { box-shadow: 0 26px 60px rgba(22, 20, 15, 0.12); }

.folder-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  border: 0;
  background: transparent;
  text-align: left;
}

.folder-icon {
  position: relative;
  flex: none;
  width: 46px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(180deg, #e5c9a8, #d9b78e);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.06);
}

.folder-icon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 4px;
  width: 20px;
  height: 9px;
  border-radius: 5px 5px 0 0;
  background: #e5c9a8;
}

.folder-icon::after {
  content: "";
  position: absolute;
  inset: 8px 9px auto 9px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.55), 0 12px 0 rgba(255, 255, 255, 0.4);
}

.folder-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.folder-text strong { font-size: 17px; letter-spacing: 0.02em; }
.folder-text em { font-style: normal; font-size: 13.5px; color: var(--muted); letter-spacing: 0.06em; }

.folder-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.folder-action i {
  font-style: normal;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  transition: transform 0.35s ease, background 0.3s ease, color 0.3s ease;
}

.folder-head:hover .folder-action i { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.life-folder.is-open .folder-action i { transform: rotate(45deg); }

.folder-panel {
  padding: 0 clamp(18px, 2.6vw, 30px) clamp(18px, 2.6vw, 30px);
  animation: panelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.folder-panel[hidden] { display: none; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.life-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.life-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 3 / 4;
}

.life-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.life-gallery figure:hover img { transform: scale(1.06); }

/* ---------- 联系 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.contact-text h2 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.2; }
.contact-text p { margin: 0 0 20px; color: var(--ink-soft); max-width: 520px; }
.contact-note { font-size: 13.5px; letter-spacing: 0.16em; color: var(--muted) !important; }

.qr-card {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 60px rgba(22, 20, 15, 0.14);
  text-align: center;
}

.qr-card img { width: 100%; border-radius: 10px; }
.qr-card figcaption { margin-top: 14px; font-size: 13.5px; letter-spacing: 0.16em; color: var(--muted); }

.site-footer {
  padding: 34px clamp(20px, 5vw, 56px) 46px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.site-footer p { margin: 0; }

/* ---------- 弹层 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(14, 12, 10, 0.94);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}

.lightbox[hidden] { display: none; }

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

.lightbox-body {
  max-width: min(1200px, 92vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.lightbox-body video { max-width: min(1100px, 92vw); max-height: 76vh; border-radius: 14px; background: #000; }

.lightbox-body img {
  max-width: min(1100px, 92vw);
  max-height: 76vh;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
}

.lightbox-qr .lightbox-body img { max-width: min(420px, 80vw); max-height: 70vh; }

.lightbox-caption { text-align: center; color: #fff; }
.lightbox-caption h3 { margin: 0; font-size: 17px; letter-spacing: 0.04em; }
.lightbox-caption p { margin: 4px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.62); }

.lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: background 0.25s ease;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  transition: background 0.25s ease;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox-prev { left: clamp(10px, 2vw, 28px); }
.lightbox-next { right: clamp(10px, 2vw, 28px); }

/* ---------- 滚动出现 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .masonry { column-count: 3; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 84px 28px 28px;
    background: rgba(247, 246, 243, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(22, 20, 15, 0.14);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.is-open { transform: none; }
  .nav a { font-size: 18px; padding: 9px 0; }
  .nav-cta { margin-top: 10px; }
  .nav-toggle { display: flex; z-index: 70; }

  .hero { padding-top: 108px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-portrait { max-width: 380px; aspect-ratio: 4 / 5; }
  .about-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .qr-card { max-width: 320px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; }
  .life-gallery { grid-template-columns: repeat(2, 1fr); }
  .folder-head { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .hero { min-height: auto; padding-bottom: 10px; }
  .hero-facts { gap: 16px; }
  .hero-facts li { font-size: 12px; }
  .video-grid { grid-template-columns: 1fr; }
  .masonry { column-count: 2; column-gap: 12px; }
  .masonry-item { margin-bottom: 12px; border-radius: 10px; }
  .vi-pages { grid-template-columns: repeat(2, 1fr); }
  .folder-action { font-size: 12.5px; }
  .lightbox-nav { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow { animation: none; }
  .strip-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
