:root {
  --bg: #050505;
  --panel: #0d0d0f;
  --line: rgba(199, 163, 104, 0.34);
  --line-soft: rgba(199, 163, 104, 0.16);
  --gold: #c7a368;
  --text: #eee9df;
  --muted: #a29c91;
  --dim: #6f6a61;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(1180px, calc(100vw - 64px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(199, 163, 104, 0.075), transparent 28rem),
    radial-gradient(circle at 82% 28%, rgba(90, 115, 145, 0.08), transparent 34rem),
    linear-gradient(180deg, #020202 0%, #090909 42%, #050505 100%);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

html.js-enabled body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #000;
  pointer-events: none;
  animation: blackFade 1100ms var(--ease) 120ms forwards;
}

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

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

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  padding: 20px 24px;
  color: rgba(238, 233, 223, 0.68);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.22));
  border-bottom: 1px solid rgba(199, 163, 104, 0.12);
  backdrop-filter: blur(14px);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav a {
  transition: color 500ms var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.portfolio {
  display: grid;
  gap: clamp(76px, 10vw, 150px);
  padding: 0 0 clamp(80px, 10vw, 140px);
}

.sheet {
  position: relative;
  width: var(--wrap);
  margin-inline: auto;
  padding: clamp(54px, 7vw, 92px) 0;
  background: transparent;
  border-top: 1px solid var(--line-soft);
}

.sheet::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: min(120px, 18vw);
  height: 2px;
  background: var(--gold);
  opacity: 0.92;
}

.sheet::after {
  content: "";
  position: absolute;
  top: clamp(56px, 7vw, 96px);
  right: 0;
  width: 1px;
  height: calc(100% - clamp(110px, 12vw, 180px));
  background: var(--line-soft);
}

.cover-sheet {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  display: grid;
  align-items: end;
}

.cover-sheet::before,
.cover-sheet::after {
  display: none;
}

.cover-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #060606;
}

.cover-visual img {
  cursor: zoom-in;
  object-position: center center;
}

.cover-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.18) 52%, rgba(0, 0, 0, 0.32) 100%);
}

.cover-panel {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin: 0 auto clamp(68px, 10vh, 116px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.72);
}

.cover-panel::before {
  content: "";
  position: absolute;
  left: -22px;
  top: -34px;
  width: 1px;
  height: clamp(150px, 18vw, 230px);
  background: linear-gradient(180deg, transparent, rgba(199, 163, 104, 0.82), transparent);
  opacity: 0.74;
  transform-origin: top;
}

.eyebrow,
.sheet-header p {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.cover-panel h1 {
  margin: 0;
  max-width: 760px;
  color: #f5f1e8;
  font-size: clamp(64px, 11vw, 132px);
  line-height: 0.86;
  font-weight: 680;
}

.name-cn {
  margin: clamp(18px, 2vw, 28px) 0 12px;
  color: var(--gold);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
}

.rule {
  width: min(360px, 42vw);
  height: 1px;
  margin: 24px 0 30px;
  background: var(--gold);
  opacity: 0.72;
  transform-origin: left;
}

.portfolio-title {
  margin: 0 0 10px;
  color: #f3eee4;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.portfolio-title-cn {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 18px);
}

.page-number {
  position: absolute;
  right: 0;
  bottom: clamp(26px, 4vw, 54px);
  z-index: 4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.cover-sheet .page-number {
  right: clamp(28px, 6vw, 72px);
}

.sheet-header {
  position: relative;
  max-width: 720px;
  padding-bottom: 28px;
  margin-bottom: clamp(34px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.sheet-header h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 0.98;
  font-weight: 650;
}

.sheet-header span {
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 18px);
}

.image-frame,
.cover-visual {
  background: #0b0b0d;
}

.image-frame {
  position: relative;
  margin: 0;
  overflow: visible;
  cursor: zoom-in;
}

.image-frame img {
  height: calc(100% - 28px);
  border: 1px solid rgba(199, 163, 104, 0.28);
  background: var(--panel);
  transform: scale(1.001);
  transition: transform 780ms var(--ease), filter 780ms var(--ease), border-color 780ms var(--ease);
}

.image-frame:hover img {
  border-color: rgba(199, 163, 104, 0.48);
  transform: scale(1.025);
}

.image-frame img.focus-lower {
  object-position: center 72%;
}

figcaption {
  position: static;
  padding: 10px 0 0;
  color: rgba(238, 233, 223, 0.66);
  background: none;
  font-size: 11px;
  line-height: 1.35;
}

.hero-image {
  width: min(100%, 1040px);
  height: clamp(430px, 62vw, 720px);
}

.quiet-note {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.75;
}

.stack-layout,
.triple-stack,
.split-layout,
.ba-group {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.stack-layout {
  width: 100%;
}

.stack-layout .image-frame:nth-child(1) {
  width: min(100%, 1080px);
  height: clamp(360px, 48vw, 620px);
}

.stack-layout .image-frame:nth-child(2) {
  width: min(92%, 980px);
  height: clamp(320px, 42vw, 540px);
  margin-left: auto;
}

.triple-stack {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.triple-stack .image-frame,
.triple-stack .image-frame:first-child {
  height: clamp(260px, 26vw, 390px);
}

.split-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.split-layout.tall-left {
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
}

.split-layout.tall-left > .image-frame {
  height: clamp(620px, 68vw, 820px);
}

.split-layout.tall-left > div .image-frame {
  height: clamp(320px, 34vw, 460px);
}

.split-layout.equal .image-frame {
  height: clamp(440px, 48vw, 680px);
}

.ba-group {
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  align-items: start;
}

.ba-group .after {
  order: -1;
  grid-column: 1 / -1;
  height: clamp(420px, 58vw, 680px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.3);
}

.ba-group .before {
  width: min(460px, 100%);
  height: clamp(210px, 24vw, 320px);
  opacity: 0.72;
}

.tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 7px 10px;
  color: var(--gold);
  background: rgba(7, 7, 7, 0.82);
  border: 1px solid rgba(199, 163, 104, 0.5);
  border-radius: 2px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.closing-sheet {
  min-height: 92svh;
}

.closing-panel h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #f5f1e8;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.94;
  font-weight: 650;
}

.name-small {
  margin: 36px 0 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
}

.cover-sheet:not(.closing-sheet) .cover-visual img {
  filter: brightness(0.58) contrast(1.06) saturate(0.92);
  transform: scale(1.03);
}

.cover-sheet.is-visible:not(.closing-sheet) .cover-visual img {
  animation: coverSlowZoom 1300ms var(--ease) both;
}

.cover-sheet.is-visible .cover-panel::before {
  animation: lineReveal 1100ms var(--ease) 260ms both;
}

.cover-sheet.is-visible .rule {
  animation: ruleReveal 1000ms var(--ease) 520ms both;
}

html.js-enabled .cover-panel .eyebrow,
html.js-enabled .cover-panel h1,
html.js-enabled .cover-panel .name-cn,
html.js-enabled .cover-panel .portfolio-title,
html.js-enabled .cover-panel .portfolio-title-cn,
html.js-enabled .cover-panel .name-small {
  opacity: 0;
  transform: translateY(18px);
}

html.js-enabled .cover-sheet.is-visible .cover-panel .eyebrow {
  animation: titleIn 900ms var(--ease) 260ms forwards;
}

html.js-enabled .cover-sheet.is-visible .cover-panel h1 {
  animation: titleIn 980ms var(--ease) 420ms forwards;
}

html.js-enabled .cover-sheet.is-visible .cover-panel .name-cn {
  animation: titleIn 900ms var(--ease) 540ms forwards;
}

html.js-enabled .cover-sheet.is-visible .cover-panel .portfolio-title {
  animation: titleIn 900ms var(--ease) 700ms forwards;
}

html.js-enabled .cover-sheet.is-visible .cover-panel .portfolio-title-cn,
html.js-enabled .cover-sheet.is-visible .cover-panel .name-small {
  animation: titleIn 900ms var(--ease) 820ms forwards;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  padding: clamp(18px, 3vw, 38px);
  background: rgba(2, 2, 2, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  align-self: center;
  justify-self: center;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 112px);
  object-fit: contain;
  border: 1px solid rgba(199, 163, 104, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.56);
}

.lightbox-caption {
  justify-self: center;
  max-width: min(760px, 92vw);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  color: var(--text);
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid rgba(199, 163, 104, 0.42);
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease);
}

html.js-enabled .reveal.is-visible,
.reveal {
  opacity: 1;
  transform: translateY(0);
}

html.js-enabled .ba-group .image-frame {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

html.js-enabled .is-visible .ba-group .image-frame,
.ba-group .image-frame {
  opacity: 1;
  transform: translateY(0);
}

html.js-enabled .is-visible .ba-group .before {
  transition-delay: 140ms;
}

@keyframes blackFade {
  to {
    opacity: 0;
  }
}

@keyframes coverSlowZoom {
  from {
    transform: scale(1.06);
    filter: brightness(0.48) contrast(1.08) saturate(0.88);
  }

  to {
    transform: scale(1.03);
    filter: brightness(0.58) contrast(1.06) saturate(0.92);
  }
}

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

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: scaleY(0.2) translateY(18px);
  }

  to {
    opacity: 0.74;
    transform: scaleY(1) translateY(0);
  }
}

@keyframes ruleReveal {
  from {
    opacity: 0;
    transform: scaleX(0.18);
  }

  to {
    opacity: 0.72;
    transform: scaleX(1);
  }
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border: 1px solid rgba(199, 163, 104, 0.28);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 860px) {
  :root {
    --wrap: min(100vw - 28px, 100%);
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    padding: 14px 16px;
    font-size: 10px;
    scrollbar-width: none;
  }

  .site-nav a:not(:first-child) {
    display: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .portfolio {
    gap: 64px;
    padding-bottom: 84px;
  }

  .cover-sheet {
    min-height: 100svh;
  }

  .cover-panel {
    width: calc(100vw - 48px);
    margin-bottom: 64px;
  }

  .cover-panel::before {
    left: -12px;
    height: 148px;
  }

  .cover-panel h1 {
    font-size: clamp(54px, 18vw, 82px);
  }

  .name-cn {
    font-size: 32px;
  }

  .sheet {
    width: calc(100vw - 28px);
    padding: 46px 0 34px;
  }

  .sheet::after {
    display: none;
  }

  .page-number {
    right: 0;
    bottom: 4px;
  }

  .sheet-header {
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .sheet-header h2 {
    font-size: clamp(27px, 9vw, 42px);
  }

  .sheet-header span,
  .quiet-note {
    font-size: 14px;
  }

  .hero-image,
  .stack-layout .image-frame:nth-child(1),
  .stack-layout .image-frame:nth-child(2),
  .triple-stack .image-frame,
  .triple-stack .image-frame:first-child,
  .split-layout.tall-left > .image-frame,
  .split-layout.tall-left > div .image-frame,
  .split-layout.equal .image-frame,
  .ba-group .image-frame,
  .ba-group .after,
  .ba-group .before {
    width: 100%;
    height: auto;
    margin-left: 0;
  }

  .hero-image img,
  .stack-layout .image-frame:nth-child(1) img,
  .stack-layout .image-frame:nth-child(2) img,
  .triple-stack .image-frame img,
  .triple-stack .image-frame:first-child img,
  .split-layout.tall-left > .image-frame img,
  .split-layout.tall-left > div .image-frame img,
  .split-layout.equal .image-frame img,
  .ba-group .image-frame img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .split-layout,
  .split-layout.tall-left,
  .split-layout.equal,
  .triple-stack,
  .ba-group {
    grid-template-columns: 1fr;
  }

  .split-layout.tall-left > .image-frame:first-child img {
    aspect-ratio: 3 / 4;
  }

  .ba-group .after {
    order: -1;
  }

  .ba-group .before {
    opacity: 0.76;
  }

  .tag {
    top: 12px;
    left: 12px;
  }

  figcaption {
    font-size: 12px;
  }

  .quiet-note {
    margin-top: 20px;
  }

  .closing-sheet {
    min-height: 92svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  html.js-enabled body::before {
    display: none;
  }

  .reveal,
  .ba-group .image-frame,
  .cover-panel .eyebrow,
  .cover-panel h1,
  .cover-panel .name-cn,
  .cover-panel .portfolio-title,
  .cover-panel .portfolio-title-cn,
  .cover-panel .name-small {
    opacity: 1 !important;
    transform: none !important;
  }
}
