@font-face {
  font-family: Icons;
  src: local("Arial");
}

:root {
  --ink: rgba(0, 0, 0, 0.85);
  --muted: rgba(143, 143, 143, 0.65);
  --pink: #ff60ec;
  --rule: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fff;
  min-height: 100%;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family:
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1.2875rem;
  line-height: 1.3;
  min-height: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  -webkit-font-smoothing: antialiased;
}

body {
  scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
  scrollbar-width: thin;
}

body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.24);
  border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.38);
}

.side-panel::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  display: none !important;
}

.side-panel::-webkit-scrollbar-track,
.side-panel::-webkit-scrollbar-thumb,
.side-panel::-webkit-scrollbar-corner {
  display: none !important;
  background: transparent !important;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:active {
  opacity: 0.7;
}

a:hover {
  color: var(--pink) !important;
}

h1,
h2,
p {
  margin: 0;
  padding: 0;
}

h2 {
  color: var(--ink);
  font-size: 1.7875rem;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.01em;
}

small {
  display: inline-block;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.36;
  font-weight: 400;
}

.icon-mark {
  display: inline-block;
  width: 1.12em;
  height: auto;
  margin: 0 0.1em;
  vertical-align: -0.16em;
}

hr {
  height: 1px;
  margin: 0.9rem 0;
  border: 0;
  background: var(--rule);
}

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

video {
  pointer-events: auto;
}

.pinned {
  position: fixed;
  z-index: 10;
  pointer-events: none;
}

.pinned a,
.pinned .container {
  pointer-events: auto;
}

body.framer-at-top .top-nav,
body.framer-at-top .portfolio-title,
body.framer-at-top .side-panel {
  opacity: 0;
  pointer-events: none;
}

.container {
  padding: 2rem;
}

.wide {
  width: 73.8vw;
  margin-left: 24.2vw;
  margin-right: 0;
}

.side {
  width: 24.8vw;
  margin-left: 0;
  margin-right: auto;
}

.top-nav {
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 180ms ease;
}

.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.portfolio-title {
  top: 0;
  right: 0;
  padding: 2rem;
  text-align: right;
  transition: opacity 180ms ease;
}

.side-panel {
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 10;
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: auto;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  background: #fff;
  transition: opacity 180ms ease;
}

.side-panel p {
  color: var(--ink);
}

.contact {
  display: grid;
  gap: 0;
  margin-top: 2.6rem;
  margin-bottom: 2.8rem;
}

.work-list h2 {
  margin-bottom: 0;
  font-weight: 400;
}

.work-list small {
  max-width: 92%;
}

.content {
  position: relative;
  z-index: 1;
  width: 73.8vw;
  margin-left: 24.2vw;
  margin-right: 0;
  padding: 5.5rem 2rem 2rem;
  background: #fff;
}

.content,
.mobile-work-list,
.about-grid,
.info-grid {
  background: #fff;
}

.framer-hero {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  background: #fff;
}

.framer-hero iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  overflow: hidden;
}

body.framer-hero-offscreen .framer-hero iframe {
  visibility: hidden;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 1.1rem;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  pointer-events: auto;
}

.hero-scroll-arrow {
  font-size: 1.1rem;
  animation: hero-scroll-bounce 1.6s infinite ease-in-out;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-scroll-hint {
    display: flex;
  }

  .framer-hero,
  .framer-hero iframe {
    touch-action: pan-y;
  }

  .framer-hero {
    height: 88svh;
    min-height: 560px;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 18vw 10.65vw minmax(0, 40vw);
  gap: 0;
  align-items: start;
  scroll-margin-top: 2rem;
}

.portrait,
.spacer,
.about-copy {
  padding: 0;
}

.portrait img {
  width: 18vw;
  margin-left: 0;
  margin-right: auto;
  aspect-ratio: 1537 / 1922;
  object-fit: cover;
  object-position: top center;
}

.flip-card {
  width: 18vw;
  aspect-ratio: 1537 / 1922;
  cursor: pointer;
  perspective: 1200px;
}

.portrait-card {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.flip-card.is-flipped .portrait-card {
  transform: rotateY(180deg);
}

.portrait-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.portrait-front img {
  height: 100%;
}

.portrait-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.7rem;
  background: #f4f4f4;
  transform: rotateY(180deg);
}

.portrait-back img {
  width: 82%;
  max-width: none;
  height: auto;
  margin: 0;
  aspect-ratio: 1;
  object-fit: contain;
}

.portrait-back small {
  font-size: 1rem;
  line-height: 1;
}

.about-copy h2 {
  margin-bottom: 3.7rem;
  max-width: 34vw;
}

.about-copy h2 small {
  max-width: 34vw;
}

.intro-chinese {
  display: inline;
  font-size: 0.88em;
  line-height: 1.22;
}

.intro-english {
  display: block;
  max-width: 34vw;
  color: var(--ink);
  font-size: 1em;
  line-height: 1.22;
  font-weight: 400;
}

.dim {
  color: var(--muted);
}

.profile-block {
  color: var(--ink);
}

.main-rule {
  margin: 3.5rem 0 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 18vw 10.65vw minmax(0, 34vw);
  gap: 0;
  padding-bottom: 4rem;
  line-height: 1.38;
}

.info-grid > div {
  padding: 0;
}

.info-grid > div:last-child {
  grid-column: 3;
  max-width: 34vw;
}

.info-grid small {
  line-height: 1.38;
  margin-left: 0.28em;
}

.project-content {
  padding-top: 5.5rem;
}

.project-hero {
  display: grid;
  grid-template-columns: 18vw 10.65vw minmax(0, 34vw);
  gap: 0;
  align-items: start;
}

.project-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 3.15rem;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0;
}

.project-intro {
  grid-column: 3;
  max-width: 34vw;
  font-size: 1.2875rem;
  line-height: 1.28;
}

.project-intro p {
  margin: 0 0 2rem;
}

.project-intro p:last-child {
  margin-bottom: 0;
}

.project-meta {
  display: grid;
  grid-template-columns: 18vw 10.65vw minmax(0, 34vw);
  gap: 0;
  line-height: 1.38;
}

.project-meta > div:nth-child(2) {
  grid-column: 3;
}

.project-meta small {
  line-height: 1.38;
  margin-left: 0.28em;
}

.project-gallery {
  display: grid;
  gap: 0;
  margin-top: 5rem;
  padding-bottom: 4rem;
}

.project-gallery img,
.project-gallery video {
  display: block;
  width: 100%;
  max-width: 58vw;
  margin-left: 0;
  border: 0;
}

.conference-video-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 58vw;
  margin-left: 0;
  padding: 2.4rem 0;
  background: #fff;
  overflow: hidden;
}

.conference-video-stage::before {
  position: absolute;
  inset: -2.5rem;
  content: "";
  background: url("./assets/youdian-dongxi-conference/video-bg.webp") center / cover no-repeat;
  filter: blur(9px);
  opacity: 1;
  transform: scale(1.06);
  z-index: 0;
  pointer-events: none;
}

.conference-video-stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(0, 0, 0, 0.36);
  pointer-events: none;
}

.project-gallery video.conference-head-video {
  position: relative;
  z-index: 2;
  width: 30.72%;
  max-width: none;
}

.clean-video-wrap {
  position: relative;
  width: 100%;
  max-width: 58vw;
  margin-left: 0;
  overflow: hidden;
}

.clean-video-wrap > video {
  width: 100%;
  max-width: none;
  clip-path: inset(3px 0 3px 0);
}

.clean-video-seek {
  display: none;
}

.clean-video-seek::-webkit-slider-thumb {
  width: 9px;
  height: 9px;
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.clean-video-seek::-moz-range-thumb {
  width: 9px;
  height: 9px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.clean-video-seek::-moz-range-track {
  background: transparent;
  border: 0;
}

.town-phone-demo {
  position: relative;
  width: 100%;
  max-width: 58vw;
  margin-left: 0;
  overflow: hidden;
}

.town-phone-demo > img {
  width: 100%;
  max-width: none;
}

.project-gallery video.town-phone-video {
  position: absolute;
  top: 9.4%;
  left: 55.6%;
  z-index: 1;
  width: 29.8%;
  height: 82.7%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 2.8%;
}

.ai-motion-demo {
  position: relative;
  width: 100%;
  max-width: 58vw;
  margin-left: 0;
  overflow: hidden;
}

.ai-motion-demo > img {
  width: 100%;
  max-width: none;
}

.project-gallery video.ai-motion-video {
  position: absolute;
  top: 6.2%;
  left: 33.8%;
  z-index: 1;
  width: 32.8%;
  height: 87.5%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 3.2%;
}

.ai-video-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 58vw;
  margin-left: 0;
}

.ai-video-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.project-gallery .ai-video-cell video {
  display: block;
  width: 88%;
  height: 88%;
  max-width: none;
  margin: 0;
  object-fit: contain;
}

.project-gallery video.ai-video-single {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.project-gallery video.ai-video-single {
  max-width: 58vw;
  margin-left: 0;
}

.project-gallery > img:not(:first-child),
.project-gallery > video:not(:first-child),
.project-gallery > .clean-video-wrap:not(:first-child),
.project-gallery > .conference-video-stage:not(:first-child),
.project-gallery > .town-phone-demo:not(:first-child),
.project-gallery > .ai-motion-demo:not(:first-child),
.project-gallery > .ai-video-pair:not(:first-child),
.project-gallery > .fit-video-frame:not(:first-child) {
  margin-top: -1px;
}

.fit-video-frame {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 58vw;
  margin-left: 0;
  overflow: hidden;
  padding-top: 4.5rem;
  background: #000;
}

.fit-video-frame::after {
  display: none;
  content: none;
}

.project-gallery video.fit-screen-video {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: min(38vw, 540px);
  max-height: 88vh;
  margin-right: 0;
  margin-left: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.32rem;
  width: auto;
  max-width: max-content;
  height: auto;
  margin: 1.5rem 0 4.5rem;
  justify-self: start;
  align-self: start;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1;
  font-weight: 400;
  outline: none;
}

.project-gallery .back-to-top img,
.back-to-top img {
  display: inline-block;
  width: 0.95rem;
  max-width: none;
  height: auto;
  margin: 0;
  transform: rotate(180deg);
}

.back-to-top span {
  display: inline-block;
}

.mobile-only {
  display: none;
}


@media (max-width: 1180px) {
  body {
    background: #fff;
    font-size: 1.12rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  small {
    font-size: 1.05rem;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .mobile-head {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 1.4rem 2rem 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    text-align: left;
  }

  .mobile-head nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.6rem;
    margin-top: 1.2rem;
  }

  .content {
    width: 100%;
    margin: 0;
    padding: 2rem clamp(1.4rem, 4vw, 3rem) 3rem;
    background: #fff;
  }

  .framer-hero {
    height: 88svh;
    min-height: 560px;
  }

  .about-grid,
  .info-grid,
  .project-hero,
  .project-meta {
    grid-template-columns: 1fr;
  }

  .project-intro,
  .project-meta > div:nth-child(2),
  .info-grid > div:last-child {
    grid-column: auto;
  }

  .about-grid {
    gap: 2rem;
  }

  .about-copy h2,
  .about-copy h2 small,
  .intro-english,
  .project-intro,
  .project-meta > div,
  .info-grid > div,
  .info-grid > div:last-child {
    max-width: none;
  }

  .project-content {
    padding-top: 2rem;
  }

  .project-hero {
    gap: 2rem;
  }

  .project-hero h1 {
    font-size: clamp(2.4rem, 8vw, 4.8rem);
    line-height: 1;
  }

  .project-intro {
    font-size: 1.16rem;
    line-height: 1.34;
  }

  .project-meta {
    gap: 1.6rem;
  }

  .project-gallery {
    margin-top: 3rem;
  }

  .project-gallery img,
  .project-gallery video {
    max-width: 100%;
  }

  .conference-video-stage {
    max-width: 100%;
  }

  .clean-video-wrap {
    max-width: 100%;
  }

  .town-phone-demo {
    max-width: 100%;
  }

  .ai-motion-demo {
    max-width: 100%;
  }

  .ai-video-pair,
  .project-gallery video.ai-video-single {
    max-width: 100%;
  }

  .project-gallery video.conference-head-video {
    width: 30.72%;
    max-width: none;
  }

  .fit-video-frame {
    max-width: 100%;
  }

  .project-gallery video.fit-screen-video {
    width: auto;
    max-width: min(72vw, 560px);
    max-height: 82vh;
  }

  .project-gallery.brand-book-gallery {
    max-width: 100% !important;
  }

  .project-gallery.brand-book-gallery > img:first-child {
    max-width: 100% !important;
  }

  .back-to-top {
    margin-top: 1.2rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
  }

  .project-gallery .back-to-top img,
  .back-to-top img {
    width: 0.9rem;
  }

  .spacer {
    display: none;
  }

  .portrait {
    margin-bottom: 1rem;
  }

  .flip-card {
    width: 100%;
    max-width: min(52vw, 420px);
  }

  .portrait img {
    width: 100%;
  }

  .info-grid {
    gap: 2.4rem;
  }

  .mobile-work-list {
    margin-top: 3rem;
    background: #fff;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.34rem;
    line-height: 1.25;
  }

  small {
    font-size: 0.95rem;
    line-height: 1.32;
  }

  .mobile-head {
    padding: 1.1rem 1rem 0.9rem;
  }

  .mobile-head nav {
    gap: 0.8rem 1.2rem;
    margin-top: 1rem;
  }

  .content {
    padding: 1.4rem 1rem 2.2rem;
    background: #fff;
  }

  .framer-hero {
    height: 88svh;
    min-height: 560px;
  }

  .flip-card {
    max-width: 78vw;
  }

  .about-copy h2 {
    margin-bottom: 2.4rem;
  }

  .intro-chinese,
  .intro-english {
    line-height: 1.28;
  }

  .main-rule {
    margin: 2.4rem 0 1.2rem;
  }

  .project-hero {
    gap: 1.2rem;
  }

  .project-hero h1 {
    font-size: 2.45rem;
  }

  .project-intro {
    font-size: 1rem;
  }

  .project-intro p {
    margin-bottom: 1.2rem;
  }

  .project-gallery {
    margin-top: 2rem;
    padding-bottom: 2.6rem;
  }

  .conference-video-stage {
    padding: 1.3rem 0;
  }

  .project-gallery video.conference-head-video {
    width: 44%;
  }

  .ai-video-pair {
    grid-template-columns: 1fr;
  }

  .project-gallery video.fit-screen-video {
    width: auto;
    max-width: min(82vw, 420px);
    max-height: 78vh;
  }

  .back-to-top {
    margin-bottom: 2.4rem;
  }
}
/* Keep the brand-guidelines cover aligned with the project content column. */
.project-gallery.brand-book-gallery {
  width: 100%;
  max-width: 58vw;
  overflow-x: clip;
}

.project-gallery.brand-book-gallery > img:first-child {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 58vw;
  min-width: 0;
  height: auto;
  margin-inline: 0;
}

/* Lazy loading skeleton placeholders */
.project-gallery img,
.project-gallery video {
  background-color: #f0f0f0;
}

.project-gallery img.is-loading,
.project-gallery video.is-loading {
  opacity: 0.65;
}

.project-gallery img.is-loaded,
.project-gallery video.is-loaded {
  opacity: 1;
  background-color: transparent;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

/* Silent autoplay videos should not show native controls overlay. */
video[data-silent-autoplay="true"]::-webkit-media-controls,
video[data-silent-autoplay="true"]::-webkit-media-controls-enclosure,
video[data-silent-autoplay="true"]::-webkit-media-controls-panel,
video[data-silent-autoplay="true"]::-webkit-media-controls-play-button,
video[data-silent-autoplay="true"]::-webkit-media-controls-start-playback-button,
video[data-silent-autoplay="true"]::-webkit-media-controls-overlay-play-button {
  display: none !important;
}
