:root {
  --ink: #091012;
  --ink-soft: #111c1f;
  --paper: #f3f0e8;
  --paper-muted: #d8d4c9;
  --accent: #ff6a3d;
  --accent-soft: #ffbc74;
  --aqua: #78e2d0;
  --line: rgba(243, 240, 232, 0.16);
  --line-dark: rgba(9, 16, 18, 0.18);
  --content: min(1180px, calc(100vw - 40px));
  --display: "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

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

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

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

button {
  font: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 16px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
}

.section-shell {
  width: var(--content);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(20px, calc((100vw - 1180px) / 2));
  color: var(--paper);
  background: linear-gradient(to bottom, rgba(9, 16, 18, 0.92), rgba(9, 16, 18, 0));
  transition: 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(9, 16, 18, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.site-nav a {
  color: rgba(243, 240, 232, 0.72);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
}

.site-nav .nav-contact {
  padding: 9px 15px;
  color: var(--ink);
  background: var(--aqua);
  border-radius: 999px;
  font-weight: 700;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--paper);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 68px;
  padding-top: 132px;
  padding-bottom: 96px;
}

.hero-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0 calc((100vw - var(--content)) / -2);
  overflow: hidden;
}

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(243, 240, 232, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.9) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
}

.halo-one {
  width: 660px;
  height: 660px;
  right: -170px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 106, 61, 0.32), transparent 65%);
}

.halo-two {
  width: 520px;
  height: 520px;
  left: -240px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(120, 226, 208, 0.22), transparent 68%);
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--aqua);
}

.hero h1 {
  margin: 28px 0 22px;
  font-family: var(--display);
  font-size: clamp(54px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--accent-soft);
}

.hero-summary {
  max-width: 680px;
  margin: 0;
  color: rgba(243, 240, 232, 0.68);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: 180ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--accent);
}

.button-ghost {
  color: var(--paper);
  border: 1px solid var(--line);
}

.hero-poster {
  display: flex;
  justify-content: center;
  transform: rotate(3deg);
}

.poster-frame {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
  padding: 28px;
  color: var(--ink);
  background:
    radial-gradient(circle at 60% 33%, rgba(255, 255, 255, 0.82), transparent 6%),
    linear-gradient(135deg, transparent 0 44%, rgba(9, 16, 18, 0.12) 44% 45%, transparent 45%),
    linear-gradient(160deg, var(--accent-soft), #f05b3c 62%, #812920);
  border: 10px solid var(--paper);
  box-shadow: 28px 30px 0 rgba(120, 226, 208, 0.12);
}

.poster-frame::before,
.poster-frame::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.poster-frame::before {
  width: 180%;
  height: 2px;
  left: -40%;
  bottom: 31%;
  transform: rotate(-19deg);
}

.poster-frame::after {
  width: 42%;
  height: 44%;
  right: -9%;
  bottom: 0;
  clip-path: polygon(48% 0, 100% 100%, 0 100%);
}

.poster-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.poster-title {
  position: relative;
  z-index: 1;
  display: grid;
  width: fit-content;
  margin-top: 76px;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 84px);
  line-height: 0.72;
}

.poster-title span:nth-child(even) {
  margin-left: 60px;
}

.poster-frame p {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 24px;
  max-width: 220px;
  margin: 0;
  color: var(--paper);
  font-size: 12px;
  line-height: 1.7;
}

.poster-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 64px;
  font-weight: 900;
  opacity: 0.13;
}

.hero-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-proof div {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong {
  color: var(--accent-soft);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
}

.hero-proof span {
  color: rgba(243, 240, 232, 0.55);
  font-size: 12px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 44px;
  align-items: start;
  margin-bottom: 58px;
}

.section-heading h2,
.about-copy h2,
.contact-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.15;
}

.section-heading p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(243, 240, 232, 0.6);
  line-height: 1.9;
}

.works-section,
.direction-section,
.process-section,
.about-section,
.contact-section {
  padding: 112px 0;
}

.works-section {
  border-top: 1px solid var(--line);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-button {
  padding: 10px 17px;
  color: rgba(243, 240, 232, 0.62);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

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

.work-card {
  grid-column: span 6;
  position: relative;
  min-height: 470px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink-soft);
  border: 1px solid var(--line);
  cursor: pointer;
}

.work-card:nth-child(3n) {
  grid-column: span 12;
}

.work-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: 500ms ease;
}

.work-card:hover .work-card-image {
  transform: scale(1.04);
  opacity: 0.52;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 16, 18, 0.96), transparent 68%);
}

.work-card-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
}

.work-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--aqua);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.work-card h3 {
  margin: 12px 0 6px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
}

.work-card p {
  margin: 0;
  color: rgba(243, 240, 232, 0.64);
  line-height: 1.75;
}

.works-empty {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: 24px;
  align-items: center;
  min-height: 320px;
  padding: 50px;
  background:
    linear-gradient(135deg, rgba(120, 226, 208, 0.08), transparent 52%),
    var(--ink-soft);
  border: 1px solid var(--line);
}

.empty-number {
  font-family: var(--display);
  font-size: clamp(110px, 18vw, 210px);
  color: rgba(243, 240, 232, 0.08);
  line-height: 0.8;
}

.works-empty h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
}

.works-empty p {
  max-width: 560px;
  margin: 0;
  color: rgba(243, 240, 232, 0.58);
  line-height: 1.8;
}

.direction-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  color: var(--ink);
  background: var(--paper);
}

.direction-section .section-index {
  color: #9a361f;
}

.direction-section .section-heading p:last-child {
  color: rgba(9, 16, 18, 0.6);
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.direction-card {
  min-height: 330px;
  padding: 32px 28px;
  border-right: 1px solid var(--line-dark);
}

.direction-card:last-child {
  border-right: 0;
}

.direction-card > span {
  color: #9a361f;
  font-size: 12px;
  font-weight: 900;
}

.direction-card h3 {
  margin: 76px 0 16px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
}

.direction-card p {
  margin: 0;
  color: rgba(9, 16, 18, 0.58);
  line-height: 1.9;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 30px 20px;
  border-bottom: 1px solid var(--line);
  transition: 180ms ease;
}

.process-list li:hover {
  padding-left: 34px;
  background: rgba(243, 240, 232, 0.035);
}

.process-list > li > span {
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.process-list h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}

.process-list p {
  margin: 0;
  color: rgba(243, 240, 232, 0.58);
}

.about-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.about-quote {
  position: relative;
  padding: 56px;
  color: var(--ink);
  background: var(--aqua);
}

.quote-mark {
  position: absolute;
  top: 18px;
  left: 24px;
  font-family: var(--display);
  font-size: 80px;
  opacity: 0.24;
}

.about-quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.42;
}

.about-quote blockquote span {
  color: #8d2a19;
}

.about-copy h2 {
  margin: 20px 0 30px;
}

.about-copy > p:not(.section-index) {
  color: rgba(243, 240, 232, 0.62);
  line-height: 2;
}

.contact-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  color: var(--ink);
  background: var(--accent-soft);
}

.contact-card {
  display: grid;
  grid-template-columns: 0.5fr 1.2fr 0.8fr;
  gap: 30px;
  align-items: end;
}

.contact-card .section-index {
  color: #8d2a19;
}

.contact-card p:not(.section-index) {
  margin: 0;
  line-height: 1.8;
}

.contact-button {
  justify-self: end;
  background: var(--ink);
  color: var(--paper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(20px, calc((100vw - 1180px) / 2));
  color: rgba(243, 240, 232, 0.46);
  background: var(--ink);
  font-size: 12px;
}

.work-dialog {
  width: min(780px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  color: var(--paper);
  background: var(--ink-soft);
  border: 1px solid var(--line);
}

.work-dialog::backdrop {
  background: rgba(4, 8, 9, 0.82);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: sticky;
  z-index: 4;
  top: 12px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 12px 12px 0 0;
  color: var(--paper);
  background: rgba(9, 16, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.dialog-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #151f21;
}

.dialog-body {
  padding: 32px;
}

.dialog-body h2 {
  margin: 10px 0 16px;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 400;
}

.dialog-body p {
  color: rgba(243, 240, 232, 0.66);
  line-height: 1.85;
}

.dialog-meta {
  color: var(--aqua);
  font-size: 12px;
  letter-spacing: 0.12em;
}

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

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

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 40px;
    background: rgba(9, 16, 18, 0.98);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: 220ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 12px 0;
    font-size: 18px;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-poster {
    margin-top: 16px;
  }

  .hero-proof,
  .direction-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof div,
  .direction-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .direction-card {
    min-height: 250px;
  }

  .direction-card h3 {
    margin-top: 40px;
  }

  .about-section,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  :root {
    --content: calc(100vw - 28px);
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    gap: 40px;
  }

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

  .poster-frame {
    width: 88%;
  }

  .hero-proof div {
    flex-direction: column;
    gap: 2px;
  }

  .section-heading,
  .works-empty {
    grid-template-columns: 1fr;
  }

  .works-section,
  .direction-section,
  .process-section,
  .about-section,
  .contact-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .work-card,
  .work-card:nth-child(3n) {
    grid-column: 1 / -1;
    min-height: 420px;
  }

  .works-empty {
    padding: 30px;
  }

  .empty-number {
    font-size: 100px;
  }

  .process-list li {
    grid-template-columns: 54px 1fr;
    padding-left: 6px;
    padding-right: 6px;
  }

  .about-quote {
    padding: 50px 30px 36px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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