/* ============================================================
   Trevor Yu's Portfolio — 于歌 个人作品集
   Hudson 风格 · 深色专业 · 极简克制 · 极少量暖色点缀
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* 配色 — 深色专业 Hudson 风 */
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-elev: #161616;
  --bg-deep: #050505;
  --text: #f5f5f5;
  --text-soft: #9a9a9a;
  --text-mute: #555555;
  --accent: #D97757;
  --accent-soft: rgba(217, 119, 87, 0.12);
  --border: #1f1f1f;
  --border-soft: #2a2a2a;

  /* 字体 */
  --font-display: 'Source Serif Pro', 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* 尺寸 */
  --max-w: 1280px;
  --nav-h: 76px;
  --radius: 2px;
  --radius-lg: 4px;

  /* 过渡 */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 0.4s;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: 0.005em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

section {
  padding: 160px 0;
  position: relative;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #fff;
  transition: color var(--dur) var(--ease);
}

.nav.scrolled .nav-logo {
  color: var(--text);
}

.nav-logo span {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

.nav.scrolled .nav-logo span {
  color: var(--text-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  transition: color var(--dur) var(--ease);
  letter-spacing: 0.02em;
}

.nav.scrolled .nav-links a {
  color: var(--text-soft);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur) var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--dur) var(--ease);
}

.nav.scrolled .nav-lang {
  border-color: var(--border);
  color: var(--text-soft);
}

.nav-lang:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.nav.scrolled .nav-lang:hover {
  border-color: var(--border-soft);
}

.nav-lang-btn {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all var(--dur) var(--ease);
  opacity: 0.6;
  color: #fff;
}

.nav.scrolled .nav-lang-btn {
  color: var(--text-soft);
}

.nav-lang-btn.active {
  background: #fff;
  color: #0a0a0a;
  opacity: 1;
}

.nav.scrolled .nav-lang-btn.active {
  background: var(--text);
  color: var(--bg);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--dur) var(--ease);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-portrait.jpg');
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  width: 100%;
}

.hero-text {
  text-align: center;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease) 0.35s forwards;
}

.hero-title-line {
  display: block;
}

.hero-title-line.role {
  font-weight: 500;
  font-size: 0.55em;
  opacity: 0.9;
}

.hero-title-line.desc {
  font-size: 0.38em;
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  opacity: 0.75;
  margin-top: 8px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s var(--ease) 0.55s forwards;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all var(--dur) var(--ease);
  min-width: 220px;
}

.hero-btn-primary {
  background: #fff;
  color: #0a0a0a;
  border: 2px solid #fff;
}

.hero-btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hero-btn-outline:hover {
  background: #fff;
  color: #0a0a0a;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.9s forwards;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease);
}

.hero-scroll:hover {
  opacity: 0.7;
}

.hero-scroll-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--dur) var(--ease);
  animation: bounce 2s infinite;
}

.hero-scroll:hover .hero-scroll-icon {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-scroll-icon svg {
  width: 16px;
  height: 16px;
}

/* ---------- Hero 大屏左右分栏 ---------- */
@media (min-width: 1200px) {
  .hero {
    background: var(--bg);
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero-bg {
    left: 50%;
    right: 0;
    inset-inline-start: 50%;
    inset-inline-end: 0;
    background-position: center center;
    background-size: cover;
    width: 50%;
  }

  .hero-overlay {
    display: none;
  }

  .hero-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 50%;
    padding: 0 72px;
    margin: 0;
    text-align: left;
  }

  .hero-text {
    text-align: left;
    max-width: 560px;
  }

  .hero-title {
    font-size: clamp(52px, 4.5vw, 76px);
    margin-bottom: 56px;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-scroll {
    right: calc(50% + 48px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* ---------- Section Titles ---------- */
.section-header {
  margin-bottom: 80px;
  max-width: 720px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.85;
  max-width: 560px;
}

/* ---------- About Section ---------- */
.about {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--border);
}

.about-card {
  position: relative;
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}

.about-card:hover {
  background: var(--bg-elev);
}

.about-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.about-card p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.85;
}

/* ---------- AI Video Collage Section ---------- */
.video-collage {
  background: var(--bg);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.video-collage-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.video-collage-wall {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  max-height: 680px;
}

.video-window {
  position: absolute;
  width: 46%;
  aspect-ratio: 16/9;
  overflow: hidden;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  background: var(--bg-elev);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.video-window:hover {
  transform: scale(1.03) translateZ(0);
  filter: brightness(1.1);
  z-index: 10;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
}

.video-window video,
.video-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.video-window:hover::after {
  opacity: 0.5;
}

.video-window-1 {
  left: 2.6667%;
  top: 4%;
}

.video-window-2 {
  left: 51.3333%;
  top: 10%;
}

.video-window-3 {
  left: 2.6667%;
  top: calc(4% + 37.636% + 3%);
}

.video-window-4 {
  left: 51.3333%;
  top: calc(10% + 37.636% + 3%);
}

.video-collage-credit {
  position: relative;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  text-transform: uppercase;
  line-height: 2;
  z-index: 2;
}

.video-collage-credit strong {
  display: block;
  color: var(--text-soft);
  font-weight: 500;
}

.video-collage-credit span {
  display: block;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0.05em;
}

/* ---------- Works Section ---------- */
.works {
  background: var(--bg-alt);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.work-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  display: block;
}

.work-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-4px);
}

.work-cover {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: grayscale(20%) brightness(0.9);
}

.work-card:hover .work-cover img {
  transform: scale(1.04);
  filter: grayscale(0%) brightness(1);
}

.work-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.work-card:hover .work-cover::after {
  opacity: 1;
}

.work-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(8px, 8px);
  transition: all var(--dur) var(--ease);
  z-index: 2;
}

.work-card:hover .work-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.work-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--bg);
}

.work-info {
  padding: 28px 32px 32px;
}

.work-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.work-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  transition: color var(--dur) var(--ease);
  letter-spacing: -0.01em;
}

.work-card:hover .work-title {
  color: var(--accent);
}

/* ---------- Thoughts Section ---------- */
.thoughts {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.thoughts-intro {
  max-width: 640px;
  margin-bottom: 80px;
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.9;
  white-space: pre-line;
}

.thoughts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.thought-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg);
  transition: all var(--dur) var(--ease);
  overflow: hidden;
}

.thought-card:hover {
  background: var(--bg-elev);
}

.thought-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: inline-block;
  text-transform: uppercase;
}

.thought-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--bg-deep);
  color: var(--text);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: var(--accent);
}

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0;
}

.contact .section-title {
  color: var(--text);
  font-size: clamp(48px, 7vw, 80px);
  margin-bottom: 24px;
}

.contact .section-desc {
  color: var(--text-soft);
  margin: 0 auto 48px;
  font-size: 17px;
}

.contact-email {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 48px;
  display: block;
  transition: color var(--dur) var(--ease);
  font-style: italic;
}

.contact-email:hover {
  color: var(--accent);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--dur) var(--ease);
}

.contact-cta:hover {
  background: var(--accent);
  color: #fff;
}

.contact-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur) var(--ease);
}

.contact-cta:hover svg {
  transform: translateX(5px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep);
  color: var(--text-mute);
  padding: 36px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left { color: var(--text-mute); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease);
  z-index: 90;
  color: var(--text-soft);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Work Detail Page ---------- */
.work-detail {
  padding-top: calc(var(--nav-h) + 100px);
  padding-bottom: 160px;
}

.work-detail-header {
  margin-bottom: 100px;
}

.work-detail-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.work-detail-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 48px;
  max-width: 900px;
}

.work-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  max-width: 700px;
}

.work-meta-item {
  padding-right: 24px;
}

.work-meta-item dt {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.work-meta-item dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.work-detail-section {
  margin-bottom: 120px;
}

.work-detail-section h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  letter-spacing: -0.015em;
}

.work-detail-section h2 .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.work-detail-section p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 720px;
}

.work-detail-hero {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 100px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.work-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) brightness(0.9);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  padding: 0;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat-item {
  text-align: left;
  padding: 40px 32px;
  background: var(--bg-elev);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

.work-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.work-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease);
}

.work-item:last-child {
  border-bottom: 1px solid var(--border);
}

.work-item-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.4;
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.work-item-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.work-item-content p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.85;
  max-width: none;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 60px;
  transition: color var(--dur) var(--ease);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.back-btn:hover {
  color: var(--accent);
}

.back-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease);
}

.back-btn:hover svg {
  transform: translateX(-4px);
}

/* ---------- AI Portfolio Detail ---------- */
.video-section {
  margin-bottom: 120px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease);
}

.video-card:hover {
  border-color: var(--border-soft);
}

.video-card img,
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: grayscale(20%) brightness(0.9);
  display: block;
}

.video-card:hover img,
.video-card:hover video {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}

.video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.3);
  transition: background var(--dur) var(--ease);
}

.video-card:hover::after {
  background: rgba(10, 10, 10, 0.5);
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--dur) var(--ease);
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent);
}

.play-btn svg {
  width: 20px;
  height: 20px;
  color: var(--bg);
  margin-left: 3px;
  transition: color var(--dur) var(--ease);
}

.video-card:hover .play-btn svg {
  color: #fff;
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portrait-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color var(--dur) var(--ease);
}

.portrait-item:hover {
  border-color: var(--border-soft);
}

.portrait-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: grayscale(15%) brightness(0.95);
}

.portrait-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}

.lightbox-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  section { padding: 100px 0; }

  .video-collage { padding: 80px 0; }
  .video-collage-inner { padding: 0 24px; }
  .video-collage-wall {
    aspect-ratio: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: static;
  }
  .video-window {
    position: static;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    aspect-ratio: 16/9;
  }

  .about-grid {
    grid-template-columns: 1fr;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .about-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 36px 24px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-meta-item {
    padding-right: 0;
  }

  .work-item {
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 36px 0;
  }

  .work-item-num { font-size: 12px; }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .portrait-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item { padding: 28px 20px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 15px;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero { min-height: 560px; }
  .hero-title {
    font-size: 36px;
    margin-bottom: 36px;
  }
  .hero-title-line.desc {
    font-size: 0.5em;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 16px;
  }
  .hero-btn {
    width: 100%;
    max-width: 280px;
    min-width: 0;
    padding: 16px 32px;
  }
  .hero-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    margin-bottom: 24px;
  }
  .hero-scroll {
    right: 50%;
    bottom: 24px;
    transform: translateX(50%);
  }

  .portrait-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .work-detail { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 100px; }
  .work-detail-section { margin-bottom: 80px; }
  .work-detail-section h2 { font-size: 26px; }
}

/* ---------- Language Toggle Text ---------- */
[data-i18n] { transition: opacity 0.2s var(--ease); }
.lang-switching [data-i18n] { opacity: 0.3; }

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: #fff;
}
