/* ============================================
   PROJECT PAGE — 参与项目 subpage
   (structure shared with media page)
   ============================================ */

/* ---- Media Hero (cinematic, smaller than main hero) ---- */
.media-hero {
  position: relative;
  height: 78vh;
  min-height: 890px;
  max-height: 920px;
  background: #000;
  overflow: hidden;
  isolation: isolate;
}
.media-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.media-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.25) contrast(1.05);
  transform: scale(1.05);
  animation: media-zoom 18s ease-out infinite alternate;
}
@keyframes media-zoom {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.18) translate(-1%, -1%); }
}
.media-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.85) 100%),
    linear-gradient(90deg, rgba(0,0,0,.45) 0%, transparent 50%);
}

.media-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 150px var(--gutter) 10vh; /* 顶部预留 nav 高度，防止 eyebrow 与导航 logo 重叠 */
  max-width: var(--container); /* 与 .nav__inner 同宽，保证与顶部 LOGO 垂直左对齐 */
  margin: 0 auto;
  color: #fff;
}

.media-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: .85;
}
.media-hero__eyebrow .eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
  50%      { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

.media-hero__title {
  font-family: var(--display);
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 0 0 28px;
  max-width: 1200px; /* 14ch 只容 ~7 个汉字，会把标题截成 3 行 */
}
/* the global .reveal-line system handles the slide-up via .is-in + transition */
.media-hero__title .reveal-line { display: block; }
.media-hero__title .reveal-line > span { display: inline-block; }

.media-hero__sub {
  max-width: 56ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  opacity: .8;
  margin: 0 0 36px;
}

.media-hero__meta {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.media-hero__meta > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.media-hero__meta b {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1;
}
.media-hero__meta i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .55;
}

.media-hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  pointer-events: none;
}
.media-hero__scroll i {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.5);
  position: relative;
  overflow: hidden;
}
.media-hero__scroll i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ---- Media Section (filter + grid) ---- */
.media-section {
  background: var(--bg);
  padding: 120px var(--gutter) 160px;
  max-width: 1400px;
  margin: 0 auto;
}

.media-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.media-section__title { display: flex; flex-direction: column; gap: 8px; }
.media-section__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.media-section__h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.1;
}

/* ---- Filters ---- */
.media-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.media-filter {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.media-filter:hover { border-color: var(--ink); }
.media-filter.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---- Grid ---- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  min-height: 400px;
}

@media (max-width: 980px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .media-grid { grid-template-columns: 1fr; gap: 28px; }
  .media-hero__meta { gap: 32px; }
  .media-hero__meta b { font-size: 28px; }
}

/* ---- Video Card ---- */
.v-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease;
}
.v-card.is-hidden {
  display: none;
}

.v-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}
.v-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .4s ease;
}
.v-card:hover .v-card__media img {
  transform: scale(1.06);
  filter: brightness(.8);
}
.v-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}

.v-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.92);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  z-index: 2;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), background .2s ease;
  padding-left: 4px;
  box-shadow: 0 0 0 0 rgba(255,255,255,.4);
  animation: play-pulse 2.4s ease-out infinite;
}
.v-card__play::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  animation: play-ring 2.4s ease-out infinite;
}
.v-card:hover .v-card__play {
  transform: translate(-50%, -50%) scale(1);
  background: #fff;
}
@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  50%      { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}
@keyframes play-ring {
  0%   { transform: scale(1);    opacity: .7; }
  100% { transform: scale(1.5);  opacity: 0; }
}

.v-card__time {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 4px 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border-radius: 3px;
  z-index: 2;
}

.v-card__body { display: flex; flex-direction: column; gap: 8px; }
.v-card__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.v-card__cat {
  padding: 3px 8px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 2px;
  font-weight: 500;
}
.v-card__year {
  opacity: .7;
}
.v-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 9px;
  background: rgba(255, 210, 77, .92);
  color: #1a1500;
  border-radius: 2px;
  z-index: 2;
  font-weight: 600;
}
.v-card--archived .v-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.05) 0%, rgba(10,10,10,.35) 100%);
  z-index: 1;
  pointer-events: none;
}
.v-card__title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.32;
  margin: 0;
  letter-spacing: -.005em;
  color: var(--ink);
}
.v-card:hover .v-card__title { color: var(--ink); opacity: .85; }
.v-card__loc {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.4;
}

/* ---- Empty state ---- */
.media-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---- Video Modal (Lightbox) ---- */
.v-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
}
.v-modal.is-open {
  display: flex;
  animation: vm-fade .25s ease;
}
@keyframes vm-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.v-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(8px);
}
.v-modal__dialog {
  position: relative;
  width: min(1080px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
  animation: vm-pop .35s cubic-bezier(.22,.61,.36,1);
}
@keyframes vm-pop {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.v-modal__close {
  position: absolute;
  top: -56px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.v-modal__close:hover { background: rgba(255,255,255,.2); }

.v-modal__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}
.v-modal__player video,
.v-modal__player iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border: 0;
}

.v-modal__player .v-fallback {
  position: absolute;
  inset: 0;
  background: #000 url('assets/project-1.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 32px;
  color: rgba(255,255,255,.7);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* Demo preview state (when no real video src set) */
.v-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  animation: vm-preview-zoom 14s ease-out infinite alternate;
}
@keyframes vm-preview-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.v-preview__overlay {
  position: relative;
  width: 100%;
  padding: 40px 48px 48px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 60%);
  color: #fff;
}
.v-preview__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border-radius: 2px;
  margin-bottom: 16px;
}
.v-preview__msg {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  margin: 0 0 22px;
  line-height: 1.4;
  letter-spacing: -.005em;
  max-width: 30ch;
}
.v-preview__btn {
  background: #fff;
  color: #0a0a0a;
  border: 0;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.v-preview__btn:hover { background: #f4f4f3; transform: translateX(2px); }

@media (max-width: 640px) {
  .v-preview__overlay { padding: 24px 24px 28px; }
  .v-modal__close { top: -48px; right: -4px; }
}

.v-modal__meta {
  color: #fff;
  padding: 0 4px;
}
.v-modal__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display: block;
  margin-bottom: 8px;
}
.v-modal__title {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.v-modal__loc {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.55);
}

/* lock scroll when modal open */
body.modal-open { overflow: hidden; }

/* ---- Compact nav variant (6 items stay visible on media page) ---- */
.nav__links--compact {
  margin-right: 18px;
}

/* ---- Active link indicator in nav ---- */
.nav__links a.is-active {
  background: rgba(10,10,10,.06);
  font-weight: 600;
}
.nav:not(.is-scrolled) .nav__links a.is-active {
  background: rgba(255,255,255,.14);
}
.menu-panel__nav a.is-active {
  opacity: 1;
}
.menu-panel__nav a.is-active::before {
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .media-hero__img { animation: none; transform: none; }
  .v-card__play::before, .v-card__play { animation: none; }
  .media-hero__scroll i::after { animation: none; }
}

/* ============================================
   PROJECT CARDS — 参考机场项目版式
   封面 + 类别 + 项目名 + 灰色英文副行
   ============================================ */
.v-card--project { cursor: pointer; }

.v-card--project .v-card__media img {
  aspect-ratio: 3 / 2;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.v-card--project:hover .v-card__media img {
  transform: scale(1.05);
}

.v-card--project .v-card__cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bg); /* 黑色标签上文字用白色 */
}

.v-card__loc--en {
  color: #9a9a9a;
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1.5;
}

.v-card--project .v-card__title {
  transition: color .25s ease;
}
.v-card--project:hover .v-card__title {
  color: #555;
}

/* 资料整理中徽章 */
.v-card--project .v-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: .1em;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #333;
  font-family: var(--mono);
}