@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Noto+Serif+SC:wght@400;500;600;800;900&family=Noto+Sans+SC:wght@300;400;500&display=swap');


:root{
  --bg: #0b0a0c;
  --bg-panel: #121014;
  --text: #f2ede9;
  --text-dim: #b8b0b3;
  --accent: #c9a3ad;
  --accent-dim: #9c7c85;
  --header-h: 84px;
  --border: rgba(255,255,255,0.12);
  --serif-en: 'Playfair Display', 'Noto Serif SC', serif;
  --serif-zh: 'Noto Serif SC', 'Playfair Display', serif;
  --sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

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

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

.hidden{ display:none !important; }

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(10,9,11,0.92);
  backdrop-filter: blur(6px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.brand{
  font-family: var(--serif-zh);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand .brand-sep{
  margin: 0 8px;
  color: var(--text-dim);
  font-weight: 300;
}

.brand .brand-en{
  font-family: var(--serif-en);
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.main-nav{
  display:flex;
  align-items:center;
  gap: 36px;
}

.main-nav a{
  font-family: var(--serif-zh);
  font-size: 0.98rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  position: relative;
  padding: 6px 2px;
  transition: color .25s ease;
}

.main-nav a:hover{ color: var(--text); }

.main-nav a.active{ color: var(--accent); }

.main-nav a.active::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-2px;
  height:1px;
  background: var(--accent);
}

.lang-toggle{
  font-family: var(--serif-en);
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  transition: all .25s ease;
  margin-left: 8px;
}

.lang-toggle:hover{
  color: var(--accent);
  border-color: var(--accent-dim);
}

.nav-toggle{
  display:none;
  flex-direction: column;
  gap: 5px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 24px;
  height: 1px;
  background: var(--text);
  display:block;
}

/* ---------- Full-bleed section base ---------- */
.full-bleed{
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero{
  width: 100%;
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--bg);
}

.hero-media{
  display:block;
  width:auto;
  height:auto;
  max-width: 100%;
  max-height: 100vh;
  margin: 0 auto;
}

.hero .overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}

.hero-content{
  position: absolute;
  inset: 0;
  z-index: 2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color: var(--text);
}

.hero-kicker{
  font-family: var(--serif-en);
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: flex;
  gap: 36px;
}

.hero-title{
  font-family: var(--serif-zh);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.play-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color: var(--text);
  background: none;
  border: none;
  padding: 14px;
}

.play-circle{
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.75);
  display:flex;
  align-items:center;
  justify-content:center;
  transition: all .35s ease;
}

.play-circle::before{
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  transition: all .35s ease;
}

.play-btn:hover .play-circle{
  background: var(--text);
  color: #000;
  transform: scale(1.06);
  border-color: var(--text);
}

.play-btn:hover .play-circle::before{
  inset: -17px;
  border-color: rgba(255,255,255,0.45);
}

.play-circle svg{ width:18px; height:18px; margin-left: 3px; }

/* ---------- Teaser / gallery panels ---------- */
.teaser{
  width: 100%;
  display:block;
  position: relative;
}

.teaser-media{
  width: 100%;
  height: auto;
  display:block;
}

.teaser .overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%, rgba(0,0,0,0.25) 100%);
}

.teaser-content{
  position: absolute;
  left:0; bottom:0;
  z-index:2;
  padding: 60px;
  max-width: 640px;
}

.teaser-label{
  font-family: var(--serif-en);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.teaser-title{
  font-family: var(--serif-zh);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-outline{
  display:inline-block;
  padding: 12px 30px;
  border: 1px solid var(--text);
  font-family: var(--serif-en);
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  transition: all .25s ease;
}

.btn-outline:hover{
  background: var(--text);
  color: #000;
}

/* ---------- Work list (portfolio) compact cards ---------- */
.works-list{
  display:flex;
  flex-direction:column;
  gap: 46px;
  max-width: 900px;
  margin: 0 auto;
}

.work-card{
  position:relative;
  display:block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow:hidden;
  background-size: cover;
  background-position: center;
}

.work-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.08) 38%, rgba(0,0,0,0.05) 65%, rgba(0,0,0,0.3) 100%);
  transition: background .3s ease;
}

.work-card:hover .work-overlay{
  background: linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.15) 38%, rgba(0,0,0,0.1) 65%, rgba(0,0,0,0.4) 100%);
}

.work-content{
  position:absolute;
  left:0; top:0;
  z-index:2;
  padding: 34px 38px;
}

.work-title{
  font-family: var(--serif-zh);
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.work-sub{
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.btn-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  font-family: var(--serif-en);
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--text);
  transition: all .25s ease;
}

.btn-pill svg{ width:13px; height:13px; transition: transform .25s ease; }

.work-card:hover .btn-pill{
  background: var(--text);
  color: #000;
  border-color: var(--text);
}

.work-card:hover .btn-pill svg{ transform: translateX(3px); }

/* ---------- Demo reel video modal ---------- */
.video-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.open{ display:flex; }

.video-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.9);
}

.video-modal-inner{
  position: relative;
  z-index: 2;
  width: min(92vw, 1600px);
  max-height: 90vh;
  background: #000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.video-modal-inner video{
  width: 100%;
  height: auto;
  max-height: 90vh;
  display:block;
  background:#000;
  object-fit: contain;
}

.video-modal-close{
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--serif-en);
}

.video-modal-close:hover{ color: var(--accent); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero{
  height: 46vh;
  min-height: 320px;
  width: 100%;
  background-size: cover;
  background-position: center;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  margin-top: var(--header-h);
}

.page-hero .overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.5);
}

.page-hero-content{
  position:relative;
  z-index:2;
  text-align:center;
}

.page-kicker{
  font-family: var(--serif-en);
  letter-spacing: 4px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.page-title{
  font-family: var(--serif-zh);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.page-quote{
  font-family: var(--serif-zh);
  font-style: italic;
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.9;
  margin: 20px auto 0;
  padding: 0 20px;
}

/* ---------- Gallery grid ---------- */
.gallery-section{
  padding: 90px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-intro{
  max-width: 720px;
  margin: 0 auto 60px;
  text-align:center;
}

.gallery-intro p{
  color: var(--text-dim);
  font-size: 1.02rem;
}

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.gallery-item{
  position:relative;
  aspect-ratio: 4/3;
  overflow:hidden;
  background-size: cover;
  background-position: center;
  cursor:pointer;
}

.gallery-item .overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  opacity: 0.85;
  transition: opacity .3s ease;
}

.gallery-item:hover .overlay{ opacity: 1; }

.gallery-item:hover img, .gallery-item:hover{ }

.gallery-item .item-info{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 20px;
  z-index: 2;
}

.item-info .item-title{
  font-family: var(--serif-zh);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.item-info .item-sub{
  font-family: var(--serif-en);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-dim);
}

/* ---------- Project detail page ---------- */
.project-detail{
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 60px 40px;
  text-align: left;
}

.project-detail p{
  color: var(--text-dim);
  font-size: 1.02rem;
  text-align: justify;
  text-justify: inter-character;
  margin-bottom: 26px;
}

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

.project-media{
  max-width: 1400px;
  margin: 60px auto 0;
  padding: 0 60px;
}

.project-media img{
  width: 100%;
  height: auto;
}

/* ---------- Image reel (segmented crossfade slider) ---------- */
.image-reel{
  width: 100%;
}

.reel-stage{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-panel);
}

.reel-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity .7s ease;
}

.reel-slide.active{
  opacity: 1;
  z-index: 2;
}

.reel-track{
  position: relative;
  display: flex;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 0;
  cursor: grab;
  touch-action: pan-y;
}

.reel-track.dragging{ cursor: grabbing; }

.reel-handle{
  position: absolute;
  top: 50%;
  left: 0%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--text);
  color: #000;
  display:flex;
  align-items:center;
  justify-content:center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.reel-handle svg{ width:12px; height:12px; }

.reel-segment{
  position: relative;
  flex: 1 1 0;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  overflow: hidden;
}

.reel-fill{
  position: absolute;
  left:0; top:0; bottom:0;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
}

.project-videos{
  max-width: 1400px;
  margin: 60px auto 0;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-gallery{
  max-width: 1400px;
  margin: 60px auto 0;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-gallery > img{
  width: 100%;
  height: auto;
  display: block;
}

.thumb-row{
  display: flex;
  gap: 12px;
}

.thumb-row img{
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: auto;
  display: block;
}

.video-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.gallery-text{
  margin: 0;
  text-align: left;
  width: 100%;
}

.gallery-text .step-spaced{
  margin-top: 26px;
}

.gallery-heading{
  font-family: var(--sans);
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
}

.gallery-text p{
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 12px;
  text-align: justify;
  text-justify: inter-character;
}

.gallery-text ol{
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.9;
  padding-left: 22px;
}

.gallery-text ol li{ margin-bottom: 6px; }

.image-annotated{
  position: relative;
  width: 100%;
}

.image-annotated img{
  width: 100%;
  height: auto;
  display: block;
}

.img-label{
  position: absolute;
  transform: translate(-50%, 0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.6);
}

.img-label.img-title{
  font-family: var(--serif-en);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.img-label.img-credit{
  font-family: var(--sans);
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  transform: none;
}

.project-back{
  text-align: center;
  padding: 60px 60px 100px;
}

/* ---------- About page ---------- */
.about-section{
  margin-top: var(--header-h);
  display:grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}

.about-photo{
  width:100%;
  height:100%;
  min-height: 480px;
  background-size: cover;
  background-position: center;
}

.about-copy{
  padding: 90px 70px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.about-kicker{
  font-family: var(--serif-en);
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.about-name{
  font-family: var(--serif-zh);
  font-weight: 900;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.about-copy p{
  color: var(--text-dim);
  margin-bottom: 18px;
  max-width: 520px;
}

.about-content{
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 60px 120px;
}

.about-content p{
  color: var(--text-dim);
  font-size: 1.02rem;
  text-align: justify;
  text-justify: inter-character;
  max-width: 800px;
  margin-bottom: 20px;
}

.about-meta{
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.about-meta .meta-row{
  display:flex;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.about-meta .meta-label{
  font-family: var(--serif-en);
  color: var(--accent);
  letter-spacing: 1px;
  min-width: 100px;
}

/* ---------- Footer ---------- */
.site-footer{
  padding: 50px 40px;
  text-align:center;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  font-family: var(--serif-en);
  letter-spacing: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .about-section{ grid-template-columns: 1fr; }
  .about-photo{ min-height: 380px; }
}

@media (max-width: 720px){
  .site-header{ padding: 0 20px; }
  .brand{ font-size: 0.95rem; }
  .brand .brand-en{ display:block; font-size: 0.75rem; margin-top: 2px; }
  .nav-toggle{ display:flex; }
  .main-nav{
    position: fixed;
    top: var(--header-h);
    left:0; right:0;
    background: rgba(10,9,11,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .main-nav.open{ transform: translateY(0); }
  .gallery-grid{ grid-template-columns: 1fr; }
  .gallery-section{ padding: 60px 24px; }
  .teaser-content{ padding: 36px 28px; }
  .about-copy{ padding: 50px 30px; }
  .work-card{ aspect-ratio: 4/3; }
  .work-content{ padding: 24px 24px; }
}
