/* =========================================================
   PULKIT DESWAL — PORTFOLIO
   Design tokens
   ========================================================= */
:root{
  /* Color */
  --void:      #08080c;
  --ink:       #111118;
  --ink-2:     #17171f;
  --ink-3:     #1e1e29;
  --line:      rgba(245,245,247,0.09);
  --line-soft: rgba(245,245,247,0.05);
  --violet:    #8b5cf6;
  --violet-2:  #6d28d9;
  --electric:  #4f9dff;
  --paper:     #f5f5f7;
  --mist:      #9a9aae;
  --mist-dim:  #6a6a7c;

  --grad-brand: linear-gradient(135deg, var(--violet) 0%, var(--electric) 100%);
  --grad-text:  linear-gradient(135deg, #c9b6ff 0%, #8fc2ff 100%);

  /* Type */
  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Layout */
  --max-w: 1240px;
  --section-pad: clamp(72px, 11vw, 160px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --ease: cubic-bezier(.16,.84,.44,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*,*::before,*::after{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
html,body{ background: var(--void); }

body{
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--void);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
button{ font: inherit; color: inherit; background:none; border:none; cursor:pointer; }
ul{ list-style:none; }
::selection{ background: var(--violet); color: var(--paper); }

:focus-visible{
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-inner{ max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.section-inner-wide{ max-width: 1440px; }
.section{ padding: var(--section-pad) 0; position: relative; }

.section-eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before{
  content:''; width: 22px; height: 1px; background: var(--violet);
}
.section-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 780px;
}
.section-sub{
  color: var(--mist);
  font-size: 16px;
  max-width: 560px;
  margin-top: 14px;
}

/* =========================================================
   AMBIENT LAYERS
   ========================================================= */
.noise{
  position: fixed; inset:0; z-index: 2; pointer-events:none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow{
  position: fixed; top:0; left:0; width: 420px; height: 420px;
  border-radius: 50%; pointer-events:none; z-index: 1;
  background: radial-gradient(circle, rgba(139,92,246,0.16) 0%, rgba(79,157,255,0.06) 45%, transparent 70%);
  transform: translate(-50%,-50%);
  transition: opacity .3s ease;
  opacity: 0;
}
@media (hover:hover){ .cursor-glow{ opacity: 1; } }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader{
  position: fixed; inset:0; z-index: 999;
  background: var(--void);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.hidden{ opacity:0; visibility:hidden; }
.preloader-mark{ text-align:center; }
.preloader-logo{
  width: clamp(88px, 11vw, 128px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 34px rgba(139,92,246,0.20));
}

.preloader-bar{
  width: 180px; height: 2px; background: var(--line); margin: 22px auto 10px; overflow:hidden; border-radius: 2px;
}
.preloader-fill{ width:0%; height:100%; background: var(--grad-brand); transition: width .2s linear; }
.preloader-code{ font-family: var(--font-mono); font-size: 11px; color: var(--mist-dim); letter-spacing: .08em; }

/* =========================================================
   SIGNATURE — SCRUB BAR (video-timeline scroll progress)
   ========================================================= */
.scrub-bar{
  position: fixed; top:0; left:0; right:0; z-index: 200;
  display:flex; align-items:center; gap: 14px;
  padding: 10px 18px;
  background: rgba(8,8,12,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.scrub-track{
  position: relative; flex:1; height: 4px; background: var(--ink-3); border-radius: 4px; overflow: visible;
}
.scrub-fill{
  position:absolute; top:0; left:0; height:100%; width:0%;
  background: var(--grad-brand); border-radius: 4px;
}
.scrub-markers{ position:absolute; inset:0; }
.scrub-marker{
  position:absolute; top:-3px; width:1px; height:10px; background: rgba(245,245,247,0.22);
}
.scrub-playhead{
  position:absolute; top:50%; left:0%; width: 12px; height:12px; border-radius:50%;
  background: var(--paper); box-shadow: 0 0 0 3px rgba(139,92,246,0.35), 0 0 14px rgba(139,92,246,0.6);
  transform: translate(-50%,-50%);
}
.scrub-timecode{
  font-family: var(--font-mono); font-size: 11px; color: var(--mist);
  letter-spacing: .04em; white-space:nowrap; min-width: 92px; text-align:right;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar{
  position: fixed; top: 34px; left:50%; transform: translateX(-50%);
  z-index: 180; width: min(1100px, calc(100% - 40px));
  min-height: 52px;
  display:flex; align-items:center; justify-content:space-between;
  padding: 7px 14px 7px 10px;
  background: rgba(12,12,18,0.82);
  border: 1px solid rgba(245,245,247,0.09);
  border-radius: 999px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.025);
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled{ top: 34px; background: rgba(12,12,18,0.9); box-shadow: 0 12px 34px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.03); }
.nav-logo{ width: 34px; height: 34px; flex: 0 0 34px; display:flex; align-items:center; justify-content:center; border-radius:50%; overflow:hidden; }
.nav-logo img{ display:block; width:34px; height:34px; border-radius:50%; object-fit:cover; }
.nav-logo span{ color: var(--violet); }
.nav-links{ display:flex; align-items:center; gap: 28px; margin-inline:auto; }
.nav-links a{ font-size: 14px; color: var(--mist); transition: color .2s ease; position:relative; }
.nav-links a:hover{ color: var(--paper); }
.nav-cta{
  font-size: 13px; padding: 9px 18px; border-radius: 100px;
  background: var(--paper); color: var(--void); font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.nav-cta:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,92,246,0.35); }
.nav-toggle{ display:none; flex-direction:column; gap:5px; width: 22px; }
.nav-toggle span{ height:1.5px; background: var(--paper); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 9px;
  padding: 15px 28px; border-radius: 100px; font-size: 14px; font-weight: 600;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.btn::after{
  content:''; position:absolute; inset:0; z-index:-1;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 60%);
  opacity:0; transform: scale(0.4); transition: opacity .5s ease, transform .5s ease;
}
.btn:active::after{ opacity: 1; transform: scale(1.6); transition: 0s; }
.btn-primary{ background: var(--grad-brand); color: #fff; }
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 14px 30px rgba(139,92,246,0.4); }
.btn-ghost{ background: rgba(245,245,247,0.04); border: 1px solid var(--line); color: var(--paper); }
.btn-ghost:hover{ border-color: rgba(245,245,247,0.3); transform: translateY(-3px); }
.btn-block{ width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative; min-height: 100svh; display:flex; align-items:center;
  padding-top: 110px; overflow: hidden;
}
.hero-gradient{
  position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(79,157,255,0.16), transparent 60%),
    radial-gradient(55% 50% at 15% 85%, rgba(139,92,246,0.18), transparent 60%),
    var(--void);
}
.hero-blobs{ position:absolute; inset:0; z-index:0; filter: blur(70px); }
.blob{ position:absolute; border-radius:50%; opacity:.45; }
.blob-1{ width: 480px; height:480px; background: var(--violet); top:-140px; right:-120px; animation: drift1 22s ease-in-out infinite; }
.blob-2{ width: 380px; height:380px; background: var(--electric); bottom:-140px; left:-100px; animation: drift2 26s ease-in-out infinite; }
@keyframes drift1{ 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-40px, 40px) scale(1.1);} }
@keyframes drift2{ 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(40px, -30px) scale(1.08);} }
.particles{ position:absolute; inset:0; z-index:1; }

.hero-inner{
  position: relative; z-index: 3; max-width: var(--max-w); margin:0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display:grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items:center; width:100%;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .12em; text-transform:uppercase; color: var(--mist);
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 100px; margin-bottom: 24px;
  background: rgba(245,245,247,0.03);
}
.rec-dot{ width:7px; height:7px; border-radius:50%; background:#b8ff00; box-shadow: 0 0 10px rgba(184,255,0,.75); animation: pulseGreen 1.6s ease-in-out infinite; }
@keyframes pulseGreen{ 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.45; transform:scale(.9);} }
@keyframes pulse{ 0%,100%{ opacity:1;} 50%{ opacity:.35;} }

.hero-name{
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(46px, 8vw, 92px); line-height: 0.98; letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.hero-role{
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px);
  background: var(--grad-text); -webkit-background-clip: text; background-clip:text; color:transparent;
  min-height: 1.3em; margin-bottom: 22px;
}
.typed-cursor{ color: var(--violet); animation: blink 1s step-end infinite; -webkit-text-fill-color: var(--violet); }
@keyframes blink{ 50%{ opacity:0; } }

.hero-tagline{ color: var(--mist); font-size: 17px; max-width: 480px; margin-bottom: 34px; }
.hero-actions{ display:flex; gap: 16px; flex-wrap: wrap; }

.hero-portrait{ display:flex; justify-content:center; }
.portrait-frame{
  position: relative; width: min(360px, 80vw); aspect-ratio: 4/5;
  border-radius: var(--radius-lg); overflow:hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.portrait-frame img{ width:100%; height:100%; object-fit: cover; }
.portrait-fallback{
  display:none; position:absolute; inset:0; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight:700; font-size: 90px; color: var(--mist-dim);
}
.portrait-frame.img-missing img{ display:none; }
.portrait-frame.img-missing .portrait-fallback{ display:flex; }
.portrait-tag{
  position:absolute; top:16px; left:16px; display:flex; align-items:center; gap:6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  background: rgba(8,8,12,0.55); border: 1px solid var(--line); padding: 6px 10px; border-radius: 100px;
  backdrop-filter: blur(8px);
}
.portrait-frame-corner{ position:absolute; width: 26px; height: 26px; border-color: rgba(245,245,247,0.5); }
.portrait-frame-corner.tl{ top:12px; right:12px; border-top:2px solid; border-right:2px solid; }
.portrait-frame-corner.br{ bottom:12px; left:12px; border-bottom:2px solid; border-left:2px solid; }

.scroll-cue{
  position:absolute; bottom: 34px; left:50%; transform: translateX(-50%); z-index:3;
  display:flex; flex-direction:column; align-items:center; gap:10px; color: var(--mist);
}
.scroll-cue span{ font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform:uppercase; }
.scroll-cue-line{ width:1px; height: 34px; background: var(--line); position:relative; overflow:hidden; }
.scroll-cue-dot{ position:absolute; top:0; left:-1.5px; width:4px; height:4px; border-radius:50%; background: var(--electric); animation: scrollDot 2s ease-in-out infinite; }
@keyframes scrollDot{ 0%{ top:0; opacity:0;} 15%{ opacity:1;} 85%{ opacity:1;} 100%{ top: 100%; opacity:0;} }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal-up{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in-view{ opacity:1; transform: translateY(0); }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid{ display:grid; grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); gap: 72px; margin-top: 34px; align-items:center; }
.about-photo-wrap{ position:relative; min-height: 520px; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; border-radius: 28px; border:1px solid var(--line); background: linear-gradient(160deg, rgba(245,245,247,.035), rgba(245,245,247,.01)); }
.about-photo-glow{ position:absolute; width:360px; height:360px; border-radius:50%; background:radial-gradient(circle, rgba(139,92,246,.24), rgba(79,157,255,.08) 45%, transparent 72%); filter:blur(8px); }
.about-photo{ position:relative; z-index:1; width:min(82%, 440px); height:auto; max-height:640px; object-fit:contain; object-position:center bottom; filter: drop-shadow(0 24px 36px rgba(0,0,0,.38)); }
.about-copy{ min-width:0; }
.about-lead{
  font-family: var(--font-display); font-weight:600; font-size: clamp(26px, 3vw, 36px);
  line-height:1.25; letter-spacing:-0.01em;
}
.about-lead em{ font-style: normal; background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.about-body p{ color: var(--mist); font-size: 15.5px; margin-bottom: 18px; }
.about-tags{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 22px; }
.about-tags span{
  font-size: 12.5px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line);
  color: var(--paper); background: rgba(245,245,247,0.03);
}
.profile-cv{ margin-top: 8px; }

/* =========================================================
   SKILLS
   ========================================================= */
.skills-grid{
  display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px;
}
.skill-card{
  position:relative; min-height: 194px; padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(245,245,247,0.045), rgba(245,245,247,0.012));
  backdrop-filter: blur(6px); overflow:hidden;
  transition: transform .35s var(--ease), border-color .35s ease, background .35s ease, box-shadow .35s ease;
  opacity:0; transform: translateY(20px);
}
.skill-card::after{
  content:''; position:absolute; width:110px; height:110px; right:-54px; bottom:-60px; border-radius:50%;
  background: radial-gradient(circle, rgba(139,92,246,.22), transparent 68%); pointer-events:none;
}
.skill-card.in-view{ opacity:1; transform: translateY(0); }
.skill-card:hover{ transform: translateY(-6px); border-color: rgba(139,92,246,0.45); background: linear-gradient(160deg, rgba(139,92,246,0.1), rgba(79,157,255,0.035)); box-shadow: 0 18px 36px rgba(0,0,0,.22); }
.skill-card-icon{ width: 36px; height:36px; border-radius: 10px; background: var(--grad-brand); margin-bottom: 22px; display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-size:12px; font-weight:700; box-shadow: 0 8px 18px rgba(107,40,217,.18); }
.skill-card h3{ font-size: 16px; font-weight:600; margin-bottom: 7px; }
.skill-card p{ font-size: 12.5px; line-height:1.65; color: var(--mist-dim); max-width: 34ch; }

/* =========================================================
   SOFTWARE STACK
   ========================================================= */
.ai-tools-grid{
  display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 40px;
}
.ai-tool-card{
  position:relative; min-height: 218px; display:flex; flex-direction:column; align-items:flex-start; text-align:left;
  padding: 22px; border-radius: 18px; border: 1px solid var(--line); overflow:hidden;
  background: linear-gradient(145deg, rgba(245,245,247,.055), rgba(245,245,247,.012));
  transition: transform .35s var(--ease), border-color .35s ease, box-shadow .35s ease, background .35s ease;
  opacity:0; transform: translateY(20px) scale(.97);
}
.ai-tool-card--featured{
  grid-column: span 2;
  min-height: 242px;
  padding: 24px 26px;
  border-color: rgba(139,92,246,.28);
  background:
    radial-gradient(circle at 84% 18%, rgba(79,157,255,.12), transparent 30%),
    linear-gradient(145deg, rgba(139,92,246,.12), rgba(245,245,247,.025) 58%, rgba(79,157,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 45px rgba(0,0,0,.12);
}
.ai-tool-card--featured::before{
  background: linear-gradient(135deg, rgba(139,92,246,.18), transparent 44%, rgba(79,157,255,.09));
}
.ai-tool-card--featured::after{
  left:26px; right:26px; height:3px; opacity:.95;
  background:linear-gradient(90deg,#8b5cf6,#4f9dff);
}
.ai-tool-card--featured:hover{
  border-color:rgba(139,92,246,.55);
  background:
    radial-gradient(circle at 84% 18%, rgba(79,157,255,.16), transparent 30%),
    linear-gradient(145deg, rgba(139,92,246,.16), rgba(245,245,247,.028) 58%, rgba(79,157,255,.055));
}
.ai-tool-card--featured .ai-tool-icon{ width:56px; height:56px; border-radius:16px; font-size:15px; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 12px 30px rgba(107,40,217,.28); }
.ai-tool-card--featured .ai-tool-name{ font-size:22px; }
.ai-tool-card--featured p{ max-width: 48ch; font-size:13px; }
.ai-tool-featured-badge{
  position:absolute; top:18px; right:20px; z-index:2;
  padding:6px 9px; border:1px solid rgba(139,92,246,.32); border-radius:999px;
  background:rgba(139,92,246,.08); color:#bba7ff;
  font-family:var(--font-mono); font-size:9px; letter-spacing:.14em;
}
.ai-tool-card::before{
  content:''; position:absolute; inset:0; background: linear-gradient(135deg, rgba(139,92,246,.11), transparent 42%, rgba(79,157,255,.055)); opacity:.65; pointer-events:none;
}
.ai-tool-card::after{
  content:''; position:absolute; left:22px; right:22px; bottom:0; height:2px; background:var(--tool-accent, var(--grad-brand)); opacity:.75;
}
.ai-tool-card.in-view{ opacity:1; transform: translateY(0) scale(1); }
.ai-tool-card:hover{ transform: translateY(-7px); border-color: rgba(139,92,246,.42); box-shadow: 0 22px 48px rgba(0,0,0,.28); background: linear-gradient(145deg, rgba(139,92,246,.09), rgba(245,245,247,.02)); }
.ai-tool-top{ position:relative; z-index:1; width:100%; display:flex; align-items:center; justify-content:space-between; margin-bottom:26px; }
.ai-tool-index{ font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; color:var(--mist-dim); }
.ai-tool-icon{
  width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background: var(--tool-bg, linear-gradient(140deg, rgba(139,92,246,.28), rgba(79,157,255,.16)));
  border:1px solid rgba(255,255,255,.08); color:#fff;
  font-family:var(--font-display); font-weight:700; font-size:14px; letter-spacing:-.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px rgba(0,0,0,.18);
  transition: transform .35s var(--ease);
}
.ai-tool-card:hover .ai-tool-icon{ transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.ai-tool-name{ position:relative; z-index:1; font-family:var(--font-display); font-size:18px; font-weight:600; line-height:1.2; margin-bottom:8px; }
.ai-tool-card p{ position:relative; z-index:1; font-size:12.5px; line-height:1.6; color:var(--mist-dim); max-width:32ch; }
.ai-tool-tag{ position:relative; z-index:1; display:inline-flex; margin-top:auto; padding-top:14px; font-family:var(--font-mono); font-size:9px; letter-spacing:.14em; color:var(--electric); }
.ai-tool-icon--pr{ --tool-bg:linear-gradient(140deg,#34235f,#18245c); --tool-accent:linear-gradient(90deg,#34235f,#4f9dff); }
.ai-tool-icon--ae{ --tool-bg:linear-gradient(140deg,#32205b,#2b1e65); --tool-accent:linear-gradient(90deg,#8b5cf6,#4f9dff); }
.ai-tool-icon--ps{ --tool-bg:linear-gradient(140deg,#173c61,#17305a); --tool-accent:linear-gradient(90deg,#4f9dff,#7dd3fc); }
.ai-tool-icon--dr{ --tool-bg:linear-gradient(140deg,#493d1c,#3d2f14); --tool-accent:linear-gradient(90deg,#d7b35a,#f59e0b); }
.ai-tool-icon--fc{ --tool-bg:linear-gradient(140deg,#173d49,#16314d); --tool-accent:linear-gradient(90deg,#4f9dff,#5eead4); }

/* =========================================================
   EXPERIENCE — TIMELINE
   ========================================================= */
.timeline{ position:relative; margin-top: 48px; padding-left: 30px; }
.timeline::before{ content:''; position:absolute; left:0; top:6px; bottom:6px; width:1px; background: linear-gradient(var(--violet), var(--electric)); }
.timeline-item{ position:relative; padding-bottom: 48px; opacity:0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.timeline-item.in-view{ opacity:1; transform: translateY(0); }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-dot{ position:absolute; left:-34px; top:4px; width:11px; height:11px; border-radius:50%; background: var(--void); border: 2px solid var(--violet); }
.timeline-item.in-view .timeline-dot{ background: var(--violet); box-shadow: 0 0 0 5px rgba(139,92,246,0.18); }
.timeline-role{ font-size: 12px; font-family: var(--font-mono); color: var(--electric); letter-spacing: .06em; text-transform:uppercase; margin-bottom: 6px; }
.timeline-company{ font-family: var(--font-display); font-weight:600; font-size: 22px; margin-bottom: 12px; }
.timeline-list{ display:flex; flex-wrap:wrap; gap: 9px; }
.timeline-list span{ font-size: 12.5px; color: var(--mist); border: 1px solid var(--line); padding: 6px 12px; border-radius: 100px; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 44px; }
.project-card{
  border-radius: var(--radius-lg); overflow:hidden; border: 1px solid var(--line);
  background: rgba(245,245,247,0.02);
  transition: transform .4s var(--ease), border-color .4s ease, box-shadow .4s ease;
  opacity:0; transform: translateY(24px);
}
.project-card.in-view{ opacity:1; transform: translateY(0); }
.project-card:hover{ transform: translateY(-8px); border-color: rgba(139,92,246,0.4); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.project-media{ position:relative; aspect-ratio: 16/9; background: var(--ink); overflow:hidden; cursor:pointer; }
.project-media img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.project-card:hover .project-media img{ transform: scale(1.06); }
.project-play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(180deg, rgba(8,8,12,0.1), rgba(8,8,12,0.55));
}
.project-play svg{ width: 56px; height:56px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)); transition: transform .3s var(--ease); }
.project-card:hover .project-play svg{ transform: scale(1.12); }
.project-body{ padding: 22px; }
.project-body h3{ font-family: var(--font-display); font-weight:600; font-size: 19px; margin-bottom: 8px; }
.project-body p{ color: var(--mist); font-size: 13.5px; margin-bottom: 14px; }
.project-software{ display:flex; flex-wrap:wrap; gap:7px; }
.project-software span{ font-size: 11px; font-family: var(--font-mono); color: var(--electric); border: 1px solid rgba(79,157,255,0.3); padding: 4px 9px; border-radius:100px; }

/* =========================================================
   CLIENTS — FLOATING CLIENT CONSTELLATION
   ========================================================= */
.clients-constellation{
  position:relative;
  min-height:780px;
  overflow:hidden;
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:110px 0 120px;
}
.clients-constellation::before{
  content:"";
  position:absolute;
  inset:18% 22%;
  z-index:-2;
  border-radius:50%;
  background:radial-gradient(circle, rgba(116,91,255,.11) 0%, rgba(116,91,255,.035) 30%, transparent 68%);
  filter:blur(18px);
}
.clients-constellation::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-3;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 24%, rgba(255,255,255,.018) 24.2%, transparent 24.5%),
    radial-gradient(circle at 50% 50%, transparent 0 40%, rgba(255,255,255,.012) 40.15%, transparent 40.4%);
}
.clients-constellation-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:-1;
}
.clients-orbit{
  position:absolute;
  left:50%;
  top:50%;
  border:1px solid rgba(255,255,255,.055);
  border-radius:50%;
  transform:translate(-50%,-50%);
}
.clients-orbit--one{ width:570px;height:420px; }
.clients-orbit--two{ width:910px;height:600px; }
.clients-orbit--three{ width:1180px;height:730px;border-color:rgba(135,113,255,.045); }

.clients-center{
  position:relative;
  z-index:4;
  width:min(560px, 80vw);
  text-align:center;
  pointer-events:none;
}
.clients-center .section-eyebrow{
  margin:0 0 18px;
}
.clients-center h2{
  margin:0;
  font-size:clamp(42px,5vw,76px);
  line-height:.98;
  letter-spacing:-.055em;
  font-weight:700;
  text-wrap:balance;
}
.clients-center p:last-child{
  margin:22px 0 0;
  color:rgba(170,181,218,.82);
  font-size:clamp(16px,1.4vw,20px);
}

.clients-floats{
  position:absolute;
  inset:0;
  z-index:3;
}
.client-float{
  position:absolute;
  left:50%;
  top:50%;
  width:122px;
  height:100px;
  transform:translate3d(calc(-50% + var(--x)),calc(-50% + var(--y)),0) rotate(var(--r));
  animation:client-drift var(--dur) ease-in-out var(--delay) infinite;
  will-change:transform;
}
.client-float-card{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding:16px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.018));
  box-shadow:0 18px 42px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  transition:transform .3s ease,border-color .3s ease,background .3s ease;
}
.client-float-card img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:68px;
  object-fit:contain;
  opacity:.9;
  filter:grayscale(1) brightness(1.16);
}
@media (hover:hover) and (pointer:fine){
  .client-float:hover{
    z-index:8;
  }
  .client-float:hover .client-float-card{
    transform:scale(1.1) rotate(calc(var(--r) * -1));
    border-color:rgba(143,119,255,.34);
    background:linear-gradient(145deg,rgba(143,119,255,.13),rgba(255,255,255,.035));
  }
  .client-float:hover img{opacity:1;}
}
.client-float--reserved{
  z-index:10;
  width:176px;
  height:142px;
  animation:reserved-pulse 4.8s ease-in-out infinite;
}
.client-reserved{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px dashed rgba(149,126,255,.58);
  border-radius:26px;
  background:radial-gradient(circle at 50% 25%,rgba(129,106,255,.14),rgba(255,255,255,.018) 65%);
  box-shadow:0 0 45px rgba(113,90,255,.08);
}
.client-question{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(156,136,255,.55);
  color:#a996ff;
  font-size:26px;
  font-weight:600;
}
.client-reserved-label{
  max-width:118px;
  text-align:center;
  font-size:11px;
  line-height:1.25;
  letter-spacing:.02em;
  color:rgba(190,198,225,.78);
}

@keyframes client-drift{
  0%,100%{
    transform:translate3d(calc(-50% + var(--x)),calc(-50% + var(--y)),0) rotate(var(--r));
  }
  50%{
    transform:translate3d(calc(-50% + var(--x)),calc(-50% + var(--y) - 10px),0) rotate(calc(var(--r) + 1deg));
  }
}

@media (max-width:1100px){
  .clients-constellation{min-height:720px;}
  .clients-orbit--one{width:480px;height:350px;}
  .clients-orbit--two{width:720px;height:500px;}
  .clients-orbit--three{width:900px;height:620px;}
  .client-float{
    width:106px;
    height:88px;
  }
  .client-float-card{padding:13px;border-radius:18px;}
  .client-float-card img{max-height:58px;}
}

@media (max-width:700px){
  .clients-constellation{
    min-height:auto;
    display:block;
    padding:88px 0 82px;
  }
  .clients-center{
    width:min(500px,calc(100% - 36px));
    margin:0 auto;
  }
  .clients-center h2{font-size:42px;}
  .clients-orbit{display:none;}
  .clients-floats{
    position:relative;
    inset:auto;
    width:min(100% - 24px,560px);
    margin:48px auto 0;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
  .client-float,
  .client-float--reserved{
    position:relative;
    left:auto;
    top:auto;
    width:100%;
    height:88px;
    transform:none;
    animation:client-mobile-drift 6.5s ease-in-out infinite;
  }
  .client-float:nth-child(3n+2){animation-delay:-2.1s;}
  .client-float:nth-child(3n){animation-delay:-4.2s;}
  .client-float-card{border-radius:17px;padding:12px;}
  .client-float-card img{max-height:54px;}
  .client-float--reserved{height:106px;grid-column:2;}
  .client-reserved{border-radius:20px;}
  .client-reserved-label{font-size:10px;}
  @keyframes client-mobile-drift{
    0%,100%{transform:translateY(0);}
    50%{transform:translateY(-5px);}
  }
}

@media (prefers-reduced-motion:reduce){
  .client-float{animation:none;}
}

}
}
}

/* =========================================================
   SHORTS — 3D COVERFLOW
   ========================================================= */
.shorts{ overflow: hidden; }
.coverflow{ position:relative; display:flex; align-items:center; justify-content:center; padding: 30px 0 10px; }
.cf-track{
  position:relative; height: 520px; width: 100%; max-width: 1200px;
  display:flex; align-items:center; justify-content:center;
  perspective: 1400px;
}
.cf-card{
  position:absolute; width: 230px; height: 410px; border-radius: 22px; overflow:hidden;
  border: 1px solid var(--line); background: var(--ink);
  transition: transform .55s var(--ease), opacity .55s var(--ease), filter .55s var(--ease);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  cursor: pointer;
}
.cf-card .cf-thumb{ width:100%; height:100%; object-fit:cover; }
.cf-card .cf-label{
  position:absolute; left:0; right:0; bottom:0; padding: 16px;
  background: linear-gradient(0deg, rgba(8,8,12,0.9), transparent);
  font-size: 13px; font-weight:600;
}
.cf-card .project-play svg{ width:44px; height:44px; }
.cf-arrow{
  width: 44px; height:44px; border-radius:50%; border: 1px solid var(--line);
  background: rgba(245,245,247,0.04); display:flex; align-items:center; justify-content:center;
  font-size: 22px; z-index: 5; transition: background .25s ease, transform .25s ease;
  flex-shrink:0;
}
.cf-arrow:hover{ background: rgba(139,92,246,0.25); transform: scale(1.06); }

/* =========================================================
   PROCESS
   ========================================================= */
.process-line{ margin-top: 48px; display:flex; flex-direction:column; }
.process-step{
  display:flex; align-items:flex-start; gap: 22px; padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  opacity:0; transform: translateX(-16px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.process-step.in-view{ opacity:1; transform: translateX(0); }
.process-step:last-child{ border-bottom:none; }
.process-index{ font-family: var(--font-mono); font-size: 13px; color: var(--mist-dim); width: 34px; flex-shrink:0; }
.process-copy{ flex:1; display:flex; flex-direction:column; gap:7px; }
.process-name{ font-family: var(--font-display); font-weight:600; font-size: clamp(18px,2.4vw,24px); }
.process-desc{ color:var(--mist); font-size:14px; line-height:1.6; max-width:760px; }
.process-connector{ width: 34px; height:1px; background: var(--line); flex-shrink:0; display:none; }

/* =========================================================
   WHY HIRE ME — STATS
   ========================================================= */
.stat-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-top: 44px; }
.stat-card{
  padding: 30px 24px; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(139,92,246,0.07), rgba(245,245,247,0.015));
  opacity:0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.stat-card.in-view{ opacity:1; transform: translateY(0); }
.stat-value{ font-family: var(--font-display); font-weight:700; font-size: clamp(32px,4vw,44px); background: var(--grad-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat-label{ color: var(--mist); font-size: 13.5px; margin-top:6px; }
.track-note{ margin-top: 20px; color: var(--mist-dim); font-family: var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid{ display:grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; margin-top: 44px; }
.contact-form{
  display:flex; flex-direction:column; gap: 18px; padding: 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: rgba(245,245,247,0.02);
}
.field{ display:flex; flex-direction:column; gap: 8px; }
.field label{ font-size: 12.5px; color: var(--mist); }
.field input, .field textarea{
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; color: var(--paper); font-family: var(--font-body); font-size: 14px;
  transition: border-color .25s ease, box-shadow .25s ease;
  resize: vertical;
}
.field input:focus, .field textarea:focus{ border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.18); outline:none; }
.form-note{ font-size: 13px; color: var(--electric); min-height: 18px; }

.contact-side{ display:flex; flex-direction:column; gap: 14px; }
.contact-link{
  display:flex; flex-direction:column; gap: 4px; padding: 20px 22px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: rgba(245,245,247,0.02);
  transition: border-color .3s ease, transform .3s var(--ease);
}
.contact-link:hover{ border-color: rgba(139,92,246,0.45); transform: translateX(4px); }
.contact-link-label{ font-size: 11.5px; text-transform:uppercase; letter-spacing:.1em; color: var(--mist-dim); font-family: var(--font-mono); }
.contact-link-value{ font-size: 15px; font-weight:600; }
.contact-socials{ display:flex; gap: 10px; margin-top: 4px; }
.social-icon{
  width: 42px; height:42px; border-radius:50%; border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-size: 11px;
  transition: background .25s ease, transform .25s ease;
}
.social-icon:hover{ background: var(--grad-brand); transform: translateY(-3px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{ border-top: 1px solid var(--line-soft); padding: 30px 0; }
.footer-inner{
  max-width: var(--max-w); margin:0 auto; padding: 0 clamp(20px,5vw,48px);
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 10px;
  font-size: 13px; color: var(--mist-dim);
}
.footer-top{ transition: color .2s ease; }
.footer-top:hover{ color: var(--paper); }

/* =========================================================
   MODAL / SHOWREEL
   ========================================================= */
.modal{ position: fixed; inset:0; z-index: 500; display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition: opacity .35s ease; }
.modal.open{ opacity:1; pointer-events:auto; }
.modal-backdrop{ position:absolute; inset:0; background: rgba(4,4,8,0.85); backdrop-filter: blur(6px); }
.modal-panel{
  position: relative; width: min(1200px, 92vw); aspect-ratio: 16/9; border-radius: var(--radius-lg);
  overflow:hidden; border: 1px solid rgba(245,245,247,0.14); background: #050509;
  box-shadow: 0 30px 100px rgba(0,0,0,0.65);
  transform: scale(.94); transition: transform .35s var(--ease);
}
.modal.open .modal-panel{ transform: scale(1); }
.modal-video{ width:100%; height:100%; }
.modal-video iframe{ width:100%; height:100%; border:0; display:block; }
.modal-close{
  position:absolute; top:14px; right:14px; z-index:2; width:38px; height:38px; border-radius:50%;
  background: rgba(8,8,12,0.78); border: 1px solid rgba(245,245,247,0.16);
  display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(10px);
  transition: transform .2s ease, background .2s ease;
}
.modal-close:hover{ transform: scale(1.05); background: rgba(139,92,246,0.28); }
body.modal-open{ overflow:hidden; }
@media (max-width: 700px){
  .modal-panel{ width: calc(100vw - 24px); border-radius: 16px; }
  .modal-close{ top:10px; right:10px; width:34px; height:34px; }
}


/* =========================================================
   CV-DRIVEN CONTENT ENHANCEMENTS
   ========================================================= */
.hero-roleline{
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.timeline-date{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 10px;
}
.timeline-summary{
  color: var(--mist);
  font-size: 14px;
  line-height: 1.7;
  max-width: 820px;
  margin-bottom: 14px;
}
.details-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.detail-card{
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(245,245,247,0.035), rgba(245,245,247,0.012));
  opacity:0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .3s ease;
}
.detail-card.in-view{ opacity:1; transform: translateY(0); }
.detail-card:hover{ border-color: rgba(139,92,246,0.38); }
.detail-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}
.detail-card h3{
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.detail-card p{ color: var(--mist); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 640px){
  .hero-roleline{ font-size: 17px; line-height: 1.35; }
  .hero-proof{ font-size:10px; line-height:1.6; max-width:320px; }
  .details-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .skills-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ai-tools-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ai-tool-card--featured{ grid-column: span 2; }
  .hero-inner{ grid-template-columns: 1fr; text-align:center; gap: 50px; }
  .hero-actions{ justify-content:center; }
  .eyebrow{ margin-left:auto; margin-right:auto; }
  .hero-portrait{ order:-1; }
  .about-grid{ grid-template-columns: 1fr; gap: 32px; }
  .about-photo-wrap{ min-height: 440px; }
  .about-photo{ width:min(70%, 360px); }
  .contact-grid{ grid-template-columns: 1fr; }
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

@media (max-width: 640px){
  .skills-grid, .ai-tools-grid{ grid-template-columns: 1fr; }
  .ai-tool-card--featured{ grid-column: span 1; min-height: 220px; padding:22px; }
  .ai-tool-card--featured .ai-tool-name{ font-size:19px; }
  .ai-tool-featured-badge{ top:16px; right:16px; }
  .skill-card{ min-height: 0; }
  .ai-tool-card{ min-height: 205px; }
  .navbar{ top: 34px; width: calc(100% - 24px); min-height: 50px; padding: 6px 10px; }
  .scrub-timecode{ display:none; }
  .hero{ padding-top: 130px; }
  .hero-tagline{ margin-left:auto; margin-right:auto; }
  .cf-card{ width: 190px; height: 340px; }
  .cf-track{ height: 420px; }
  .timeline{ padding-left: 22px; }
  .timeline-dot{ left: -26px; }
}

/* =========================================================
   3D CAMERA HERO — ONE SHARED STICKY STAGE
   ========================================================= */
.camera-hero {
  position: relative;
  width: 100%;
  height: 175vh;
  min-height: 175vh;
  padding: 0 !important;
  margin: 0;
  overflow: visible;
  background: #050508;
  isolation: isolate;
}

/* Everything in the opening sequence uses this exact same 100vh coordinate space. */
.camera-hero-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  z-index: 20;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

.camera-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.camera-hero-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.camera-hero-color {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: #000;
  opacity: .55;
  will-change: opacity;
}

/* Copy is in the SAME sticky stage as the camera, so it cannot drift away from it. */
/* The next section sits above the pinned camera during the final hand-off.
   Its top edge is intentionally a soft veil so the camera appears to fade
   behind the section divider rather than popping out of existence. */
.about {
  position: relative;
  z-index: 30;
  border-top: 1px solid rgba(245,245,247,0.10);
  background: var(--void);
  isolation: isolate;
}

/* The camera is intentionally NOT faded. This opaque mask sits just above
   the About boundary so the pinned camera disappears behind the line,
   creating a physical hand-off instead of an opacity animation. */
.about::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 3px;
  background: var(--void);
  border-top: 1px solid rgba(245,245,247,0.10);
  z-index: 40;
  pointer-events: none;
}

.camera-hero ~ section {
    position: relative;
    z-index: 30;
    background: var(--void);
}

.camera-hero-copy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 96px clamp(32px, 5.8vw, 100px) 80px;
  pointer-events: none;
  will-change: transform, opacity;
}

.camera-hero-copy .eyebrow {
  width: max-content;
  max-width: calc(100vw - 64px);
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 24px;
  white-space: nowrap;
}

.camera-hero-copy h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 126px);
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.065em;
}

.camera-hero-description {
  max-width: 560px;
  margin: 28px 0 32px;
  color: var(--mist);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.camera-hero .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  pointer-events: auto;
}
.camera-hero .hero-actions a,
.camera-hero .hero-actions button {
  pointer-events: auto;
}
.hero-proof{
  margin: -12px 0 28px;
  color: var(--mist-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.hero-proof strong{ color: var(--paper); font-weight:700; }
.hero-proof span{ color: var(--violet); padding: 0 6px; }

.camera-hero .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 100;
  transform: translateX(-50%);
  transition: opacity .15s linear;
  pointer-events: auto;
}

/* Video is a source for THREE.VideoTexture only. */
.camera-hero-video-source {
  position: fixed;
  left: -10px;
  top: -10px;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 800px) {
  .camera-hero {
    height: 175vh;
    min-height: 175vh;
  }

  .camera-hero-copy {
    padding: 110px 22px 90px;
  }

  .camera-hero-copy .eyebrow {
    max-width: calc(100vw - 44px);
    white-space: normal;
  }

  .camera-hero-copy h1 {
    font-size: clamp(48px, 15vw, 82px);
  }

  .camera-hero-description {
    max-width: 390px;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .camera-hero-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .camera-hero-copy h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .camera-hero-description {
    max-width: 340px;
    font-size: 13px;
  }

  .camera-hero .hero-actions {
    gap: 10px;
  }
  .about-photo-wrap{ min-height:380px; border-radius:22px; }
  .about-photo{ width:min(80%, 300px); }
}


/* =========================================================
   PREMIUM SECTION PASS — SELECTED WORK / EXPERIENCE / WHY / CTA
   ========================================================= */

/* Selected Work: make the first piece the visual anchor. */
.projects-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}
.projects-grid .project-card:first-child{
  grid-column: 1 / -1;
  position: relative;
  border-color: rgba(139,92,246,0.24);
  background:
    radial-gradient(circle at 82% 18%, rgba(79,157,255,0.10), transparent 30%),
    linear-gradient(145deg, rgba(139,92,246,0.08), rgba(245,245,247,0.018));
}
.projects-grid .project-card:first-child::before{
  content:'FEATURED WORK';
  position:absolute;
  top:16px;
  left:16px;
  z-index:4;
  padding:7px 10px;
  border:1px solid rgba(139,92,246,0.35);
  border-radius:999px;
  background:rgba(8,8,12,0.72);
  backdrop-filter:blur(10px);
  color:var(--paper);
  font:700 9px/1 var(--font-mono);
  letter-spacing:.14em;
}
.projects-grid .project-card:first-child .project-media{
  aspect-ratio: 21 / 8;
}
.projects-grid .project-card:first-child .project-play svg{
  width:72px;
  height:72px;
}
.projects-grid .project-card:first-child .project-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:28px;
  align-items:end;
  padding:24px 26px 26px;
}
.projects-grid .project-card:first-child .project-body h3{
  font-size:clamp(24px,3vw,34px);
  margin-bottom:7px;
}
.projects-grid .project-card:first-child .project-body p{
  max-width:720px;
  margin-bottom:0;
}
.projects-grid .project-card:first-child .project-software{
  grid-column:2;
  grid-row:1 / span 2;
  justify-content:flex-end;
  align-self:end;
  max-width:280px;
}
.projects-grid .project-card:not(:first-child){
  min-height:100%;
}

/* Experience: turn the timeline into premium editorial cards. */
.timeline{
  margin-top:40px;
  padding-left:30px;
}
.timeline-item{
  padding:26px 28px 24px 30px;
  margin-bottom:18px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:linear-gradient(145deg, rgba(245,245,247,0.035), rgba(245,245,247,0.012));
  box-shadow:0 18px 50px rgba(0,0,0,0.14);
}
.timeline-item:last-child{ margin-bottom:0; }
.timeline-item:hover{
  border-color:rgba(139,92,246,0.34);
  background:linear-gradient(145deg, rgba(139,92,246,0.055), rgba(245,245,247,0.012));
}
.timeline-item:first-child{
  border-color:rgba(79,157,255,0.30);
  background:linear-gradient(145deg, rgba(79,157,255,0.055), rgba(139,92,246,0.035));
}
.timeline-item:first-child::after{
  content:'CURRENT';
  position:absolute;
  top:25px;
  right:26px;
  padding:6px 9px;
  border:1px solid rgba(79,157,255,0.25);
  border-radius:999px;
  color:var(--electric);
  background:rgba(79,157,255,0.07);
  font:700 9px/1 var(--font-mono);
  letter-spacing:.13em;
}
.timeline-dot{ left:-36px; top:30px; }
.timeline-role{ margin-bottom:8px; }
.timeline-company{ font-size:clamp(20px,2.2vw,26px); margin-bottom:8px; padding-right:100px; }
.timeline-date{
  display:inline-flex;
  margin-bottom:14px;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(245,245,247,0.025);
}
.timeline-summary{ max-width:850px; margin-bottom:16px; }
.timeline-list span{ background:rgba(245,245,247,0.015); }

/* Why work with me: four concise reasons, not another software list. */
.why-me-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:42px;
}
.why-me-card{
  position:relative;
  min-height:220px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:linear-gradient(150deg, rgba(139,92,246,0.055), rgba(245,245,247,0.012));
  overflow:hidden;
  opacity:0;
  transform:translateY(18px);
  transition:opacity .6s var(--ease), transform .6s var(--ease), border-color .3s ease, background .3s ease;
}
.why-me-card.in-view{ opacity:1; transform:translateY(0); }
.why-me-card:hover{ border-color:rgba(139,92,246,0.34); background:linear-gradient(150deg, rgba(139,92,246,0.085), rgba(245,245,247,0.018)); }
.why-me-card::after{
  content:'';
  position:absolute;
  right:-30px;
  bottom:-45px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(79,157,255,0.10), transparent 68%);
  pointer-events:none;
}
.why-me-index{ color:var(--mist-dim); font:700 11px var(--font-mono); letter-spacing:.12em; }
.why-me-card h3{ margin-top:32px; font:600 clamp(20px,2.4vw,26px)/1.15 var(--font-display); }
.why-me-card p{ margin-top:10px; max-width:500px; color:var(--mist); font-size:14px; line-height:1.65; }
.why-me-tag{ display:inline-flex; margin-top:22px; color:var(--electric); font:700 9px var(--font-mono); letter-spacing:.14em; }

/* Final CTA: make the contact section feel like a decision point. */
.contact .section-title{ max-width:900px; font-size:clamp(38px,5.6vw,72px); }
.contact .section-sub{ max-width:700px; font-size:17px; line-height:1.65; }
.contact-trust{
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  margin-top:22px;
  color:var(--mist-dim);
  font:11px var(--font-mono);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.contact-trust span{ display:inline-flex; align-items:center; gap:8px; }
.contact-trust b{ color:var(--electric); font-weight:700; }
.contact-grid{ margin-top:34px; }
.contact-form{ box-shadow:0 24px 70px rgba(0,0,0,0.18); }

/* Dark native selects. */
.contact-form select{
  width:100%;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--ink);
  color:var(--paper);
  font:14px var(--font-body);
  color-scheme:dark;
  outline:none;
  cursor:pointer;
}
.contact-form select:focus{ border-color:var(--violet); box-shadow:0 0 0 3px rgba(139,92,246,0.18); }
.contact-form select option{ background:#111118; color:#f5f5f7; }

@media (max-width: 800px){
  .projects-grid{ grid-template-columns:1fr; }
  .projects-grid .project-card:first-child{ grid-column:auto; }
  .projects-grid .project-card:first-child .project-media{ aspect-ratio:16/9; }
  .projects-grid .project-card:first-child .project-body{ display:block; padding:22px; }
  .projects-grid .project-card:first-child .project-body h3{ font-size:24px; }
  .projects-grid .project-card:first-child .project-body p{ margin-bottom:14px; }
  .projects-grid .project-card:first-child .project-software{ justify-content:flex-start; max-width:none; }
  .timeline-item:first-child::after{ position:static; display:inline-flex; margin-top:4px; }
  .timeline-company{ padding-right:0; }
  .why-me-grid{ grid-template-columns:1fr; }
}

@media (max-width: 600px){
  .projects-grid{ gap:16px; margin-top:30px; }
  .logo-marquee{ gap:14px; margin-top:32px; }
  .logo-marquee-track{ --logo-gap:16px; }
  .logo-item{ width:148px; height:72px; flex-basis:148px; padding:8px 12px; }
  .timeline{ padding-left:22px; }
  .timeline-item{ padding:22px 20px 20px 22px; }
  .timeline-dot{ left:-28px; }
  .timeline-item:first-child::after{ margin-bottom:2px; }
  .why-me-card{ min-height:0; }
  .contact-trust{ gap:10px 16px; }
}

.client-float--reserved .client-reserved{
  border-color:rgba(157,134,255,.72);
  background:
    radial-gradient(circle at 50% 28%,rgba(129,106,255,.20),rgba(255,255,255,.028) 68%);
  box-shadow:0 0 55px rgba(113,90,255,.14), inset 0 1px 0 rgba(255,255,255,.06);
}
.client-float--reserved .client-reserved-label{
  max-width:140px;
  font-size:12px;
  color:rgba(211,216,236,.88);
}
@keyframes reserved-pulse{
  0%,100%{transform:translate3d(calc(-50% + var(--x)),calc(-50% + var(--y)),0) rotate(var(--r));}
  50%{transform:translate3d(calc(-50% + var(--x)),calc(-50% + var(--y) - 8px),0) rotate(calc(var(--r) - 1deg));}
}
@media (max-width:1100px){
  .client-float--reserved{
    width:150px;
    height:122px;
  }
}
@media (max-width:700px){
  .client-float--reserved{
    width:100%;
    height:106px;
    animation:client-mobile-drift 6.5s ease-in-out infinite;
  }
}
@media (prefers-reduced-motion:reduce){
  .client-float--reserved{animation:none;}
}

/* Expertise icon refinement */
.skill-card-icon{
  color:#fff;
}
.skill-card-icon svg{
  width:21px;
  height:21px;
  display:block;
}

/* Real tool marks for DaVinci Resolve and Final Cut Pro */
.ai-tool-icon--logo{
  padding:0;
  overflow:hidden;
  background:#111118;
}
.ai-tool-icon--logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.ai-tool-card:hover .ai-tool-icon--logo img{
  transform:none;
}

/* Real application logos */
.ai-tool-icon--logo{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.ai-tool-icon--logo img{
  width:56px;
  height:56px;
  object-fit:contain;
}
.ai-tool-icon--fc.ai-tool-icon--logo img{
  width:60px;
  height:60px;
  transform:scale(1.08);
}
.ai-tool-icon--dr.ai-tool-icon--logo img{
  width:58px;
  height:58px;
}

/* Final application logo treatment */
.ai-tool-icon--logo{
  width:58px !important;
  height:58px !important;
  padding:0 !important;
  border-radius:15px !important;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
.ai-tool-icon--logo img{
  display:block;
  width:58px !important;
  height:58px !important;
  object-fit:contain;
}
.ai-tool-icon--fc.ai-tool-icon--logo img{
  width:60px !important;
  height:60px !important;
}
.ai-tool-icon--dr.ai-tool-icon--logo img{
  width:58px !important;
  height:58px !important;
}

/* Keep application logos exactly as supplied — no recoloring or filters. */
.ai-tool-icon--logo img{
  filter:none !important;
  opacity:1 !important;
  mix-blend-mode:normal !important;
}

/* =========================================================
   SELECTED WORK
   ========================================================= */
.selected-work{
  position:relative;
}
.selected-work-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-top:48px;
}
.selected-work-card{
  min-width:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  box-shadow:0 18px 55px rgba(0,0,0,.18);
  transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.selected-work-card:hover{
  transform:translateY(-4px);
  border-color:rgba(143,117,255,.28);
  box-shadow:0 24px 70px rgba(0,0,0,.24);
}
.selected-work-card--featured{
  grid-column:1 / -1;
}
.selected-work-media{
  position:relative;
  display:block;
  aspect-ratio:16 / 9;
  overflow:hidden;
  background:#09090d;
}
.selected-work-card--featured .selected-work-media{
  aspect-ratio:21 / 9;
}
.selected-work-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.88;
  transition:transform .45s ease,opacity .35s ease;
}
.selected-work-card:hover .selected-work-media img{
  transform:scale(1.025);
  opacity:1;
}
.selected-work-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 45%,rgba(0,0,0,.48));
  pointer-events:none;
}
.selected-work-play{
  position:absolute;
  left:50%;
  top:50%;
  z-index:2;
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  transform:translate(-50%,-50%);
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  background:rgba(8,8,13,.68);
  color:#fff;
  font-size:15px;
  padding-left:2px;
  backdrop-filter:blur(10px);
}
.selected-work-featured-label{
  position:absolute;
  top:18px;
  right:18px;
  z-index:3;
  padding:7px 11px;
  border:1px solid rgba(156,132,255,.35);
  border-radius:999px;
  background:rgba(8,8,13,.62);
  color:#b9a8ff;
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.selected-work-copy{
  padding:22px 22px 24px;
}
.selected-work-meta{
  margin-bottom:8px;
  color:#a99cff;
  font-size:10px;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.selected-work-copy h3{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.15;
}
.selected-work-copy p{
  margin:0;
  max-width:680px;
  color:rgba(170,178,207,.82);
  line-height:1.65;
}
.selected-work-services{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:17px;
}
.selected-work-services span{
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  color:rgba(195,201,224,.78);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
@media (max-width:800px){
  .selected-work-grid{grid-template-columns:1fr;gap:16px;}
  .selected-work-card--featured{grid-column:auto;}
  .selected-work-card--featured .selected-work-media{aspect-ratio:16 / 9;}
}
@media (prefers-reduced-motion:reduce){
  .selected-work-card,.selected-work-media img{transition:none;}
}

.selected-work-media{
  width:100%;
  border:0;
  padding:0;
  font:inherit;
  color:inherit;
  text-align:inherit;
  cursor:pointer;
}
.selected-work-media:focus-visible{
  outline:2px solid rgba(160,140,255,.8);
  outline-offset:-2px;
}

/* Refined short-form coverflow */
.cf-card{ cursor:pointer; }
.cf-card:focus-visible{
  outline:2px solid rgba(153,126,255,.85);
  outline-offset:3px;
}
.cf-card .cf-thumb{
  image-rendering:auto;
}
.cf-label{
  text-shadow:0 2px 12px rgba(0,0,0,.7);
}

/* Mobile short-form swipe navigation */
.cf-track, #shortsTrack {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
@media (max-width:700px){
  .cf-track, #shortsTrack {
    cursor: grab;
  }
  .cf-track:active, #shortsTrack:active {
    cursor: grabbing;
  }
}
