:root {
  --paper: #f1efe9;
  --paper-deep: #e4e0d7;
  --ink: #181817;
  --ink-soft: #54524d;
  --red: #9d2f26;
  --line: rgba(24, 24, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4vw;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 23px;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-family: "STSong", "Songti SC", serif;
  font-size: 17px;
  font-weight: 500;
}

.brand small {
  margin-top: 3px;
  font-size: 8px;
}

.site-nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
}

.site-nav a {
  position: relative;
  padding-block: 8px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  color: white;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.05);
  transform: scale(1.02);
  animation: hero-in 1.4s ease-out both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 12, 11, 0.72), rgba(10, 12, 11, 0.12) 65%),
    linear-gradient(0deg, rgba(7, 8, 7, 0.52), transparent 45%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 8vw;
  transform: translateY(-46%);
}

.eyebrow {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  letter-spacing: 0.26em;
}

.eyebrow.ink {
  color: var(--red);
}

.hero h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(76px, 11vw, 168px);
  font-weight: 400;
  line-height: 0.9;
}

.hero-line {
  margin: 30px 0 46px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 22px;
}

.text-link {
  display: inline-flex;
  min-width: 150px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
}

.text-link span:last-child {
  transition: transform 200ms ease;
}

.text-link:hover span:last-child {
  transform: translate(3px, 3px);
}

.hero-note {
  position: absolute;
  right: 4vw;
  bottom: 42px;
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 12px;
  writing-mode: vertical-rl;
}

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: 4vw;
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.25);
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 30px;
  background: white;
  animation: scroll 1.9s ease-in-out infinite;
}

.section {
  padding: 120px 8vw;
}

.section-number {
  align-self: start;
  padding-top: 8px;
  color: var(--ink-soft);
  font-family: Georgia, serif;
  font-size: 11px;
}

.intro {
  display: grid;
  grid-template-columns: 8% 44% 1fr;
  gap: 3%;
  min-height: 660px;
  align-items: start;
}

.intro h2,
.section-topline h2,
.process h2,
.contact h2 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-weight: 400;
}

.intro h2 {
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.35;
}

.intro-copy {
  position: relative;
  max-width: 520px;
  padding-top: 77px;
  color: var(--ink-soft);
  font-family: "STSong", "Songti SC", serif;
  font-size: 17px;
  line-height: 2;
}

.intro-copy p {
  margin: 0 0 24px;
}

.signature {
  position: absolute;
  right: 0;
  bottom: -70px;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  background: var(--red);
  color: var(--paper);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  writing-mode: vertical-rl;
}

.dark-section {
  background: var(--ink);
  color: var(--paper);
}

.section-topline {
  display: grid;
  grid-template-columns: 8% 1fr auto;
  gap: 3%;
  align-items: end;
  margin-bottom: 72px;
}

.section-topline h2,
.process h2 {
  font-size: clamp(40px, 5vw, 68px);
}

.dark-section .section-number {
  color: rgba(255, 255, 255, 0.42);
}

.service-list {
  margin-left: 11%;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.service-list article {
  display: grid;
  grid-template-columns: 8% 1fr 1fr;
  align-items: center;
  min-height: 136px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-list article > span {
  color: rgba(255, 255, 255, 0.45);
  font-family: Georgia, serif;
  font-size: 11px;
}

.service-list h3 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 29px;
  font-weight: 400;
}

.service-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.section-aside {
  max-width: 220px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 0;
  border: 0;
  background: #272724;
  cursor: pointer;
  text-align: left;
}

.work-card-main {
  grid-row: span 2;
  min-height: 682px;
}

.work-card img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45);
  transition: filter 500ms ease, transform 700ms ease;
}

.work-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 55%);
  content: "";
}

.work-card:hover img {
  filter: grayscale(0);
  transform: scale(1.035);
}

.work-caption {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  left: 30px;
  color: white;
}

.work-caption strong,
.work-caption small {
  display: block;
}

.work-caption strong {
  font-family: "STSong", "Songti SC", serif;
  font-size: 24px;
  font-weight: 400;
}

.work-caption small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.work-play {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: white;
  font-size: 11px;
}

.process {
  display: grid;
  grid-template-columns: 8% 34% 1fr;
  gap: 3%;
  background:
    linear-gradient(rgba(24, 24, 23, 0.04) 1px, transparent 1px);
  background-size: 100% 54px;
}

.process-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  color: var(--red);
  font-family: "STKaiti", "KaiTi", serif;
}

.process-list strong {
  font-family: "STSong", "Songti SC", serif;
  font-size: 20px;
  font-weight: 400;
}

.process-list small {
  color: var(--ink-soft);
  font-size: 11px;
}

.contact {
  min-height: 610px;
  background: var(--red);
  color: white;
}

.contact h2 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 98px);
  line-height: 1.15;
}

.contact-mail {
  display: flex;
  max-width: 760px;
  align-items: center;
  justify-content: space-between;
  margin-top: 70px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-family: Georgia, serif;
  font-size: clamp(18px, 2.5vw, 30px);
}

.contact-meta {
  display: flex;
  gap: 48px;
  margin-top: 55px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4vw;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.film-dialog {
  width: min(920px, calc(100% - 40px));
  padding: 0;
  border: 0;
  background: var(--ink);
  color: white;
}

.film-dialog::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
}

.dialog-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.dialog-frame img {
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.dialog-frame span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.film-dialog > div:last-child {
  padding: 24px 28px 30px;
}

.film-dialog h3 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 26px;
  font-weight: 400;
}

.film-dialog p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes scroll {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(50px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 780px) {
  .site-header {
    padding: 20px;
  }

  .menu-button {
    position: relative;
    z-index: 22;
    display: grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 1px;
    background: white;
    transition: transform 200ms ease;
  }

  .menu-open .menu-button span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-open .menu-button span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 20vw;
    background: var(--ink);
    font-family: "STSong", "Songti SC", serif;
    font-size: 34px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    transition: opacity 200ms ease, transform 200ms ease;
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: 90svh;
  }

  .hero-content {
    right: 24px;
    left: 24px;
  }

  .hero h1 {
    font-size: 76px;
  }

  .hero-note {
    right: 20px;
    bottom: 28px;
  }

  .scroll-cue {
    left: 20px;
    height: 60px;
  }

  .section {
    padding: 82px 24px;
  }

  .intro,
  .process {
    grid-template-columns: 28px 1fr;
    gap: 16px;
  }

  .intro {
    min-height: 0;
  }

  .intro-copy {
    grid-column: 2;
    padding-top: 20px;
    font-size: 16px;
  }

  .signature {
    position: static;
    margin-top: 42px;
  }

  .section-topline {
    grid-template-columns: 28px 1fr;
    gap: 16px;
    margin-bottom: 42px;
  }

  .section-aside {
    grid-column: 2;
    margin-top: 12px;
  }

  .service-list {
    margin-left: 0;
  }

  .service-list article {
    grid-template-columns: 36px 1fr;
    min-height: 115px;
  }

  .service-list p {
    grid-column: 2;
    margin-top: -25px;
  }

  .service-list h3 {
    font-size: 24px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card-main {
    grid-row: auto;
    min-height: 60vw;
  }

  .process-list {
    grid-column: 2;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
  }

  .process-list small {
    grid-column: 2;
    margin-top: 8px;
  }

  .contact {
    min-height: 570px;
  }

  .contact h2 {
    font-size: 48px;
  }

  .contact-mail {
    overflow-wrap: anywhere;
  }

  .contact-meta {
    flex-direction: column;
    gap: 8px;
    margin-top: 42px;
  }

  .contact-meta p {
    margin: 0;
  }
}

@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;
  }
}
