:root {
  --paper: #fff8ef;
  --paper-deep: #f1e4d5;
  --ink: #172737;
  --ink-soft: #50616a;
  --vermilion: #c84c3a;
  --coral: #e66c52;
  --sun: #f3bd42;
  --jade: #78c7b4;
  --teal: #116e6b;
  --cobalt: #2f5ba9;
  --pink: #d75b88;
  --line: rgba(23, 39, 55, 0.18);
  --line-light: rgba(255, 248, 239, 0.3);
  --shadow: 0 20px 45px rgba(23, 39, 55, 0.13);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.dialog-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

.page-shell {
  width: min(1240px, calc(100% - 96px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 20px 42px;
  border-bottom: 1px solid transparent;
  background: rgba(255, 248, 239, 0.92);
  transition: box-shadow 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(23, 39, 55, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.brand-dot {
  color: var(--vermilion);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 5px 0;
}

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

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

.menu-toggle {
  display: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  background: var(--vermilion);
  color: var(--paper);
}

.hero-art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 43%;
  overflow: hidden;
  background: var(--coral);
}

.hero-art::before {
  position: absolute;
  z-index: 1;
  top: -5%;
  bottom: -5%;
  left: -42px;
  width: 84px;
  background: var(--vermilion);
  content: "";
  transform: skewX(-5deg);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 23%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-top: 190px;
  padding-bottom: 190px;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--paper);
}

.hero h1 {
  max-width: 590px;
  margin: 32px 0 25px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 74px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.12;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 em,
h2 em {
  color: var(--sun);
  font-style: normal;
}

.hero-intro {
  max-width: 415px;
  margin: 0;
  color: rgba(255, 248, 239, 0.84);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 44px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--sun);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.text-link-light {
  border-color: rgba(255, 248, 239, 0.68);
  color: var(--paper);
}

.text-link span,
.contact-email span {
  font-size: 18px;
  line-height: 1;
}

.hero-note {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 248, 239, 0.8);
  font-size: 10px;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  width: 1px;
  height: 50px;
  background: currentColor;
}

.section {
  padding: 128px 0;
}

.works {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: end;
  gap: 60px;
  margin-bottom: 58px;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 22px 0 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 54px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.section-heading h2 em {
  color: var(--vermilion);
}

.section-intro {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.filter-label,
.filter-count {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  padding: 7px 14px;
  color: var(--ink-soft);
  font-size: 12px;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.filter-count {
  margin-left: auto;
  white-space: nowrap;
}

.filter-count strong {
  color: var(--vermilion);
  font-size: 16px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-deep);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.work-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.work-card.is-hidden {
  display: none;
}

.work-card--wide {
  grid-column: span 7;
}

.work-card--tall {
  grid-column: span 5;
}

.work-card--feature {
  grid-column: span 12;
}

.work-open {
  display: block;
  width: 100%;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.work-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.22;
  background: var(--coral);
}

.work-card--tall .work-image {
  aspect-ratio: 0.82;
}

.work-card--feature .work-open {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.work-card--feature .work-image {
  aspect-ratio: 1.18;
}

.work-image::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 248, 239, 0.25);
  content: "";
  pointer-events: none;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card--wide .work-image img {
  object-position: center 26%;
}

.work-card--tall:nth-of-type(2) .work-image img {
  object-position: center 34%;
}

.work-card--tall:nth-of-type(3) .work-image img {
  object-position: center 26%;
}

.work-card--feature .work-image img {
  object-position: center 27%;
}

.work-card:hover .work-image img,
.work-card:focus-within .work-image img {
  transform: scale(1.035);
}

.work-index {
  position: absolute;
  top: 14px;
  left: 15px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 248, 239, 0.7);
  border-radius: 50%;
  background: rgba(23, 39, 55, 0.5);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.work-copy {
  display: block;
  min-height: 174px;
  padding: 22px 24px 25px;
  background: var(--paper-deep);
}

.work-card:nth-child(2) .work-copy {
  background: var(--jade);
}

.work-card:nth-child(3) .work-copy {
  background: var(--sun);
}

.work-card:nth-child(4) .work-copy {
  background: var(--cobalt);
  color: var(--paper);
}

.work-card:nth-child(5) .work-copy {
  background: var(--teal);
  color: var(--paper);
}

.work-meta {
  display: block;
  margin-bottom: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  opacity: 0.72;
}

.work-title {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 29px;
  line-height: 1.2;
}

.work-description {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.8;
}

.work-open-label {
  display: block;
  margin-top: 25px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.work-open-label span {
  margin-left: 7px;
  font-size: 16px;
  vertical-align: -1px;
}

.works-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 58px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-align: center;
}

.works-footer p {
  margin: 0;
  white-space: nowrap;
}

.footer-rule {
  height: 1px;
  flex: 1;
  background: var(--line);
}

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

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 100px;
}

.about-lead h2 {
  max-width: 560px;
}

.about-lead h2 em {
  color: var(--jade);
}

.about-lead > p:last-child {
  max-width: 455px;
  margin: 30px 0 0;
  color: rgba(255, 248, 239, 0.7);
  font-size: 17px;
  line-height: 1.9;
}

.about-profile {
  align-self: end;
}

.profile-heading {
  border-top: 1px solid var(--line-light);
  padding: 13px 0;
  color: var(--jade);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.profile-list {
  margin: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line-light);
  padding: 15px 0;
}

.profile-row:last-child {
  border-bottom: 1px solid var(--line-light);
}

.profile-row dt {
  color: rgba(255, 248, 239, 0.52);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.profile-row dd {
  margin: 0;
  color: var(--paper);
  font-size: 14px;
}

.profile-row a {
  border-bottom: 1px solid var(--jade);
  color: var(--jade);
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 110px;
  border-top: 1px solid var(--line-light);
}

.process-item {
  min-height: 180px;
  border-right: 1px solid var(--line-light);
  padding: 25px 28px 0 0;
}

.process-item:last-child {
  border-right: 0;
}

.process-number {
  display: block;
  margin-bottom: 32px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.process-item strong {
  display: block;
  color: var(--paper);
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 22px;
  font-weight: 500;
}

.process-item p {
  margin: 8px 0 0;
  color: rgba(255, 248, 239, 0.58);
  font-size: 13px;
}

.contact {
  background: var(--sun);
  color: var(--ink);
}

.contact-shell {
  position: relative;
}

.contact h2 {
  max-width: 700px;
  margin-top: 24px;
  font-size: 66px;
}

.contact h2 em {
  color: var(--vermilion);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 50px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.2;
}

.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 25px;
  margin-top: 115px;
  border-top: 1px solid rgba(23, 39, 55, 0.35);
  padding-top: 16px;
  color: rgba(23, 39, 55, 0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.contact-bottom a {
  color: var(--ink);
}

.work-dialog {
  width: min(1080px, calc(100% - 48px));
  max-height: calc(100% - 48px);
  margin: auto;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 35px 90px rgba(23, 39, 55, 0.35);
  color: var(--ink);
  padding: 0;
}

.work-dialog::backdrop {
  background: rgba(23, 39, 55, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: 610px;
}

.dialog-image {
  min-height: 610px;
  background: var(--coral);
}

.dialog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

.dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px;
}

.dialog-copy h2 {
  margin: 18px 0 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 50px;
  font-weight: 500;
  line-height: 1.2;
}

.dialog-copy > p:not(.eyebrow) {
  max-width: 330px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.dialog-copy .text-link {
  align-self: flex-start;
  margin-top: 48px;
  color: var(--vermilion);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 20px;
  display: grid;
  width: 38px;
  height: 38px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.88);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 48px, 720px);
  }

  .site-header {
    padding: 15px 24px;
  }

  .site-nav {
    gap: 22px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-art {
    left: 36%;
  }

  .hero-copy {
    padding-top: 165px;
  }

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

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-heading h2,
  .about h2 {
    font-size: 48px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .about-profile {
    max-width: 560px;
  }

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

  .contact-email {
    font-size: 32px;
  }

  .dialog-frame {
    grid-template-columns: 1fr;
  }

  .dialog-image {
    min-height: 410px;
    max-height: 58vh;
  }

  .dialog-copy {
    padding: 35px 40px 42px;
  }

  .dialog-copy h2 {
    font-size: 42px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 36px);
  }

  .site-header {
    padding: 13px 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-art {
    top: 330px;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .hero-art::before {
    top: -34px;
    right: -5%;
    bottom: auto;
    left: -5%;
    width: 110%;
    height: 70px;
    transform: skewY(-4deg);
  }

  .hero-art img {
    object-position: 66% center;
  }

  .hero-copy {
    padding-top: 125px;
    padding-bottom: 380px;
  }

  .hero h1 {
    margin-top: 24px;
    font-size: 51px;
  }

  .hero-intro {
    max-width: 300px;
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .hero-note {
    right: 18px;
    bottom: 20px;
    font-size: 8px;
  }

  .section {
    padding: 86px 0;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .section-heading h2,
  .about h2 {
    font-size: 42px;
  }

  .section-intro {
    font-size: 15px;
  }

  .filter-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .filter-count {
    margin-left: 0;
    padding-top: 8px;
  }

  .filter-buttons {
    order: 3;
    width: 100%;
  }

  .work-grid {
    display: block;
  }

  .work-card {
    margin-bottom: 16px;
  }

  .work-card--wide .work-image,
  .work-card--tall .work-image,
  .work-card--feature .work-image {
    aspect-ratio: 0.82;
  }

  .work-card--feature .work-open {
    display: block;
  }

  .work-copy {
    min-height: 160px;
  }

  .works-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-top: 40px;
  }

  .works-footer p {
    white-space: normal;
  }

  .footer-rule {
    width: 100%;
    flex: none;
  }

  .about-grid {
    gap: 56px;
  }

  .about-lead > p:last-child {
    font-size: 15px;
  }

  .process {
    display: block;
    margin-top: 75px;
  }

  .process-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
    padding: 20px 0 24px;
  }

  .process-item:last-child {
    border-bottom: 0;
  }

  .process-number {
    margin-bottom: 20px;
  }

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

  .contact-email {
    gap: 10px;
    margin-top: 38px;
    font-size: 24px;
  }

  .contact-bottom {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 80px;
  }

  .work-dialog {
    width: calc(100% - 24px);
    max-height: calc(100% - 24px);
  }

  .dialog-image {
    min-height: 300px;
    max-height: 46vh;
  }

  .dialog-copy {
    padding: 30px 24px 32px;
  }

  .dialog-copy h2 {
    font-size: 36px;
  }

  .dialog-copy .text-link {
    margin-top: 34px;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
