:root {
  --text: #050505;
  --muted: #777;
  --line: #ededed;
  --bg: #fff;
  --soft: #f4f5f4;
  --gallery-speed: 0.2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

body.intro-active {
  background: var(--soft);
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  min-height: 130px;
  padding: 18px 66px 0;
  background: rgba(255, 255, 255, 0.96);
}

.site-title {
  position: absolute;
  top: 17px;
  left: 66px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.site-nav {
  position: absolute;
  top: 16px;
  right: 70px;
  margin: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.site-nav a {
  display: block;
  min-width: 104px;
  height: 42px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 42px;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav .active {
  background: rgba(0, 0, 0, 0.07);
}

.site-nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.menu-button {
  display: none;
}

.intro-active .site-header {
  opacity: 0;
  pointer-events: none;
}

.intro {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  background: var(--soft);
}

.intro-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  animation: introGlide 3.35s cubic-bezier(.42, 0, .18, 1) forwards;
}

.intro-strip img {
  width: 116px;
  height: 74px;
  object-fit: cover;
}

@keyframes introGlide {
  0% {
    opacity: 0;
    transform: translateX(42vw);
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translateX(-10vw);
  }
  100% {
    opacity: 0;
    transform: translateX(-32vw);
  }
}

.gallery {
  min-height: 100vh;
  padding-top: 130px;
  overflow: hidden;
  background: var(--soft);
}

.gallery-stage {
  display: flex;
  align-items: center;
  height: calc(100vh - 130px);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.gallery-stage:active {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 30px;
  will-change: transform;
}

.gallery-card {
  flex: 0 0 auto;
  width: min(720px, 56vw);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9.6;
  object-fit: cover;
}

.gallery-hint {
  position: fixed;
  left: 50px;
  bottom: 30px;
  color: #999;
  opacity: 0.7;
}

.photo-detail {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 72px 64px 76px;
  background: rgba(255, 255, 255, 0.97);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.detail-figure {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin: 0;
}

.detail-figure img {
  width: min(980px, 72vw);
  max-height: calc(100vh - 170px);
  object-fit: contain;
}

.detail-figure figcaption {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 28px;
  padding-top: 12px;
  color: #111;
  line-height: 20px;
}

.detail-figure figcaption strong {
  font-size: 15px;
  font-weight: 700;
}

.detail-figure figcaption span {
  color: #444;
}

.detail-exit-hint {
  position: fixed;
  left: 66px;
  bottom: 32px;
  z-index: 1;
  color: #c5c5c5;
}

.detail-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  width: 300px;
  padding: 24px 0 24px 26px;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
}

.detail-panel h2 {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 20px;
}

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

.detail-panel dl {
  margin: 0;
}

.detail-panel div {
  margin-bottom: 14px;
}

.detail-panel dt {
  color: #b4b4b4;
  line-height: 17px;
}

.detail-panel dd {
  margin: 0;
  line-height: 19px;
}

.detail-note {
  margin-top: 22px;
}

.detail-note dd {
  max-width: 24em;
  white-space: normal;
  overflow-wrap: break-word;
}

.series-index {
  padding: 130px 66px 100px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 72px;
  row-gap: 62px;
}

.series-card {
  display: block;
  cursor: pointer;
}

.series-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: opacity 220ms ease, filter 220ms ease;
}

.series-card:hover img,
.series-card:focus-visible img {
  opacity: 0.62;
  filter: saturate(0.75);
}

.series-card strong,
.series-card span,
.series-card small {
  display: block;
}

.series-card strong {
  margin-top: 10px;
  font-size: 13px;
  line-height: 19px;
}

.series-card span {
  color: #222;
  line-height: 19px;
}

.series-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.series-card p {
  max-width: 28em;
  margin: 28px 0 0;
  color: #333;
}

.viewer {
  position: relative;
  padding-top: 130px;
}

.viewer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  column-gap: 70px;
  align-items: center;
  width: min(1540px, calc(100vw - 132px));
  margin: 0 auto 74px;
}

.viewer-frame {
  position: relative;
  width: 100%;
  margin: 0;
}

.viewer-figure {
  width: 100%;
  margin: 0;
}

.viewer-figure img {
  width: 100%;
  max-height: calc(100vh - 230px);
  object-fit: contain;
}

.viewer-figure figcaption {
  display: none;
  min-height: 27px;
  padding-top: 8px;
  line-height: 19px;
}

.viewer-info {
  align-self: center;
  width: 310px;
  padding: 24px 0 24px 26px;
  color: #222;
}

.viewer-info dl {
  margin: 0;
}

.viewer-info div {
  margin-bottom: 14px;
}

.viewer-info dt {
  color: #b4b4b4;
  line-height: 17px;
}

.viewer-info dd {
  margin: 0;
  line-height: 19px;
}

.viewer-note {
  margin-top: 22px;
}

.viewer-note dd {
  max-width: 24em;
  white-space: normal;
  overflow-wrap: break-word;
}

.viewer-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 15;
  width: 24%;
  border: 0;
  background: transparent;
  opacity: 0;
}

.viewer-zone--prev {
  left: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M30 12 18 24l12 12' fill='none' stroke='%23111111' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 24 24, w-resize;
}

.viewer-zone--next {
  right: 0;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M18 12l12 12-12 12' fill='none' stroke='%23111111' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 24 24, e-resize;
}

.series-bar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 51px;
  margin: 0 66px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}

.work-count {
  color: var(--muted);
  font-weight: 400;
}

.thumb-section {
  padding: 38px 25px 72px;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 25px;
  row-gap: 34px;
}

.thumb {
  display: block;
  padding: 0 25px;
}

.thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.thumb span {
  display: block;
  min-height: 38px;
  padding-top: 8px;
  line-height: 19px;
}

.thumb.active span {
  font-weight: 700;
}

.statement,
.plain-section {
  padding: 0 66px 84px;
  border-top: 1px solid var(--line);
}

.statement h2,
.plain-section h1 {
  margin: 0;
  padding: 14px 0 34px;
  font-size: 13px;
  line-height: 19px;
}

.statement-copy,
.plain-section p {
  width: min(760px, 100%);
}

.statement-copy p,
.plain-section p {
  margin: 0 0 22px;
}

.plain-section {
  padding-top: 130px;
  min-height: 70vh;
}

.about-copy {
  width: min(820px, 100%);
}

.about-copy h2 {
  margin: 0 0 34px;
  font-size: 15px;
  line-height: 22px;
}

.about-copy h3 {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 19px;
}

.about-series {
  margin: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.about-series article,
.about-contact {
  padding-top: 16px;
  border-bottom: 1px solid var(--line);
}

.about-series article p,
.about-contact p {
  margin-bottom: 16px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .gallery-card {
    width: 82vw;
  }

  .photo-detail {
    place-items: center;
    padding: 54px 30px;
  }

  .detail-figure img {
    width: min(100%, 720px);
    max-height: 62vh;
  }

  .detail-panel {
    width: min(720px, 100%);
    padding: 0;
    background: transparent;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viewer-layout {
    grid-template-columns: 1fr;
    row-gap: 24px;
    width: calc(100vw - 120px);
    margin-bottom: 56px;
  }

  .viewer-info {
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --gallery-speed: 0.72;
  }

  .site-header {
    min-height: 62px;
    padding: 10px 16px 0;
    border-bottom: 0;
  }

  .site-title {
    left: 16px;
    font-size: 18px;
    line-height: 38px;
  }

  .menu-button {
    display: none;
  }

  .site-nav {
    display: block;
    top: 10px;
    right: 12px;
  }

  .site-nav ul {
    display: flex;
    padding: 3px;
  }

  .site-nav a {
    min-width: 56px;
    height: 34px;
    font-size: 13px;
    line-height: 34px;
  }

  .intro-strip img {
    width: 82px;
    height: 52px;
  }

  .gallery {
    padding-top: 62px;
  }

  .gallery-stage {
    height: calc(100vh - 62px);
  }

  .gallery-card {
    width: 82vw;
  }

  .photo-detail {
    padding: 50px 16px 36px;
  }

  .detail-figure img {
    width: 100%;
    max-height: 58vh;
  }

  .detail-panel {
    width: 100%;
    padding: 0;
    background: transparent;
  }

  .detail-figure figcaption {
    display: block;
  }

  .detail-figure figcaption span {
    display: block;
  }

  .detail-exit-hint {
    left: 16px;
    bottom: 18px;
  }

  .detail-panel h2 {
    margin-bottom: 18px;
  }

  .detail-panel div {
    margin-bottom: 10px;
  }

  .detail-note {
    margin-top: 14px;
  }

  .detail-note dd {
    max-width: none;
  }

  .gallery-hint {
    left: 16px;
    bottom: 18px;
  }

  .series-index {
    padding: 74px 16px 56px;
  }

  .series-grid {
    grid-template-columns: 1fr;
    row-gap: 42px;
  }

  .series-card p {
    margin-top: 16px;
  }

  .viewer {
    padding-top: 74px;
  }

  .viewer-layout {
    width: calc(100vw - 30px);
    margin-bottom: 44px;
  }

  .viewer-info {
    width: 100%;
    padding: 0;
  }

  .viewer-figure img {
    max-height: 55vh;
  }

  .viewer-zone {
    top: 0;
    bottom: 0;
    height: auto;
    width: 34%;
  }

  .series-bar {
    min-height: 51px;
    margin: 0 15px;
  }

  .thumb-section {
    padding: 28px 8px 56px;
  }

  .thumb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 24px;
  }

  .thumb {
    padding: 0 8px;
  }

  .thumb span {
    min-height: 0;
    padding-top: 7px;
  }

  .statement,
  .plain-section {
    padding: 0 16px 56px;
  }

  .plain-section {
    padding-top: 74px;
  }
}
