/* ============================================================
   FADHEL HASAN PORTFOLIO — style.css
   Color Palette:
     #0a0a0f  near-black base
     #12121a  card surface
     #1a1a28  elevated surface
     #202030  raised surface
     #f0ede8  warm ivory text
     #8b4fa8  brand purple (primary accent)
     #5060a8  brand blue (secondary accent)
     #7c6fd4  mid purple
   Fonts: Syne (display) · Inter (body) · JetBrains Mono (mono)
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg:       #0a0a0f;
  --bg2:      #0e0e18;
  --bg3:      #141420;
  --bg4:      #1c1c2c;
  --ivory:    #f0ede8;
  --ivory60:  rgba(240,237,232,.6);
  --ivory30:  rgba(240,237,232,.3);
  --accent:   #8b4fa8;    /* vivid purple — top-left swatch */
  --accent2:  #5060a8;    /* deep navy-blue — bottom-right swatch */
  --accent3:  #b0b8d8;    /* soft lavender — bottom-left swatch */
  --accent-dk:#2d2d60;    /* dark navy — top-right swatch */
  --accent20: rgba(139,79,168,.2);
  --border:   rgba(139,79,168,.12);
  --ff-d:     'Syne', sans-serif;
  --ff-b:     'Inter', sans-serif;
  --ff-m:     'JetBrains Mono', monospace;
  --nav-h:    68px;
  --ease:     cubic-bezier(.16,1,.3,1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); font-size: 16px; }
body { background: var(--bg); color: var(--ivory); font-family: var(--ff-b); overflow-x: hidden; line-height: 1.7; }
@media (hover:none) { body { cursor: auto; } #cursor, #cursor-ring { display: none; } }
a { color: inherit; text-decoration: none; }
button { font-family: inherit;  border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--ff-d); font-weight: 800; line-height: 1.05; }
.mono { font-family: var(--ff-m); font-size: .7rem; letter-spacing: .08em; }
em { font-style: italic; color: var(--accent); }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.25rem,4vw,3.5rem); }
section { padding: clamp(5rem,10vw,9rem) 0; }

/* ── SECTION LABELS ─────────────────────────────────────────── */
.sec-label { display: block; font-family: var(--ff-m); font-size: .68rem; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.sec-title { font-size: clamp(2.4rem,6vw,5rem); font-weight: 800; margin-bottom: 1.5rem; }
.sec-desc  { color: var(--ivory60); max-width: 540px; font-size: 1.05rem; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; background: var(--accent); color: var(--bg);
  font-family: var(--ff-b); font-size: .9rem; font-weight: 600;
  border-radius: 6px; 
  transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn-primary:hover { background: #a870c4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,79,168,.4); }
.btn-primary svg { transition: transform .3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border: 1px solid var(--border); color: var(--ivory60);
  font-size: .9rem; border-radius: 6px;
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--ivory); transform: translateY(-2px); }

/* ── NAV ─────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem,4vw,3.5rem); z-index: 1000;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
#nav.scrolled {
  background: rgba(10,10,15,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--ff-d); font-size: 1.5rem; font-weight: 800; transition: color .3s; }
.nav-logo:hover { color: var(--accent); }
.nav-links { display: flex; gap: clamp(1.5rem,3vw,3rem); }
.nav-links a { font-size: .88rem; color: var(--ivory60); position: relative; padding-bottom: 2px; transition: color .3s; }
.nav-links a::after { content:''; position:absolute; bottom:-2px; left:0; width:0; height:1px; background:var(--accent); transition:width .3s var(--ease); }
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { width: 100%; }
.nav-btn { padding: 8px 18px; border: 1px solid var(--accent); border-radius: 5px; font-size: .85rem; color: var(--accent); transition: background .3s, color .3s; }
.nav-btn:hover { background: var(--accent); color: var(--bg); }
#menu-btn { display: none; flex-direction: column; gap: 6px; padding: 4px; }
#menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--ivory); transition: transform .3s var(--ease); }
#menu-btn.open span:first-child { transform: rotate(45deg) translate(5px,5px); }
#menu-btn.open span:last-child  { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ────────────────────────────────────────────────────── */
#hero { min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle,rgba(139,79,168,.22) 0%,rgba(80,96,168,.1) 50%,transparent 70%); top: -150px; right: -120px; animation: float1 12s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle,rgba(80,96,168,.18) 0%,rgba(139,79,168,.08) 50%,transparent 70%); bottom: 5%; left: -80px; animation: float2 15s ease-in-out infinite; }
.orb-3 { width: 250px; height: 250px; background: radial-gradient(circle,rgba(176,184,216,.08) 0%,transparent 70%); top: 40%; left: 35%; animation: float3 10s ease-in-out infinite; }
/* Extra glow orb for depth */
.orb-4 { position: absolute; width: 350px; height: 350px; border-radius: 50%; filter: blur(100px); background: radial-gradient(circle,rgba(45,45,96,.35) 0%,transparent 70%); bottom: 20%; right: 10%; animation: float2 18s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform:translate(0,0); } 50% { transform:translate(-20px,30px); } }
@keyframes float2 { 0%,100% { transform:translate(0,0); } 50% { transform:translate(15px,-20px); } }
@keyframes float3 { 0%,100% { transform:translate(0,0); } 50% { transform:translate(-10px,15px); } }
.grid-lines { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 clamp(1.25rem,4vw,3.5rem); }
.grid-lines div { width: 1px; background: linear-gradient(180deg,transparent,rgba(139,79,168,.05),transparent); }

.hero-inner { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 0 clamp(1.25rem,4vw,3.5rem); width: 100%; }
.hero-text { max-width: 820px; }

/* Hero image */
.hero-image-wrap {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: clamp(280px, 38vw, 520px);
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  /* Gradient fade: left edge fades to bg, right edge fades out */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 20%, rgba(0,0,0,.85) 50%, rgba(0,0,0,.6) 80%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 20%, rgba(0,0,0,.85) 50%, rgba(0,0,0,.6) 80%, transparent 100%);
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(15%) contrast(1.05);
  opacity: .55;
}

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(139,79,168,.28); border-radius: 100px; font-family: var(--ff-m); font-size: .65rem; color: var(--accent); letter-spacing: .08em; margin-bottom: 1.8rem; background: rgba(155,127,232,.07); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(74,222,128,.5);}50%{box-shadow:0 0 0 6px rgba(74,222,128,0);} }

.hero-h1 { font-size: clamp(3.2rem,9vw,7.5rem); font-weight: 800; line-height: .95; letter-spacing: -.03em; margin-bottom: 1.5rem; }
.hero-h1 span { display: block; }
.hero-h1 .italic { font-style: italic; color: var(--accent); padding-left: clamp(1.5rem,5vw,4rem); }

.hero-meta { display: flex; align-items: center; gap: .8rem; font-family: var(--ff-m); font-size: .75rem; margin-bottom: 1.5rem; }
.hero-meta .name { color: var(--ivory); }
.hero-meta .sep  { color: var(--accent); }
.hero-meta .typed-wrap { color: var(--ivory60); min-width: 220px; }
.cursor-blink { color: var(--accent); animation: blink .8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-p { max-width: 500px; color: var(--ivory60); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2rem; }

.hero-btns { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-stats { flex-shrink: 0; display: flex; flex-direction: column; gap: 0; background: rgba(22,22,34,.9); backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem; margin-bottom: 2rem; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: .9rem 0; }
.stat:first-child { padding-top: 0; }
.stat:last-child  { padding-bottom: 0; }
.stat-n { font-family: var(--ff-d); font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.stat-l { font-family: var(--ff-m); font-size: .6rem; color: var(--ivory30); letter-spacing: .08em; text-transform: uppercase; }
.stat-div { height: 1px; background: var(--border); }

.scroll-hint { position: absolute; bottom: 2.5rem; left: clamp(1.25rem,4vw,3.5rem); display: flex; align-items: center; gap: 10px; z-index: 3; }
.scroll-hint .mono { color: var(--ivory30); letter-spacing: .15em; writing-mode: vertical-lr; transform: rotate(180deg); }
.scroll-line { width: 1px; height: 55px; background: var(--border); position: relative; overflow: hidden; }
.scroll-line-inner { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 50%; background: var(--accent); animation: scrollAnim 2s ease-in-out infinite; }
@keyframes scrollAnim { 0%{top:-50%;}100%{top:150%;} }

/* ── ABOUT ───────────────────────────────────────────────────── */
#about { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2.5rem,5vw,5rem); align-items: start; margin: 3rem 0 2.5rem; }
.about-photo { position: relative; }
.photo-frame { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.photo-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#1a1a2a,#2a2a3a); display: flex; align-items: center; justify-content: center; font-family: var(--ff-d); font-size: 3.5rem; font-weight: 800; color: var(--accent); opacity: .5; }
.photo-border { position: absolute; bottom: -10px; right: -10px; width: calc(100% - 20px); height: calc(100% - 20px); border: 1px solid rgba(139,79,168,.28); border-radius: 14px; pointer-events: none; }
.photo-tag { position: absolute; bottom: -16px; left: -8px; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.photo-tag .mono { color: var(--accent); }
.photo-tag strong { font-size: .88rem; font-weight: 500; }
.about-lead { font-family: var(--ff-d); font-size: 1.2rem; line-height: 1.65; margin-bottom: 1.2rem; font-weight: 400; }
.about-body { color: var(--ivory60); margin-bottom: 1rem; }
.skills-list { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem; }
.skill-item {}
.skill-top { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 7px; }
.skill-top .mono { color: var(--accent); }
.skill-track { height: 2px; background: var(--border); border-radius: 100px; overflow: hidden; }
.skill-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3)); border-radius: 100px; transition: width 1.2s var(--ease); box-shadow: 0 0 8px rgba(139,79,168,.4); }
.tools { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.tools-label { color: var(--ivory30); }
.tools-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tools-tags span { padding: 5px 12px; border: 1px solid var(--border); border-radius: 100px; font-size: .78rem; color: var(--ivory60); transition: border-color .3s, color .3s; cursor: default; }
.tools-tags span:hover { border-color: var(--accent); color: var(--accent); }

/* ── PROJECTS ────────────────────────────────────────────────── */
.filters { display: flex; gap: 7px; margin-bottom: 2.5rem; flex-wrap: wrap; }
.filter { padding: 7px 18px; border: 1px solid var(--border); border-radius: 100px; font-size: .72rem; font-family: var(--ff-m); letter-spacing: .06em; color: var(--ivory60); transition: all .3s var(--ease); cursor: pointer; }
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* Category label inside grid */
.proj-cat-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; margin-top: 1rem; margin-bottom: .25rem; }
.proj-cat-label span { font-family: var(--ff-m); font-size: .65rem; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; }
.proj-cat-label::after { content:''; flex: 1; height: 1px; background: var(--border); }

.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.proj-wide { grid-column: span 2; }
.proj-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.proj-card:hover { border-color: rgba(139,79,168,.4); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.proj-card.filtered-out { display: none; }

/* Video card — native video element as thumbnail */
.proj-video-wrap { position: relative; aspect-ratio: 9/16; overflow: hidden; background: #000; }
.proj-video-wrap.landscape { aspect-ratio: 16/9; }
.proj-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-video-wrap .proj-num { position: absolute; top: 1.2rem; left: 1.4rem; font-family: var(--ff-m); font-size: .65rem; color: rgba(240,237,232,.25); letter-spacing: .1em; z-index: 2; }
.proj-video-wrap .proj-overlay { position: absolute; inset: 0; background: rgba(10,10,15,.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .4s; z-index: 3; }
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-link { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; background: var(--ivory); color: var(--bg); border-radius: 5px; font-size: .85rem; font-weight: 600; transform: translateY(10px); transition: transform .4s var(--ease), background .3s; }
.proj-card:hover .proj-link { transform: translateY(0); }
.proj-link:hover { background: var(--accent); color: var(--bg); }

/* Play button overlay for video cards */
.play-btn { width: 52px; height: 52px; border-radius: 50%; background: rgba(139,79,168,.9); display: flex; align-items: center; justify-content: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: 0; transition: opacity .3s, transform .3s var(--ease); z-index: 2; }
.play-btn svg { margin-left: 3px; }
.proj-card:hover .play-btn { opacity: 1; transform: translate(-50%,-50%) scale(1.08); }

/* Standard proj-img for gradient placeholder cards */
.proj-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, hsl(calc(var(--h,260)*1deg) 40% 10%), hsl(calc(var(--h,260)*1deg + 30) 50% 7%)); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-wide .proj-img { aspect-ratio: 21/8; }
.proj-num { position: absolute; top: 1.2rem; left: 1.4rem; font-family: var(--ff-m); font-size: .65rem; color: rgba(240,237,232,.2); letter-spacing: .1em; }
.proj-overlay { position: absolute; inset: 0; background: rgba(10,10,15,.65); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .4s; }
.proj-card:hover .proj-overlay { opacity: 1; }

.proj-info { padding: 1.5rem; }
.proj-meta { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.proj-meta span { font-family: var(--ff-m); font-size: .65rem; color: var(--ivory30); letter-spacing: .08em; }
.proj-meta span:first-child { color: var(--accent); }
.proj-info h3 { font-family: var(--ff-d); font-size: clamp(1.1rem,2.5vw,1.4rem); font-weight: 700; margin-bottom: .6rem; }
.proj-info p { font-size: .88rem; color: var(--ivory60); line-height: 1.7; margin-bottom: .9rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-tags span { padding: 3px 9px; background: var(--bg4); border: 1px solid var(--border); border-radius: 100px; font-family: var(--ff-m); font-size: .62rem; color: var(--ivory30); letter-spacing: .05em; }

/* Photography-only grid — no info panel, masonry-style */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-card { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 3/4; cursor: default; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.photo-card:hover img { transform: scale(1.04); }
.photo-card.filtered-out { display: none; }
/* Wide photo spanning 2 cols */
.photo-wide { grid-column: span 2; aspect-ratio: 16/10; }

@media (max-width: 768px) {
  .photo-grid { grid-template-columns: repeat(2,1fr); }
  .photo-wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-wide { grid-column: span 1; aspect-ratio: 3/4; }
}

/* Sub-label for photo groups */
.proj-sub-label { font-family: var(--ff-m); font-size: .6rem; color: var(--ivory30); letter-spacing: .12em; text-transform: uppercase; margin: .6rem 0 .5rem; }

/* ── SHOW MORE ───────────────────────────────────────────────── */
.show-more-wrap { display: none; justify-content: center; margin: 1.5rem 0 .5rem; }
.show-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 28px; border: 1px solid var(--border);
  border-radius: 100px; font-family: var(--ff-m); font-size: .72rem;
  letter-spacing: .06em; color: var(--ivory60);
  background: transparent; cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.show-more-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent20); }
.show-more-btn svg { transition: transform .3s; }
.show-more-btn:hover svg { transform: translateY(2px); }
.sm-count { color: var(--accent); font-weight: 600; }
.show-more-hidden { display: none !important; }

/* ── VIDEO LIGHTBOX ──────────────────────────────────────────── */
#video-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
}
#video-lightbox.active { opacity: 1; pointer-events: all; }

.lb-inner {
  position: relative; width: min(92vw, 960px);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}

#lb-video {
  width: 100%; max-height: 80vh;
  border-radius: 10px; background: #000;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
  outline: none; display: none;
}
#lb-video.active { display: block; }

#lb-photo {
  width: 100%; max-height: 82vh;
  border-radius: 10px; object-fit: contain;
  box-shadow: 0 32px 80px rgba(0,0,0,.8);
  display: none; cursor: default;
}
#lb-photo.active { display: block; }

.lb-controls {
  display: flex; gap: .75rem; align-items: center;
}

.lb-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; font-family: var(--ff-m); font-size: .72rem;
  letter-spacing: .06em; color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.06); cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.lb-btn:hover { border-color: var(--accent); color: var(--ivory); background: rgba(139,79,168,.2); }
#lb-close:hover { border-color: rgba(255,80,80,.5); color: #ff6060; background: rgba(255,80,80,.1); }

@media (max-width: 600px) {
  .lb-inner { width: 98vw; }
  #lb-video { max-height: 70vh; border-radius: 6px; }
  .lb-controls { gap: .5rem; }
  .lb-btn { padding: 8px 14px; font-size: .65rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIERE PRO TIMELINE
   ═══════════════════════════════════════════════════════════════ */

#premiere { background: #090909; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
#premiere .sec-title { color: var(--ivory); }
#premiere .sec-desc { margin-bottom: 2.5rem; }

.pp-panel {
  width: 100%;
  background: #1e1e1e;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  font-family: var(--ff-m);
  user-select: none;
  overflow: hidden;
}

.pp-titlebar {
  height: 32px;
  background: #2d2d2d;
  border-bottom: 1px solid #111;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-right: 12px;
}
.pp-tabs { display: flex; align-items: stretch; }
.pp-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  font-size: .65rem; color: #888;
  border-right: 1px solid #111;
  cursor: default;
  transition: background .2s;
}
.pp-tab span { color: #555; font-size: .6rem; }
.pp-tab-active { background: #1e1e1e; color: #ccc; border-bottom: 1px solid #8b4fa8; }
.pp-win-btns { display: flex; align-items: center; gap: 6px; }
.pp-wb { width: 10px; height: 10px; border-radius: 50%; cursor: default; }
.pp-wb-min { background: #e8b020; }
.pp-wb-max { background: #20c020; }
.pp-wb-close { background: #e03030; }

.pp-toolbar {
  height: 36px;
  background: #252525;
  border-bottom: 1px solid #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  gap: 8px;
}
.pp-tools { display: flex; align-items: center; gap: 3px; }
.pp-tool {
  width: 26px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; color: #aaa; font-size: .65rem;
  transition: background .15s, color .15s; cursor: default;
}
.pp-tool:hover { background: #3a3a3a; color: #fff; }
.pp-tool-active { background: #3d3d3d; color: #ddd; }
.pp-sep { width: 1px; height: 18px; background: #333; margin: 0 4px; }
.pp-tc { font-size: .7rem; color: #e0e0e0; background: #1a1a1a; padding: 3px 8px; border-radius: 3px; border: 1px solid #333; letter-spacing: .06em; min-width: 88px; text-align: center; }
.pp-zoom-wrap { display: flex; align-items: center; gap: 6px; }
.pp-zoom-bar { width: 80px; height: 4px; background: #333; border-radius: 100px; position: relative; cursor: default; }
.pp-zoom-thumb { width: 30px; height: 100%; background: #666; border-radius: 100px; position: absolute; left: 10px; }

.pp-body { display: flex; height: 340px; }

.pp-headers { width: 140px; flex-shrink: 0; background: #2a2a2a; border-right: 1px solid #111; display: flex; flex-direction: column; }
.pp-corner { height: 24px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid #111; }
.pp-hdr {
  display: flex; align-items: center; gap: 6px;
  padding: 0 8px; border-bottom: 1px solid #111;
  position: relative; flex-shrink: 0;
}
.pp-hdr-video { height: 48px; }
.pp-hdr-audio { height: 44px; }
.pp-hdr-target { background: #2f2f2f; }
.pp-hdr-controls { display: flex; flex-direction: column; gap: 3px; }
.pp-hc-btn { width: 16px; height: 16px; border-radius: 2px; font-size: .55rem; color: #777; display: flex; align-items: center; justify-content: center; background: #222; border: 1px solid #333; transition: color .15s; cursor: default; }
.pp-hc-btn:hover { color: #bbb; }
.pp-mute, .pp-solo { font-size: .55rem; letter-spacing: 0; }
.pp-hdr-name { font-size: .65rem; color: #bbb; font-weight: 500; letter-spacing: .06em; flex: 1; text-align: center; }
.pp-target-badge { font-size: .55rem; color: #8b4fa8; border: 1px solid #8b4fa8; border-radius: 2px; padding: 1px 4px; }
.pp-audio-div-hdr { height: 16px; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-bottom: 1px solid #111; background: #222; }
.pp-audio-div-hdr span { font-size: .55rem; color: #555; letter-spacing: .1em; }

.pp-timeline-right { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.pp-ruler {
  height: 24px; background: #252525; border-bottom: 1px solid #111;
  position: relative; flex-shrink: 0; cursor: pointer;
}
.pp-ruler:hover { background: #2a2a2a; }
.pp-inout-range { position: absolute; top: 0; height: 100%; background: rgba(139,79,168,.09); pointer-events: none; }
.pp-tick { position: absolute; top: 8px; font-size: .58rem; color: #666; letter-spacing: .04em; transform: translateX(-50%); pointer-events: none; }

.pp-ruler-head {
  position: absolute; top: 0; width: 12px; height: 100%;
  transform: translateX(-50%);
  cursor: ew-resize; pointer-events: all;
}
.pp-ruler-head::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid #dc2626;
}
.pp-ruler-head::after {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: calc(100% - 8px);
  background: #dc2626;
}

.pp-tracks { flex: 1; position: relative; overflow: hidden; background: #1e1e1e; }

.pp-playhead {
  position: absolute; top: 0; bottom: 0;
  width: 1px; background: #dc2626;
  z-index: 20; pointer-events: none;
  box-shadow: 0 0 6px rgba(220,38,38,.4);
}

.pp-track {
  position: relative;
  border-bottom: 1px solid #111;
}
.pp-track-v { height: 48px; background: #1e1e1e; }
.pp-track-v:hover { background: #202020; }
.pp-track-a { height: 44px; background: #1a1a1a; }
.pp-track-a:hover { background: #1c1c1c; }

.pp-audio-divider-line { height: 16px; background: #222; border-top: 1px solid #111; border-bottom: 1px solid #111; }
.pp-audio-div-hdr { height: 16px; }

.pp-clip {
  position: absolute;
  top: 3px; height: calc(100% - 6px);
  border-radius: 3px;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 0 6px;
  gap: 4px;
  transition: filter .2s;
  cursor: default;
  border: 1px solid transparent;
}
.pp-clip:hover { filter: brightness(1.15); z-index: 5; }
.pp-clip-name { font-size: .58rem; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .03em; flex: 1; }

.pp-clip-stripe { width: 2px; height: 60%; border-radius: 1px; flex-shrink: 0; }
.pp-fx-badge { font-size: .48rem; padding: 1px 4px; border-radius: 2px; background: rgba(0,0,0,.4); color: rgba(255,255,255,.6); letter-spacing: .05em; flex-shrink: 0; }

.pp-clip-mogrt { background: linear-gradient(180deg,#4c1d95,#3b0764); border-color: #7c3aed44; }
.pp-clip-mogrt .pp-clip-stripe { background: #a78bfa; }
.pp-clip-mogrt .pp-clip-name { color: rgba(196,168,255,.85); }

.pp-clip-broll { background: linear-gradient(180deg,#164e63,#083344); border-color: #0e749044; }
.pp-clip-broll .pp-clip-stripe { background: #22d3ee; }
.pp-clip-broll .pp-clip-name { color: rgba(103,232,249,.85); }

.pp-clip-aroll { background: linear-gradient(180deg,#1e3a8a,#172554); border-color: #1d4ed844; }
.pp-clip-aroll .pp-clip-stripe { background: #60a5fa; }
.pp-clip-aroll .pp-clip-name { color: rgba(147,197,253,.85); }

.pp-clip-music { background: linear-gradient(180deg,#14532d,#052e16); border-color: #16653444; }
.pp-clip-music .pp-clip-stripe { background: #4ade80; }
.pp-clip-music .pp-clip-name { color: rgba(134,239,172,.85); z-index: 2; position: relative; }

.pp-clip-sfx { background: linear-gradient(180deg,#166534,#052e16); border-color: #15803d44; }
.pp-clip-sfx .pp-clip-stripe { background: #22c55e; }
.pp-clip-sfx .pp-clip-name { color: rgba(134,239,172,.85); z-index: 2; position: relative; }

.pp-clip-dialogue { background: linear-gradient(180deg,#3f6212,#1a2e05); border-color: #65a30d44; }
.pp-clip-dialogue .pp-clip-stripe { background: #a3e635; }
.pp-clip-dialogue .pp-clip-name { color: rgba(190,242,100,.85); z-index: 2; position: relative; }

.pp-clip-selected { border-color: rgba(255,255,255,.4) !important; filter: brightness(1.2); box-shadow: 0 0 0 1px rgba(255,255,255,.2); }

.pp-transition-fx {
  position: absolute; top: 3px; height: calc(100% - 6px);
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.22), rgba(255,255,255,.12));
  border-radius: 2px; z-index: 10; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-size: .5rem; color: rgba(255,255,255,.5);
}
.pp-transition-fx::after { content:'◇'; }

.pp-waveform {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 1.5px; padding: 4px 4px 4px 30px; pointer-events: none; overflow: hidden;
}
.pp-waveform span {
  flex-shrink: 0; width: 1.5px; height: var(--h,50%); border-radius: 1px;
  background: rgba(255,255,255,.2);
}
.pp-clip-music .pp-waveform span  { background: rgba(74,222,128,.35); }
.pp-clip-sfx .pp-waveform span    { background: rgba(34,197,94,.3); }
.pp-clip-dialogue .pp-waveform span { background: rgba(163,230,53,.35); }

.pp-scrollbar { height: 12px; background: #222; border-top: 1px solid #111; position: relative; }
.pp-sb-thumb { position: absolute; left: 4%; width: 40%; height: 100%; background: #3a3a3a; border-radius: 3px; cursor: default; }

.pp-caption { font-size: .82rem; color: var(--ivory30); margin-top: 1.5rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; line-height: 1.8; }
.pp-caption em { color: var(--accent); font-style: italic; }
.pp-caption .mono { color: var(--ivory30); font-size: .68rem; }

/* ── EXPERIENCE TIMELINE ─────────────────────────────────────── */
#timeline {}
.tl-wrap { max-width: 760px; margin: 3rem auto 0; position: relative; display: flex; flex-direction: column; gap: 0; }
.tl-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: linear-gradient(180deg,transparent,var(--border) 10%,var(--border) 90%,transparent); transform: translateX(-50%); }
.tl-item { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: start; padding: 2rem 0; }
.tl-item:nth-child(odd)  .tl-card { grid-column: 1; text-align: right; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; }
.tl-item:nth-child(odd)  .tl-dot  { grid-column: 2; }
.tl-item:nth-child(even) .tl-dot  { grid-column: 2; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); margin-top: 8px; transition: box-shadow .3s; }
.tl-item:hover .tl-dot { box-shadow: 0 0 0 4px rgba(139,79,168,.28); }
.tl-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; transition: border-color .3s; }
.tl-item:hover .tl-card { border-color: rgba(139,79,168,.28); }
.tl-date { color: var(--accent); font-size: .65rem; margin-bottom: .4rem; }
.tl-card h3 { font-family: var(--ff-d); font-size: 1rem; font-weight: 700; margin-bottom: .2rem; }
.tl-org { font-size: .82rem; color: var(--ivory60); font-style: italic; margin-bottom: .6rem; }
.tl-card p { font-size: .82rem; color: var(--ivory60); line-height: 1.7; }

/* ── MARQUEE ─────────────────────────────────────────────────── */
.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); padding: 1.5rem 0; overflow: hidden; }
.marquee-inner { display: flex; align-items: center; gap: 2.5rem; white-space: nowrap; animation: marquee 28s linear infinite; width: max-content; }
.marquee-wrap:hover .marquee-inner { animation-play-state: paused; }
.marquee-inner span { font-family: var(--ff-d); font-style: italic; font-size: clamp(.9rem,2vw,1.3rem); color: var(--ivory30); }
.mdot { color: var(--accent) !important; font-size: .7rem !important; font-style: normal !important; }
@keyframes marquee { from{transform:translateX(0);}to{transform:translateX(-50%);} }

/* ── CONTACT ─────────────────────────────────────────────────── */
#contact { background: var(--bg2); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2.5rem,5vw,5rem); align-items: start; margin-top: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-item .mono { color: var(--accent); }
.contact-item a, .contact-item span:not(.mono) { font-size: 1.05rem; font-weight: 500; }
.contact-item a:hover { color: var(--accent); }
.avail { display: flex; align-items: center; gap: 8px; color: #4ade80; }
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse 2s ease-in-out infinite; }
.socials { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.social-link { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ivory60); transition: color .3s, gap .3s; }
.social-link:hover { color: var(--accent); gap: 14px; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-family: var(--ff-m); font-size: .62rem; color: var(--ivory60); letter-spacing: .08em; text-transform: uppercase; }
.form-group input, .form-group textarea { background: var(--bg3); border: 1px solid var(--border); border-radius: 5px; padding: 12px 14px; font-size: .9rem; color: var(--ivory); outline: none; resize: vertical; transition: border-color .3s, box-shadow .3s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #3a3a4a; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,79,168,.14); }
.form-submit { align-self: flex-start; }
.form-success { display: none; color: #4ade80; font-size: .85rem; padding: 10px 14px; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.2); border-radius: 5px; font-family: var(--ff-m); }
.form-success.show { display: block; }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; align-items: start; }
.footer-logo { font-family: var(--ff-d); font-size: 2rem; font-weight: 800; display: block; margin-bottom: .7rem; }
.footer-tag { font-size: .85rem; color: #555; line-height: 1.8; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.footer-nav a { font-size: .85rem; color: var(--ivory60); transition: color .3s; }
.footer-nav a:hover { color: var(--accent); }
.footer-right { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.footer-right p { font-size: .85rem; color: var(--ivory60); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.back-top { font-family: var(--ff-m); font-size: .65rem; color: var(--ivory30); letter-spacing: .1em; transition: color .3s; }
.back-top:hover { color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-stats { flex-direction: row; position: static; margin: 2rem clamp(1.25rem,4vw,3.5rem) 0; }
  .stat-div { width: 1px; height: auto; }
  .stat { padding: 0 1.2rem; }
  .hero-image-wrap { display: none; }
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .pp-headers { width: 110px; }
  .pp-hdr-name { font-size: .6rem; }
  .pp-target-badge { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 58px; }
  .nav-links {
    position: fixed; inset: 0; top: var(--nav-h);
    background: rgba(10,10,15,.97); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2.5rem; font-size: 1.4rem;
    transform: translateX(100%); transition: transform .5s var(--ease); z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; }
  .nav-btn { display: none; }
  #menu-btn { display: flex; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-image-wrap { display: none; }
  .hero-stats { flex-direction: column; }
  .stat-div { width: auto; height: 1px; }
  .stat { padding: .8rem 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 250px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-wide { grid-column: 1; }
  .proj-wide .proj-img { aspect-ratio: 16/9; }
  .svc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: .8rem 1.8rem; }
  .footer-right { text-align: left; }
  .tl-line { left: 0; }
  .tl-item { grid-template-columns: auto 1fr; gap: 1rem; }
  .tl-item:nth-child(odd) .tl-card,
  .tl-item:nth-child(even) .tl-card { grid-column: 2; text-align: left; }
  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot { grid-column: 1; }
  .pp-body { height: 260px; }
  .pp-hdr-video { height: 38px; }
  .pp-hdr-audio { height: 34px; }
  .pp-track-v { height: 38px; }
  .pp-track-a { height: 34px; }
  .pp-tabs .pp-tab:not(.pp-tab-active) { display: none; }
}

@media (max-width: 480px) {
  .hero-h1 { letter-spacing: -.02em; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero-meta .sep { display: none; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .pp-toolbar { display: none; }
  .pp-headers { width: 80px; }
  .pp-hdr-controls { display: none; }
  .pp-tc { display: none; }
}

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