/* ==========================================================================
   JINEET PANCHAL — PORTFOLIO
   Design tokens
   -------------------------------------------------------------------------
   Ink      #12141C   background
   Paper    #F3F0E8   primary text / light surfaces
   Brass    #C9A24B   primary accent (luxury / jewellery lineage)
   Verdant  #4FA490   secondary accent (growth / digital lineage)
   Slate    #8A8F9C   muted text
   Line     #262A35   hairline dividers
   ========================================================================== */

:root{
  --ink: #12141C;
  --ink-2: #191C26;
  --ink-3: #1F2330;
  --paper: #F3F0E8;
  --paper-dim: #D9D5C9;
  --brass: #C9A24B;
  --brass-light: #E0C27A;
  --verdant: #4FA490;
  --slate: #8A8F9C;
  --line: #262A35;

  --font-display: 'Fraunces', serif;
  --font-body: 'Sora', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --ease: cubic-bezier(.22,.68,0,1.01);
}

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

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.lock{ overflow: hidden; }

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ list-style: none; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px){ .container{ padding: 0 20px; } }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before{ content:''; width: 26px; height: 1px; background: var(--brass); display: inline-block; }

h1,h2,h3{ font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }
h2{ font-size: clamp(30px, 4vw, 46px); }
.section-lead{ max-width: 640px; }
.section-lead p{ color: var(--slate); font-size: 17px; margin-top: 14px; }

section{ position: relative; padding: 120px 0; }
@media (max-width: 780px){ section{ padding: 80px 0; } }

.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity: 1; transform: translateY(0); }
.reveal-stagger > *{ opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.in > *{ opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1){ transition-delay: .02s; }
.reveal-stagger.in > *:nth-child(2){ transition-delay: .09s; }
.reveal-stagger.in > *:nth-child(3){ transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4){ transition-delay: .23s; }
.reveal-stagger.in > *:nth-child(5){ transition-delay: .30s; }
.reveal-stagger.in > *:nth-child(6){ transition-delay: .37s; }
.reveal-stagger.in > *:nth-child(7){ transition-delay: .44s; }
.reveal-stagger.in > *:nth-child(8){ transition-delay: .51s; }

/* ---------------- INTRO / LOADER (3D "JP") ---------------- */
#intro{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  perspective: 900px;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
#intro.hide{ opacity: 0; visibility: hidden; pointer-events: none; }
.jp3d{
  position: relative;
  transform-style: preserve-3d;
  display: flex; gap: .05em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 14vw, 160px);
  animation: jpSettle 1.4s var(--ease) both;
}
@keyframes jpSettle{
  0%{ transform: rotateY(-40deg) rotateX(12deg) translateZ(-160px); opacity: 0; }
  60%{ opacity: 1; }
  100%{ transform: rotateY(0deg) rotateX(0deg) translateZ(0); opacity: 1; }
}
.jp3d .letter{
  position: relative;
  color: var(--paper);
  transform-style: preserve-3d;
}
.jp3d .letter::before{
  content: attr(data-ch);
  position: absolute; left: 0; top: 0;
  color: var(--brass);
  transform: translateZ(-14px);
  filter: brightness(.5);
}
.jp3d .letter::after{
  content: attr(data-ch);
  position: absolute; left: 0; top: 0;
  color: var(--brass);
  transform: translateZ(-7px);
  filter: brightness(.7);
}
.intro-tag{
  position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--slate);
  animation: fadeUp .8s var(--ease) .7s both;
}
@keyframes fadeUp{ from{ opacity:0; transform: translate(-50%,10px);} to{ opacity:1; transform: translate(-50%,0);} }

/* ---------------- NAV ---------------- */
header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 22px 0;
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
header.scrolled{ background: rgba(18,20,28,.86); backdrop-filter: blur(10px); border-color: var(--line); padding: 14px 0; }
header .container{ display: flex; align-items: center; justify-content: space-between; }
.logo{ font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: .02em; }
.logo span{ color: var(--brass); }
nav ul{ display: flex; gap: 34px; }
nav a{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--paper-dim); position: relative; padding-bottom: 4px;
}
nav a::after{ content:''; position: absolute; left:0; bottom:0; width:0; height:1px; background: var(--brass); transition: width .35s var(--ease); }
nav a:hover::after{ width: 100%; }
nav a:hover{ color: var(--paper); }
.nav-toggle{ display:none; background:none; border:none; color:var(--paper); font-size: 22px; }
@media (max-width: 780px){
  nav ul{ position: fixed; top: 62px; right: -100%; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); padding: 24px; width: 220px; gap: 20px; transition: right .35s var(--ease); }
  nav ul.open{ right: 20px; }
  .nav-toggle{ display: block; }
}

/* ---------------- HERO ---------------- */
#hero{ min-height: 100vh; display: flex; align-items: center; padding-top: 140px; overflow: hidden; }
.hero-grid{ display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
@media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }

.hero-headline{ font-size: clamp(40px, 6vw, 72px); }
.hero-headline em{ font-style: italic; color: var(--brass); }
.hero-sub{ margin-top: 22px; max-width: 480px; color: var(--paper-dim); font-size: 18px; }
.hero-loc{ margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--slate); letter-spacing: .05em; }
.hero-tags{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.tag{
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  border: 1px solid var(--line); color: var(--paper-dim);
  padding: 7px 13px; border-radius: 30px;
  transition: border-color .3s, color .3s, transform .3s;
}
.tag:hover{ border-color: var(--brass); color: var(--brass-light); transform: translateY(-2px); }

.hero-ctas{ display: flex; gap: 16px; margin-top: 38px; }
.btn{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 2px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-primary{ background: var(--brass); color: var(--ink); }
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(201,162,74,.5); }
.btn-ghost{ border: 1px solid var(--line); color: var(--paper); }
.btn-ghost:hover{ border-color: var(--paper-dim); transform: translateY(-3px); }

.hero-portrait-wrap{ position: relative; display: flex; justify-content: center; }
.hero-portrait{
  position: relative; width: 340px; height: 420px; border-radius: 6px;
  overflow: hidden; border: 1px solid var(--line);
  transition: transform .12s linear;
  background: linear-gradient(155deg, var(--ink-3), var(--ink-2));
}
.hero-portrait img{ width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-size: 90px; color: var(--brass); opacity: .35;
}
.blob{
  position: absolute; border-radius: 50%; filter: blur(2px);
  opacity: .55; pointer-events: none;
}
.blob-1{ width: 90px; height: 90px; background: var(--brass); top: -30px; right: 30px; animation: drift1 9s ease-in-out infinite; }
.blob-2{ width: 46px; height: 46px; background: var(--verdant); bottom: 40px; left: -20px; animation: drift2 7s ease-in-out infinite; }
.blob-3{ width: 24px; height: 24px; background: var(--paper); opacity: .18; bottom: -10px; right: 80px; animation: drift1 11s ease-in-out infinite reverse; }
@keyframes drift1{ 0%,100%{ transform: translate(0,0) rotate(0deg); } 50%{ transform: translate(-14px,18px) rotate(20deg); } }
@keyframes drift2{ 0%,100%{ transform: translate(0,0) rotate(0deg); } 50%{ transform: translate(16px,-14px) rotate(-16deg); } }

.scroll-cue{
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .25em; color: var(--slate);
}
.scroll-cue .line{ width: 1px; height: 30px; background: linear-gradient(var(--brass), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue{ 0%{ transform: scaleY(0); transform-origin: top; } 50%{ transform: scaleY(1); transform-origin: top; } 51%{ transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin: bottom; } }

/* ---------------- ABOUT ---------------- */
.about-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; margin-top: 50px; }
@media (max-width: 900px){ .about-grid{ grid-template-columns: 1fr; gap: 40px; } }
.about-copy p{ margin-bottom: 20px; color: var(--paper-dim); font-size: 16.5px; }
.about-copy strong{ color: var(--paper); font-weight: 600; }
.stats{ display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; align-content: start; }
.stat{ border-top: 1px solid var(--line); padding-top: 16px; }
.stat .num{ font-family: var(--font-display); font-size: 42px; color: var(--brass); }
.stat .label{ font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); letter-spacing: .04em; margin-top: 6px; text-transform: uppercase; }

/* ---------------- WHAT I DO ---------------- */
.do-grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); margin-top: 50px; border: 1px solid var(--line); }
@media (max-width: 900px){ .do-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .do-grid{ grid-template-columns: 1fr; } }
.do-card{
  background: var(--ink); padding: 34px 26px; position: relative;
  transition: background .35s;
  transform-style: preserve-3d;
}
.do-card:hover{ background: var(--ink-2); }
.do-num{ font-family: var(--font-mono); font-size: 11px; color: var(--slate); }
.do-card h3{ font-family: var(--font-body); font-weight: 600; font-size: 17px; margin-top: 16px; }
.do-card p{ font-size: 14px; color: var(--slate); margin-top: 10px; line-height: 1.55; }

/* ---------------- EXPERIENCE ---------------- */
.timeline{ position: relative; margin-top: 60px; padding-left: 40px; }
.timeline-svg{ position: absolute; left: 0; top: 0; height: 100%; width: 2px; }
.timeline-line{ stroke: var(--line); stroke-width: 2; }
.timeline-line-fill{ stroke: var(--brass); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1.6s var(--ease); }
.timeline.in .timeline-line-fill{ stroke-dashoffset: 0; }
.role{ position: relative; padding-bottom: 60px; }
.role:last-child{ padding-bottom: 0; }
.role::before{
  content:''; position: absolute; left: -45px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--brass);
}
.role-head{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.role-head h3{ font-family: var(--font-body); font-size: 20px; font-weight: 600; }
.role-period{ font-family: var(--font-mono); font-size: 12px; color: var(--slate); }
.role-org{ color: var(--brass); font-size: 14px; margin-bottom: 14px; }
.role ul{ display: flex; flex-direction: column; gap: 9px; max-width: 720px; }
.role li{ color: var(--paper-dim); font-size: 15px; padding-left: 18px; position: relative; }
.role li::before{ content:'—'; position: absolute; left: 0; color: var(--verdant); }

/* ---------------- EDUCATION ---------------- */
.edu-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; margin-top: 50px; }
@media (max-width: 780px){ .edu-grid{ grid-template-columns: 1fr; } }
.edu-card{ border: 1px solid var(--line); padding: 28px; transition: transform .3s var(--ease), border-color .3s; }
.edu-card:hover{ transform: translateY(-4px); border-color: var(--brass); }
.edu-card h3{ font-family: var(--font-body); font-size: 16.5px; font-weight: 600; }
.edu-card .org{ color: var(--brass); font-size: 13.5px; margin-top: 6px; }
.edu-card .meta{ font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); margin-top: 10px; }
.cert-list{ margin-top: 60px; }
.cert-list h3{ font-family: var(--font-mono); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--slate); margin-bottom: 22px; }
.cert-row{ display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14.5px; flex-wrap: wrap; }
.cert-row:last-child{ border-bottom: 1px solid var(--line); }
.cert-row .c-name{ color: var(--paper); }
.cert-row .c-meta{ color: var(--slate); font-family: var(--font-mono); font-size: 12.5px; }

/* ---------------- WORK ---------------- */
.work-filters{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; margin-bottom: 46px; }
.filter-btn{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 10px 18px; border-radius: 30px; color: var(--slate);
  transition: all .3s var(--ease);
}
.filter-btn.active, .filter-btn:hover{ border-color: var(--brass); color: var(--brass-light); }

.work-grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; perspective: 1200px; }
@media (max-width: 940px){ .work-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .work-grid{ grid-template-columns: 1fr; } }

.work-card{
  position: relative; border: 1px solid var(--line); background: var(--ink-2);
  overflow: hidden; cursor: pointer; transition: box-shadow .35s var(--ease), border-color .35s;
  transform-style: preserve-3d; opacity: 0; transform: translateY(20px);
}
.work-card.show{ animation: cardIn .6s var(--ease) forwards; }
@keyframes cardIn{ to{ opacity: 1; transform: translateY(0); } }
.work-card:hover{ border-color: var(--brass); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.work-thumb{ position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ink-3); }
.work-thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work-card:hover .work-thumb img{ transform: scale(1.06); }
.work-thumb .play{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(18,20,28,.15);
}
.play-icon{ width: 52px; height: 52px; border-radius: 50%; background: rgba(18,20,28,.65); border: 1px solid var(--brass); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.play-icon::before{ content:''; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--brass); margin-left: 3px; }
.work-cat-badge{
  position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; background: rgba(18,20,28,.75); color: var(--brass-light); padding: 5px 10px; border-radius: 30px; border: 1px solid var(--line);
}
.work-body{ padding: 20px 22px 24px; }
.work-client{ font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--verdant); }
.work-title{ font-family: var(--font-body); font-weight: 600; font-size: 16px; margin-top: 8px; }
.work-desc{ font-size: 13.5px; color: var(--slate); margin-top: 8px; line-height: 1.5; }
.work-visit{ margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--brass); display: inline-flex; align-items: center; gap: 6px; }

/* Lightbox */
#lightbox{
  position: fixed; inset: 0; background: rgba(10,11,16,.92); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
#lightbox.open{ opacity: 1; visibility: visible; }
.lb-inner{ max-width: 900px; width: 100%; max-height: 86vh; }
.lb-media{ width: 100%; max-height: 66vh; display: flex; align-items: center; justify-content: center; background: var(--ink-2); border: 1px solid var(--line); }
.lb-media img, .lb-media video{ width: 100%; max-height: 66vh; object-fit: contain; }
.lb-info{ padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lb-info h3{ font-family: var(--font-body); font-size: 18px; }
.lb-info .lb-client{ color: var(--verdant); font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.lb-info p{ color: var(--slate); font-size: 14px; max-width: 560px; margin-top: 6px; }
.lb-close{
  position: absolute; top: 26px; right: 32px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--paper); background: transparent; font-size: 18px;
  display: flex; align-items: center; justify-content: center; transition: border-color .3s, transform .3s;
}
.lb-close:hover{ border-color: var(--brass); transform: rotate(90deg); }

/* ---------------- CONTACT ---------------- */
#contact{ text-align: center; }
.contact-inner{ max-width: 640px; margin: 0 auto; }
.contact-links{ display: flex; justify-content: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.mag-btn{
  position: relative; font-family: var(--font-mono); font-size: 13px; letter-spacing: .05em;
  border: 1px solid var(--line); padding: 16px 28px; border-radius: 2px; transition: border-color .3s, background .3s;
}
.mag-btn:hover{ border-color: var(--brass); background: rgba(201,162,74,.06); }

footer{ border-top: 1px solid var(--line); padding: 34px 0; }
footer .container{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer p{ font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); }
