/* ==========================================================================
   YU KEHAN — SITE 2026
   极简 / 黑白 / 细字体 / 缓慢动效
   ========================================================================== */

:root {
  --paper:   #f2f1ee;
  --paper-2: #e7e6e2;
  --ink:     #0e0e0c;
  --ink-2:   #3a3936;
  --ink-3:   #9b9892;
  --muted:   #9b9892;
  --line:    rgba(14, 14, 12, .13);
  --line-2:  rgba(14, 14, 12, .3);
  --accent:  #0e0e0c;

  --sans:  "Bahnschrift Light Condensed", "HelveticaNeueLT Std Lt Cn", "Helvetica Neue",
           "Segoe UI Light", Helvetica, Arial, "Noto Sans SC", sans-serif;
  --display: "Bahnschrift Light Condensed", "HelveticaNeueLT Std Lt Cn", "Helvetica Neue",
           Helvetica, Arial, "Noto Sans SC", sans-serif;
  --bold:  "Bahnschrift SemiLight Condensed", "HelveticaNeueLT Std Med Cn", "Helvetica Neue",
           Helvetica, Arial, "Noto Sans SC", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --mono:  "Cascadia Mono", "SF Mono", SFMono-Regular, Consolas, Menlo, monospace;

  --gut: clamp(20px, 3.4vw, 56px);
  --gutter: var(--gut);
  --maxw: 1560px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* 仅首页分节吸附；详情页保持自由滚动 */
html.snap {
  scroll-snap-type: y mandatory;
}

html.snap main > section {
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body {
  margin: 0;
  background: #fbfbfa;
  transition: background-color .9s var(--ease);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-dark { background: #0b0b0b; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #c9c7c1; border: 2px solid var(--paper); border-radius: 9px; }


/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 64px;
  padding-inline: var(--gut);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;

  color: var(--ink);
  mix-blend-mode: normal;
  transition: color .5s var(--ease), background-color .5s var(--ease);
}

.nav.is-dark { color: var(--paper); }

.nav.is-solid:not(.is-dark) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav.is-dark.is-solid {
  opacity: .55;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.nav-brand { justify-self: start; letter-spacing: .24em; }

.nav-links {
  display: flex;
  gap: clamp(16px, 2.6vw, 40px);
  justify-self: center;
}

.nav-links a {
  position: relative;
  opacity: .55;
  transition: opacity .35s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-contact { justify-self: end; opacity: .8; }
.nav-contact:hover { opacity: 1; }


/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  background: var(--paper-2);
  overflow: hidden;
  isolation: isolate;
}

/* 3D 舞台 */
.hero-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1600px;
  perspective-origin: 50% 46%;
  z-index: 1;
}

/* 立方体下方的柔和投影 */
.hero-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(58vw, 620px);
  height: 120px;
  transform: translate(-50%, 250px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(14,14,12,.22), rgba(14,14,12,0) 72%);
  filter: blur(16px);
  z-index: -1;
}

.cube {
  --s: 460px;
  --h: 230px;
  position: relative;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  transform: rotateX(-17deg) rotateY(24deg);
  animation: cubeTurn 52s linear infinite;
  will-change: transform;
}

@keyframes cubeTurn {
  from { transform: rotateX(-17deg) rotateY(0deg); }
  to   { transform: rotateX(-17deg) rotateY(360deg); }
}

.face {
  position: absolute;
  inset: 0;
  width: var(--s);
  height: var(--s);
  overflow: hidden;
  background: #111;
  backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}

.face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.35) contrast(1.02) brightness(.92);
  opacity: 0;
  animation: frameSwap 9s var(--ease) infinite;
}

.face img:nth-child(2) { animation-delay: 4.5s; }

@keyframes frameSwap {
  0%, 42%  { opacity: 1; }
  50%, 92% { opacity: 0; }
  100%     { opacity: 1; }
}

/* 电视信号：扫描线 + 噪点 + 暗角 */
.crt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,.22) 0 1px,
      rgba(0,0,0,0) 1px 3px),
    radial-gradient(115% 100% at 50% 50%, rgba(0,0,0,0) 52%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}

.crt::after {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .5;
  mix-blend-mode: overlay;
  animation: noiseShift .45s steps(3) infinite;
}

@keyframes noiseShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, 2%); }
  66%  { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

/* 面的空间位置 */
.face--front  { transform: translateZ(var(--h)); }
.face--back   { transform: rotateY(180deg) translateZ(var(--h)); }
.face--right  { transform: rotateY(90deg)  translateZ(var(--h)); }
.face--left   { transform: rotateY(-90deg) translateZ(var(--h)); }
.face--top    { transform: rotateX(90deg)  translateZ(var(--h)); }
.face--bottom { transform: rotateX(-90deg) translateZ(var(--h)); }

/* 全局扫描线 */
.hero-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
    rgba(255,255,255,.035) 0 1px,
    rgba(255,255,255,0) 1px 4px);
}


/* 背景照片墙（倾斜、极淡） */
.hero-tiles {
  position: absolute;
  inset: -22%;
  z-index: 0;
  opacity: .08;
  pointer-events: none;
  perspective: 900px;
  filter: blur(.6px);
  overflow: hidden;
}

.tiles-plane {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  transform: rotateX(18deg) rotateZ(-7deg) scale(1.18);
  animation: tilesDrift 90s linear infinite;
  will-change: transform;
}

.tiles-plane img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
}

@keyframes tilesDrift {
  from { transform: rotateX(18deg) rotateZ(-7deg) translateY(0) scale(1.18); }
  to   { transform: rotateX(18deg) rotateZ(-7deg) translateY(-50%) scale(1.18); }
}

/* 标题逐字 */
.hero-name .line { display: block; }

.hero-name .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(.42em);
  animation: chIn .95s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * .055s + .35s);
  transition: filter .18s linear, opacity .18s linear;
  will-change: transform;
}

@keyframes chIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-name .ch.is-glitch {
  filter: blur(1.4px);
  opacity: .65;
}

/* 文字层 */
.hero-copy {
  position: absolute;
  left: var(--gut);
  bottom: clamp(72px, 9vh, 110px);
  z-index: 4;
  pointer-events: none;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 22px;
}

.hero-name {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(44px, 6.6vw, 104px);
  line-height: .88;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.hero-name span { display: block; }

.hero-cn {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--ink-2);
}

.hero-side {
  position: absolute;
  right: var(--gut);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  text-align: right;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.hero-foot {
  position: absolute;
  left: var(--gut);
  right: var(--gut);
  bottom: 24px;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
}

.cue-line {
  width: 32px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: cuePulse 2.6s var(--ease) infinite;
}

@keyframes cuePulse {
  0%, 100% { transform: scaleX(.35); opacity: .4; }
  50%      { transform: scaleX(1);   opacity: 1; }
}


/* ==========================================================================
   通用区块
   ========================================================================== */
.sec-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.sec-head--center {
  grid-template-columns: 64px 1fr auto;
}

.sec-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--muted);
}

.sec-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1;
  letter-spacing: .01em;
}

.sec-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
}

.sec-note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}


/* ==========================================================================
   01 — SELECTED WORKS
   ========================================================================== */
.work {
  padding: clamp(80px, 10vw, 140px) var(--gut) clamp(90px, 11vw, 160px);
  background: transparent;
}

.work-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 80px);
}

.work-names {
  display: grid;
  gap: clamp(56px, 8vw, 128px);
  align-content: center;
}

.work-names--right { justify-items: start; }
.work-names--left  { justify-items: end; text-align: right; }

.work-names a {
  display: grid;
  gap: 8px;
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color .45s var(--ease), transform .5s var(--ease);
}

/* 悬停时向中间图片伸出一条短线 */
.work-names a::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .5s var(--ease);
}

.work-names--left a::before {
  left: 100%;
  margin-left: 14px;
  transform-origin: left;
}

.work-names--right a::before {
  right: 100%;
  margin-right: 14px;
  transform-origin: right;
}

.work-names a:hover::before,
.work-names a.is-active::before { transform: scaleX(1); }

.work-names--left a:hover,
.work-names--left a.is-active { transform: translateX(8px); }

.work-names--right a:hover,
.work-names--right a.is-active { transform: translateX(-8px); }

.work-names a:hover,
.work-names a.is-active { color: var(--ink); }

.wn-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--muted);
}

.wn-name {
  font-family: var(--bold);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.25;
}

.wn-cn {
  font-family: var(--serif);
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--muted);
  opacity: .8;
}

/* 中间滚动图片 */
.work-reel {
  position: relative;
  height: clamp(380px, 52vh, 520px);
  overflow: hidden;
  background: var(--paper-2);
}

.reel-track {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  will-change: transform;
}

.reel-item {
  margin: 0 0 14px;
  overflow: hidden;
}

.reel-item img {
  width: 100%;
  height: clamp(280px, 36vh, 350px);
  object-fit: cover;
  filter: grayscale(.25) contrast(1.02);
  transition: filter .6s var(--ease);
}

.reel-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(14,14,12,.16);
  mix-blend-mode: multiply;
}


/* ==========================================================================
   02 — INDEX（3D 圆柱 + 时间轴）
   ========================================================================== */
.index {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--paper);
  overflow: hidden;
}

.index-meta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: clamp(76px, 9vh, 98px) var(--gut) 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(242, 241, 238, .45);
}

.drum-stage {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 62vh;
  display: grid;
  place-items: center;
  perspective: 1500px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;

  /* 文字自身淡出，而不是被黑色盖住 */
  -webkit-mask-image: linear-gradient(180deg,
    transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg,
    transparent 0%, #000 9%, #000 91%, transparent 100%);
}

.drum-stage:active { cursor: grabbing; }

.drum {
  position: relative;
  width: 100%;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.drum-item {
  font-family: var(--bold);
  position: absolute;
  left: 50%;
  top: 0;
  width: max-content;
  height: clamp(48px, 5.2vw, 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 28px);
  white-space: nowrap;
  line-height: 1;

  font-size: clamp(26px, 3.5vw, 56px);
  font-weight: 400;
  letter-spacing: .015em;
  color: rgba(242, 241, 238, .92);

  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: color .4s var(--ease);
  will-change: transform;
}

.drum-item:hover { color: #fff; }

.di-date {
  font-family: var(--mono);
  font-size: clamp(9px, 0.95vw, 14px);
  letter-spacing: .16em;
  color: rgba(242, 241, 238, .38);
  transform: translateY(-0.9em);
  transition: color .4s var(--ease);
}

.drum-item:hover .di-date { color: rgba(242, 241, 238, .8); }

/* 时间轴 */
.timeline {
  position: relative;
  z-index: 3;
  margin: 0 var(--gut) clamp(20px, 3.4vh, 40px);
  padding-top: 16px;
}

.tl-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 33px;
  height: 1px;
  background: rgba(242, 241, 238, .16);
}

.tl-list {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.tl-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(242, 241, 238, .42);
  transition: color .35s var(--ease);
}

.tl-date {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
}

.tl-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transition: transform .4s var(--ease), background-color .4s var(--ease);
}

.tl-name {
  font-family: var(--bold);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.tl-node:hover { color: #fff; }
.tl-node:hover .tl-dot { transform: scale(2); background: #fff; }
.tl-node:hover .tl-name { opacity: 1; transform: translate(-50%, 0); }

.index-foot {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--gut) 22px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242, 241, 238, .3);
}

.drum-list { display: none; }


/* ==========================================================================
   03 — GALLERY
   ========================================================================== */
.gallery {
  padding: clamp(80px, 10vw, 140px) var(--gut) clamp(60px, 7vw, 100px);
}

.masonry {
  column-count: 4;
  column-gap: clamp(8px, 1vw, 14px);
  margin-top: clamp(28px, 3vw, 44px);
}

.shot {
  break-inside: avoid;
  margin: 0 0 clamp(10px, 1.4vw, 20px);
  overflow: hidden;
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  height: clamp(170px, 19vh, 215px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(.98);
  transform: scale(1.001);
  transition: filter .7s var(--ease), transform 1s var(--ease-out);
}

.shot:hover img {
  filter: grayscale(.1) contrast(1.02) brightness(1);
  transform: scale(1.035);
}

.gallery-note {
  margin-top: clamp(26px, 3vw, 40px);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  text-align: right;
}


/* ==========================================================================
   04 — ABOUT
   ========================================================================== */
.about {
  padding: clamp(70px, 8vw, 110px) var(--gut) clamp(80px, 10vw, 140px);
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  margin-top: clamp(40px, 5vw, 72px);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.03);
}

.about-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: .02em;
}

.about-en {
  margin-top: 12px;
  font-family: var(--sans);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}

.prose {
  margin-top: clamp(26px, 3vw, 40px);
  display: grid;
  gap: 1.05em;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}

.about-cv {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.about-cv span {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.about-cv p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

.about-cv a { border-bottom: 1px solid var(--line-2); }
.about-cv a:hover { border-color: var(--ink); }


/* ==========================================================================
   05 — GUESTBOOK
   ========================================================================== */
.guestbook {
  padding: clamp(70px, 8vw, 110px) var(--gut) clamp(60px, 7vw, 90px);
  background: transparent;
}

.gb-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(30px, 5vw, 80px);
  margin-top: clamp(36px, 4vw, 60px);
  align-items: start;
}

.gb-form { display: grid; gap: 24px; }

.gb-field { display: grid; gap: 8px; }

.gb-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.gb-opt { margin-left: 6px; text-transform: none; letter-spacing: .08em; opacity: .7; }

.gb-field input,
.gb-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  padding: 4px 0 10px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
  transition: border-color .35s var(--ease);
}

.gb-field textarea {
  font-family: var(--serif);
  font-size: 16px;
  min-height: 62px;
}

.gb-field input::placeholder,
.gb-field textarea::placeholder { color: var(--muted); opacity: .65; }

.gb-field input:focus,
.gb-field textarea:focus { outline: none; border-bottom-color: var(--ink); }

.gb-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.gb-submit {
  font-family: var(--bold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: gap .4s var(--ease), opacity .3s var(--ease);
}

.gb-submit:hover { gap: 18px; opacity: .82; }
.gb-submit:disabled { opacity: .4; cursor: default; }

.gb-count {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  color: var(--muted);
}

.gb-status { font-size: 11.5px; color: var(--ink-2); min-height: 1.2em; }

.gb-side {
  border-top: 1px solid var(--ink);
  padding-top: 14px;
}

.gb-side-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.gb-side-num {
  font-family: var(--bold);
  font-weight: 400;
  font-size: clamp(48px, 5vw, 76px);
  line-height: .95;
  letter-spacing: .01em;
  margin-top: 6px;
}

.gb-side-note {
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 12px;
  max-width: 28ch;
}

.gb-list { margin-top: clamp(36px, 4vw, 60px); }

.gb-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: clamp(10px, 2vw, 24px);
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.gb-item:last-child { border-bottom: 1px solid var(--line); }

.gb-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--muted);
  padding-top: 6px;
}

.gb-text {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.gb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.gb-del {
  font-size: 14px;
  color: var(--muted);
  opacity: .35;
  padding: 4px 6px;
  transition: opacity .3s var(--ease);
}

.gb-del:hover { opacity: 1; }

.gb-empty {
  margin-top: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--muted);
}


/* ==========================================================================
   06 — CONTACT
   ========================================================================== */
.contact {
  background: transparent;
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--gut) clamp(60px, 7vw, 100px);
}

.contact-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(242,241,238,.45);
  margin-bottom: clamp(28px, 4vw, 52px);
}

.contact-title {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(40px, 7.4vw, 120px);
  line-height: .94;
  letter-spacing: .01em;
}

.contact-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.01em;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  margin-top: clamp(28px, 4vw, 48px);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(242,241,238,.4);
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 300;
  transition: gap .5s var(--ease), border-color .4s var(--ease);
}

.contact-mail:hover { gap: clamp(18px, 3vw, 34px); border-color: var(--paper); }

.mail-arrow { font-size: .8em; }


/* ==========================================================================
   FOOTER / LIGHTBOX
   ========================================================================== */
.foot {
  scroll-snap-align: end;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gut) 24px;
  background: var(--ink);
  color: rgba(242,241,238,.4);
  border-top: 1px solid rgba(242,241,238,.12);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.foot a:hover { color: var(--paper); }

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(10,10,9,.96);
}

.lb.is-open { display: grid; }

.lb-figure {
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto;
  object-fit: contain;
}

.lb-figure figcaption {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(242,241,238,.55);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  color: rgba(242,241,238,.65);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transition: color .3s var(--ease);
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: #fff; }

.lb-close { top: 16px; right: 16px; font-size: 24px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

body.is-locked { overflow: hidden; }


/* ==========================================================================
   REVEAL
   ========================================================================== */
.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.js .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
  .drum-stage { display: none; }
  .drum-list { display: grid; gap: 0; position: relative; z-index: 3; margin: 120px var(--gut) 60px; }
  .drum-list a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(242,241,238,.16); color: rgba(242,241,238,.8); }
  .index { height: auto; padding-bottom: 40px; }
}




/* ==========================================================================
   ABOUT — 链接
   ========================================================================== */
.about-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  transition: color .35s var(--ease), border-color .35s var(--ease), gap .35s var(--ease);
}

.about-more:hover { color: var(--ink); border-color: var(--ink); gap: 16px; }


/* ==========================================================================
   CV
   ========================================================================== */
.cv {
  padding: clamp(70px, 8vw, 110px) var(--gut) clamp(70px, 8vw, 110px);
  background: transparent;
}

.cv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(36px, 4vw, 60px);
}

.cv-col {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}

.cv-h3 {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.cv-item { margin-bottom: 22px; }

.cv-h {
  font-family: var(--bold);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

.cv-s {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-top: 4px;
}

.cv-m {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
}

.cv-d {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 8px;
}

.cv-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 8px;
}

.cv-h a { border-bottom: 1px solid var(--line-2); }
.cv-h a:hover { border-color: var(--ink); }



/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .work-stage {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) minmax(0, 1fr);
  }
  .cube { --s: 380px; --h: 190px; }
}

@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 14px; }
  .nav-links {
    display: flex;
    gap: 12px;
    justify-self: center;
    font-size: 8px;
    letter-spacing: .1em;
  }
  .nav-contact { font-size: 8px; letter-spacing: .14em; }

  .hero-tiles { display: none; }
  .hero-side { display: none; }
  .cube { --s: 300px; --h: 150px; }

  .work-stage {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .work-names {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    justify-items: start;
    text-align: left;
  }

  .work-names--left, .work-names--right { justify-items: start; text-align: left; }
  .work-names a { padding: 0; }
  .work-reel { order: -1; height: 300px; }
  .reel-item img { height: 260px; }

  .drum-stage { display: none; }
  .timeline { display: none; }
  .index-foot { display: none; }

  .drum-list {
    display: grid;
    gap: 0;
    position: relative;
    z-index: 3;
    margin: 120px var(--gut) 60px;
  }

  .drum-list a {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid rgba(242,241,238,.16);
    font-size: 15px;
    letter-spacing: .04em;
    color: rgba(242,241,238,.75);
  }

  .drum-list a span {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .14em;
    color: rgba(242,241,238,.4);
    padding-top: 4px;
  }

  .index { height: auto; padding-bottom: 40px; }

  .masonry { column-count: 3; }
  .shot img { height: 150px; }

  .about-grid { grid-template-columns: 1fr; }
  .cv-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .about-portrait { max-width: 340px; }
  .about-cv { grid-template-columns: 1fr 1fr; gap: 24px; }

  .gb-layout { grid-template-columns: 1fr; gap: 30px; }
  .gb-side { order: -1; }

  .sec-head { grid-template-columns: 40px 1fr; }
  .sec-note { grid-column: 2; text-align: left; }
}

@media (max-width: 560px) {
  .cube { --s: 240px; --h: 120px; }
  .hero-name { font-size: clamp(40px, 12vw, 64px); }
  .hero-foot span:first-child { display: none; }
  .masonry { column-count: 1; }
  .cv-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .gb-item { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .work-names { gap: 24px; }
  .reel-item img { height: 220px; }
}
