/* 刘天宇｜AI 导演 · 作品集 v3（2026-11-26 晚，按用户「字体呆板」批注）
   方向：放映厅。整屏画面打头，片名像片头字幕压在封面左侧暗部；全站直角、黑底、单色，颜色只交给作品封面。
   字体（都是 SIL OFL 免费商用，裁成本站用到的字，站内自带不连外网）：
     片名、名字：思源宋体 Heavy / Bold，高反差宋体 = 电影海报和片头字幕的字形（借 Anonymous Content 的 Caslon 衬线大标题）
     数字、时间码：Instrument Serif 斜体（借 Somesuch / Anonymous Content 衬线斜体作点缀）
     正文、小标签：系统黑体（借 Smuggler / Biscuit 的无衬线小字，靠大小反差拉层级）
   字效：片名逐字从暗处浮现（片头字幕），悬停逐字起伏；首屏胶片颗粒。尊重「减少动态效果」。 */

@font-face { font-family: "LTY Display"; src: url(/assets/fonts/display-heavy.woff) format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "LTY Display"; src: url(/assets/fonts/display-bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "LTY Num"; src: url(/assets/fonts/num.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "LTY Num"; src: url(/assets/fonts/num-italic.woff) format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --bg2: #141416;
  --ink: #ecebe7;
  --mute: #8f8e89;
  --line: rgba(236, 235, 231, .14);
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "LTY Display", "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --num: "LTY Num", "Instrument Serif", Georgia, serif;
  --mono: var(--num);
  --pad: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }

/* ---------- 顶栏：四角式，名字就是标识 ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 68px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad);
  background: linear-gradient(rgba(11, 11, 12, .72), rgba(11, 11, 12, 0));
  transition: background .4s var(--ease);
}
.top.solid { background: rgba(11, 11, 12, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mark { display: flex; align-items: baseline; gap: 10px; }
.mark b { font: 900 20px/1 var(--display); letter-spacing: .14em; }
.mark span { font-size: 13px; color: var(--mute); letter-spacing: .1em; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); font-size: 15px; letter-spacing: .12em; }
.nav a { position: relative; padding: 6px 0; color: rgba(236, 235, 231, .78); transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

/* ---------- 首屏：精选轮播 ---------- */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; background: #000; }
.slides, .slide, .hero-peek { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.1s var(--ease); }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.06); }
.slide.on img { transform: scale(1); transition: transform 9s linear; }
.hero-peek { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s var(--ease); }
.hero-peek.live { opacity: 1; }
/* 胶片颗粒：一张噪点图逐帧跳位 */
.hero::after {
  content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.hero-shade, .hero-in, .picks { z-index: 2; }
/* 逐字：从暗处、带一点虚焦浮上来 */
.ch { display: inline-block; }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, .86) 0%, rgba(11, 11, 12, .45) 34%, rgba(11, 11, 12, 0) 58%),
    linear-gradient(0deg, rgba(11, 11, 12, .95) 0%, rgba(11, 11, 12, 0) 34%);
}
.hero-in { position: absolute; left: var(--pad); bottom: clamp(150px, 22vh, 220px); max-width: min(720px, 86vw); }
.hero-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em .6em; line-height: 1; }
.hero-name { font: 900 clamp(64px, 10.5vw, 168px)/1 var(--display); letter-spacing: .02em; }
.hero-name .ch { animation: rise 1.6s var(--ease) both; animation-delay: calc(.25s + var(--i) * .16s); }
.hero-role { font-size: clamp(16px, 1.6vw, 24px); font-weight: 300; letter-spacing: .4em; color: rgba(236, 235, 231, .78); animation: fade 1.6s var(--ease) .9s both; }
.hero-line { margin-top: 18px; font-size: clamp(15px, 1.25vw, 18px); color: rgba(236, 235, 231, .78); max-width: 34em; text-wrap: balance; }
.hero-caps { position: relative; margin-top: clamp(28px, 5vh, 52px); height: 64px; }
.hero-cap { position: absolute; inset: 0 auto auto 0; display: flex; align-items: baseline; gap: 14px; white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.hero-cap.on { opacity: 1; transform: none; pointer-events: auto; }
.hero-cap .k { font-size: 14px; color: var(--mute); letter-spacing: .12em; }
.hero-cap .t { font: 900 clamp(24px, 2.3vw, 36px)/1.2 var(--display); letter-spacing: .04em; }
.hero-cap.on .ch { animation: rise 1s var(--ease) both; animation-delay: calc(.15s + var(--i) * .07s); }
.hero-cap .go { font-size: 14px; letter-spacing: .12em; border-bottom: 1px solid rgba(236, 235, 231, .5); padding-bottom: 2px; margin-left: 6px; transition: border-color .2s; }
.hero-cap:hover .go { border-color: var(--ink); }

.picks { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 5vh, 48px); display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.pick { text-align: left; display: grid; gap: 6px; color: rgba(236, 235, 231, .55); transition: color .3s; }
.pick:hover, .pick.on { color: var(--ink); }
.pick-bar { display: block; height: 2px; background: rgba(236, 235, 231, .22); overflow: hidden; }
.pick-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.pick.done .pick-bar i { transform: scaleX(1); }
.pick.on .pick-bar i { animation: fill var(--dwell, 7s) linear forwards; }
.hero.paused .pick.on .pick-bar i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.pick-t { font: 700 15px/1.4 var(--display); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-k { font-size: 12px; letter-spacing: .1em; color: var(--mute); }

/* ---------- 作品：筛选 + 网格 ---------- */
.work { padding: clamp(48px, 7vw, 96px) var(--pad) 0; scroll-margin-top: 40px; }
.tabs { display: flex; gap: 8px clamp(18px, 2.4vw, 34px); flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.tab { position: relative; padding: 6px 0; font-size: 16px; letter-spacing: .06em; color: var(--mute); transition: color .2s; }
.tab sup { font: italic 14px/1 var(--num); margin-left: 3px; letter-spacing: 0; }
.tab:hover, .tab.on { color: var(--ink); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.tab.on::after { transform: scaleX(1); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.card { position: relative; display: block; overflow: hidden; background: var(--bg2); aspect-ratio: 16 / 9; }
.card.card-wide { grid-column: 1 / -1; aspect-ratio: 2.39 / 1; }
.card[hidden] { display: none; }
.card-img, .card-img img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-img img { object-fit: cover; object-position: 70% 50%; transition: transform 1.2s var(--ease), opacity .5s; }
.card video { object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.card video.live { opacity: 1; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11, 11, 12, .72) 0%, rgba(11, 11, 12, .18) 42%, rgba(11, 11, 12, 0) 60%), linear-gradient(0deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, 0) 40%); }
.card-cap { position: absolute; z-index: 2; left: clamp(18px, 2.4vw, 36px); bottom: clamp(16px, 2.2vw, 32px); display: grid; gap: 4px; max-width: 60%; }
.card-cap .k { font-size: 13px; letter-spacing: .14em; color: rgba(236, 235, 231, .72); }
.card-cap .t { font: 900 clamp(22px, 2.2vw, 34px)/1.25 var(--display); letter-spacing: .04em; margin-left: -.5em; }
.card-wide .card-cap .t { font-size: clamp(30px, 3.6vw, 56px); }
.card-cap .ch, .next-cap .ch { transition: transform .5s var(--ease), color .5s; transition-delay: calc(var(--i) * 28ms); }
.card:hover .card-cap .ch, .next:hover .next-cap .ch { transform: translateY(-.09em); }
.card:hover .card-cap .ch:nth-child(even), .next:hover .next-cap .ch:nth-child(even) { transform: translateY(.04em); }
.card-tc { position: absolute; z-index: 2; right: clamp(14px, 1.8vw, 26px); bottom: clamp(16px, 2.2vw, 32px); font: italic 17px/1 var(--num); letter-spacing: .04em; color: rgba(236, 235, 231, .78); }
.card:hover .card-img img { transform: scale(1.035); }

/* ---------- 页脚 = 联系方式（用户 11-26：只放最底下） ---------- */
.foot { margin-top: clamp(96px, 12vw, 180px); padding: clamp(40px, 5vw, 72px) var(--pad) 32px; border-top: 1px solid var(--line); color: var(--mute); }
.foot-list { display: flex; flex-wrap: wrap; gap: 24px clamp(48px, 8vw, 140px); }
.foot-list dt { font-size: 13px; letter-spacing: .3em; }
.foot-list dd { margin-top: 6px; font: italic clamp(30px, 4vw, 60px)/1.1 var(--num); color: var(--ink); letter-spacing: .01em; }
.foot-list a, .copy { position: relative; border-bottom: 1px solid transparent; transition: border-color .2s; }
.foot-list a:hover, .copy:hover { border-color: var(--ink); }
.copy::after { content: "点一下复制"; position: absolute; left: 0; top: 100%; margin-top: 8px; font: 12px/1 var(--sans); letter-spacing: .2em; color: var(--mute); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.copy:hover::after { opacity: 1; }
.copy.done::after { content: "已复制"; opacity: 1; color: var(--ink); }
.foot-qr dd { display: flex; align-items: flex-end; gap: 16px; font: 13px/1.6 var(--sans) !important; letter-spacing: .2em; color: var(--mute) !important; }
.foot-qr img { width: 160px; height: 160px; background: #fff; padding: 8px; display: block; }
.foot-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 88px); font-size: 13px; letter-spacing: .1em; }
/* ---------- 类目页 ---------- */
.list { padding: 140px var(--pad) 0; }
.list-head { margin-bottom: clamp(32px, 4vw, 56px); }
.crumb { font-size: 14px; color: var(--mute); letter-spacing: .1em; }
.crumb a:hover { color: var(--ink); }
.list-head h1 { margin-top: 10px; font: 900 clamp(40px, 5.6vw, 84px)/1.15 var(--display); letter-spacing: .03em; }
.list-sub { margin-top: 10px; color: var(--mute); }

/* ---------- 案例页 ---------- */
.case { padding-top: 68px; }
.case-top { padding: clamp(36px, 5vw, 72px) var(--pad) clamp(24px, 3vw, 40px); }
.case-top .k { font-size: 14px; color: var(--mute); letter-spacing: .14em; }
.case-top .k a:hover { color: var(--ink); }
.case-top h1 { margin: 10px 0 0 -.5em; font: 900 clamp(44px, 6.4vw, 104px)/1.1 var(--display); letter-spacing: .03em; }
.case-top h1 .ch { animation: rise 1.3s var(--ease) both; animation-delay: calc(.1s + var(--i) * .09s); }
.stage { background: #000; display: flex; justify-content: center; }
.stage video { width: 100%; max-height: calc(100dvh - 90px); background: #000; aspect-ratio: 16 / 9; }
.stage-w video { aspect-ratio: auto; }
.stage-v video { width: auto; height: calc(100dvh - 68px); max-height: 900px; aspect-ratio: 9 / 16; }
.vtabs { display: flex; gap: 28px; padding: 22px var(--pad) 0; }
.vtabs button { padding: 6px 0; font-size: 15px; letter-spacing: .08em; color: var(--mute); border-bottom: 1px solid transparent; }
.vtabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.case-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); padding: clamp(40px, 5vw, 72px) var(--pad); align-items: start; }
.case-title .k { font-size: 14px; color: var(--mute); letter-spacing: .14em; }
.case-title .k a:hover { color: var(--ink); }
.case-title h1 { margin: 12px 0 0 -.5em; font-size: clamp(40px, 6vw, 92px); font-weight: 600; letter-spacing: .02em; line-height: 1.1; }
.case-line { font-size: clamp(20px, 2vw, 30px); line-height: 1.5; color: rgba(236, 235, 231, .85); max-width: 32em; }
.concept { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--mute); letter-spacing: .08em; border: 1px solid var(--line); padding: 4px 10px; }
.case-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.case-meta dt { font-size: 13px; color: var(--mute); letter-spacing: .14em; }
.case-meta dd { margin-top: 4px; font-size: 17px; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 14px); padding: 0 var(--pad); }
.stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg2); }
.stills-w img { aspect-ratio: 1.875 / 1; }
.stills-v { grid-template-columns: repeat(6, 1fr); }
.stills-v img { aspect-ratio: 9 / 16; }
.proc { padding: clamp(56px, 7vw, 96px) var(--pad) 0; }
.proc h2 { font-size: 14px; font-weight: 400; color: var(--mute); letter-spacing: .2em; margin-bottom: 20px; }
.proc-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.proc figcaption { margin-top: 8px; font-size: 13px; color: var(--mute); }
.next { position: relative; display: block; margin-top: clamp(72px, 10vw, 140px); aspect-ratio: 2.39 / 1; overflow: hidden; background: var(--bg2); }
.next img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .75; transition: opacity .5s, transform 1.2s var(--ease); }
.next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 12, .85), rgba(11, 11, 12, 0) 60%); }
.next:hover img { opacity: 1; transform: scale(1.02); }
.next-cap { position: absolute; z-index: 2; left: var(--pad); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.next-cap .k { font-size: 14px; color: rgba(236, 235, 231, .72); letter-spacing: .16em; }
.next-cap .t { font: 900 clamp(36px, 5vw, 80px)/1.15 var(--display); letter-spacing: .03em; margin-left: -.5em; }
.is-case .foot { margin-top: 0; }

/* ---------- 404 ---------- */
.lost { padding: 180px var(--pad) 0; }
.lost h1 { font: 900 clamp(40px, 6vw, 92px)/1.12 var(--display); }
.lost p { margin-top: 20px; color: var(--mute); }
.lost a { border-bottom: 1px solid var(--mute); }

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .top { height: 58px; }
  .mark span { display: none; }
  .nav { gap: 20px; font-size: 14px; }
  .hero-in { bottom: 128px; }
  .hero-shade { background: linear-gradient(0deg, rgba(11, 11, 12, .96) 0%, rgba(11, 11, 12, .5) 45%, rgba(11, 11, 12, .15) 100%); }
  .slide img { object-position: 68% 50%; }
  .hero-cap { flex-wrap: wrap; white-space: normal; }
  .hero-cap .go { display: none; }
  .picks { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scrollbar-width: none; left: 0; right: 0; padding: 0 var(--pad); }
  .picks::-webkit-scrollbar { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card.card-wide { aspect-ratio: 16 / 9; }
  .card-cap { max-width: 78%; }
  .case { padding-top: 58px; }
  .stage-v video { height: auto; width: 100%; max-height: none; }
  .case-head { grid-template-columns: 1fr; }
  .stills, .stills-v { grid-template-columns: repeat(2, 1fr); }
  .next { aspect-ratio: 16 / 10; }
  .list, .lost { padding-top: 110px; }
  .foot-list { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .slide.on img { transform: none; }
  .hero::after { animation: none; }
  html { scroll-behavior: auto; }
}
