/* =========================================================
   印溪工作室 YINXI STUDIO
   设计参考：SHANG XIA 极简东方美学
   ========================================================= */

:root {
  --paper: #F7F5F1;
  --paper-deep: #EEE9E1;
  --ink: #14110E;
  --ink-soft: #4B453D;
  --muted: #8B8479;
  --line: rgba(20, 17, 14, .13);
  --pad: clamp(20px, 5.6vw, 88px);
  --max: 1400px;
  /* 内容网格的实际左边缘：窄屏用 pad，宽屏跟随 wrap 居中 */
  --edge: max(var(--pad), calc((100vw - 1400px) / 2 + var(--pad)));
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.eyebrow--light { color: rgba(255, 255, 255, .72); }

.only-desktop { display: inline; }
.only-mobile { display: none; }

/* ========== 加载遮罩 ========== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 1s var(--ease), visibility 1s;
}
.loader__mark {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: .34em;
  text-indent: .34em;
  animation: fadeUp 1.4s var(--ease) both;
}
.loader__en {
  font-size: 9px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--muted);
  animation: fadeUp 1.4s .12s var(--ease) both;
}
.loader::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform-origin: left;
  animation: loadBar 2.2s var(--ease) forwards;
  opacity: .5;
}
@keyframes loadBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.is-loaded .loader { opacity: 0; visibility: hidden; }

/* ========== 导航 ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: 24px var(--edge);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background .6s var(--ease), color .6s var(--ease),
              padding .6s var(--ease), border-color .6s var(--ease);
}

.nav.is-scrolled {
  background: rgba(247, 245, 241, .93);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  color: var(--ink);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom-color: var(--line);
}

.nav.is-scrolled.is-dark {
  background: rgba(18, 15, 12, .9);
  color: var(--paper);
  border-bottom-color: rgba(247, 245, 241, .12);
}

.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.nav__logo-cn {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .28em;
  text-indent: .28em;
}
.nav__logo-en {
  font-size: 8.5px;
  letter-spacing: .3em;
  opacity: .65;
}

.nav__links {
  margin-left: auto;
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
}
.nav__links a {
  position: relative;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .18em;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  font-size: 11px;
  letter-spacing: .18em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  white-space: nowrap;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.nav__burger span {
  display: block;
  height: 1px;
  width: 22px;
  background: currentColor;
  transition: transform .45s var(--ease), opacity .3s;
  margin-left: auto;
}
body.menu-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
body.menu-open .nav__burger { color: var(--ink); }

/* ========== 移动端菜单 ========== */
.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s var(--ease), visibility .55s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }
.menu__inner { display: flex; flex-direction: column; }
.menu__inner a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(28px, 8vw, 44px);
  letter-spacing: .16em;
  color: var(--ink);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.menu__inner a:first-child { border-top: 1px solid var(--line); }
.menu__inner i {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
}
.menu__foot {
  margin-top: 44px;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--muted);
}

/* ========== 首屏 ========== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #17140F;
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  transition: transform 9s linear;
}
.hero__slide.is-active img { transform: scale(1); }

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 8, 6, .74) 0%, rgba(10, 8, 6, .52) 38%, rgba(10, 8, 6, .18) 66%, rgba(10, 8, 6, .08) 100%),
    linear-gradient(to bottom, rgba(10, 8, 6, .58) 0%, rgba(10, 8, 6, .08) 24%, rgba(10, 8, 6, .06) 50%, rgba(10, 8, 6, .62) 100%);
}

.hero__content {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 19%;
  max-width: 920px;
  color: #fff;
}

.hero__title {
  margin: 24px 0 28px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.8vw, 68px);
  line-height: 1.36;
  letter-spacing: .1em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .38);
}

.hero__sub {
  margin: 0;
  font-size: 13px;
  line-height: 2.2;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 20px rgba(0, 0, 0, .35);
}

.hero__content > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.3s var(--ease), transform 1.3s var(--ease);
}
.is-loaded .hero__content > * { opacity: 1; transform: none; }
.is-loaded .hero__content > *:nth-child(1) { transition-delay: .1s; }
.is-loaded .hero__content > *:nth-child(2) { transition-delay: .26s; }
.is-loaded .hero__content > *:nth-child(3) { transition-delay: .42s; }

.hero__foot {
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 0;
  padding-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9.5px;
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
}

.hero__dots { display: flex; align-items: center; gap: 10px; }
.hero__dot {
  width: 28px;
  height: 1px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.hero__dot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, .35);
  transition: background .5s;
}
.hero__dot.is-active::after { background: #fff; }

.hero__scroll {
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-bottom: 2px;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

/* ========== 引言 ========== */
.statement { padding: clamp(80px, 13vh, 168px) 0; }

.statement__text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 34px);
  line-height: 2.05;
  letter-spacing: .06em;
  max-width: 1120px;
  color: var(--ink);
}

.statement__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 96px);
  margin-top: clamp(48px, 8vh, 92px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}
.statement__meta span {
  display: block;
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ========== 区块标题 ========== */
.section-head { padding-bottom: clamp(44px, 6vw, 84px); }

.section-head__title {
  margin: 20px 0 22px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(27px, 3.5vw, 46px);
  letter-spacing: .14em;
  line-height: 1.4;
}

.section-head__desc {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 2.05;
  letter-spacing: .03em;
  color: var(--ink-soft);
}

.section-head--center { text-align: center; }
.section-head--center .section-head__desc { margin: 0 auto; }

/* ========== 作品系列 ========== */
.work { padding-bottom: clamp(40px, 8vw, 90px); }

section[id], article[id] { scroll-margin-top: 86px; }

.series { padding-bottom: clamp(58px, 8vw, 112px); }

.series__head {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.series__num {
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--muted);
}
.series__name {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(21px, 2.5vw, 33px);
  letter-spacing: .12em;
}
.series__name em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .26em;
  color: var(--muted);
}
.series__meta {
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
  white-space: nowrap;
}

.series__desc {
  padding-top: 26px;
  padding-bottom: 38px;
}
.series__desc p {
  margin: 0;
  max-width: 620px;
  font-size: 13.5px;
  line-height: 2.05;
  letter-spacing: .03em;
  color: var(--ink-soft);
}

/* 横向画廊 */
.track {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px var(--edge) 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; }
.track.is-dragging .shot { pointer-events: none; }

.shot {
  position: relative;
  flex: 0 0 auto;
  height: clamp(260px, 37vw, 480px);
  padding: 0;
  border: 0;
  background: var(--paper-deep);
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.shot img {
  height: 100%;
  width: auto;
  display: block;
  transition: transform 1.6s var(--ease), opacity .8s;
}
.shot:hover img { transform: scale(1.045); }

.shot__tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 9.5px;
  letter-spacing: .2em;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.shot:hover .shot__tag { opacity: .92; transform: none; }

/* ========== 关于 ========== */
.about {
  padding: clamp(80px, 12vw, 150px) 0;
  background: var(--paper-deep);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(36px, 6vw, 110px);
  align-items: center;
}

.about__text .section-head__title { margin: 20px 0 30px; }

.about__text p {
  margin: 0 0 20px;
  max-width: 540px;
  font-size: 13.5px;
  line-height: 2.15;
  letter-spacing: .03em;
  color: var(--ink-soft);
}

.about__sign {
  margin-top: 34px !important;
  font-size: 11.5px !important;
  letter-spacing: .18em;
  color: var(--ink) !important;
}

.about__figure { margin: 0; }
.about__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 42%;
  mix-blend-mode: multiply;
  filter: grayscale(6%);
  transition: filter 1s var(--ease), transform 1.6s var(--ease);
}
.about__figure:hover img { filter: grayscale(0%); }
.about__figure figcaption {
  margin-top: 14px;
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--muted);
}

/* 团队 */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3.2vw, 52px);
  margin-top: clamp(64px, 9vw, 118px);
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.team__num {
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--muted);
}
.team__item h3 {
  margin: 16px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16.5px;
  letter-spacing: .16em;
}
.team__item p {
  margin: 0;
  font-size: 12.5px;
  line-height: 2.05;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

/* ========== 客户 ========== */
.clients { padding: clamp(80px, 12vw, 154px) 0; }

.clients__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.clients__list li {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(18px, 4vw, 64px);
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.clients__name {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 22px);
  letter-spacing: .12em;
  line-height: 1.6;
}
.clients__note {
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: .02em;
  color: var(--ink-soft);
  max-width: 660px;
}

/* ========== 联系 ========== */
.contact {
  padding: clamp(88px, 14vw, 180px) 0 clamp(64px, 9vw, 110px);
  background: var(--ink);
  color: var(--paper);
}
.contact .eyebrow { color: rgba(247, 245, 241, .45); }

.contact__title {
  margin: 26px 0 42px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.9vw, 54px);
  line-height: 1.55;
  letter-spacing: .1em;
}

.contact__mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(17px, 2.1vw, 27px);
  letter-spacing: .08em;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 245, 241, .3);
  padding-bottom: 7px;
  transition: border-color .5s var(--ease), opacity .5s;
}
.contact__mail:hover { border-color: var(--paper); }

.contact__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 84px);
  margin-top: clamp(48px, 8vw, 92px);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(247, 245, 241, .74);
}
.contact__meta span {
  display: block;
  font-size: 9.5px;
  letter-spacing: .22em;
  color: rgba(247, 245, 241, .38);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ========== 页脚 ========== */
.foot {
  background: var(--ink);
  color: rgba(247, 245, 241, .45);
  border-top: 1px solid rgba(247, 245, 241, .12);
}
.foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 9.5px;
  letter-spacing: .18em;
}
.foot__brand { color: rgba(247, 245, 241, .7); }
.foot__top { text-decoration: none; color: inherit; transition: color .4s; }
.foot__top:hover { color: var(--paper); }

/* ========== 灯箱 ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 9, 8, .972);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__stage {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 6vw;
}
.lightbox__stage img {
  max-width: 88vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  animation: lbIn .7s var(--ease) both;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}

.lightbox__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--edge);
  color: rgba(247, 245, 241, .62);
  font-size: 10.5px;
  letter-spacing: .22em;
}
.lightbox__btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: 10.5px;
  letter-spacing: .22em;
  cursor: pointer;
  transition: color .3s;
}
.lightbox__btn:hover { color: #fff; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 18px;
  color: rgba(247, 245, 241, .55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color .3s, transform .3s;
}
.lightbox__nav:hover { color: #fff; }
.lightbox__nav--prev { left: 1.2vw; }
.lightbox__nav--next { right: 1.2vw; }

.lightbox__counter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9.5px;
  letter-spacing: .26em;
  color: rgba(247, 245, 241, .5);
}

/* ========== 滚动入场 ========== */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1.15s var(--ease), transform 1.15s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__figure { order: -1; }
  .team { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .clients__list li { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  .nav { padding-top: 18px; padding-bottom: 18px; }
  .nav__logo-en { display: none; }
  .hero__veil {
    background:
      linear-gradient(to bottom, rgba(10, 8, 6, .58) 0%, rgba(10, 8, 6, .12) 26%, rgba(10, 8, 6, .28) 48%, rgba(10, 8, 6, .88) 100%);
  }
  .hero__content { bottom: 104px; }
  .hero__foot > span:first-child { display: none; }
  .hero__foot { justify-content: space-between; }
  .hero__title { margin: 18px 0 20px; }
  .hero__foot { padding-bottom: 26px; }
  .series__head { grid-template-columns: 44px 1fr; row-gap: 8px; }
  .series__meta { grid-column: 2; }
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
}

@media (max-width: 640px) {
  .team { grid-template-columns: 1fr; gap: 30px; }
  .shot { height: 62vw; min-height: 240px; }
  .track { gap: 10px; }
  .hero__title { letter-spacing: .06em; }
  .hero__sub { font-size: 12px; line-height: 2; }
  .lightbox__nav { display: none; }
  .lightbox__stage img { max-width: 94vw; max-height: 74vh; }
  .statement__meta { gap: 26px 40px; }
  .contact__meta { gap: 26px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__content > * { opacity: 1; transform: none; }
}
