/* ============================================================
   VOLT R1 — 姚田雨 ASAHI · AI Designer Portfolio
   Minimal · Premium · Black
   ============================================================ */

:root {
  --bg: #060607;
  --bg-2: #0b0b0d;
  --ink: #f0ede6;
  --ink-dim: rgba(240, 237, 230, 0.55);
  --ink-faint: rgba(240, 237, 230, 0.26);
  --line: rgba(240, 237, 230, 0.14);
  --line-strong: rgba(240, 237, 230, 0.42);
  --accent: #ff4040;
  --font-display: "Matisse EB", "EVA明朝体", "Zen Old Mincho", "Noto Serif SC", "Hiragino Mincho ProN", "Yu Mincho", "Songti SC", "SimSun", serif;
  --font-sans: "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* Kill default focus rings & tap highlights (no blue boxes/borders) */
*:focus { outline: none !important; }
*:focus-visible { outline: none !important; }
a:focus, a:active, button:focus, button:active, [tabindex]:focus { outline: none !important; box-shadow: none !important; }
* { -webkit-tap-highlight-color: transparent; }
img { -webkit-user-drag: none; user-select: none; }



html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: #000; }

a { color: inherit; }

/* Scrollbar — thin & dark */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(240,237,230,0.22); }
::-webkit-scrollbar-thumb:hover { background: rgba(240,237,230,0.4); }

/* ---------- Page fade on navigation ---------- */
.page-fade {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
body.leaving .page-fade { opacity: 1; pointer-events: all; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}


/* ---------- Sniper scope cursor ---------- */
.sniper-cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 9999;
  width: 0; height: 0;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.sniper-cursor .sc-circle {
  position: absolute;
  left: -14px; top: -14px;
  width: 28px; height: 28px;
  border: 1px solid rgba(255, 64, 64, 0.95);
  border-radius: 50%;
}
.sniper-cursor .sc-h,
.sniper-cursor .sc-v {
  position: absolute;
  background: rgba(255, 64, 64, 0.95);
}
.sniper-cursor .sc-h { left: -24px; top: -0.5px; width: 48px; height: 1px; }
.sniper-cursor .sc-v { left: -0.5px; top: -24px; width: 1px; height: 48px; }
.sniper-cursor .sc-dot {
  position: absolute;
  left: -1.5px; top: -1.5px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 64, 64, 0.95);
}
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}
@media (hover: none), (pointer: coarse) {
  .sniper-cursor { display: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(20px, 4vw, 64px);
  background: linear-gradient(to bottom, rgba(6,6,7,0.85), transparent);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: 0.24em;
  color: var(--ink); text-decoration: none; text-transform: uppercase;
}
.brand span { color: var(--ink-dim); }
.site-nav { display: flex; gap: clamp(20px, 3vw, 42px); }
.site-nav a {
  position: relative; padding-bottom: 5px;
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none;
  transition: color 0.35s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after { transform: scaleX(1); }

/* ============================================================
   HOME — DUAL-WAVE TEXT ANIMATION (scroll-driven)
   Pattern from Codrops "Dual-Wave Text Animation with GSAP"
   ============================================================ */

/* Vertical travel so the wave plays over a long scroll */
.spacer { height: 75svh; }

.dual-wave-wrapper {
  display: flex;
  width: 100%;
  position: relative;
  gap: 15vw;
}

.wave-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.2vh, 1.6rem);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  z-index: 100; /* text stays above the center image */
}

.wave-column-left  { align-items: flex-start; text-align: left; }
.wave-column-right { align-items: flex-end;   text-align: right; }

.animated-text {
  width: max-content;
  color: #565657;              /* dim grey → wakes to white when focused */
  white-space: nowrap;
  will-change: transform;
  transition: color 300ms ease-out;
}

.animated-text.focused { color: var(--ink); z-index: 2; }

.animated-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.t-label { display: inline-block; }
.t-label[href] {
  color: inherit;
  text-decoration: none;
  transition: color 0.35s var(--ease), opacity 0.35s var(--ease);
}
.t-label[href]:hover { color: var(--ink); opacity: 0.85; }
.t-icon {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 0.9em;
  height: 0.9em;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  opacity: 0.9;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.t-icon i { display: none; }
.t-icon::before,
.t-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.t-icon::before { width: 0.52em; height: 1px; }
.t-icon::after  { width: 1px; height: 0.52em; }
.t-icon:hover,
.t-icon:focus-visible {
  background: none;
  color: var(--accent);
  opacity: 1;
  transform: scale(1.1);
  outline: none;
}

/* Centered, clickable thumbnail */
.image-thumbnail-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(15vw, 250px);
  z-index: 1;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  outline: none;
}

.image-thumbnail {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 30vh;
  display: block;
  object-fit: cover;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  filter: grayscale(10%) contrast(1.05) brightness(0.96);
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.image-thumbnail-wrapper:hover .image-thumbnail,
.image-thumbnail-wrapper:focus-visible .image-thumbnail {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1.06) brightness(1);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.75);
}

.thumb-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.4s var(--ease), letter-spacing 0.4s var(--ease), border-color 0.4s var(--ease);
}
.thumb-label i { font-style: normal; transition: transform 0.4s var(--ease); }

.image-thumbnail-wrapper:hover .thumb-label,
.image-thumbnail-wrapper:focus-visible .thumb-label {
  color: var(--ink);
  letter-spacing: 0.38em;
  border-color: var(--line-strong);
}
.image-thumbnail-wrapper:hover .thumb-label i,
.image-thumbnail-wrapper:focus-visible .thumb-label i { transform: translateX(6px); }

/* Fixed signature — bottom right */
.site-sign {
  position: fixed;
  right: clamp(20px, 4vw, 64px);
  bottom: clamp(16px, 3vh, 36px);
  z-index: 250;
  text-align: right;
  pointer-events: none;
  user-select: none;
}
.site-sign .ss1 {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 1.9vw, 26px);
  letter-spacing: 0.3em;
  line-height: 1;
  color: var(--ink);
}
.site-sign .ss2 {
  display: block;
  margin-top: 7px;
  font-size: clamp(10px, 1.05vw, 13px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ============================================================
   PROFILE PAGE (personal info · EVA layout)
   ============================================================ */
.profile {
  position: relative;
  min-height: 100svh;
  padding: 13vh clamp(20px, 4vw, 64px) clamp(22px, 3.6vh, 44px);
  overflow: hidden;
}
.p-tag {
  font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-dim);
}
.p-name {
  margin-top: 2vh;
  font-family: var(--font-display); font-weight: 900; line-height: 1;
  font-size: clamp(60px, 10vw, 170px); letter-spacing: 0.08em;
  color: var(--ink);
}
.p-role {
  margin-top: 2.4vh;
  font-size: clamp(14px, 1.5vw, 19px); letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-dim);
}
.p-num {
  position: absolute; top: 7vh; right: clamp(20px, 4vw, 64px);
  font-family: var(--font-display); font-weight: 900; line-height: 1;
  font-size: clamp(70px, 10vw, 170px); letter-spacing: 0.04em;
  color: rgba(240, 237, 230, 0.14);
  pointer-events: none; user-select: none;
}
.p-photo {
  position: absolute; right: clamp(20px, 4vw, 64px); top: 20vh;
  width: clamp(200px, 23vw, 300px); aspect-ratio: 3 / 4;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.5s var(--ease);
}
.p-photo:hover { box-shadow: 0 30px 110px rgba(0, 0, 0, 0.72); }
.p-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(12%) contrast(1.04) brightness(0.98);
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
}
.p-photo:hover img { transform: scale(1.04); filter: grayscale(0%) contrast(1.05) brightness(1); }
.p-photo-label {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-faint);
}
.p-band {
  position: absolute; left: clamp(20px, 4vw, 64px); bottom: clamp(22px, 3.6vh, 44px);
  right: calc(clamp(20px, 4vw, 64px) + clamp(200px, 23vw, 300px) + clamp(24px, 3vw, 48px));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.8vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: clamp(14px, 2vh, 22px);
}
.p-block h2 {
  margin-bottom: 12px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.p-block p {
  font-size: clamp(12px, 1.15vw, 15px); line-height: 1.75; letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.p-contact {
  position: absolute; right: clamp(20px, 4vw, 64px); bottom: clamp(22px, 3.6vh, 44px);
  text-align: right;
}
.p-contact h2 {
  margin-bottom: 12px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.p-contact p {
  font-size: clamp(12px, 1.15vw, 15px); line-height: 1.75; letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.p-contact .p-mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  padding-bottom: 4px;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.p-contact .p-mail:hover { border-color: var(--ink); gap: 16px; }
.p-contact .p-mail span { transition: transform 0.4s var(--ease); }
.p-contact .p-mail:hover span { transform: translateX(6px); }

.p-back-hint {
  position: absolute;
  left: 50%; bottom: clamp(14px, 2vh, 28px);
  transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-faint);
  pointer-events: none;
}

/* ---------- Profile page: staggered fade-in on entry ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes profileFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes profileFade {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .profile > *,
  .works-page > * {
    opacity: 0;
    animation: profileFadeUp 0.9s var(--ease) forwards;
  }
  .p-tag     { animation-delay: 0.05s; }
  .p-num     { animation-delay: 0.12s; }
  .p-name    { animation-delay: 0.2s; }
  .p-role    { animation-delay: 0.3s; }
  .p-photo   { animation-delay: 0.42s; }
  .p-band    { animation-delay: 0.56s; }
  .p-contact { animation-delay: 0.68s; }
  .site-header { opacity: 0; animation: profileFade 0.7s var(--ease) forwards; animation-delay: 0.05s; }
}

/* ============================================================
   WORKS PAGE (per-title gallery)
   ============================================================ */

.wp-lb {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.wp-lb.open { opacity: 1; pointer-events: auto; }
.wp-lb img {
  max-width: min(94vw, 1500px);
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.7);
}
.wp-lb-x {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border: 1px solid rgba(240,237,230,0.3);
  background: transparent; color: var(--ink);
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.wp-lb-x:hover { background: var(--accent); color: #0a0a0c; border-color: var(--accent); }
.wp-lb-hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(240,237,230,0.65); pointer-events: none;
}
.wp-cell { cursor: pointer; }

.works-page {
  position: relative;
  min-height: 100svh;
  padding: 13vh clamp(20px, 4vw, 64px) clamp(30px, 5vh, 60px);
  overflow: hidden;
}
.wp-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none;
  padding-bottom: 5px; border-bottom: 1px solid var(--line);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), gap 0.35s var(--ease);
}
.wp-back:hover { color: var(--ink); border-color: var(--accent); gap: 16px; }
.wp-num {
  position: absolute; top: 10vh; right: clamp(20px, 4vw, 64px);
  font-family: var(--font-display); font-weight: 900; line-height: 1;
  font-size: clamp(70px, 10vw, 170px); letter-spacing: 0.04em;
  color: rgba(255, 64, 64, 0.16);
  pointer-events: none; user-select: none;
}
.wp-title {
  margin-top: 4vh;
  font-family: var(--font-display); font-weight: 900; line-height: 1.1;
  font-size: clamp(38px, 6.5vw, 110px); letter-spacing: 0.08em;
  color: var(--ink); max-width: 72%;
}
.wp-sub {
  margin-top: 2vh;
  font-size: clamp(13px, 1.4vw, 17px); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-dim);
}
.wp-grid {
  margin-top: clamp(28px, 5vh, 60px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 26px);
  padding-bottom: 40px;
}
.wp-cell {
  margin: 0; position: relative; aspect-ratio: 4 / 5;
  border: 1px solid var(--line); background: var(--bg-2); overflow: hidden;
}
.wp-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(10%) contrast(1.05) brightness(0.96);
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
.wp-cell:hover img { transform: scale(1.04); filter: grayscale(0%) brightness(1); }
.wp-cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--ink);
  background: linear-gradient(to top, rgba(6,6,7,0.85), transparent);
}
.wp-cell figcaption span { display: block; margin-top: 3px; font-size: 10px; letter-spacing: 0.18em; color: var(--ink-dim); }
.wp-empty {
  display: grid; place-items: center;
  border: 1px dashed rgba(255, 64, 64, 0.45);
  color: rgba(255, 64, 64, 0.7);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.wp-empty i { position: relative; width: 26px; height: 26px; margin-bottom: 10px; }
.wp-empty i::before,
.wp-empty i::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.wp-empty i::before { width: 26px; height: 1px; }
.wp-empty i::after  { width: 1px; height: 26px; }
.wp-hint {
  margin-top: 26px;
  font-size: 12px; letter-spacing: 0.22em; color: var(--ink-faint); text-align: center;
}
.wp-gohome {
  margin-top: 34px;
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-dim); text-align: center;
}

/* ============================================================
   AIGC漫剧 — crossfade showcase (phone page + character sheets)
   ============================================================ */
.mjf {
  position: fixed; inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #000;
}
.mjf-slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: #000;
  will-change: opacity;
}
.mjf-phone { overflow: hidden; }
.mjf-ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity 0.55s ease;
}
.mjf-ph1 { opacity: 1; }
.mjf-ph2 { opacity: 0; }
.mjf-phone:hover .mjf-ph1 { opacity: 0; }
.mjf-phone:hover .mjf-ph2 { opacity: 1; }
.mjf-img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.mjf-tag {
  position: absolute; left: clamp(20px, 4vw, 64px); top: clamp(20px, 4vh, 56px);
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(16px, 1.8vw, 26px); letter-spacing: 0.4em;
  color: var(--ink);
  text-shadow: 0 2px 16px rgba(0,0,0,0.75);
  pointer-events: none;
}
.mjf-hint {
  position: absolute; right: clamp(20px, 4vw, 64px); bottom: clamp(22px, 3.4vh, 48px);
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(240,237,230,0.75);
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
  pointer-events: none;
}
.mjf-cap {
  position: absolute; left: clamp(20px, 4vw, 64px); bottom: clamp(22px, 3.6vh, 52px);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 24px);
  letter-spacing: 0.42em;
  color: var(--ink);
  text-shadow: 0 2px 16px rgba(0,0,0,0.8);
  pointer-events: none;
}
.mjf-back {
  position: absolute; right: clamp(20px, 4vw, 64px); bottom: clamp(22px, 3.6vh, 52px);
  padding-bottom: 5px; border-bottom: 1px solid rgba(240,237,230,0.35);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(240,237,230,0.85);
  text-shadow: 0 2px 12px rgba(0,0,0,0.75);
}
@media (max-width: 640px) {
  .mjf-tag { left: 16px; top: 74px; font-size: 14px; }
  .mjf-cap { left: 16px; bottom: 18px; font-size: 14px; letter-spacing: 0.26em; }
  .mjf-hint { right: 16px; bottom: 18px; font-size: 9px; }
}

/* ============================================================
   丙午马年广告 — content page
   ============================================================ */
.bw-lb {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.bw-lb.open { opacity: 1; pointer-events: auto; }
.bw-lb img {
  max-width: min(94vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.7);
}
.bw-lb-x {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border: 1px solid rgba(240,237,230,0.3);
  background: transparent; color: var(--ink);
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.bw-lb-x:hover { background: var(--accent); color: #0a0a0c; border-color: var(--accent); }
.bw-lb-hint {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(240,237,230,0.65); pointer-events: none;
}

.bw-steps {
  margin-top: 8vh; text-align: center; cursor: default;
}
.bw-step-cap {
  font-size: 14px; letter-spacing: 0.44em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.bw-steps img {
  display: block; margin: 0 auto;
  width: auto; height: auto;
  max-width: min(100%, 820px);
  max-height: 88svh;
  object-fit: contain;
  box-shadow: 0 40px 150px rgba(0, 0, 0, 0.6);
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
}
.bw-steps {
  margin-top: 5vh;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; min-height: calc(100svh - 16vh);
}
.bw-steps:hover img { opacity: 0.85; transform: scale(1.015); }
.bw-step-hint {
  margin-top: 16px; font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-faint);
}

.bw-page {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 1240px; margin: 0 auto;
  padding: 11vh clamp(20px, 5vw, 100px) clamp(26px, 4vh, 60px);
}
.bw-text { position: relative; z-index: 2; max-width: 560px; }
.bw-eyebrow { font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); }
.bw-title {
  margin-top: 2.2vh;
  font-family: var(--font-display); font-weight: 900; line-height: 1.05;
  font-size: clamp(40px, 6.4vw, 96px); letter-spacing: 0.08em; color: var(--ink);
  white-space: nowrap;
}
.bw-sub { margin-top: 1.6vh; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-dim); }
.bw-rule { margin: 3vh 0; width: 56px; height: 1px; background: var(--accent); }
.bw-desc { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.8; letter-spacing: 0.06em; color: var(--ink-dim); }
.bw-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 5vh; width: 100%; max-width: 960px; }
.bw-video {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px;
  border: 1px solid var(--accent);
  font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), letter-spacing 0.35s var(--ease);
}
.bw-video span { color: var(--accent); transition: transform 0.35s var(--ease); }
.bw-video:hover { background: var(--accent); color: #0a0a0c; letter-spacing: 0.32em; }
.bw-video:hover span { color: #0a0a0c; transform: translateX(4px); }
.bw-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 5vh; width: 100%; max-width: 960px; }
.bw-card {
  display: block; text-decoration: none; color: var(--ink);
}
.bc-cover {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid rgba(240,237,230,0.14);
  background: #000;
}
.bc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease), opacity 0.4s ease; }
.bc-cover i {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(240,237,230,0.85);
  background: rgba(6,6,7,0.35);
  font-style: normal; color: #fff;
  display: grid; place-items: center;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.bc-cover i::before { content: ""; width: 0; height: 0; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.bc-txt { display: block; margin-top: 9px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-dim); transition: color 0.3s ease; }
.bw-card:hover .bc-cover img { transform: scale(1.05); }
.bw-card:hover .bc-cover i { background: var(--accent); border-color: var(--accent); }
.bw-card:hover .bc-txt { color: var(--ink); }

.bw-back {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 5vh;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none; padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), gap 0.35s var(--ease);
}
.bw-back:hover { color: var(--ink); border-color: var(--accent); gap: 16px; }
.bw-stage { position: relative; z-index: 1; display: grid; place-items: center; }
.bw-stage img {
  width: min(100%, 560px); max-height: 82svh;
  object-fit: contain; display: block;
  box-shadow: 0 40px 150px rgba(0, 0, 0, 0.7);
}
@media (max-width: 1023px) {
  .bw-page { grid-template-columns: 1fr; gap: 6vh; padding-top: 13vh; min-height: auto; }
  .bw-text { max-width: none; }
}
@media (max-width: 860px) {
  .bw-videos { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 640px) {
  .bw-title { font-size: 34px; white-space: normal; }
  .bw-back { margin-top: 22px; }
}

/* ============================================================
   TAPTAP 游戏开发 — content page
   ============================================================ */
.pg-ttk {
  --ink: #f6e68d;
  --accent: #f9eead;
  --ink-dim: rgba(246, 230, 141, 0.8);
  --ink-faint: rgba(246, 230, 141, 0.5);
  --line: rgba(246, 230, 141, 0.22);
  --line-strong: rgba(246, 230, 141, 0.5);
}
.ttk-page {
  position: relative; max-width: 1180px; margin: 0 auto;
  padding: 11vh clamp(20px, 5vw, 90px) clamp(30px, 5vh, 70px);
}
.ttk-hero { position: relative; min-height: clamp(340px, 46vw, 520px); }
.ttk-title { font-family: var(--font-display); font-weight: 900; line-height: 1.05; }
.ttk-t1 {
  display: block;
  font-size: clamp(48px, 8vw, 150px); letter-spacing: 0.06em;
  color: var(--ink);
}
.ttk-t2 {
  display: block; margin-top: 1.6vh;
  font-size: clamp(15px, 1.9vw, 28px); letter-spacing: 0.46em;
  color: var(--ink-dim); font-weight: 700;
}
.ttk-gif { position: absolute; top: 0; right: 0; }
.ttk-gif img {
  display: block; width: min(40vw, 440px); aspect-ratio: 1 / 1;
  object-fit: cover; border: 1px solid rgba(240,237,230,0.16);
  box-shadow: 0 34px 130px rgba(0,0,0,0.7);
}
.ttk-sec { margin-top: clamp(44px, 9vh, 110px); }
.ttk-cap {
  font-size: 13px; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: clamp(18px, 3vh, 34px);
  padding-left: 14px; border-left: 2px solid var(--accent);
}
.ttk-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 30px); align-items: stretch; }
.ttk-col { display: flex; flex-direction: column; }
.ttk-gifs {
  flex: 1 1 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1vw, 16px);
  align-content: center;
  padding: clamp(6px, 1.4vh, 14px) 0;
}
.ttk-gifs img {
  width: 100%; max-width: 150px; aspect-ratio: 1 / 1;
  object-fit: cover; border: 1px solid var(--line);
  justify-self: center;
}
.ttk-note {
  margin-top: 0;
  padding: clamp(14px, 2.5vh, 28px) 0 0 clamp(0px, 1.5vw, 22px);
  border-top: 1px solid var(--line);
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 2; letter-spacing: 0.07em;
  color: var(--ink-dim);
}
.ttk-fig { margin: 0; }
.ttk-fig img { width: 100%; display: block; object-fit: cover; border: 1px solid rgba(240,237,230,0.1); box-shadow: 0 22px 90px rgba(0,0,0,0.55); }
.ttk-duo { align-items: stretch; }
.ttk-duo .ttk-fig img { aspect-ratio: auto; height: auto; object-fit: contain; }
.ttk-wide { max-width: 760px; margin: 0 auto; }
.ttk-wide img { aspect-ratio: 16 / 9; }
.ttk-videos { display: flex; flex-direction: column; gap: clamp(26px, 5vh, 60px); }
.ttk-video { position: relative; }
.ttk-vlabel {
  position: absolute; left: -6px; top: -20px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.2em;
  color: var(--ink-faint); z-index: 2; text-transform: uppercase;
}
.ttk-video video { width: 100%; display: block; background: #000; border: 1px solid rgba(240,237,230,0.12); }
.ttk-end {
  display: block; margin: clamp(40px, 8vh, 90px) auto 0;
  width: max-content; max-width: 100%; text-align: center;
  padding: 16px 30px; border: 1px solid var(--accent);
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), letter-spacing 0.35s var(--ease);
}
.ttk-end:hover { background: var(--accent); color: #0a0a0c; letter-spacing: 0.4em; }
@media (max-width: 760px) {
  .ttk-hero { min-height: 0; }
  .ttk-gif { position: static; margin-top: 5vh; }
  .ttk-gif img { width: 100%; max-width: 420px; margin: 0 auto; }
  .ttk-t1 { font-size: clamp(36px, 11vw, 60px); }
  .ttk-duo { grid-template-columns: 1fr; }
}

.spacer { height: 75svh; }
.chladni-bg {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; background: #060607;
}
.chladni-bg iframe { width: 100%; height: 100%; border: 0; display: block; }
.chladni-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,7,0.42) 0%, rgba(6,6,7,0.6) 46%, rgba(6,6,7,0.82) 100%);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .wp-grid { grid-template-columns: repeat(2, 1fr); }
  .dual-wave-wrapper { gap: 10vw; }
  .wave-column { gap: 1.3rem; font-size: clamp(1.1rem, 3.6vw, 1.7rem); }
  .image-thumbnail-wrapper { width: 46vw; }
  .p-band { grid-template-columns: repeat(2, 1fr); }
  .p-photo { width: clamp(130px, 20vw, 200px); }
}
@media (max-width: 640px) {
  .wp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wp-title { font-size: 34px; max-width: 100%; }
  .wp-num { font-size: 84px; }
  .t-icon { width: 1.2em; height: 1.2em; }
  .site-header { padding: 18px 20px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 10px; letter-spacing: 0.2em; }
  .dual-wave-wrapper { gap: 6vw; }
  .wave-column { gap: 0.9rem; font-size: 3.6vw; letter-spacing: 0.03em; }
  .image-thumbnail-wrapper { width: 62vw; }
  .thumb-label { font-size: 10px; letter-spacing: 0.24em; }
  .site-sign { right: 18px; bottom: 16px; }
  .site-sign .ss1 { font-size: 14px; letter-spacing: 0.22em; }
  .site-sign .ss2 { font-size: 9px; letter-spacing: 0.18em; }
  .profile { padding-top: 15vh; overflow: visible; min-height: auto; }
  .p-name { font-size: 46px; letter-spacing: 0.04em; }
  .p-role { letter-spacing: 0.18em; font-size: 13px; }
  .p-num { font-size: 84px; top: 12vh; }
  .p-photo { top: 30vh; width: 130px; }
  .p-band { position: static; right: auto; margin-top: 34vh; grid-template-columns: 1fr; }
  .p-contact { position: static; margin-top: 7vh; text-align: left; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
