/* ==========================================
   CHAT TPG PORTFOLIO — style.css v2
   Dark Cinematic · Gold Signature · Elevated
========================================== */

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

:root {
  --gold: #c9a84c;
  --gold-bright: #e8c96a;
  --gold-dim: #7a6128;
  --gold-glow: rgba(201,168,76,0.18);
  --gold-glow-strong: rgba(201,168,76,0.32);
  --dark: #080808;
  --dark2: #0f0f0f;
  --dark3: #161616;
  --dark4: #1e1e1e;
  --text: #ece9e0;
  --text-dim: #b0ac9e;
  --muted: #7a7770;
  --border: rgba(201,168,76,0.12);
  --border-hover: rgba(201,168,76,0.38);
  --radius: 2px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Raleway', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ---- NOISE OVERLAY ---- */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9998;
}

/* ============================================================
   CUSTOM CURSOR
============================================================ */
.cursor {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transition: transform 0.18s ease, opacity 0.2s, border-color 0.3s, width 0.2s, height 0.2s;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s;
}
.cursor.expanded {
  transform: translate(-50%, -50%) scale(2);
  opacity: 0.4;
  border-color: var(--gold-bright);
  background: rgba(201,168,76,0.04);
}
.cursor-trail-container {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9997;
}
.trail-dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: trailFade 0.6s ease forwards;
}
@keyframes trailFade {
  from { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
  to   { opacity: 0; transform: translate(-50%,-50%) scale(0); }
}

/* ============================================================
   NAV
============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 56px;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: rgba(8,8,8,0.94);
  padding: 14px 56px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 4px;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 2px;
}
.logo-c { color: var(--gold); font-size: 26px; }
.logo-rest { color: var(--text); }
.logo-dot { color: var(--gold); margin: 0 4px; font-size: 20px; }
.logo-tpg { color: var(--gold); font-size: 26px; }

.nav-links { display: flex; gap: 44px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase;
  transition: color 0.3s; position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.35s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-body); font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--dark); background: var(--gold);
  padding: 10px 24px; text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 26px; height: 1px;
  background: var(--gold); transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(8,8,8,0.98);
  z-index: 400; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 22px 0; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 52px;
  letter-spacing: 6px; color: var(--text); text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ============================================================
   HERO
============================================================ */
#section-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: 90px;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 60% at 15% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 25%, rgba(201,168,76,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 60% 85%, rgba(201,168,76,0.03) 0%, transparent 60%),
    linear-gradient(135deg, #080808 0%, #0d0d0d 50%, #0a0a0a 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.025) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 72%);
}
.hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.7) 0%, transparent 70%);
  left: -150px; top: -100px; animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.5) 0%, transparent 70%);
  right: -100px; bottom: 100px; animation-delay: -5s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(232,201,106,0.4) 0%, transparent 70%);
  left: 40%; top: 60%; animation-delay: -9s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-20px,20px) scale(0.94); }
}
.hero-lines { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.22), transparent);
  animation: scanline 11s ease-in-out infinite;
}
.hero-line:nth-child(1) { top: 20%; animation-delay: 0s; }
.hero-line:nth-child(2) { top: 55%; animation-delay: 4s; }
.hero-line:nth-child(3) { top: 80%; animation-delay: 7.5s; }
@keyframes scanline {
  0%,100% { opacity: 0; transform: scaleX(0.1); }
  50% { opacity: 1; transform: scaleX(1); }
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.tag-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 8px var(--gold);
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 17vw, 180px);
  line-height: 0.86; letter-spacing: 10px;
  margin-bottom: 28px;
}
.name-line { display: block; }
.name-line-1 {
  color: var(--text);
  text-shadow: 0 0 120px rgba(201,168,76,0.1);
  animation: heroTextIn 1s 0.2s both;
}
.name-line-2 { animation: heroTextIn 1s 0.35s both; }
.name-gold {
  background: linear-gradient(135deg, #c9a84c 0%, #e8c96a 40%, #c9a84c 60%, #a07c28 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(201,168,76,0.4));
}
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(60px) skewY(3deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}
.hero-tagline {
  font-size: clamp(14px, 1.8vw, 18px); color: var(--text-dim);
  font-weight: 300; letter-spacing: 1px; margin-bottom: 36px;
  animation: heroIn 1s 0.5s both;
}
.hero-tagline em { font-style: normal; color: var(--gold); font-weight: 600; }
.text-shimmer {
  background: linear-gradient(90deg, var(--text-dim), var(--gold-bright), var(--text-dim));
  background-size: 200%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmerMove 4s ease-in-out infinite 1.5s;
}
@keyframes shimmerMove {
  0%,100% { background-position: 0%; }
  50% { background-position: 100%; }
}

.hero-roles {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 44px; animation: heroIn 1s 0.65s both;
}
.role-pill {
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted);
  border: 1px solid rgba(201,168,76,0.18); padding: 8px 18px;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.35s ease;
  animation: pillIn 0.6s calc(0.7s + var(--i) * 0.1s) both;
}
@keyframes pillIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.pill-icon { width: 12px; height: 12px; flex-shrink: 0; }
.role-pill:hover {
  color: var(--gold); border-color: rgba(201,168,76,0.6);
  background: rgba(201,168,76,0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.1);
}

.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 64px; animation: heroIn 1s 0.9s both;
}
.btn-primary {
  font-family: var(--font-display); font-size: 14px; letter-spacing: 4px;
  color: var(--dark); background: var(--gold);
  padding: 16px 44px; text-decoration: none;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.5s;
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(201,168,76,0.3); }
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost {
  font-family: var(--font-display); font-size: 14px; letter-spacing: 4px;
  color: var(--gold); background: transparent;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 16px 44px; text-decoration: none;
  transition: all 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,168,76,0.07); transform: translateY(-2px); }

.hero-scroll { animation: heroIn 1s 1.1s both; }
.scroll-line {
  width: 1px; height: 72px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  margin: 0 auto 12px;
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.25; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}
.scroll-text {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 5px; text-transform: uppercase; color: var(--muted);
}

/* floating hero stats */
.hero-stat-float {
  position: absolute; z-index: 2;
  background: rgba(15,15,15,0.7);
  border: 1px solid var(--border);
  padding: 14px 20px;
  backdrop-filter: blur(12px);
  animation: heroIn 1s 1.2s both;
}
.hero-stat-1 { left: 5%; bottom: 22%; }
.hero-stat-2 { right: 5%; top: 28%; }
.hsf-num {
  font-family: var(--font-display); font-size: 36px;
  color: var(--gold); line-height: 1;
}
.hsf-label {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-cascade { opacity: 0; animation: heroIn 1s both; }
.fade-cascade:nth-child(1) { animation-delay: 0.15s; }
.fade-cascade:nth-child(2) { animation-delay: 0.3s; }
.fade-cascade:nth-child(3) { animation-delay: 0.5s; }
.fade-cascade:nth-child(4) { animation-delay: 0.7s; }
.fade-cascade:nth-child(5) { animation-delay: 0.9s; }
.fade-cascade:nth-child(6) { animation-delay: 1.05s; }
.fade-cascade:nth-child(7) { animation-delay: 1.15s; }

/* ============================================================
   RIBBON
============================================================ */
.ribbon-wrap {
  overflow: hidden; padding: 18px 0;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ribbon-track {
  display: flex; gap: 0; white-space: nowrap;
  animation: ribbonScroll 24s linear infinite;
  width: max-content;
}
.ribbon-track span {
  font-family: var(--font-display); font-size: 13px;
  letter-spacing: 4px; color: var(--muted);
  padding: 0 24px; text-transform: uppercase;
  transition: color 0.3s;
}
.ribbon-track:hover { animation-play-state: paused; }
.ribbon-track span:hover { color: var(--gold); }
.ribbon-sep { color: var(--gold) !important; padding: 0 8px !important; font-size: 10px !important; }
@keyframes ribbonScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   LAYOUT
============================================================ */
.container { padding: 128px 56px; max-width: 1240px; margin: 0 auto; }
.tools-section { padding-top: 0; }
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.18), transparent);
  margin: 0 56px;
}
.section-header { margin-bottom: 64px; }
.section-eyebrow {
  display: block;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 68px);
  letter-spacing: 4px; line-height: 1;
  margin-bottom: 16px;
}
.title-gold {
  background: linear-gradient(135deg, #c9a84c, #e8c96a, #c9a84c);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-sub {
  font-size: 14px; color: var(--muted);
  line-height: 1.8; max-width: 500px;
}

/* ============================================================
   SKILLS
============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }

.skill-card {
  background: var(--dark2);
  padding: 52px 44px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: background 0.4s, transform 0.3s;
  transform-style: preserve-3d;
}
.skill-card:hover { background: var(--dark3); transform: translateY(-2px); }
.skill-card-glow {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse 60% 50% at var(--mx,50%) var(--my,50%), rgba(201,168,76,0.1) 0%, transparent 70%);
  transition: opacity 0.5s;
  pointer-events: none;
}
.skill-card:hover .skill-card-glow { opacity: 1; }
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.4s;
}
.skill-card:hover::before { opacity: 1; }
.skill-card::after {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  transform: scaleY(0); transform-origin: center; transition: transform 0.5s;
}
.skill-card:hover::after { transform: scaleY(1); }

.skill-card-number {
  font-family: var(--font-display); font-size: 72px;
  color: rgba(201,168,76,0.06); line-height: 1;
  position: absolute; top: 16px; right: 24px;
  letter-spacing: 2px; pointer-events: none;
  transition: color 0.4s;
}
.skill-card:hover .skill-card-number { color: rgba(201,168,76,0.1); }

.skill-icon { font-size: 36px; margin-bottom: 22px; }
.skill-title {
  font-family: var(--font-display); font-size: 34px;
  letter-spacing: 3px; margin-bottom: 14px; position: relative;
}
.skill-desc {
  font-size: 13px; line-height: 2.0; color: var(--muted);
  max-width: 360px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.skill-tag {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold-dim); border: 1px solid rgba(201,168,76,0.12);
  padding: 5px 14px; transition: all 0.3s;
}
.skill-card:hover .skill-tag { border-color: rgba(201,168,76,0.25); color: var(--gold); }
.skill-arrow {
  position: absolute; bottom: 24px; right: 28px;
  font-size: 20px; color: rgba(201,168,76,0.25);
  transition: all 0.3s;
}
.skill-card:hover .skill-arrow {
  color: var(--gold); transform: translate(4px,-4px);
}

/* ============================================================
   SKILL LOGO ROW
============================================================ */
.skill-logo-row { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tool-logo-wrap {
  width: 48px; height: 48px; display: block;
  border-radius: 12px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}
.tool-logo-wrap svg { width: 100%; height: 100%; display: block; }
.tool-logo-wrap:hover { transform: translateY(-4px) scale(1.1); box-shadow: 0 10px 28px rgba(0,0,0,0.6); }

/* ============================================================
   TOOLS MARQUEE
============================================================ */
.tools-marquee-wrap {
  overflow: hidden; position: relative;
}
.tools-marquee-wrap::before,
.tools-marquee-wrap::after {
  content: ''; position: absolute;
  top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.tools-marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--dark), transparent); }
.tools-marquee-wrap::after  { right: 0; background: linear-gradient(to left, var(--dark), transparent); }
.tools-marquee { width: 100%; overflow: hidden; }
.tools-track {
  display: flex; gap: 24px; width: max-content;
  animation: marqueeScroll 36s linear infinite;
}
.tools-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tool-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  cursor: default; flex-shrink: 0;
  transition: transform 0.3s;
}
.tool-item:hover { transform: translateY(-6px); }
.tool-icon-big {
  width: 78px; height: 78px;
  border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.tool-icon-big svg { width: 100%; height: 100%; display: block; }
.tool-item:hover .tool-icon-big {
  box-shadow: 0 12px 36px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.2);
  border-color: rgba(201,168,76,0.2);
}
.tool-item span {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  transition: color 0.3s;
}
.tool-item:hover span { color: var(--gold); }

/* ============================================================
   FILTER TABS
============================================================ */
.filter-tabs { display: flex; gap: 4px; margin-bottom: 44px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-body); font-size: 9px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid transparent; padding: 10px 24px;
  cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover { color: var(--gold); border-color: var(--border); }
.filter-btn.active {
  color: var(--gold); border-color: rgba(201,168,76,0.45);
  background: rgba(201,168,76,0.06);
}

/* ============================================================
   WORK GRID
============================================================ */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; min-height: 200px;
}
.work-empty {
  grid-column: 1 / -1; text-align: center;
  padding: 100px 24px;
  border: 1px dashed rgba(201,168,76,0.12);
}
.empty-icon {
  font-size: 32px; margin-bottom: 16px;
  color: var(--gold); opacity: 0.4;
  display: block;
}
.work-empty p { font-size: 14px; color: var(--muted); line-height: 2; }
.work-item {
  position: relative; overflow: hidden;
  background: var(--dark2); aspect-ratio: 4/3; cursor: pointer;
  transition: transform 0.4s;
}
.work-item:hover { z-index: 2; }
.work-item img, .work-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.work-item:hover img, .work-item:hover video { transform: scale(1.08); }
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.3) 45%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  opacity: 0; transition: opacity 0.4s;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-cat {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 7px;
}
.work-title {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 2px;
}
.work-desc { font-size: 11px; color: var(--text-dim); margin-top: 5px; line-height: 1.7; }
.work-delete {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px;
  background: rgba(8,8,8,0.85); border: 1px solid rgba(255,80,80,0.3);
  color: #ff6060; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; border-radius: 2px;
}
.work-item:hover .work-delete { opacity: 1; }
.work-delete:hover { background: rgba(200,50,50,0.3); }
.play-badge {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: rgba(201,168,76,0.88); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #080808; pointer-events: none;
  opacity: 0.85; transition: opacity 0.3s, transform 0.3s;
}
.work-item:hover .play-badge { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }

/* ============================================================
   ABOUT
============================================================ */
.about-section {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 80px; align-items: start;
  padding: 128px 56px; max-width: 1240px; margin: 0 auto;
}
.about-visual { position: relative; }
.about-photo-frame {
  position: relative; display: inline-block;
  max-width: 340px; width: 100%;
}
.about-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--dark3), var(--dark4));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.about-photo-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.photo-initials {
  font-family: var(--font-display); font-size: 80px; letter-spacing: 8px;
  color: rgba(201,168,76,0.2); position: relative; z-index: 1;
}
.photo-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
  animation: ringPulse 4s ease-in-out infinite;
}
.photo-ring-1 { width: 60%; aspect-ratio: 1; animation-delay: 0s; }
.photo-ring-2 { width: 85%; aspect-ratio: 1; animation-delay: -2s; }
@keyframes ringPulse {
  0%,100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.04); }
}
.about-photo-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--dark2); border: 1px solid var(--border);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 1.5px; color: var(--text-dim);
  backdrop-filter: blur(10px);
}
.badge-icon { color: var(--gold); font-size: 12px; animation: badgePulse 2s ease-in-out infinite; }
@keyframes badgePulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

.about-content {
  display: flex; flex-direction: column; gap: 52px;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 5.5vw, 68px);
  letter-spacing: 4px; line-height: 1.05; margin: 16px 0 28px;
}
.about-text h2 em { color: var(--gold); font-style: normal; }
.about-text p {
  font-size: 14px; line-height: 2.1; color: var(--muted); margin-bottom: 14px;
}
.about-text p strong { color: var(--text); font-weight: 500; }

.about-values { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.value-item { display: flex; align-items: center; gap: 12px; }
.value-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}
.value-item span { font-size: 12px; color: var(--text-dim); letter-spacing: 0.5px; }

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.stat-box {
  border-top: 1px solid rgba(201,168,76,0.2); padding-top: 22px;
}
.stat-num {
  font-family: var(--font-display); font-size: 58px;
  color: var(--gold); line-height: 1;
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 6px;
}
.stat-bar {
  margin-top: 12px; height: 2px; background: rgba(201,168,76,0.1);
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width 1.4s cubic-bezier(0.25,0.46,0.45,0.94) 0.5s;
}
.stat-box.visible .stat-bar-fill { width: var(--w); }

/* ============================================================
   CONTACT
============================================================ */
.contact-section {
  text-align: center; padding: 128px 56px;
  max-width: 900px; margin: 0 auto; position: relative;
}
.contact-bg-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(60px, 14vw, 180px); letter-spacing: 8px;
  color: rgba(201,168,76,0.025); pointer-events: none;
  white-space: nowrap; z-index: 0;
}
.contact-pre {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 5px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.contact-pre-line { flex: 1; max-width: 60px; height: 1px; background: rgba(201,168,76,0.4); }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(58px, 10vw, 110px);
  letter-spacing: 6px; line-height: 1;
  margin-bottom: 28px; position: relative; z-index: 1;
}
.contact-sub {
  font-size: 14px; line-height: 2.1; color: var(--muted); margin-bottom: 56px;
  position: relative; z-index: 1;
}
.contact-cards {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; max-width: 700px; margin: 0 auto 52px;
  text-align: left; position: relative; z-index: 1;
}
.contact-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--dark2); border: 1px solid var(--border);
  padding: 20px 22px; text-decoration: none;
  transition: all 0.35s; position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.contact-card:hover { background: var(--dark3); border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.4); }
.contact-card:hover::before { transform: scaleX(1); }
.contact-card-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.contact-card-icon svg { width: 100%; height: 100%; display: block; }
.contact-card-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.contact-card-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
}
.contact-card-value { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-card-arrow {
  font-size: 18px; color: rgba(201,168,76,0.3);
  transition: all 0.3s; flex-shrink: 0;
}
.contact-card:hover .contact-card-arrow { color: var(--gold); transform: translate(2px,-2px); }

.contact-btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-size: 16px; letter-spacing: 5px;
  color: var(--dark); background: var(--gold);
  padding: 20px 60px; text-decoration: none;
  transition: all 0.3s; position: relative; z-index: 1; overflow: hidden;
}
.contact-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.5s;
}
.contact-btn:hover { background: var(--gold-bright); transform: translateY(-3px); box-shadow: 0 16px 44px rgba(201,168,76,0.35); }
.contact-btn:hover::before { transform: translateX(100%); }
.contact-btn svg { transition: transform 0.3s; }
.contact-btn:hover svg { transform: translate(4px,-4px); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 36px 56px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
}
.footer-logo {
  font-family: var(--font-display); font-size: 20px; letter-spacing: 5px;
  color: var(--gold); opacity: 0.6;
}
footer p { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); text-align: center; }
.footer-links { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.footer-links a {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px;
  color: var(--muted); text-decoration: none; transition: color 0.3s; text-transform: uppercase;
}
.footer-links a:hover { color: var(--gold); }
.footer-links span { color: var(--gold-dim); font-size: 8px; }

/* ============================================================
   UPLOAD BTN
============================================================ */
.upload-btn {
  font-family: var(--font-body); font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); background: transparent;
  border: 1px solid rgba(201,168,76,0.3); padding: 10px 22px;
  cursor: pointer; transition: all 0.3s; margin-left: auto;
  display: flex; align-items: center; gap: 8px;
}
.upload-btn:hover { background: rgba(201,168,76,0.07); border-color: var(--gold); transform: translateY(-1px); }
.section-header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.section-header .section-eyebrow { width: 100%; }
.section-header .section-title { flex: 1; min-width: 200px; }
.section-header .section-sub { width: 100%; }
.section-header .upload-btn { flex-shrink: 0; }
.section-header .filter-tabs { width: 100%; }

/* ============================================================
   FADE UP ANIMATION
============================================================ */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.85s ease, transform 0.85s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   UPLOAD MODAL
============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.35s; padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--dark2); border: 1px solid var(--border);
  padding: 48px 48px 40px; max-width: 580px; width: 100%;
  max-height: 92vh; overflow-y: auto; position: relative;
  transform: translateY(24px); transition: transform 0.35s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 20px; right: 22px;
  background: transparent; border: none;
  color: var(--muted); font-size: 18px; cursor: pointer; transition: color 0.2s;
}
.modal-close:hover { color: var(--gold); }
.modal-title { font-family: var(--font-display); font-size: 40px; letter-spacing: 4px; margin-bottom: 6px; }
.modal-sub { font-size: 12px; color: var(--muted); margin-bottom: 30px; }
.upload-zone {
  border: 1px dashed rgba(201,168,76,0.28); padding: 40px 24px;
  text-align: center; position: relative; cursor: pointer;
  transition: all 0.3s; margin-bottom: 26px;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 32px; color: var(--gold); margin-bottom: 10px; }
.upload-label { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.upload-hint { font-size: 11px; color: var(--muted); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--dark3);
  border: 1px solid rgba(201,168,76,0.14);
  color: var(--text); font-family: var(--font-body);
  font-size: 13px; padding: 13px 16px;
  outline: none; transition: border-color 0.3s; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { height: 82px; resize: vertical; }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c9a84c'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.modal-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.preview-thumb { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--border); }
.upload-progress { margin-bottom: 18px; }
.progress-bar { width: 100%; height: 3px; background: rgba(201,168,76,0.12); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); transition: width 0.4s ease; border-radius: 2px; }
#progress-text { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.submit-btn {
  width: 100%; font-family: var(--font-display); font-size: 16px; letter-spacing: 4px;
  color: var(--dark); background: var(--gold); border: none; padding: 17px;
  cursor: pointer; transition: all 0.3s;
}
.submit-btn:hover { background: var(--gold-bright); }

/* ============================================================
   LIGHTBOX
============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.97); z-index: 2000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-close {
  position: absolute; top: 28px; right: 32px;
  background: transparent; border: none; color: var(--muted); font-size: 28px;
  cursor: pointer; transition: color 0.2s; z-index: 10;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-prev,
.lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: transparent; border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold); font-size: 38px; cursor: pointer;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 10;
}
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }
.lightbox-prev:hover, .lightbox-next:hover { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.lightbox-content { max-width: 90vw; max-height: 78vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img, .lightbox-content video { max-width: 90vw; max-height: 78vh; object-fit: contain; display: block; }
.lightbox-info { margin-top: 20px; text-align: center; }
.lightbox-info .lb-cat { font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.lightbox-info .lb-title { font-family: var(--font-display); font-size: 24px; letter-spacing: 3px; margin-top: 6px; }
.lightbox-info .lb-desc { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ============================================================
   PDF PLACEHOLDER
============================================================ */
.pdf-thumb {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--dark3); color: var(--muted);
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
}
.pdf-thumb span { font-size: 40px; margin-bottom: 12px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
  .hero-stat-1, .hero-stat-2 { display: none; }
  .about-section { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section { padding: 80px 32px; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  #navbar { padding: 16px 20px; }
  #navbar.scrolled { padding: 12px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo { font-size: 18px; letter-spacing: 2px; }
  .logo-c, .logo-tpg { font-size: 21px; }

  #section-hero { padding-top: 76px; }
  .hero-content { padding: 0 18px; }
  .hero-tag { font-size: 8px; letter-spacing: 2.5px; gap: 8px; margin-bottom: 18px; }
  .hero-name { letter-spacing: 4px; margin-bottom: 18px; }
  .hero-tagline { font-size: 14px; padding: 0 4px; margin-bottom: 26px; }
  .hero-roles { gap: 7px; margin-bottom: 32px; }
  .role-pill { font-size: 8px; letter-spacing: 1.5px; padding: 7px 13px; }
  .hero-actions { gap: 12px; margin-bottom: 44px; }
  .btn-primary, .btn-ghost { font-size: 12px; letter-spacing: 2.5px; padding: 14px 32px; }
  .hero-scroll { display: none; }

  .container { padding: 72px 20px; }
  .section-divider { margin: 0 20px; }
  .section-title { letter-spacing: 2px; }
  .upload-btn { margin-left: 0; }

  .work-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 40px 28px; }

  .about-section { padding: 72px 20px; }
  .contact-section { padding: 72px 20px; }
  .contact-title { letter-spacing: 3px; }
  .contact-btn { padding: 18px 36px; font-size: 13px; letter-spacing: 3px; }

  footer { grid-template-columns: 1fr; text-align: center; gap: 14px; padding: 28px 20px; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .modal { padding: 32px 24px 28px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .about-values { grid-template-columns: 1fr; }
  .hero-stat-1, .hero-stat-2 { display: none; }
}

@media (max-width: 400px) {
  .hero-name { letter-spacing: 2px; }
  .role-pill { font-size: 7.5px; padding: 6px 11px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
