/* ===== 变量 · 电影暖色暗调 ===== */
:root {
  --bg-deep: #0c0a09;
  --bg-card: #141110;
  --bg-elevated: #1c1816;
  --text: #f5f0e8;
  --text-muted: #a89f94;
  --accent: #e8a54b;
  --accent-soft: rgba(232, 165, 75, 0.15);
  --accent-glow: rgba(232, 165, 75, 0.35);
  --cyan: #5eead4;
  --cyan-dim: rgba(94, 234, 212, 0.12);
  --cyan-glow: rgba(94, 234, 212, 0.25);
  --line: rgba(245, 240, 232, 0.08);
  --font-sans: "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Ma Shan Zheng", cursive;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-hero: "Syne", var(--font-sans);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --scroll-p: 0;
  --mx: 50%;
  --my: 42%;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 80px;
}

/* ===== Page Loading Animation ===== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.page-loader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-filmstrip {
  display: flex;
  gap: 8px;
  align-items: center;
}

.loader-frame {
  width: 12px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  animation: loader-pulse 1s ease-in-out infinite;
}

.loader-frame:nth-child(1) { animation-delay: 0s; }
.loader-frame:nth-child(2) { animation-delay: 0.1s; }
.loader-frame:nth-child(3) { animation-delay: 0.2s; }
.loader-frame:nth-child(4) { animation-delay: 0.3s; }
.loader-frame:nth-child(5) { animation-delay: 0.4s; }

@keyframes loader-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: loader-text-fade 1.5s ease-in-out infinite;
}

@keyframes loader-text-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== Cursor Glow Effect ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 165, 75, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ===== Background Animated Elements ===== */
.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0.4;
  animation: float-particle linear infinite;
}

.bg-particle:nth-child(odd) {
  background: var(--accent);
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* ===== Animated Gradient Background ===== */
.bg-gradient-animated {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(-45deg, #0c0a09, #1a1410, #0f1a18, #0c0a09);
  background-size: 400% 400%;
  animation: gradient-shift 20s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Morphing Blob ===== */
.bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  filter: blur(100px);
  opacity: 0.08;
  border-radius: 50%;
  animation: blob-morph 20s ease-in-out infinite;
  z-index: 0;
}

.bg-blob--1 {
  top: -150px;
  right: -100px;
  animation-delay: 0s;
}

.bg-blob--2 {
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) scale(1);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(40px, -40px) scale(1.1);
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    transform: translate(-30px, 30px) scale(0.95);
  }
  75% {
    border-radius: 40% 60% 60% 40% / 60% 40% 50% 60%;
    transform: translate(30px, 20px) scale(1.05);
  }
}

/* ===== Wave Animation ===== */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  overflow: hidden;
  z-index: 1;
}

.wave {
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 300%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 165, 75, 0.1), transparent);
  animation: wave-move 8s linear infinite;
}

.wave:nth-child(2) {
  animation-delay: -2s;
  opacity: 0.6;
}

.wave:nth-child(3) {
  animation-delay: -4s;
  opacity: 0.4;
}

@keyframes wave-move {
  0% { transform: translateX(0); }
  100% { transform: translateX(33.33%); }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-cool,
  .cursor-trail {
    display: none !important;
  }

  .hero__sweep {
    display: none !important;
  }

  .hero__ticker {
    animation: none !important;
  }

  .hero__beat,
  .hero__beam {
    display: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

/* 背景微渐变 + 颗粒 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 70% -20%, rgba(232, 165, 75, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(120, 80, 60, 0.2), transparent 45%),
    var(--bg-deep);
  pointer-events: none;
  z-index: -2;
}

.grain {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grain--pulse {
  animation: grain-breathe 7s ease-in-out infinite;
}

@keyframes grain-breathe {
  0%,
  100% {
    opacity: 0.035;
  }
  50% {
    opacity: 0.065;
  }
}

/* 顶部阅读进度 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10001;
  pointer-events: none;
  transform: scaleX(var(--scroll-p));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, #c9892e, var(--accent), var(--cyan), #f472b6);
  opacity: 0.92;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* 自定义光标 + 轨迹（仅桌面精细指针，由 JS 加 body 类） */
.cursor-trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
}

.cursor-cool {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10002;
  pointer-events: none;
  will-change: transform;
}

.cursor-cool__lag {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  will-change: transform;
}

.cursor-cool__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--cyan) 45%, var(--accent) 100%);
  box-shadow: 0 0 14px var(--cyan-glow), 0 0 28px rgba(232, 165, 75, 0.25);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.cursor-cool__ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.12), inset 0 0 12px rgba(232, 165, 75, 0.06);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
  animation: cursor-ring-spin 10s linear infinite;
}

@keyframes cursor-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.cursor-cool--hover .cursor-cool__ring {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: rgba(232, 165, 75, 0.65);
  box-shadow: 0 0 28px var(--accent-glow), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cursor-cool--hover .cursor-cool__dot {
  transform: scale(1.35);
  box-shadow: 0 0 22px var(--cyan-glow), 0 0 40px rgba(255, 60, 140, 0.2);
}

body.use-cool-cursor,
body.use-cool-cursor button,
body.use-cool-cursor a,
body.use-cool-cursor [role="button"] {
  cursor: none !important;
}

body.use-cool-cursor input,
body.use-cool-cursor textarea {
  cursor: text !important;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 48px);
  z-index: 100;
  background: linear-gradient(to bottom, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.65), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
}

.logo__glyph {
  display: flex;
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent-glow));
  transition: transform 0.35s var(--ease-out), color 0.25s;
  animation: logo-pulse 4s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px var(--accent-glow));
  }
  50% {
    filter: drop-shadow(0 0 16px var(--cyan-glow));
  }
}

.logo:hover .logo__glyph {
  color: var(--cyan);
  transform: scale(1.08);
  filter: drop-shadow(0 0 12px var(--cyan-glow));
}

.logo__wordmark {
  background: linear-gradient(105deg, var(--text) 0%, var(--text-muted) 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo:hover {
  text-decoration: none;
}

.logo:hover .logo__wordmark {
  background: linear-gradient(105deg, var(--text) 20%, var(--cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px clamp(20px, 5vw, 48px) 32px;
    background: rgba(12, 10, 9, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.25s, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    font-size: 1.1rem;
    padding: 10px 0;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) clamp(20px, 5vw, 48px) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero__aurora {
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(232, 165, 75, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 38% at 85% 20%, rgba(94, 234, 212, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 50% at 60% 100%, rgba(180, 90, 60, 0.18), transparent 45%);
  animation: aurora-drift 18s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4%, -3%) scale(1.05);
  }
}

.hero__grid-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -35%;
  height: 70%;
  background-image:
    linear-gradient(rgba(245, 240, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 232, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(420px) rotateX(68deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, transparent 92%);
  animation: grid-pan 22s linear infinite;
}

@keyframes grid-pan {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 56px, 56px 0;
  }
}

.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.11) 2px,
    rgba(0, 0, 0, 0.11) 3px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
  animation: scan-flicker 6s steps(3) infinite;
}

.hero__sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.07) 49.5%,
    rgba(94, 234, 212, 0.06) 50%,
    rgba(255, 255, 255, 0.05) 50.5%,
    transparent 58%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: hero-sweep 8s ease-in-out infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes hero-sweep {
  0% {
    background-position: 130% 0;
  }
  45% {
    background-position: -30% 0;
  }
  100% {
    background-position: -130% 0;
  }
}

@keyframes scan-flicker {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 0.4;
  }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 0%, rgba(12, 10, 9, 0.85) 100%);
  pointer-events: none;
}

.hero__spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    42% 40% at var(--mx) var(--my),
    rgba(232, 165, 75, 0.16),
    rgba(94, 234, 212, 0.07) 40%,
    transparent 68%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero:hover .hero__spotlight {
  opacity: 1;
}

.hero__beam {
  position: absolute;
  inset: -10% -20%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero__beam--warm {
  background: radial-gradient(42% 28% at var(--mx) var(--my), rgba(232, 165, 75, 0.28), transparent 70%);
  filter: blur(10px);
}

.hero__beam--cool {
  background: radial-gradient(36% 24% at var(--mx2, 58%) var(--my2, 46%), rgba(94, 234, 212, 0.22), transparent 72%);
  filter: blur(14px);
}

.hero:hover .hero__beam {
  opacity: 1;
}

.hero__beat {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.08), transparent 48%);
  mix-blend-mode: soft-light;
  animation: hero-beat 4.2s ease-in-out infinite;
}

@keyframes hero-beat {
  0%,
  100% {
    opacity: 0.24;
    transform: scale(1);
  }
  24% {
    opacity: 0.36;
    transform: scale(1.02);
  }
  28% {
    opacity: 0.22;
    transform: scale(1);
  }
  52% {
    opacity: 0.4;
    transform: scale(1.03);
  }
  58% {
    opacity: 0.24;
    transform: scale(1);
  }
}

.hero__floaties {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__floaties span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.4;
  box-shadow: 0 0 18px var(--cyan), 0 0 36px rgba(232, 165, 75, 0.2);
}

.hero__floaties span:nth-child(1) {
  top: 22%;
  left: 18%;
  animation: floatie-1 9s ease-in-out infinite;
}

.hero__floaties span:nth-child(2) {
  top: 58%;
  right: 14%;
  background: var(--accent);
  animation: floatie-2 11s ease-in-out infinite;
}

.hero__floaties span:nth-child(3) {
  bottom: 26%;
  left: 42%;
  animation: floatie-3 8s ease-in-out infinite;
}

@keyframes floatie-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(18px, -24px) scale(1.2);
  }
  66% {
    transform: translate(-12px, 14px) scale(0.85);
  }
}

@keyframes floatie-2 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.35;
  }
  50% {
    transform: translate(-22px, 18px);
    opacity: 0.65;
  }
}

@keyframes floatie-3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(14px, 22px);
  }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* 首屏文案阶梯入场 */
.hero__copy--enter > * {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-rise 1s var(--ease-out) forwards;
}

.hero__copy--enter > *:nth-child(1) {
  animation-delay: 0.08s;
}

.hero__copy--enter > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero__copy--enter > *:nth-child(3) {
  animation-delay: 0.34s;
}

.hero__copy--enter > *:nth-child(4) {
  animation-delay: 0.46s;
}

.hero__copy--enter > *:nth-child(5) {
  animation-delay: 0.56s;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.hero__eyebrow-en {
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
}

.hero__eyebrow-div {
  opacity: 0.45;
}

.rec {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e24d4d;
  box-shadow: 0 0 12px #e24d4d;
  animation: rec-pulse 1.4s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

.hero__title {
  margin: 0 0 24px;
  font-weight: 600;
  line-height: 1.08;
}

.hero__display {
  display: block;
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.12em;
}

.hero__display--a {
  background: linear-gradient(110deg, #fff8ee 0%, var(--accent) 42%, #ffd89a 78%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(232, 165, 75, 0.25));
  animation:
    title-shimmer 7s ease-in-out infinite alternate,
    glitch-cool 5.6s steps(1, end) infinite;
}

.hero__display--b {
  background: linear-gradient(95deg, var(--text-muted) 0%, var(--text) 35%, var(--cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px var(--cyan-glow));
}

.hero__word-rotator {
  display: inline-block;
  min-width: 4.8em;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
}

.hero__display--b.hero__display--glitch--delay {
  animation: glitch-cool 6.8s steps(1, end) infinite;
  animation-delay: 0.45s;
}

.hero__display--glitch {
  position: relative;
}

@keyframes glitch-cool {
  0%,
  88%,
  100% {
    transform: translate(0) skewX(0deg);
    text-shadow: none;
  }
  89% {
    transform: translate(-5px, 1px) skewX(-1.1deg);
    text-shadow:
      4px 0 rgba(255, 45, 130, 0.55),
      -3px 0 rgba(0, 255, 230, 0.45);
  }
  90% {
    transform: translate(4px, -2px) skewX(0.9deg);
    text-shadow:
      -4px 0 rgba(255, 45, 130, 0.5),
      3px 0 rgba(0, 255, 230, 0.55);
  }
  91% {
    transform: translate(-2px, 1px) skewX(-0.4deg);
    text-shadow: 2px 0 rgba(255, 200, 80, 0.4), -2px 0 rgba(120, 200, 255, 0.35);
  }
  92% {
    transform: translate(0) skewX(0deg);
    text-shadow: none;
  }
}

@keyframes title-shimmer {
  0% {
    filter: drop-shadow(0 0 36px rgba(232, 165, 75, 0.2));
  }
  100% {
    filter: drop-shadow(0 0 52px rgba(94, 234, 212, 0.18));
  }
}

.hero__line {
  display: block;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 14em;
}

.hero__line--meta {
  margin-top: 0.65em;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(168, 159, 148, 0.85);
  max-width: none;
}

.hero__lead {
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 0 28px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero__tags span {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}

.hero__tags span:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  animation-play-state: paused;
}

.hero__tags span:nth-child(1) {
  animation: tag-drift 4.8s ease-in-out infinite;
  animation-delay: 0s;
}

.hero__tags span:nth-child(2) {
  animation: tag-drift 5.4s ease-in-out infinite;
  animation-delay: 0.4s;
}

.hero__tags span:nth-child(3) {
  animation: tag-drift 5.1s ease-in-out infinite;
  animation-delay: 0.8s;
}

.hero__tags span:nth-child(4) {
  animation: tag-drift 5.7s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes tag-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-idea-btn {
  border-style: dashed;
}

.hero__idea-card {
  margin-top: 16px;
  max-width: 44em;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(94, 234, 212, 0.08), rgba(232, 165, 75, 0.06), rgba(20, 17, 16, 0.65));
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero__idea-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.hero__idea-text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero__stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
}

@media (max-width: 900px) {
  .hero__stats {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

.hero-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(20, 17, 16, 0.62);
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}

.hero-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 165, 75, 0.35);
}

.hero-stat__label {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.hero-stat__value {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #c9892e);
  color: #1a1208;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--magnetic {
  position: relative;
  overflow: hidden;
}

.btn--magnetic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 120px at var(--rbx, 50%) var(--rby, 50%),
    rgba(255, 255, 255, 0.2),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.btn--magnetic:hover::after {
  opacity: 1;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: btn-ripple-anim 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes btn-ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Viewfinder */
.hero__visual {
  position: relative;
  aspect-ratio: 16 / 10;
}

.hero__visual--tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(920px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

[data-tilt].film-cell {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out, border-color 0.25s, box-shadow 0.35s var(--ease-out);
}

[data-tilt].film-cell .film-cell__hole,
[data-tilt].film-cell .film-cell__tag {
  transform: translateZ(18px);
}

[data-tilt].film-cell .feed-card__title,
[data-tilt].film-cell .feed-card__summary,
[data-tilt].film-cell .feed-card__meta {
  transform: translateZ(26px);
}

[data-tilt].film-cell .feed-card__actions {
  transform: translateZ(34px);
}

[data-tilt].film-cell:hover .feed-card__actions {
  transform: translateZ(42px);
}

.hero__ring {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid rgba(94, 234, 212, 0.12);
  animation: ring-spin 28s linear infinite;
  pointer-events: none;
}

.hero__ring::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(232, 165, 75, 0.15);
  animation: ring-spin 38s linear infinite reverse;
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

.viewfinder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.viewfinder--glow {
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(232, 165, 75, 0.12),
    0 0 60px rgba(94, 234, 212, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.45s var(--ease-out), transform 0.25s ease-out;
}

.viewfinder--glow:hover {
  box-shadow:
    0 28px 88px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(232, 165, 75, 0.22),
    3px 0 18px rgba(255, 60, 120, 0.12),
    -3px 0 18px rgba(0, 255, 230, 0.1),
    0 0 72px rgba(94, 234, 212, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.viewfinder__corners::before,
.viewfinder__corners::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.65;
  pointer-events: none;
  z-index: 2;
}

.viewfinder__corners::before {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.viewfinder__corners::after {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
}

.viewfinder__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(232, 165, 75, 0.1), transparent 40%, rgba(94, 234, 212, 0.06));
}

.viewfinder__spectrum {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 28%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--accent), #f472b6, var(--cyan));
  opacity: 0.45;
  animation: spectrum-shift 4s ease-in-out infinite;
  filter: blur(0.5px);
}

@keyframes spectrum-shift {
  0%,
  100% {
    transform: scaleX(0.85);
    opacity: 0.35;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.55;
  }
}

.viewfinder__wave {
  width: 70%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
  animation: wave-scan 3.5s ease-in-out infinite;
}

@keyframes wave-scan {
  0%,
  100% {
    transform: scaleX(0.3);
    opacity: 0.3;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.75;
  }
}

.viewfinder__meta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.viewfinder__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.viewfinder__tc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan-glow);
  animation: tc-blink 3.2s steps(1) infinite;
}

@keyframes tc-blink {
  0%,
  88% {
    opacity: 1;
  }
  90% {
    opacity: 0.45;
  }
  92% {
    opacity: 1;
  }
}

.hero__orbit {
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.orbit-tag {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  opacity: 0.5;
  animation: float-a 5s ease-in-out infinite;
}

.orbit-tag--b {
  top: 8%;
  right: 0;
  animation-name: float-b;
  animation-duration: 6s;
}

.orbit-tag--c {
  bottom: 0;
  left: 5%;
  animation-name: float-c;
  animation-duration: 5.5s;
}

@keyframes float-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -8px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10px, 6px);
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(8px, 4px);
  }
}

.hero__scroll-hint {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  opacity: 0.75;
  animation: hint-fade 2.5s ease-in-out infinite;
}

.hero__ticker-wrap {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.35), rgba(20, 17, 16, 0.75), rgba(12, 10, 9, 0.35));
}

.hero__ticker {
  width: max-content;
  display: inline-flex;
  gap: 26px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: rgba(245, 240, 232, 0.75);
  text-transform: uppercase;
  animation: ticker-move 22s linear infinite;
}

.hero__ticker span::before {
  content: "●";
  color: var(--accent);
  margin-right: 10px;
  opacity: 0.75;
}

@keyframes ticker-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero__scroll-text {
  display: block;
}

.hero__scroll-chev {
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  animation: chev-bob 1.45s ease-in-out infinite;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

@keyframes chev-bob {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: rotate(45deg) translateY(8px);
    opacity: 1;
  }
}

@keyframes hint-fade {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}

/* ===== Sections ===== */
.section {
  padding: clamp(72px, 12vw, 120px) clamp(20px, 5vw, 48px);
  max-width: 1120px;
  margin: 0 auto;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section__num {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  color: rgba(245, 240, 232, 0.06);
  line-height: 1;
  user-select: none;
}

.section__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  transition: filter 0.6s ease;
}

.section.is-inview .section__num {
  color: rgba(245, 240, 232, 0.11);
  text-shadow: 0 0 50px rgba(232, 165, 75, 0.12);
  transition: color 0.8s ease, text-shadow 0.8s ease;
}

.section.is-inview .section__title {
  background: linear-gradient(100deg, var(--text) 0%, var(--accent) 38%, var(--cyan) 72%, var(--text) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: section-title-flow 7s linear infinite;
}

@keyframes section-title-flow {
  to {
    background-position: 200% center;
  }
}

/* About */
.about__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

@media (max-width: 800px) {
  .about__layout {
    grid-template-columns: 1fr;
  }
}

.about__card {
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
}

.about__card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(232, 165, 75, 0.14),
    0 0 48px rgba(94, 234, 212, 0.06);
  border-color: rgba(232, 165, 75, 0.22);
}

.about__card--main p,
.about__card--side p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.about__card--main p:last-child,
.about__card--side p:last-child {
  margin-bottom: 0;
}

.about__card strong,
.contact__text strong {
  color: var(--text);
}

.about__list {
  margin: 0;
  padding-left: 1.25em;
  color: var(--text-muted);
}

.about__list li {
  margin-bottom: 0.65em;
}

.about__list li:last-child {
  margin-bottom: 0;
}

.about__card--side h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--accent);
}

.about__bullets {
  margin: 16px 0 0;
  padding-left: 1.2em;
  color: var(--text-muted);
}

.about__bullets li {
  margin-bottom: 0.5em;
}

/* Works */
.works__intro {
  color: var(--text-muted);
  max-width: 42em;
  margin: 0 0 40px;
}

.filmstrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .filmstrip {
    grid-template-columns: 1fr;
  }
}

.film-cell {
  position: relative;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.film-cell:hover {
  border-color: rgba(232, 165, 75, 0.35);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.4), 0 0 40px rgba(94, 234, 212, 0.06);
}

.film-cell__hole {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--bg-deep) 0,
    var(--bg-deep) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.9;
  border-bottom: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out);
}

.film-cell__body {
  flex: 1;
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.film-cell__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  transition: transform 0.25s var(--ease-out);
}

.film-cell__body p {
  flex: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.film-cell__soon {
  margin-top: 16px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border: 1px dashed var(--line);
}

.feed-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .feed-list {
    grid-template-columns: 1fr;
  }
}

.feed-empty {
  margin: 0;
  color: var(--text-muted);
}

.feed-card__title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.4;
  transition: transform 0.25s var(--ease-out);
}

.feed-card__summary {
  margin-bottom: 10px !important;
  transition: transform 0.25s var(--ease-out);
}

.feed-card__meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.83rem;
  font-family: var(--font-mono);
  transition: transform 0.25s var(--ease-out);
}

.feed-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  transition: transform 0.25s var(--ease-out);
}

.feed-action,
.post-action,
.detail-close {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), color 0.2s, background 0.2s;
}

.feed-action:hover,
.post-action:hover,
.detail-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.feed-action.is-active,
.post-action.is-active {
  border-color: rgba(94, 234, 212, 0.6);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.post-detail {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(28, 24, 22, 0.95), rgba(20, 17, 16, 0.95));
  padding: clamp(18px, 3vw, 28px);
}

.post-detail__head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.post-detail__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
}

.post-detail__meta {
  margin: 12px 0 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.post-detail__content {
  margin: 0;
  color: var(--text-muted);
  white-space: pre-line;
}

.post-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.comment-box {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.comment-box h4 {
  margin: 0 0 14px;
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 10, 9, 0.65);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.comment-form textarea {
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

.comment-submit {
  justify-self: start;
}

.comment-tip {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.comment-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 10, 9, 0.5);
  padding: 10px 12px;
}

.comment-item__meta {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.comment-item__content {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(12, 10, 9, 0.9);
  border: 1px solid rgba(94, 234, 212, 0.4);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 14px;
  z-index: 10003;
  font-size: 0.84rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contact */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(32px, 6vw, 56px);
  align-items: start;
}

@media (max-width: 700px) {
  .contact__layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .contact__text {
    text-align: center;
  }
}

.contact__text p {
  color: var(--text-muted);
  margin: 0 0 1em;
}

.contact__text p:last-child {
  margin-bottom: 0;
}

.contact__note {
  font-size: 0.95rem;
}

.qr-frame {
  text-align: center;
  transition: transform 0.45s var(--ease-out), filter 0.45s;
}

.qr-frame:hover {
  transform: scale(1.03) translateY(-4px);
  filter: drop-shadow(0 16px 40px rgba(94, 234, 212, 0.12));
}

.qr-frame__inner {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.qr-frame__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  display: none;
}

.qr-frame__img.is-loaded {
  display: block;
}

.qr-frame__img.is-loaded ~ .qr-frame__placeholder {
  display: none;
}

.qr-frame__placeholder {
  padding: 20px;
  text-align: center;
}

.qr-frame__icon {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.7;
}

.qr-frame__placeholder p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.qr-frame__hint {
  font-size: 0.72rem !important;
  opacity: 0.75;
}

.qr-frame__hint code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  word-break: break-all;
}

.qr-frame__caption {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  padding: 40px clamp(20px, 5vw, 48px) 48px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__easter {
  margin-top: 12px;
  font-size: 1.25rem;
  opacity: 0.35;
  cursor: default;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.site-footer__easter:hover {
  opacity: 0.9;
  transform: rotate(-8deg) scale(1.1);
}

/* ===== Video Preview Animation (Hero) ===== */
.viewfinder__video-preview {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(232, 165, 75, 0.08), transparent 50%, rgba(94, 234, 212, 0.05));
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.video-preview__film {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: film-scroll 8s linear infinite;
}

.film-frame {
  position: absolute;
  width: 45%;
  height: 55%;
  border: 1px solid rgba(232, 165, 75, 0.15);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(28, 24, 22, 0.8), rgba(20, 17, 16, 0.9));
  box-shadow: 0 0 20px rgba(232, 165, 75, 0.08);
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}

.film-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(94, 234, 212, 0.1);
  border-radius: 4px;
}

.film-frame--1 {
  animation: frame-appear 8s ease-in-out infinite;
}

.film-frame--2 {
  opacity: 0;
  animation: frame-appear-2 8s ease-in-out infinite;
}

.film-frame--3 {
  opacity: 0;
  animation: frame-appear-3 8s ease-in-out infinite;
}

@keyframes film-scroll {
  0%, 100% {
    transform: translateX(0) scale(1);
  }
  33% {
    transform: translateX(2%) scale(0.98);
  }
  66% {
    transform: translateX(-2%) scale(1.02);
  }
}

@keyframes frame-appear {
  0%, 30% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  45% {
    opacity: 0;
    transform: translateX(-15%) scale(0.95);
  }
  46%, 100% {
    opacity: 0;
    transform: translateX(15%) scale(1.05);
  }
}

@keyframes frame-appear-2 {
  0%, 45% {
    opacity: 0;
  }
  55% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  75% {
    opacity: 0;
    transform: translateX(-10%) scale(0.95);
  }
  76%, 100% {
    opacity: 0;
  }
}

@keyframes frame-appear-3 {
  0%, 70% {
    opacity: 0;
  }
  80%, 90% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  95% {
    opacity: 0;
    transform: translateX(8%) scale(0.97);
  }
  100% {
    opacity: 0;
  }
}

.video-preview__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 10, 9, 0.3);
  transition: background 0.3s;
}

.viewfinder:hover .video-preview__overlay {
  background: rgba(12, 10, 9, 0.15);
}

.preview-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(232, 165, 75, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1208;
  box-shadow: 0 0 32px var(--accent-glow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.preview-play-icon svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.viewfinder:hover .preview-play-icon {
  transform: scale(1.1);
  box-shadow: 0 0 48px rgba(232, 165, 75, 0.5);
}

.video-preview__scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.4), rgba(232, 165, 75, 0.3), transparent);
  animation: preview-scan 3s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes preview-scan {
  0% {
    top: 10%;
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    top: 90%;
    opacity: 0;
  }
}

/* ===== Video Player Component ===== */
.video-player {
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.4s var(--ease-out);
}

.video-player:hover {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 165, 75, 0.15);
}

.video-player__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.video-player__video.is-active {
  display: block;
}

.video-player__poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1614 0%, #0c0a09 50%, #141110 100%);
}

.video-player__poster.is-hidden {
  display: none;
}

.poster__grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: poster-grain 0.5s steps(3) infinite;
}

@keyframes poster-grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2px, 1px); }
  66% { transform: translate(1px, -1px); }
  100% { transform: translate(0, 0); }
}

.poster__placeholder {
  text-align: center;
  color: var(--text-muted);
  z-index: 1;
}

.poster__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--accent);
  opacity: 0.6;
}

.poster__icon svg {
  width: 100%;
  height: 100%;
}

.poster__text {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
}

.poster__hint {
  margin: 0;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  opacity: 0.6;
}

.video-player__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s, opacity 0.3s;
}

.video-player__overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-player__play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(232, 165, 75, 0.85);
  color: #1a1208;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.2s, border-color 0.2s;
  box-shadow: 0 0 40px rgba(232, 165, 75, 0.4);
}

.video-player__play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

.video-player__play-btn:hover {
  transform: scale(1.12);
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.5);
}

.video-player__overlay.is-playing .video-player__play-btn {
  opacity: 0;
  transform: scale(0.8);
}

/* Video Controls */
.video-player__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}

.video-player__controls.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.vp-progress {
  width: 100%;
  padding: 4px 0;
  cursor: pointer;
}

.vp-progress__track {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: visible;
}

.vp-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  transition: width 0.1s linear;
}

.vp-progress__thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.vp-progress:hover .vp-progress__thumb {
  opacity: 1;
  transform: scale(1.2);
}

.vp-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vp-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.vp-btn:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.vp-btn svg {
  width: 18px;
  height: 18px;
}

.vp-btn .icon-pause,
.vp-btn.is-paused .icon-play {
  display: none;
}

.vp-btn .icon-play,
.vp-btn.is-paused .icon-pause {
  display: block;
}

.vp-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
}

.vp-time-sep {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 2px;
}

.vp-spacer {
  flex: 1;
}

.vp-btn--mute .icon-muted,
.vp-btn.is-muted .icon-volume {
  display: none;
}

.vp-btn--mute .icon-volume,
.vp-btn.is-muted .icon-muted {
  display: block;
}

/* Filmstrip decoration */
.video-player__filmstrip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.filmstrip__hole {
  width: 40px;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--bg-deep) 0,
    var(--bg-deep) 5px,
    transparent 5px,
    transparent 8px
  );
}

.filmstrip__frames {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.frame-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 165, 75, 0.4);
  animation: frame-pulse 1.5s ease-in-out infinite;
}

.frame-dot:nth-child(2) { animation-delay: 0.2s; }
.frame-dot:nth-child(3) { animation-delay: 0.4s; }
.frame-dot:nth-child(4) { animation-delay: 0.6s; }
.frame-dot:nth-child(5) { animation-delay: 0.8s; }

@keyframes frame-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Video player focus state for accessibility */
.video-player__play-btn:focus-visible,
.vp-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* Loading state */
.video-player.is-loading .video-player__overlay::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(232, 165, 75, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Fullscreen styles */
.video-player:fullscreen {
  border-radius: 0;
  background: #000;
}

.video-player:fullscreen .video-player__screen {
  aspect-ratio: unset;
  height: 100vh;
}

/* ===== Video Playing Animation Effects ===== */
.video-playing .video-player__filmstrip {
  animation: filmstrip-move 0.5s linear infinite;
}

@keyframes filmstrip-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 8px 0;
  }
}

.video-playing .frame-dot {
  animation: frame-record 0.3s steps(1) infinite;
}

@keyframes frame-record {
  0%, 50% {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
  }
  51%, 100% {
    background: rgba(232, 165, 75, 0.4);
    box-shadow: none;
  }
}

/* CRT Effect on video area when playing */
.video-playing .video-player__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 3px
  );
  animation: crt-flicker 0.1s steps(1) infinite;
}

@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.98; }
}

/* ===== Video Card Hover Effects ===== */
.feed-card.has-video .film-cell__body::before {
  content: "▶";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(232, 165, 75, 0.9);
  color: #1a1208;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.feed-card.has-video:hover .film-cell__body::before {
  opacity: 1;
  transform: scale(1);
}

/* ===== Section Transition Effect (Cinematic Cut) ===== */
.section {
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 0.5s, transform 0.5s var(--ease-out);
}

.section.is-inview::before {
  opacity: 0.5;
  transform: scaleX(1);
}

/* ===== Timeline Effect for Posts ===== */
.timeline-connector {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--cyan), transparent);
  opacity: 0.2;
}

.feed-card.is-entering {
  animation: card-enter 0.6s var(--ease-out) forwards;
}

@keyframes card-enter {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Glitch Effect for Video Title ===== */
.post-detail__title.is-glitching {
  animation: title-glitch 0.3s steps(1) forwards;
}

@keyframes title-glitch {
  0% {
    text-shadow: 2px 0 var(--cyan), -2px 0 var(--accent);
    transform: translateX(0);
  }
  25% {
    text-shadow: -2px 0 var(--cyan), 2px 0 var(--accent);
    transform: translateX(-3px);
  }
  50% {
    text-shadow: 2px 0 var(--accent), -2px 0 var(--cyan);
    transform: translateX(3px);
  }
  75% {
    text-shadow: -1px 0 var(--cyan), 1px 0 var(--accent);
    transform: translateX(-1px);
  }
  100% {
    text-shadow: none;
    transform: translateX(0);
  }
}

/* ===== Reduced Motion Support for Video Effects ===== */
@media (prefers-reduced-motion: reduce) {
  .video-preview__film,
  .video-preview__scanline,
  .poster__grain,
  .frame-dot,
  .filmstrip__frames,
  .video-playing .video-player__filmstrip,
  .video-playing .video-player__screen::after,
  .video-playing .frame-dot {
    animation: none !important;
  }
}

/* ===== Enhanced Video Player Effects v2.2 ===== */

/* Play Button Pulse Animation */
.video-player__play-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: play-pulse 2s ease-out infinite;
}

@keyframes play-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Video Poster Breathing Light Effect */
.video-player__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgba(232, 165, 75, 0.08),
    transparent 70%
  );
  animation: poster-breathe 4s ease-in-out infinite;
}

@keyframes poster-breathe {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Video Mirror Flip Effect */
.video-player__video.is-mirrored {
  transform: scaleX(-1);
  transition: transform 0.5s var(--ease-out);
}

/* Progress Bar Hover Preview */
.vp-progress__preview {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: rgba(12, 10, 9, 0.95);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 8px;
}

.vp-progress:hover .vp-progress__preview {
  opacity: 1;
}

/* Progress Bar Pulse Effect When Playing */
.video-playing .vp-progress__fill {
  animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% {
    box-shadow: 0 0 4px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 12px var(--accent-glow), 0 0 20px var(--cyan-glow);
  }
}

/* Video Playing Zoom Effect */
.video-playing .video-player__video.is-active {
  animation: video-zoom 0.3s var(--ease-out);
}

@keyframes video-zoom {
  0% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Video Skeleton Loading Animation */
.video-player__poster.is-loading {
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Double Click Fullscreen Indicator */
.fullscreen-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  background: rgba(12, 10, 9, 0.9);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.fullscreen-hint.is-visible {
  animation: fullscreen-hint-anim 1.5s ease-out forwards;
}

@keyframes fullscreen-hint-anim {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

/* Film Strip Enhanced Animation */
.video-playing .filmstrip__hole {
  animation: film-hole-scroll 0.3s linear infinite;
}

@keyframes film-hole-scroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 8px 0;
  }
}

/* Video Title Glitch Effect on Hover */
.post-detail__title:hover {
  animation: title-glitch-hover 0.4s steps(1) forwards;
}

@keyframes title-glitch-hover {
  0% {
    text-shadow: none;
  }
  20% {
    text-shadow: 2px 0 var(--cyan), -2px 0 var(--accent);
  }
  40% {
    text-shadow: -2px 0 var(--cyan), 2px 0 var(--accent);
  }
  60% {
    text-shadow: 1px 0 var(--accent), -1px 0 var(--cyan);
  }
  100% {
    text-shadow: none;
  }
}

/* Cinematic Card Entrance Animation */
.film-cell.is-entering {
  animation: cinematic-enter 0.8s var(--ease-out) forwards;
}

@keyframes cinematic-enter {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(4px);
  }
  30% {
    opacity: 0.5;
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Staggered Card Animation */
.feed-list .film-cell:nth-child(1) { animation-delay: 0s; }
.feed-list .film-cell:nth-child(2) { animation-delay: 0.1s; }
.feed-list .film-cell:nth-child(3) { animation-delay: 0.2s; }
.feed-list .film-cell:nth-child(4) { animation-delay: 0.3s; }
.feed-list .film-cell:nth-child(5) { animation-delay: 0.4s; }
.feed-list .film-cell:nth-child(6) { animation-delay: 0.5s; }

/* Hero Section Parallax Effect */
.hero {
  perspective: 1000px;
}

.hero__grid {
  transform-style: preserve-3d;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: parallax-copy 0.1s linear;
  }
  
  @keyframes parallax-copy {
    0% {
      transform: translateY(calc(var(--scroll-p) * -30px));
    }
  }
  
  .hero__visual {
    animation: parallax-visual calc(var(--scroll-p) * 50px) linear;
    transform: translateZ(0);
  }
}

/* Video Preview Enhanced Effects */
.viewfinder__video-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(232, 165, 75, 0.05) 0%,
    transparent 50%,
    rgba(94, 234, 212, 0.03) 100%
  );
  animation: preview-shimmer 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes preview-shimmer {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Film Frame Recording Indicator */
.film-frame.is-recording::after {
  content: "REC";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  background: #e24d4d;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: white;
  animation: rec-blink 1s steps(1) infinite;
}

@keyframes rec-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.3;
  }
}

/* Volume Indicator Animation */
.volume-indicator {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.volume-indicator.is-visible {
  opacity: 1;
}

.volume-bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.2s;
}

.volume-bar:nth-child(1) { height: 30%; }
.volume-bar:nth-child(2) { height: 60%; }
.volume-bar:nth-child(3) { height: 100%; }
.volume-bar:nth-child(4) { height: 80%; }
.volume-bar:nth-child(5) { height: 50%; }

/* Seek Preview Thumbnail (CSS placeholder) */
.seek-preview {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 90px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.vp-progress:hover .seek-preview {
  opacity: 1;
}

.seek-preview__time {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
}

/* Buffering Spinner */
.buffering-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.buffering-spinner.is-visible {
  opacity: 1;
}

.buffering-spinner::before,
.buffering-spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.buffering-spinner::before {
  border-top-color: var(--accent);
  animation: spin-outer 1s linear infinite;
}

.buffering-spinner::after {
  border-bottom-color: var(--cyan);
  animation: spin-inner 0.8s linear infinite reverse;
}

@keyframes spin-outer {
  to { transform: rotate(360deg); }
}

@keyframes spin-inner {
  to { transform: rotate(-360deg); }
}

/* Video Controls Fade Animation */
.video-player__controls.is-fading {
  animation: controls-fade 0.3s ease-out forwards;
}

@keyframes controls-fade {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Time Tooltip Animation */
.time-tooltip {
  position: absolute;
  bottom: 100%;
  padding: 4px 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  margin-bottom: 8px;
}

.time-tooltip.is-visible {
  opacity: 1;
}

/* Enhanced Section Transition */
.section.is-inview .section__title {
  animation: section-title-entrance 1s var(--ease-out) forwards;
}

@keyframes section-title-entrance {
  0% {
    opacity: 0;
    transform: translateX(-20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* Loading Skeleton Animation */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 0%,
    var(--bg-elevated) 50%,
    var(--bg-card) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s ease-in-out infinite;
}

@keyframes skeleton-wave {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Video Transition Effects */
.video-transition-enter {
  animation: video-enter 0.5s var(--ease-out) forwards;
}

.video-transition-exit {
  animation: video-exit 0.3s var(--ease-out) forwards;
}

@keyframes video-enter {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes video-exit {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* CRT Scanline Enhanced Effect */
.video-playing .video-player__screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 10;
  animation: crt-scan 8s linear infinite;
}

@keyframes crt-scan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100vh;
  }
}

/* Vignette Animation on Video */
.video-playing .video-player__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 5;
  animation: vignette-pulse 3s ease-in-out infinite;
}

@keyframes vignette-pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* ===== Enhanced Button Animations ===== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::before {
  transform: translateX(100%);
}

/* Button Shimmer Effect */
.btn-shimmer {
  position: relative;
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ===== Hover Card Effects ===== */
.hover-lift {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-glow {
  transition: box-shadow 0.3s;
}

.hover-glow:hover {
  box-shadow: 0 0 30px var(--accent-glow), 0 0 60px var(--cyan-glow);
}

/* ===== Text Reveal Animation ===== */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  animation: text-reveal-anim 0.8s var(--ease-out) forwards;
  opacity: 0;
  transform: translateY(100%);
}

@keyframes text-reveal-anim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Floating Animation ===== */
.float {
  animation: float-anim 3s ease-in-out infinite;
}

.float-delay-1 { animation-delay: 0s; }
.float-delay-2 { animation-delay: 0.5s; }
.float-delay-3 { animation-delay: 1s; }

@keyframes float-anim {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== Pulse Ring Animation ===== */
.pulse-ring {
  position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  animation: pulse-ring-anim 2s ease-out infinite;
  opacity: 0;
}

.pulse-ring::after {
  animation-delay: 1s;
}

@keyframes pulse-ring-anim {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ===== Rotating Border Animation ===== */
.rotating-border {
  position: relative;
}

.rotating-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--cyan),
    var(--accent)
  );
  border-radius: inherit;
  animation: rotate-border 4s linear infinite;
  z-index: -1;
}

@keyframes rotate-border {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Marquee Animation ===== */
.marquee {
  overflow: hidden;
}

.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== Shimmer Text Animation ===== */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text) 0%,
    var(--accent) 50%,
    var(--text) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-text-anim 3s linear infinite;
}

@keyframes shimmer-text-anim {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* ===== Typewriter Cursor ===== */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ===== Ripple Effect ===== */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== Magnetic Button Effect ===== */
.magnetic-btn {
  transition: transform 0.3s var(--ease-out);
}

/* ===== Scale on Hover ===== */
.scale-hover {
  transition: transform 0.3s var(--ease-elastic);
}

.scale-hover:hover {
  transform: scale(1.05);
}

/* ===== Border Animation ===== */
.border-animate {
  position: relative;
}

.border-animate::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.3s var(--ease-out);
}

.border-animate:hover::after {
  width: 100%;
}

/* ===== Notification Badge Pulse ===== */
.badge {
  position: relative;
}

.badge::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: badge-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
}

/* ===== Mouse Trail Effect ===== */
.mouse-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

/* ===== Interactive Glow Effect ===== */
.glow-interactive {
  position: relative;
}

.glow-interactive::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--accent-glow) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.glow-interactive:hover::before {
  opacity: 1;
}

/* ===== Stagger Animation Helper ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
}

.stagger-item.is-visible {
  animation: stagger-in 0.5s var(--ease-out) forwards;
}

@keyframes stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Loading Dots ===== */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: loading-bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== Neon Glow Effect ===== */
.neon-glow {
  text-shadow:
    0 0 5px var(--accent),
    0 0 10px var(--accent),
    0 0 20px var(--accent),
    0 0 40px var(--accent);
  animation: neon-flicker 3s ease-in-out infinite;
}

@keyframes neon-flicker {
  0%, 100% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  93% {
    opacity: 0.8;
  }
  94% {
    opacity: 1;
  }
  95% {
    opacity: 0.9;
  }
  96% {
    opacity: 1;
  }
}

/* ===== Slide In Animations ===== */
.slide-in-left {
  animation: slide-left 0.6s var(--ease-out) forwards;
}

.slide-in-right {
  animation: slide-right 0.6s var(--ease-out) forwards;
}

.slide-in-up {
  animation: slide-up 0.6s var(--ease-out) forwards;
}

.slide-in-down {
  animation: slide-down 0.6s var(--ease-out) forwards;
}

@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Zoom In Animation ===== */
.zoom-in {
  animation: zoom-in 0.5s var(--ease-out) forwards;
}

@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Spin Animation ===== */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Bounce Animation ===== */
.bounce {
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ===== Shake Animation ===== */
.shake:hover {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

/* ===== Flip Animation ===== */
.flip:hover {
  animation: flip 0.6s ease;
}

@keyframes flip {
  0% { transform: perspective(400px) rotateY(0); }
  100% { transform: perspective(400px) rotateY(360deg); }
}

/* ===== Enhanced Section Divider ===== */
.section-divider {
  position: relative;
  height: 2px;
  background: var(--line);
  margin: 60px 0;
  overflow: hidden;
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: divider-shine 3s ease-in-out infinite;
}

@keyframes divider-shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* ===== Scroll Indicator Animation ===== */
.scroll-indicator {
  position: relative;
  width: 24px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 12px;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-dot 1.5s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% {
    top: 8px;
    opacity: 1;
  }
  50% {
    top: 20px;
    opacity: 0.3;
  }
}

/* ===== Card Flip Effect ===== */
.card-flip {
  perspective: 1000px;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.card-flip-back {
  transform: rotateY(180deg);
}

/* ===== Reveal on Scroll Effect ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s var(--ease-out);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s var(--ease-out);
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== Rainbow Border Animation ===== */
.rainbow-border {
  position: relative;
}

.rainbow-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7f00,
    #ffff00,
    #00ff00,
    #0000ff,
    #8b00ff,
    #ff0000
  );
  background-size: 400% 400%;
  border-radius: inherit;
  animation: rainbow-gradient 8s ease infinite;
  z-index: -1;
}

@keyframes rainbow-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Glow Border Animation ===== */
.glow-border {
  position: relative;
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: glow-border-rotate 4s linear infinite;
}

@keyframes glow-border-rotate {
  to {
    filter: hue-rotate(360deg);
  }
}

/* ===== Text Gradient Animation ===== */
.text-gradient-animated {
  background: linear-gradient(
    270deg,
    var(--accent),
    var(--cyan),
    var(--accent)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-text 3s linear infinite;
}

@keyframes gradient-text {
  to {
    background-position: 200% center;
  }
}

/* ===== Hover Sound Wave ===== */
.sound-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}

.sound-wave span {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.2s;
}

.sound-wave:hover span:nth-child(1) { height: 8px; animation: wave-bar 0.4s ease-in-out infinite; }
.sound-wave:hover span:nth-child(2) { height: 16px; animation: wave-bar 0.4s ease-in-out infinite 0.1s; }
.sound-wave:hover span:nth-child(3) { height: 12px; animation: wave-bar 0.4s ease-in-out infinite 0.2s; }
.sound-wave:hover span:nth-child(4) { height: 20px; animation: wave-bar 0.4s ease-in-out infinite 0.3s; }
.sound-wave:hover span:nth-child(5) { height: 10px; animation: wave-bar 0.4s ease-in-out infinite 0.4s; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

/* ===== Progress Ring ===== */
.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.5s var(--ease-out);
  transform-origin: 50% 50%;
}

/* ===== Interactive Icon Animation ===== */
.icon-spin:hover svg {
  animation: icon-spin 0.6s var(--ease-out);
}

@keyframes icon-spin {
  0% { transform: rotate(0); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

.icon-bounce:hover svg {
  animation: icon-bounce 0.6s var(--ease-bounce);
}

@keyframes icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ===== Enhanced Toast Animation ===== */
.toast {
  animation: toast-in 0.3s var(--ease-bounce) forwards;
}

.toast.toast-out {
  animation: toast-out 0.3s var(--ease-out) forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

/* ===== Skills Section ===== */
.skills {
  padding: var(--space-2xl) 0;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.skill-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.skill-card:hover .skill-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.skill-card__icon svg {
  width: 24px;
  height: 24px;
}

.skill-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.skill-card__desc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.skill-card__bar {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.skill-card__progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 3px;
  transition: width 1s var(--ease-out);
}

/* ===== Journey Timeline Section ===== */
.journey {
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.journey::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0.1;
  pointer-events: none;
}

.journey__timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 50px;
}

.journey__timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--cyan), transparent);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__marker {
  position: absolute;
  left: -50px;
  top: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-item__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--accent);
  display: block;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.timeline-item__dot::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.3;
  animation: timeline-ring 2s ease-in-out infinite;
}

.timeline-item:hover .timeline-item__dot {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--accent-glow);
}

@keyframes timeline-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.timeline-item__content {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.timeline-item__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--accent), var(--cyan));
  transition: height 0.4s var(--ease-out);
}

.timeline-item:hover .timeline-item__content {
  border-color: var(--accent);
  transform: translateX(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.timeline-item:hover .timeline-item__content::before {
  height: 100%;
}

.timeline-item__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
  padding: 4px 12px;
  background: var(--accent-soft);
  border-radius: 6px;
  border: 1px solid rgba(232, 165, 75, 0.2);
}

.timeline-item__date::before {
  content: "◆";
  font-size: 0.6rem;
}

.timeline-item__title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.3s;
}

.timeline-item:hover .timeline-item__title {
  color: var(--accent);
}

.timeline-item__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.timeline-item__icon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  opacity: 0.1;
  transition: opacity 0.3s, transform 0.3s;
}

.timeline-item:hover .timeline-item__icon {
  opacity: 0.2;
  transform: scale(1.1) rotate(5deg);
}

/* Journey section stats */
.journey__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.journey__stat {
  text-align: center;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 150px;
  transition: border-color 0.3s, transform 0.3s;
}

.journey__stat:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}

.journey__stat-value {
  font-family: var(--font-hero);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.journey__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Portfolio Section ===== */
.portfolio {
  padding: var(--space-2xl) 0;
}

.portfolio__intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-muted);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-card__thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a2420 0%, #1a1614 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-card__thumb--2 {
  background: linear-gradient(135deg, #242a20 0%, #141a14 100%);
}

.portfolio-card__thumb--3 {
  background: linear-gradient(135deg, #20242a 0%, #14161a 100%);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__play {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg-deep);
  transform: scale(0.8);
  transition: transform 0.3s var(--ease-out);
}

.portfolio-card:hover .portfolio-card__play {
  transform: scale(1);
}

.portfolio-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
}

.portfolio-card__info {
  padding: 20px;
}

.portfolio-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--cyan);
  padding: 2px 8px;
  background: var(--cyan-dim);
  border-radius: 4px;
  margin-bottom: 8px;
}

.portfolio-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.portfolio-card__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Resources Section ===== */
.resources {
  padding: var(--space-2xl) 0;
}

.resources__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.resources__subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}

.tool-item:hover {
  border-color: var(--accent);
  transform: translateX(8px);
}

.tool-item__icon {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
}

.tool-item__info h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.tool-item__info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.resource-item a:hover {
  border-color: var(--cyan);
  background: var(--bg-elevated);
  transform: translateX(4px);
}

.resource-link__icon {
  font-size: 1.2rem;
}

.resource-link__text {
  flex: 1;
  font-size: 0.95rem;
}

.resource-link__arrow {
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.resource-item a:hover .resource-link__arrow {
  transform: translateX(4px);
}

/* ===== Enhanced Section Styles ===== */
.section {
  padding: clamp(60px, 10vw, 100px) 0;
  position: relative;
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section__num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.6;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .skills__grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio__grid {
    grid-template-columns: 1fr;
  }
  
  .resources__layout {
    grid-template-columns: 1fr;
  }
  
  .journey__timeline {
    padding-left: 30px;
  }
  
  .timeline-item__marker {
    left: -30px;
  }
}
