:root {
  --paper: #f3f3f1;
  --paper-deep: #d2d2ce;
  --ink: #080808;
  --ink-soft: #61615d;
  --line: rgba(8, 8, 8, 0.16);
  --oxblood: #111111;
  --white: #fbfbf9;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gutter: 20px;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

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

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

body.is-locked {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

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

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.scene-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 0;
  color: var(--white);
}

.scene-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  font-size: 10px;
}

.scene-back svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.scene-brand small {
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.scene-index {
  justify-self: end;
  color: rgba(255, 253, 248, 0.7);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.scene-hero {
  position: relative;
  width: 100%;
  height: 84svh;
  min-height: 600px;
  max-height: 920px;
  overflow: hidden;
  background: #11120f;
  color: var(--white);
}

.scene-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 9, 0.45) 0%, rgba(10, 10, 9, 0) 30%),
    linear-gradient(180deg, rgba(10, 10, 9, 0) 46%, rgba(10, 10, 9, 0.7) 100%);
}

.scene-hero-copy {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  left: var(--gutter);
}

.scene-hero-copy p {
  margin: 0 0 11px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.scene-hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.12;
}

.scene-intro {
  max-width: var(--content);
  margin: 0 auto;
  padding: 58px var(--gutter) 40px;
}

.scene-category {
  margin: 0 0 20px;
  color: var(--oxblood);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.scene-intro h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
}

.scene-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #7c7d75;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.scene-gallery {
  display: grid;
  max-width: var(--content);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 8px;
  margin: 0 auto;
  padding: 0 var(--gutter) 78px;
}

.scene-photo {
  position: relative;
  display: block;
  width: 100%;
  cursor: zoom-in;
  background: transparent;
}

.scene-photo--lead {
  grid-column: 1 / -1;
}

.scene-photo img {
  width: 100%;
  height: auto;
  border-radius: 0;
  background: var(--paper-deep);
}

.scene-photo > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: inline-flex;
  height: 21px;
  align-items: center;
  padding: 0 7px;
  border-radius: 0;
  background: rgba(10, 10, 9, 0.52);
  color: var(--white);
  font-size: 7px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(5px);
}

.scene-next {
  max-width: var(--content);
  margin: 0 auto;
  padding: 40px var(--gutter) 72px;
  border-top: 1px solid var(--line);
}

.scene-next > p {
  margin: 0 0 19px;
  color: var(--oxblood);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.scene-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--serif);
  font-size: 30px;
}

.scene-next svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-contact {
  padding: 60px var(--gutter) 52px;
  background: var(--ink);
  color: var(--white);
}

.scene-contact > p {
  margin: 0 0 56px;
  color: rgba(255, 253, 248, 0.56);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.scene-contact h2 {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 37px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.scene-contact a {
  display: inline-flex;
  height: 50px;
  align-items: center;
  padding: 0 22px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}

.scene-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: #050505;
  color: rgba(255, 253, 248, 0.5);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.scene-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: calc(15px + env(safe-area-inset-top)) var(--gutter)
    calc(18px + env(safe-area-inset-bottom));
  border: 0;
  background: #0a0b0a;
  color: var(--white);
}

.scene-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.scene-lightbox::backdrop {
  background: #0a0b0a;
}

.scene-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  color: rgba(255, 253, 248, 0.58);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.scene-lightbox-top button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
}

.scene-lightbox-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.scene-lightbox > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.scene-lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
}

.scene-lightbox-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 19px;
}

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }

  .scene-hero-copy h1 {
    font-size: 68px;
  }

  .scene-intro {
    padding-top: 76px;
    padding-bottom: 54px;
  }

  .scene-intro h2 {
    font-size: 38px;
  }

  .scene-gallery {
    gap: 48px 14px;
    padding-bottom: 100px;
  }

  .scene-next {
    padding-top: 52px;
    padding-bottom: 96px;
  }

  .scene-next a {
    font-size: 44px;
  }

  .scene-contact {
    padding-top: 78px;
    padding-bottom: 68px;
  }

  .scene-contact h2 {
    font-size: 56px;
  }
}

@media (min-width: 860px) {
  :root {
    --gutter: 48px;
  }

  .scene-header {
    padding-top: calc(24px + env(safe-area-inset-top));
  }

  .scene-hero-copy {
    right: 8%;
    bottom: 54px;
    left: 8%;
  }

  .scene-hero-copy h1 {
    font-size: 90px;
  }

  .scene-intro {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 48px;
    padding-top: 96px;
    padding-bottom: 66px;
  }

  .scene-category {
    padding-top: 9px;
  }

  .scene-intro h2 {
    max-width: 760px;
    font-size: 44px;
  }

  .scene-meta {
    grid-column: 2;
    margin-top: 4px;
  }

  .scene-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 58px 18px;
  }

  .scene-photo--lead {
    grid-column: span 2;
  }

  .scene-next {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 48px;
  }

  .scene-next > p {
    padding-top: 14px;
  }

  .scene-contact {
    padding-right: 8%;
    padding-left: 8%;
  }

  .scene-footer {
    padding-right: max(var(--gutter), calc((100vw - var(--content)) / 2));
    padding-left: max(var(--gutter), calc((100vw - var(--content)) / 2));
  }
}

@media (min-width: 1200px) {
  .scene-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scene-photo--lead {
    grid-column: span 2;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
