:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #132c46;
  --coral: #ff5a43;
  --cobalt: #1555d9;
  --mint: #71e0bb;
  --yellow: #ffdb70;
  --muted: #426079;
  --outline: #d8d0c0;
  --gutter: clamp(18px, 4vw, 52px);
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.frame { width: min(100% - 2 * var(--gutter), 1230px); margin-inline: auto; }

.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: absolute;
  z-index: 10;
  left: var(--gutter);
  top: 12px;
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--paper);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 93px;
  border-bottom: 1px solid var(--outline);
}
.brand { display: inline-flex; width: clamp(152px, 18vw, 211px); align-items: center; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(4px, 2vw, 27px); }
.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 3px;
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(25px, 4vw, 58px);
  align-items: center;
  padding-block: clamp(31px, 5vw, 68px) clamp(40px, 5.5vw, 80px);
}
.hero h1 {
  margin: 0;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(2.7rem, 4.95vw, 4.4rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.082em;
}
.hero-period { color: #d83d2a; }
.hero-copy p {
  max-width: 34em;
  margin: 22px 0 27px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}
.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1.5px solid transparent;
  border-radius: 35px 35px 35px 10px;
  padding: 10px 21px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--mint); color: var(--ink); border-color: var(--ink); }
.button-secondary { background: var(--yellow); color: var(--ink); }
.button-secondary:hover { background: var(--paper); color: var(--ink); }

.hero-art {
  overflow: hidden;
  isolation: isolate;
  position: relative;
  aspect-ratio: 1.31;
  border-radius: 37px 37px 37px 10px;
  background: var(--cobalt);
}
.hero-sun {
  position: absolute;
  z-index: -1;
  top: -19%;
  left: -14%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
}
.hero-loop {
  position: absolute;
  z-index: -1;
  right: -35%;
  bottom: -63%;
  width: 114%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(27px, 5.5vw, 80px) solid var(--mint);
}
.hero-emblem {
  position: absolute;
  z-index: 3;
  top: 7%;
  left: 9%;
  width: 9.3%;
  filter: brightness(0) saturate(100%) invert(13%) sepia(36%) saturate(1044%) hue-rotate(169deg);
}
.hero-poster {
  position: absolute;
  overflow: hidden;
  border: clamp(3px, .46vw, 7px) solid var(--paper);
  border-radius: clamp(7px, 1.5vw, 20px);
  box-shadow: 6px 10px 0 rgb(19 44 70 / 22%);
}
.hero-poster img { width: 100%; height: auto; }
.hero-poster-li { width: 65%; top: 10%; right: 6%; transform: rotate(9deg); }
.hero-poster-tong { width: 66%; bottom: 9%; right: 8%; transform: rotate(10deg); }
.hero-poster-zhang { z-index: 2; width: 73%; top: 30%; left: 6%; transform: rotate(-8deg); }

.section { padding-top: clamp(33px, 4.7vw, 62px); border-top: 1px solid var(--outline); }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: clamp(18px, 2.3vw, 32px);
}
.section h2, .info-grid h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -.05em;
}
.section-heading p { margin: 0; color: var(--muted); }

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 25px);
}
.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 22px 22px 22px 7px;
  background: var(--paper);
}
.case-zhang { --tile: #ffb5a5; }
.case-li { --tile: #b8eee0; }
.case-tong { --tile: var(--yellow); }
.case-link {
  display: block;
  position: relative;
  text-decoration: none;
}
.case-link:focus-visible { outline-offset: -4px; }
.poster-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.case-copy {
  position: relative;
  border-top: 1px solid var(--ink);
  padding: 14px 54px 13px 17px;
  background: var(--tile);
}
.case-copy h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 850;
  line-height: 1.2;
}
.case-copy p { margin: 3px 0 0; font-size: .95rem; font-weight: 650; }
.case-arrow {
  display: grid;
  place-items: center;
  position: absolute;
  right: 13px;
  top: 50%;
  translate: 0 -50%;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.16rem;
  font-weight: 700;
  transition: background .18s, color .18s;
}
.case-link:hover .case-arrow { background: var(--ink); color: #fff; }
.case-note { margin: 0; padding: 12px 17px 16px; color: var(--muted); font-size: .92rem; }

.services { margin-top: clamp(46px, 6vw, 86px); }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--outline);
  border-radius: 24px 24px 24px 8px;
  background: var(--paper);
}
.service-media {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  background: var(--service-accent);
}
.service-ip { --service-accent: #ffccbc; }
.service-digital { --service-accent: #c9e7fc; }
.service-editing { --service-accent: #bbf1de; }
.service-advertising { --service-accent: #ffdc83; }
.service-copy { padding: 19px 18px 11px; }
.service-copy h3 { margin: 0 0 6px; font-size: clamp(1.06rem, 1.7vw, 1.35rem); font-weight: 850; line-height: 1.3; }
.service-copy > p { margin: 0; color: var(--muted); font-size: .93rem; }
.service-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: .91rem;
  font-weight: 800;
  text-decoration: none;
}
.service-link span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--service-accent);
  line-height: 1;
}
.service-link:hover { text-decoration: underline; }
.service details { margin-top: 4px; }
.service summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .91rem;
  font-weight: 800;
  list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service summary::after {
  display: grid;
  place-items: center;
  content: "＋" / "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--service-accent);
  font-size: 1rem;
  line-height: 1;
}
.service details[open] summary::after { content: "－" / ""; }
.service summary:hover { text-decoration: underline; }
.service details p,
.service details a { font-size: .9rem; }
.service details p { margin: 0 0 8px; color: var(--muted); }
.service details strong { display: block; color: var(--ink); }
.entry { margin-block: 12px; }
.entry video, .entry img { width: 100%; height: auto; border-radius: 8px; }

.info-grid {
  padding-block: clamp(48px, 7vw, 86px);
}
.about { position: relative; overflow: hidden; border-radius: 29px 29px 29px 9px; padding: clamp(22px, 3.5vw, 43px); }
.about { background: #d4f4e6; }
.about .company { margin: 15px 0 0; font-weight: 800; }
.about p:last-child { max-width: 37em; margin: 6px 0 0; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px 34px;
  border-top: 1px solid var(--outline);
}
.site-footer .brand { width: min(172px, 48vw); }
.site-footer p { margin: 0; color: var(--muted); font-size: .88rem; }
.contact-link { font-weight: 800; }

.poster-dialog {
  width: min(932px, calc(100% - 32px));
  max-height: calc(100% - 24px);
  margin: auto;
  overflow: auto;
  border: 1px solid var(--ink);
  border-radius: 22px 22px 22px 8px;
  padding: 0;
  color: var(--ink);
  background: var(--cream);
}
.poster-dialog:not([open]) { display: none; }
.poster-dialog::backdrop { background: rgb(13 32 50 / 75%); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 6px 13px 6px 18px; }
.dialog-heading h2 { margin: 0; font-weight: 850; font-size: 1.35rem; }
.close-poster {
  cursor: pointer;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
}
.close-poster:hover { background: #ffdbce; }
.poster-dialog img { width: 100%; height: auto; }
.poster-dialog p { margin: 0; padding: 11px 18px 16px; }

@media (max-width: 1000px) {
  .hero h1 { font-size: clamp(2.35rem, 5vw, 3.35rem); }
  .service { grid-template-columns: minmax(0, 1fr); }
  .service-media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
}

@media (max-width: 760px) {
  .site-header { min-height: 70px; gap: 13px; }
  .site-nav { gap: 12px; }
  .site-nav a { padding: 0; font-size: .9rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 30px 39px; gap: 25px; }
  .hero h1 { font-size: clamp(2.55rem, 8.5vw, 4.1rem); }
  .hero-copy p { margin-block: 15px 18px; }
  .hero-art { border-radius: 27px 27px 27px 8px; aspect-ratio: 1.45; }
  .hero-poster-li { top: 6%; }
  .hero-poster-tong { bottom: 6%; }
  .hero-poster-zhang { top: 27%; }
  .section-heading { flex-wrap: wrap; }
  .poster-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .case-copy { padding-block: 10px; }
  .case-note { padding-block: 8px 12px; }
  .site-footer { flex-wrap: wrap; }
}

@media (max-width: 540px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service-copy { padding: 15px 16px 8px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 345px) {
  .site-header .brand { width: 139px; }
  .site-nav { gap: 8px; }
  .site-nav a { font-size: .84rem; }
  .hero h1 { font-size: 2.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
