:root {
  --ink: #18211f;
  --ink-soft: #2c3734;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --white: #ffffff;
  --muted: #707975;
  --line: #dce2de;
  --red: #c72b32;
  --red-soft: #e75a60;
  --jade: #315d55;
  --mist: #e7efec;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 10px max(20px, env(safe-area-inset-left));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.brand {
  display: flex;
  width: 42px;
  height: 52px;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  border-radius: 3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.site-nav a {
  padding: 9px 0;
}

.site-nav a:last-child {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 4px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 620px;
  height: 86svh;
  max-height: 900px;
  align-items: flex-end;
  overflow: hidden;
  background-color: #202020;
  background-image: url("../assets/posters/04.jpg");
  background-position: center 30%;
  background-size: cover;
  color: var(--white);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 16, 0.12) 0%, rgba(11, 18, 16, 0.2) 36%, rgba(11, 18, 16, 0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 20px 70px;
}

.eyebrow,
.section-no,
.work-type-title > p {
  margin: 0 0 16px;
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.06;
}

.hero-slogan {
  max-width: 680px;
  margin: 18px 0 8px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 25px;
  line-height: 1.45;
}

.hero-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

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

.hero-link {
  display: flex;
  min-width: 116px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  font-size: 14px;
}

.hero-link.primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.hero-link.secondary {
  min-width: 104px;
  background: rgba(20, 27, 25, 0.18);
  backdrop-filter: blur(8px);
}

.hero-index {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.48);
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.hero-index span + span::before {
  content: "/";
  margin-right: 8px;
}

.section-pad {
  padding: 84px 20px;
}

.section-heading,
.intro-copy,
.capability-grid,
.showcase-intro,
.work-type,
.contact-copy,
.contact-list {
  width: min(100%, 1200px);
  margin-right: auto;
  margin-left: auto;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.24;
}

.intro-copy {
  margin-top: 36px;
}

.intro-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.9;
}

.capability-grid {
  display: grid;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-grid article {
  min-height: 154px;
  padding: 24px 12px 22px 0;
  border-bottom: 1px solid var(--line);
}

.capability-grid article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.capability-grid article:nth-child(even) {
  padding-left: 18px;
}

.capability-grid span {
  color: var(--jade);
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.capability-grid h3 {
  margin: 24px 0 7px;
  font-size: 16px;
  font-weight: 600;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.showcase {
  overflow: hidden;
  background: #e9eeeb;
  color: var(--ink);
}

.section-no.light {
  color: var(--red);
}

.showcase-intro {
  display: flex;
  gap: 22px;
  align-items: stretch;
  justify-content: space-between;
  flex-direction: column;
  margin-top: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid #cdd6d1;
}

.showcase-intro > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-jump {
  display: flex;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #c8d1cc;
  border-radius: 4px;
}

.section-jump a {
  flex: 1 1 0;
  min-width: 78px;
  padding: 9px 14px;
  text-align: center;
  font-size: 12px;
}

.section-jump a + a {
  border-left: 1px solid #c8d1cc;
}

.section-jump a:first-child {
  background: var(--ink);
  color: var(--white);
}

.work-type {
  padding-top: 64px;
}

.work-type + .work-type {
  margin-top: 70px;
  padding-top: 70px;
  border-top: 1px solid #cdd6d1;
}

.work-type-title {
  display: grid;
  align-items: end;
  margin-bottom: 38px;
  grid-template-columns: 1fr auto;
}

.work-type-title > p {
  grid-column: 1 / -1;
}

.work-type-title h3 {
  margin: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: 28px;
}

.work-type-title span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.work-group + .work-group {
  margin-top: 54px;
}

.work-group-heading {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.work-group-heading h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.work-group-heading span {
  margin-left: 10px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
}

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

.work-card {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(24, 33, 31, 0.08);
  border-radius: 6px;
  box-shadow: 0 8px 26px rgba(28, 45, 40, 0.06);
}

.work-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #dfe4e1;
  border: 0;
  border-radius: 0;
}

.work-media img {
  width: 100%;
  height: 100%;
  transition: transform 500ms ease;
  object-fit: cover;
}

.work-media.landscape img {
  object-position: center;
}

.work-media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.54));
}

.play-icon {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding-left: 2px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-size: 13px;
}

.duration {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  padding: 4px 6px;
  background: rgba(12, 17, 16, 0.68);
  color: rgba(255, 255, 255, 0.94);
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.work-meta {
  padding: 14px 14px 16px;
}

.work-meta h5 {
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-meta p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.contact {
  display: grid;
  gap: 56px;
  background: #21302c;
  color: var(--white);
}

.contact .section-no {
  color: #f06a6f;
}

.contact h2 {
  font-size: 28px;
  white-space: nowrap;
}

.contact-copy > p:last-child {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.contact-list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-row {
  display: grid;
  width: 100%;
  min-height: 84px;
  align-items: center;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  grid-template-columns: 54px 1fr auto;
}

.contact-label {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.contact-row strong {
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
}

.copy-label {
  color: #ff8589;
  font-size: 12px;
}

.site-footer {
  display: grid;
  min-height: 136px;
  align-items: center;
  padding: 30px 20px 96px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  grid-template-columns: 62px 1fr auto;
}

.site-footer img {
  width: 38px;
  height: 62px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.site-footer > a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.mobile-contact {
  position: fixed;
  z-index: 30;
  right: auto;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 12px;
  display: flex;
  width: calc(100vw - 24px);
  max-width: none;
  gap: 6px;
  overflow: hidden;
  padding: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2);
}

.mobile-contact button {
  display: flex;
  width: calc(50% - 3px);
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  cursor: pointer;
  background: var(--mist);
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  flex: 0 0 calc(50% - 3px);
  flex-direction: column;
}

.mobile-contact button + button {
  background: var(--ink);
  color: var(--white);
}

.mobile-contact span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-contact small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  margin-top: 2px;
  color: #68746f;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-contact button + button small {
  color: rgba(255, 255, 255, 0.66);
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  min-height: 100%;
  padding: max(68px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  background: rgba(8, 8, 8, 0.98);
  color: var(--white);
  grid-template-rows: minmax(0, 1fr) auto;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  cursor: pointer;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}

.video-stage {
  display: grid;
  min-height: 0;
  place-items: center;
}

.video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 72svh;
  background: #000;
  object-fit: contain;
}

.modal-meta {
  width: min(100%, 1100px);
  margin: 18px auto 0;
}

.modal-meta p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.modal-meta h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.toast {
  position: fixed;
  z-index: 150;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 50%;
  visibility: hidden;
  min-width: 140px;
  padding: 11px 18px;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  text-align: center;
  opacity: 0;
  background: rgba(18, 18, 18, 0.92);
  color: var(--white);
  border-radius: 4px;
  font-size: 13px;
}

.toast.visible {
  visibility: visible;
  transform: translate(-50%, 0);
  opacity: 1;
}

.noscript {
  position: fixed;
  z-index: 200;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 12px;
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-size: 12px;
}

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

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

@media (hover: hover) {
  .work-media:hover img {
    transform: scale(1.035);
  }

  .site-nav a:hover,
  .hero-link.secondary:hover {
    color: #ff8b8f;
  }

  .contact-row:hover .copy-label {
    color: var(--white);
  }

  .hero-link.primary:hover {
    background: var(--mist);
    border-color: var(--mist);
  }
}

@media (min-width: 700px) {
  :root {
    --header-height: 78px;
  }

  .site-header {
    padding-right: 40px;
    padding-left: 40px;
  }

  .brand {
    width: 46px;
    height: 58px;
  }

  .site-nav {
    display: flex;
  }

  .hero {
    height: 88svh;
    background-image: url("../assets/posters/01.jpg");
    background-position: center 42%;
  }

  .hero-content {
    padding-right: 40px;
    padding-bottom: 82px;
    padding-left: 40px;
  }

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

  .hero-slogan {
    font-size: 36px;
  }

  .hero-index {
    right: 40px;
    bottom: 32px;
  }

  .section-pad {
    padding: 116px 40px;
  }

  .showcase-intro {
    gap: 40px;
    align-items: flex-end;
    flex-direction: row;
  }

  .section-jump {
    width: auto;
    flex: 0 0 auto;
  }

  .section-jump a {
    flex: 0 0 auto;
  }

  .intro {
    display: grid;
    column-gap: 60px;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .intro .section-heading,
  .intro .intro-copy,
  .intro .capability-grid {
    width: 100%;
  }

  .intro-copy {
    margin-top: 32px;
  }

  .intro .capability-grid {
    grid-column: 1 / -1;
  }

  .section-heading h2,
  .contact h2 {
    font-size: 52px;
  }

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

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

  .capability-grid article,
  .capability-grid article:nth-child(even) {
    min-height: 176px;
    padding: 28px 26px 24px 0;
    border-right: 1px solid var(--line);
  }

  .capability-grid article + article,
  .capability-grid article:nth-child(even) {
    padding-left: 26px;
  }

  .capability-grid article:last-child {
    border-right: 0;
  }

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

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

  .work-media {
    aspect-ratio: 16 / 11;
  }

  .work-media.portrait img {
    object-position: center 24%;
  }

  .work-meta h5 {
    font-size: 16px;
  }

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

  .contact-copy,
  .contact-list {
    width: 100%;
  }

  .site-footer {
    padding-right: 40px;
    padding-bottom: 32px;
    padding-left: 40px;
  }

  .mobile-contact {
    display: none;
  }

  .toast {
    bottom: 28px;
  }

  .video-modal {
    padding: 70px 48px 30px;
  }
}

@media (max-width: 359px) {
  .contact h2 {
    font-size: 23px;
  }
}

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

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

  .contact {
    column-gap: 80px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

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

  .reveal,
  .work-media img,
  .toast {
    transition: none;
  }
}
