.personal-map {
  background-image: url("assets/qiuying-welcome.png");
  background-position: center center;
}

.personal-map:before {
  display: none;
}

.personal-map .hero-copy {
  width: 100%;
  height: 100%;
  justify-content: flex-end;
  padding-bottom: 42px;
}

.personal-map .eyebrow,
.personal-map h1,
.personal-map .hero-intro {
  display: none;
}

.personal-map .hero-actions {
  margin: 0;
}

.personal-map .button-primary {
  min-width: 168px;
  padding: 13px 20px;
  border: 1px solid rgba(247, 194, 56, .92);
  border-radius: 999px;
  background: rgba(22, 14, 15, .32);
  color: #f7c238;
  box-shadow: 0 0 0 5px rgba(247, 194, 56, .08), 0 10px 30px rgba(0, 0, 0, .22);
  font-size: 12px;
  letter-spacing: .18em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.personal-map .button-primary span {
  margin-left: 12px;
  font-size: 16px;
}

.personal-map .button-primary:hover {
  background: #f7c238;
  border-color: #f7c238;
  color: #241516;
  transform: translateY(-2px);
}

@media (max-width: 800px) {
  .personal-map .hero-copy {
    padding-bottom: 26px;
  }

  .personal-map .button-primary {
    min-width: 148px;
    padding: 12px 18px;
  }
}

body {
  background: #111416;
  color: #f7f2eb;
  font-family: SimSun, STSong, "Songti SC", serif;
  background-image: url("assets/bg-red-05.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.site-header,
.personal-map .button-primary {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.section-heading .eyebrow,
.group-heading > p {
  display: none;
}

.group-heading {
  grid-template-columns: 1fr;
}

.group-heading > div {
  padding-right: 0;
}

.part-label {
  font-size: 0;
}

.project-group:nth-of-type(1) .part-label::after {
  content: "第 1 部分";
}

.project-group:nth-of-type(2) .part-label::after {
  content: "第 2 部分";
}

.project-group:nth-of-type(3) .part-label::after {
  content: "第 3 部分";
}

.project-group:nth-of-type(4) .part-label::after {
  content: "第 4 部分";
}

.part-label::after {
  font-size: 11px;
}

.projects-section,
.process-band,
.about-section,
.site-footer {
  background-color: transparent;
  color: #f7f2eb;
}

.section-heading,
.project-group,
.project,
.compact-project,
.about-details,
.about-details p,
.site-footer {
  border-color: #3a3635;
}

.projects-section .section-heading,
.projects-section .project-group,
.projects-section .project-strip,
.projects-section .subproject-card,
.projects-section .subproject-media {
  border: 0 !important;
}

.projects-section .project-group:first-of-type .project-strip {
  position: relative;
  gap: 10px;
  padding: 12px 0;
  overflow: hidden;
  overflow-y: hidden;
  border-radius: 18px;
  background: #1a1517;
}

.projects-section .project-group:first-of-type .film-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: film-reel-flow 28s linear infinite;
  will-change: transform;
}

.projects-section .project-group:first-of-type .film-track:hover {
  animation-play-state: paused;
}

.projects-section .project-group:first-of-type .project-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 18%, rgba(247, 194, 56, .02) 39%, rgba(255, 232, 178, .16) 50%, rgba(247, 194, 56, .02) 61%, transparent 82%);
  transform: translateX(-110%);
  animation: silk-film-flow 8s ease-in-out infinite;
}

.projects-section .project-group:first-of-type .subproject-card {
  z-index: 1;
  flex: 0 0 var(--film-card-width);
  overflow: hidden;
  border-radius: 12px;
  background: #111416;
  transition: transform .35s ease, background .35s ease;
}

.projects-section .project-group:first-of-type .subproject-card:hover {
  transform: translateY(-4px);
  background: #171214;
}

.projects-section .project-group:first-of-type .subproject-media {
  border-radius: 12px;
}

@keyframes silk-film-flow {
  0%, 18% { transform: translateX(-110%); }
  62%, 100% { transform: translateX(110%); }
}

@keyframes film-reel-flow {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * (var(--film-card-width) + 10px) * 4)); }
}

.projects-section .project-group:first-of-type {
  --film-card-width: clamp(248px, calc((90vw - 30px) / 4), 292px);
  background-image: url("assets/bg-red-01.png");
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  padding: 28px 22px 30px;
}

.projects-section .project-group:nth-of-type(2) {
  background: url("assets/bg-red-02.png") center / cover;
  border-radius: 24px;
  padding: 28px 22px 30px;
}

.projects-section .project-group:nth-of-type(3) {
  background: url("assets/bg-red-03.png") center / cover;
  border-radius: 24px;
  padding: 28px 22px 30px;
}

.projects-section .project-group:nth-of-type(4) {
  background: url("assets/bg-red-04.png") center / cover;
  border-radius: 24px;
  padding: 28px 22px 30px;
}

.process-band,
.about-section,
.site-footer {
  background-image: url("assets/bg-red-05.png");
  background-size: cover;
  background-position: center;
}

.projects-section .project-group:first-of-type .subproject-card {
  min-height: 0;
}

@media (max-width: 800px) {
  .projects-section .project-group:first-of-type {
    --film-card-width: 82vw;
  }

  .projects-section .project-group:first-of-type .subproject-card {
    flex-basis: var(--film-card-width);
  }
}

.section-heading h2,
.group-heading h3,
.project-info h3,
.compact-project h3,
.subproject-copy h4,
.about-details strong,
.site-footer a {
  color: #f7f2eb;
}

.group-heading > p,
.project-info > p:not(.project-subtitle),
.compact-project p:not(.project-meta),
.subproject-copy p:not(.project-meta),
.about-details p,
.about-lead {
  color: #b8b1ab;
}

.project-strip,
.subproject-card,
.project-media {
  background: #111416;
  border-color: #3a3635;
}

.tags span {
  color: #d8d0c9;
  border-color: #655b54;
}

.text-link,
.project-link {
  border-color: #d8d0c9;
}

.subproject-copy > .project-meta {
  display: none;
}

.subproject-copy h4 {
  text-align: center;
}

.subproject-copy > p:not(.project-meta),
.subproject-copy > .tags,
.subproject-copy > h4 {
  display: none;
}

.subproject-media video {
  cursor: pointer;
  object-fit: cover !important;
}

.subproject-copy .project-link {
  display: block;
  width: max-content;
  margin: 22px auto 0;
  text-align: center;
}

.subproject-copy > p:not(.project-meta) {
  display: none;
}

.subproject-media {
  position: relative;
}

.subproject-media:not(.image-grid) {
  grid-template-columns: 1fr !important;
}

.subproject-card {
  position: relative;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 0;
  background: rgba(8, 8, 9, .9);
  color: #f7f2eb;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.video-overlay strong {
  margin-bottom: 8px;
  color: #f7f2eb;
  font-size: 18px;
  font-weight: 400;
}

.video-overlay > span {
  max-width: 300px;
  color: #d8d0c9;
}

/* Evidence cards keep the real source material visible without inventing results. */
.evidence-card .evidence-media {
  min-height: 270px;
  padding: 18px;
  background: rgba(8, 9, 10, .72);
  color: #f7f2eb;
}

.evidence-card .evidence-sheet {
  height: 100%;
  min-height: 234px;
  padding: 18px;
  border: 1px solid rgba(222, 150, 87, .42);
  background: linear-gradient(145deg, rgba(65, 28, 22, .82), rgba(10, 11, 12, .9));
  box-sizing: border-box;
}

.evidence-kicker {
  display: block;
  margin-bottom: 22px;
  color: #e58b58;
  font: 12px/1.2 Arial, sans-serif;
  letter-spacing: .18em;
}

.evidence-sheet strong {
  display: block;
  margin-bottom: 18px;
  color: #f7f2eb;
  font-size: 21px;
  font-weight: 400;
}

.evidence-sheet p,
.evidence-sheet em {
  display: block;
  margin: 8px 0;
  color: #c7bbb2;
  font-size: 13px;
  font-style: normal;
}

.evidence-sheet em {
  margin-top: 22px;
  color: #e58b58;
}

.evidence-card .subproject-copy {
  min-height: 265px;
  padding: 22px 20px 24px;
}

.evidence-card .subproject-copy h4,
.evidence-card .subproject-copy > p:not(.project-meta),
.evidence-card .subproject-copy > .tags {
  display: block;
}

.evidence-card .subproject-copy h4 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 400;
}

.evidence-card .subproject-copy > p:not(.project-meta) {
  min-height: 78px;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.evidence-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.evidence-card .project-link {
  margin-top: 13px;
  font-size: 13px;
}

.workflow-diagram {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  height: 100%;
  min-height: 234px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4px;
  box-sizing: border-box;
  scrollbar-color: #a76642 #17191a;
}

.workflow-diagram div {
  flex: 0 0 108px;
  min-width: 108px;
  padding: 14px 5px;
  border: 1px solid rgba(222, 150, 87, .56);
  color: #f7f2eb;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
}

.workflow-diagram small {
  color: #e58b58;
  font-size: 11px;
}

.workflow-diagram i {
  flex: 0 0 auto;
  color: #e58b58;
  font: 18px Arial, sans-serif;
  font-style: normal;
}

.proof-gallery,
.commission-gallery {
  display: flex;
  gap: 8px;
  height: 100%;
  min-height: 234px;
  overflow: hidden;
}

.proof-gallery img,
.commission-gallery img,
.commission-gallery video {
  width: 0;
  min-width: 0;
  flex: 1 1 0;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(222, 150, 87, .35);
}

.commission-gallery {
  flex-wrap: wrap;
}

.commission-gallery img,
.commission-gallery video {
  flex-basis: calc(50% - 4px);
  height: calc(50% - 4px);
}

.commission-gallery video {
  width: 100%;
  flex-basis: 100%;
}

/* Parts 2-4 are evidence rails: every card stays intact and the rail scrolls horizontally. */
.projects-section .project-group:not(:first-of-type) .project-strip {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0 18px;
  scrollbar-color: #a76642 #17191a;
}

.projects-section .project-group:not(:first-of-type) .evidence-card {
  flex: 0 0 clamp(320px, 38vw, 470px);
  height: auto;
  min-height: 0;
}

.evidence-card .evidence-media {
  height: 350px;
  min-height: 350px;
  box-sizing: border-box;
}

.proof-gallery {
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-color: #a76642 #17191a;
}

.proof-gallery img {
  flex: 0 0 100%;
  object-fit: contain !important;
  background: #08090a;
}

.commission-gallery {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: #a76642 #17191a;
}

.commission-gallery img,
.commission-gallery video {
  flex: 0 0 72%;
  width: 72%;
  height: 100%;
  object-fit: contain;
  background: #08090a;
}

.evidence-card .subproject-copy {
  height: auto;
}

.evidence-card .evidence-media {
  overflow: hidden;
}

.evidence-card .evidence-video-overlay {
  z-index: 3;
}

@media (max-width: 800px) {
  .workflow-diagram {
    gap: 3px;
  }

  .workflow-diagram div {
    padding: 11px 2px;
    font-size: 11px;
  }

  .workflow-diagram i {
    font-size: 13px;
  }
}

.video-overlay .tags {
  display: flex;
  margin: 12px 0 0;
  gap: 4px;
}

.video-overlay .tags span {
  padding: 4px 6px;
  font-size: 9px;
}

.video-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  display: none;
}

@media (max-width: 800px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background-attachment: scroll;
    font-size: 15px;
  }

  .section-wrap {
    width: calc(100% - 32px);
  }

  .site-header {
    position: sticky;
    height: 62px;
    padding: 0 16px;
  }

  .brand {
    font-size: 11px;
    letter-spacing: .08em;
  }

  .menu-toggle {
    position: relative;
    z-index: 21;
    width: 38px;
    height: 38px;
  }

  .menu-toggle span {
    transition: transform .2s ease, opacity .2s ease;
  }

  .mobile-menu {
    position: fixed;
    inset: 62px 0 auto;
    z-index: 20;
    display: grid;
    gap: 0;
    padding: 8px 16px 14px;
    background: rgba(17, 20, 22, .98);
    border-bottom: 1px solid #655b54;
    transform: translateY(-120%);
    transition: transform .25s ease;
  }

  .mobile-menu.is-open {
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 14px 4px;
    color: #f7f2eb;
    border-bottom: 1px solid #3a3635;
    font-size: 16px;
  }

  .mobile-menu a:last-child {
    color: #e58b58;
    border-bottom: 0;
  }

  .personal-map {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 0 16px;
    background-position: 58% center;
    background-size: cover;
  }

  .personal-map .hero-copy {
    padding-bottom: 28px;
  }

  .personal-map .button-primary {
    min-width: 148px;
    padding: 12px 18px;
  }

  .projects-section {
    padding: 34px 0 72px;
  }

  .section-heading {
    margin-bottom: 26px;
    padding-top: 12px;
  }

  .section-heading h2 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .section-index {
    font-size: 10px;
  }

  .projects-section .project-group,
  .projects-section .project-group:first-of-type,
  .projects-section .project-group:nth-of-type(2),
  .projects-section .project-group:nth-of-type(3),
  .projects-section .project-group:nth-of-type(4) {
    margin: 0 0 18px;
    padding: 20px 14px 22px;
    border-radius: 18px;
  }

  .group-heading {
    margin-bottom: 16px;
  }

  .group-heading h3 {
    max-width: 100%;
    font-size: clamp(25px, 7.2vw, 32px);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .project-strip,
  .projects-section .project-group:not(:first-of-type) .project-strip {
    gap: 12px;
    margin: 0;
    padding: 4px 0 14px;
    scrollbar-width: none;
  }

  .project-strip::-webkit-scrollbar {
    display: none;
  }

  .projects-section .project-group:first-of-type .project-strip {
    padding: 8px 0 14px;
    border-radius: 12px;
  }

  .projects-section .project-group:first-of-type .film-track {
    gap: 12px;
    animation-duration: 34s;
  }

  .projects-section .project-group:first-of-type .subproject-card,
  .projects-section .project-group:not(:first-of-type) .evidence-card {
    flex: 0 0 calc(100vw - 78px);
    width: calc(100vw - 78px);
    border-radius: 12px;
  }

  .projects-section .project-group:first-of-type .subproject-media,
  .projects-section .project-group:not(:first-of-type) .evidence-media {
    height: min(62vw, 260px);
    min-height: 0;
    border-radius: 12px 12px 0 0;
  }

  .projects-section .project-group:first-of-type .subproject-copy {
    padding: 14px 14px 17px;
  }

  .subproject-copy h4 {
    font-size: 21px;
    line-height: 1.25;
  }

  .subproject-copy .project-link {
    margin-top: 16px;
    font-size: 13px;
  }

  .evidence-card .evidence-media {
    height: 258px;
    min-height: 258px;
    padding: 12px;
  }

  .evidence-card .evidence-sheet {
    min-height: 0;
    padding: 14px;
  }

  .evidence-sheet strong {
    margin-bottom: 12px;
    font-size: 19px;
  }

  .evidence-sheet p,
  .evidence-sheet em {
    margin: 6px 0;
    font-size: 12px;
  }

  .workflow-diagram {
    min-height: 0;
    padding: 0 2px;
    gap: 5px;
  }

  .workflow-diagram div {
    flex-basis: 88px;
    min-width: 88px;
    padding: 10px 3px;
    font-size: 11px;
  }

  .proof-gallery,
  .commission-gallery {
    min-height: 0;
  }

  .proof-gallery img {
    flex-basis: 100%;
    object-fit: contain !important;
  }

  .commission-gallery img,
  .commission-gallery video {
    flex-basis: 86%;
    width: 86%;
  }

  .process-band {
    padding: 62px 0;
  }

  .process-band h2 {
    font-size: clamp(29px, 8vw, 40px);
  }

  .process-steps {
    margin-top: 34px;
  }

  .process-step {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .process-step h3 {
    font-size: 18px;
  }

  .process-step p {
    font-size: 14px;
    line-height: 1.7;
  }

  .about-section {
    padding: 62px 0;
  }

  .about-lead {
    font-size: 23px;
    line-height: 1.55;
  }

  .about-details {
    margin-top: 32px;
  }

  .site-footer {
    padding: 18px 0 28px;
  }
}

@media (max-width: 380px) {
  .projects-section .project-group:first-of-type .subproject-card,
  .projects-section .project-group:not(:first-of-type) .evidence-card {
    flex-basis: calc(100vw - 58px);
    width: calc(100vw - 58px);
  }

  .group-heading h3 {
    font-size: 25px;
  }
}
