:root {
  --ink: #171512;
  --paper: #f1eee7;
  --muted: #746f67;
  --line: rgba(23, 21, 18, .16);
  --page-gutter: clamp(24px, 6vw, 96px);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.progress { position: fixed; top: 0; left: 0; z-index: 100; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #d7b078, #fff1d8, #8da8b7); }
.grain { position: fixed; inset: -70%; z-index: 90; pointer-events: none; opacity: .028; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain .25s steps(2) infinite; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: #f8f4ec; background: #10212b; isolation: isolate; }
.hero__image { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(5,11,14,.22), rgba(5,11,14,.08) 38%, rgba(5,11,14,.78)); }
.hero__nav { display: flex; justify-content: space-between; padding: clamp(26px, 4vw, 52px); font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.hero__nav a { text-decoration: none; }
.hero__copy { position: absolute; right: var(--page-gutter); bottom: clamp(96px, 13vh, 136px); left: var(--page-gutter); text-align: center; }
.kicker, .section-label { margin: 0; font: 500 10px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { display: flex; align-items: baseline; justify-content: center; gap: .12em; margin: 18px 0 12px; font: 400 clamp(54px, 9vw, 122px)/1.1 var(--serif); letter-spacing: .015em; }
.hero h1 .name { display: inline-flex; white-space: nowrap; }
.hero h1 .char { display: inline-block; }
.hero h1 .amp { color: #dfbd8e; font-size: .64em; }
.hero__line { margin: 0; font: 400 clamp(14px, 1.4vw, 18px)/1.7 var(--serif); letter-spacing: .13em; }
.hero__scroll { position: absolute; right: clamp(22px, 4vw, 52px); bottom: 34px; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .12em; text-decoration: none; }
.hero__scroll span { display: block; width: 42px; height: 1px; background: currentColor; }

.prologue { display: grid; grid-template-columns: minmax(120px, .42fr) minmax(460px, 1.58fr) minmax(220px, .72fr); gap: clamp(36px, 5vw, 82px); align-items: start; width: min(calc(100% - 2 * var(--page-gutter)), 1240px); margin: 0 auto; padding: clamp(88px, 9vw, 128px) 0 clamp(96px, 10vw, 140px); }
.prologue .section-label { color: var(--muted); }
.prologue blockquote { margin: -8px 0 0; font: 400 clamp(38px, 4.7vw, 64px)/1.32 var(--serif); letter-spacing: .01em; }
.prologue__note { align-self: end; margin: 0 0 8px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.9; }

.story { position: relative; height: 100svh; overflow: hidden; background: #12110f; }
.story__track { display: flex; width: 400%; height: 100%; }
.scene { position: relative; width: 25%; height: 100%; overflow: hidden; color: #fff; isolation: isolate; }
.scene > img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.scene__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(10,10,9,.74), rgba(10,10,9,.12) 64%, rgba(10,10,9,.28)); }
.scene__copy { position: absolute; top: 50%; left: var(--page-gutter); max-width: min(48vw, 680px); transform: translateY(-50%); }
.scene__copy span { font: 500 10px/1 var(--sans); letter-spacing: .22em; opacity: .66; }
.scene__copy h2 { margin: 20px 0 14px; font: 400 clamp(48px, 8vw, 112px)/1.12 var(--serif); letter-spacing: .035em; }
.scene__copy p { max-width: 520px; margin: 0; font: 400 clamp(15px, 1.4vw, 18px)/1.9 var(--serif); letter-spacing: .08em; }
.scene b { position: absolute; right: 4vw; bottom: 1vw; font: 400 clamp(110px, 22vw, 310px)/1 var(--serif); opacity: .12; }
.scene--red .scene__shade { background: linear-gradient(90deg, rgba(49,8,5,.72), rgba(49,8,5,.08) 70%); }
.scene--white { color: #171512; }
.scene--white .scene__shade { background: linear-gradient(90deg, rgba(239,239,236,.83), rgba(239,239,236,.05) 72%); }

.gallery-section { width: min(calc(100% - 2 * clamp(12px, 2vw, 28px)), 1460px); margin: 0 auto; padding: clamp(96px, 10vw, 148px) 0 120px; }
.gallery-header { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(560px, 1.2fr); gap: clamp(40px, 7vw, 108px); align-items: end; width: min(calc(100% - 2 * clamp(10px, 5vw, 86px)), 1240px); margin: 0 auto 34px; }
.gallery-header .section-label { color: var(--muted); }
.gallery-header h2 { margin: 16px 0 12px; font: 400 clamp(38px, 5vw, 64px)/1.24 var(--serif); }
.gallery-count { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.filter { padding: 10px 15px; border: 1px solid transparent; border-radius: 99px; color: var(--muted); background: rgba(23,21,18,.045); cursor: pointer; font-size: 11px; transition: color .25s ease, border-color .25s ease, background .25s ease; }
.filter:hover { color: var(--ink); border-color: var(--line); background: transparent; }
.filter.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.gallery { columns: 4 270px; column-gap: 14px; }
.photo { position: relative; width: 100%; margin: 0 0 14px; padding: 0; overflow: hidden; border: 0; background: #d8d3ca; cursor: zoom-in; break-inside: avoid; }
.photo.is-awaiting-reveal { opacity: 0; transform: translateY(22px) scale(.985); }
.photo.is-revealed { opacity: 1; transform: none; transition: opacity .65s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.photo[hidden] { display: none; }
.photo img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.photo:hover img { transform: scale(1.025); filter: brightness(.9); }
.photo__index { position: absolute; right: 12px; bottom: 10px; color: #fff; font-size: 10px; letter-spacing: .12em; opacity: 0; transition: opacity .3s ease; }
.photo:hover .photo__index { opacity: .85; }

footer { display: grid; place-items: center; min-height: clamp(420px, 54svh, 560px); padding: 72px 24px; color: #f5f0e8; background: #151310; text-align: center; }
footer .section-label { opacity: .5; }
.footer__names { margin: 24px 0 18px; font: 400 clamp(50px, 8vw, 104px)/1.2 var(--serif); }
.footer__names i { color: #d6b17f; font-size: .65em; font-style: normal; }
footer > p:last-child { margin: 0; font: 400 15px/1.8 var(--serif); letter-spacing: .1em; opacity: .62; }

.lightbox { width: 100vw; max-width: none; height: 100svh; max-height: none; margin: 0; padding: 16px; border: 0; color: #fff; background: rgba(12,11,10,.97); }
.lightbox::backdrop { background: rgba(0,0,0,.92); }
.lightbox form { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lightbox__close, .lightbox__nav { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #fff; background: transparent; cursor: pointer; font-size: 22px; }
.lightbox__stage { position: relative; display: grid; height: calc(100% - 58px); place-items: center; }
.lightbox__stage img { max-width: calc(100vw - 120px); max-height: calc(100svh - 100px); object-fit: contain; }
.lightbox__status { position: absolute; top: 8px; left: 8px; margin: 0; padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: rgba(255,255,255,.78); background: rgba(12,11,10,.62); font-size: 10px; letter-spacing: .06em; backdrop-filter: blur(8px); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 4px; }
.lightbox__nav--next { right: 4px; }
.lightbox__meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 48px; font-size: 11px; letter-spacing: .08em; }
.lightbox__meta strong { font: 400 17px/1 var(--serif); }
.lightbox__meta button { justify-self: end; padding: 8px 0; border: 0; color: inherit; background: transparent; cursor: pointer; font-size: inherit; letter-spacing: inherit; }
.lightbox__meta button:disabled { cursor: wait; opacity: .58; }

@keyframes grain { 0% { transform: translate(0); } 25% { transform: translate(2%, -2%); } 50% { transform: translate(-2%, 3%); } 75% { transform: translate(3%, 1%); } 100% { transform: translate(-3%, -2%); } }

@media (max-width: 760px) {
  :root { --page-gutter: 20px; }
  .hero { min-height: 92svh; }
  .hero__image { object-position: 52% center; }
  .hero__nav { padding: 24px 20px; }
  .hero__copy { right: 20px; bottom: clamp(84px, 12vh, 108px); left: 20px; }
  .hero h1 { gap: .08em; font-size: clamp(44px, 14vw, 58px); }
  .hero__line { font-size: 13px; letter-spacing: .08em; }
  .hero__scroll { display: none; }
  .prologue { grid-template-columns: 1fr; gap: 24px; width: calc(100% - 40px); padding: 76px 0 84px; }
  .prologue blockquote { margin-top: 4px; font-size: clamp(34px, 9.5vw, 42px); line-height: 1.32; }
  .prologue__note { margin-top: 6px; padding-top: 18px; font-size: 13px; line-height: 1.8; }
  .story { height: auto; overflow: visible; }
  .story__track { display: block; width: 100%; }
  .scene { width: 100%; height: 88svh; }
  .scene__copy { top: auto; right: 22px; bottom: 56px; left: 22px; transform: none; }
  .scene__copy h2 { margin-top: 14px; font-size: clamp(48px, 13vw, 62px); }
  .scene__copy p { max-width: 320px; font-size: 14px; }
  .scene b { right: 12px; bottom: 10px; font-size: 130px; }
  .scene--white .scene__shade { background: linear-gradient(0deg, rgba(239,239,236,.88), rgba(239,239,236,.05) 70%); }
  .gallery-section { padding-top: 82px; padding-bottom: 84px; }
  .gallery-header { grid-template-columns: 1fr; gap: 28px; width: calc(100% - 16px); margin-bottom: 24px; }
  .gallery-header h2 { max-width: 9em; margin-top: 14px; font-size: clamp(36px, 10.5vw, 46px); line-height: 1.22; }
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-right: -8px; padding: 14px 8px 5px 0; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .gallery { columns: 2 150px; column-gap: 9px; }
  .photo { margin-bottom: 9px; }
  .photo img { transition: none; }
  .photo:hover img { transform: none; filter: none; }
  .grain { animation: none; }
  footer { min-height: 420px; }
  .lightbox { padding: 8px; }
  .lightbox__stage img { max-width: 100%; max-height: calc(100svh - 128px); }
  .lightbox__nav { top: auto; bottom: 4px; }
  .lightbox__meta { grid-template-columns: 1fr 1fr; }
  .lightbox__meta strong { display: none; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  :root { --page-gutter: clamp(32px, 6vw, 64px); }
  .prologue { grid-template-columns: .42fr 1.35fr; }
  .prologue__note { grid-column: 2; max-width: 520px; }
  .gallery-header { grid-template-columns: 1fr; gap: 30px; }
  .filters { justify-content: flex-start; }
  .gallery { columns: 3 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
