/* ============================================================
   SAEED AHMED — PORTFOLIO
   Design tokens: paper / clay-purple / clay-yellow / coral
   Playful 3D-clay, bold condensed type, floating blob motif
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500&display=swap');

:root{
  --paper:      #100E17;
  --paper-2:    #1C1926;
  --ink:        #F5F1E7;
  --ink-soft:   #B6B0C4;
  --ink-faint:  #726C82;
  --line:       #2B2736;
  --shadow:     #06050A;

  --purple:     #7B5CFA;
  --purple-dp:  #5936E0;
  --purple-lt:  #B3A0FF;
  --purple-tint:#241C3F;
  --yellow:     #FFC53D;
  --yellow-tint:#332911;
  --coral:      #FF6B52;
  --coral-tint: #35201A;
  --mint:       #37D6A4;

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;
  --font-mono:    'Poppins', sans-serif;

  --container: 1180px;
  --edge: clamp(20px, 5vw, 64px);
  --r-lg: 32px;
  --r-md: 20px;
  --r-sm: 12px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family:var(--font-display); font-weight:700; margin:0; line-height:0.98;
  text-transform:uppercase; letter-spacing:.005em;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

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

.wrap{ max-width:var(--container); margin:0 auto; padding:0 var(--edge); }

/* ---------- floating blobs (signature element) ---------- */
@keyframes blobFloat{
  0%{ transform:translate(0,0) rotate(0deg) scale(1); border-radius:62% 38% 55% 45%/48% 42% 58% 52%; }
  25%{ transform:translate(22px,-30px) rotate(14deg) scale(1.1); border-radius:45% 55% 40% 60%/55% 45% 55% 45%; }
  50%{ transform:translate(-6px,-46px) rotate(-4deg) scale(.94); border-radius:55% 45% 65% 35%/40% 62% 38% 60%; }
  75%{ transform:translate(-24px,-14px) rotate(-12deg) scale(1.06); border-radius:38% 62% 45% 55%/58% 40% 60% 42%; }
  100%{ transform:translate(0,0) rotate(0deg) scale(1); border-radius:62% 38% 55% 45%/48% 42% 58% 52%; }
}
.blob{
  position:absolute; z-index:0;
  animation:blobFloat 8s ease-in-out infinite;
  pointer-events:none;
  transition:transform .3s ease;
  display:flex; align-items:center; justify-content:center;
  /* 3D clay shading: top-left glossy highlight + bottom-right deep shadow + soft ambient occlusion + drop shadow to lift off page */
  background-image:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.85) 0%, rgba(255,255,255,.35) 14%, rgba(255,255,255,0) 32%),
    radial-gradient(circle at 72% 78%, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 55%);
  background-blend-mode:soft-light, multiply;
  box-shadow:
    inset 8px 10px 18px rgba(255,255,255,.5),
    inset -10px -14px 22px rgba(0,0,0,.28),
    0 18px 26px -10px rgba(20,15,40,.35);
}
.blob.purple{ background-color:var(--purple); border-radius:62% 38% 55% 45%/48% 42% 58% 52%; }
.blob.yellow{ background-color:var(--yellow); border-radius:45% 55% 40% 60%/55% 45% 55% 45%; animation-duration:6.5s; animation-delay:-3s; }
.blob.coral{ background-color:var(--coral); border-radius:55% 45% 60% 40%/40% 60% 40% 60%; animation-duration:9.5s; animation-delay:-5s; }
.blob.mint{ background-color:var(--mint); border-radius:40% 60% 45% 55%/60% 40% 60% 40%; animation-duration:7s; animation-delay:-1.5s; }
.blob svg{
  width:46%; height:46%;
  color:var(--ink);
  opacity:.95;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.35));
}
.hero .blob, .cta-banner .blob{ animation:blobFloat 8s ease-in-out infinite, popIn .7s cubic-bezier(.3,1.4,.5,1) both; }

/* ---------- entrance animation ---------- */
@keyframes riseIn{
  from{ opacity:0; transform:translateY(28px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes popIn{
  0%{ opacity:0; transform:scale(.6) rotate(-8deg); }
  70%{ opacity:1; transform:scale(1.08) rotate(2deg); }
  100%{ opacity:1; transform:scale(1) rotate(0deg); }
}
.blob.img-blob{
  background-color:transparent;
  background-image:none;
  box-shadow:none;
}
.blob.img-blob img{
  width:72%;
  height:72%;
  object-fit:contain;
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.4));
}
@keyframes imgBlobOrbit{
  0%{ transform:translate(0,0) rotate(0deg); }
  25%{ transform:translate(14px,-14px) rotate(6deg); }
  50%{ transform:translate(0,-24px) rotate(0deg); }
  75%{ transform:translate(-14px,-14px) rotate(-6deg); }
  100%{ transform:translate(0,0) rotate(0deg); }
}
.blob.img-blob{
  animation:imgBlobOrbit 6s ease-in-out infinite !important;
}

/* ---------- scroll motion (JS sets transform/opacity inline per scroll frame — see main.js) ---------- */
.section-head, .lede, .stat-row, .preview-card,
.cta-banner h2, .cta-banner p,
.about-portrait, .about-lede, .about-body p, .skill-tags span,
.timeline-item, .mini-list li,
.filter-bar, .work-card, .note-card,
.contact-list li, .form-field{
  transition:transform .12s linear, opacity .12s linear;
  will-change:transform, opacity;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--purple-lt);
  display:flex; align-items:center; gap:10px;
  font-weight:800;
}
.eyebrow::before{
  content:"";
  width:9px; height:9px; border-radius:50%;
  background:var(--coral);
  display:inline-block; flex:none;
  animation:dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse{
  0%,100%{ transform:scale(1); }
  50%{ transform:scale(1.5); }
}

/* ---------- registration mark -> clay dot ---------- */
.regmark{
  position:relative;
  width:22px; height:22px;
  flex:none;
  display:flex; align-items:center; justify-content:center;
}
.regmark::before{ content:none; }
.regmark::after{ content:none; }
.regmark-circle{
  width:12px; height:12px; border-radius:50%;
  background:var(--yellow);
  border:2px solid var(--ink);
}

.frame-corners{ position:relative; border-radius:var(--r-lg); overflow:hidden; }
.frame-corners::before,.frame-corners::after,
.frame-corners .fc-tr,.frame-corners .fc-bl{ content:none; }

/* ---------- CMYK divider -> blob dot divider ---------- */
.cmyk-divider{
  display:flex; align-items:center; gap:10px;
  margin:0 auto;
  width:fit-content;
  padding: 24px 0;
}
.cmyk-divider .dot{ width:8px; height:8px; border-radius:50%; }
.cmyk-divider .dot.c{ background:var(--purple); }
.cmyk-divider .dot.m{ background:var(--coral); }
.cmyk-divider .dot.y{ background:var(--yellow); }
.cmyk-divider .dot.k{ background:var(--mint); }
.cmyk-divider .line{ width:48px; height:2px; border-radius:2px; background:var(--line); }

/* ---------- nav (floating pill) ---------- */
.site-header{
  position:fixed; top:16px; left:0; right:0; z-index:100;
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
  background:var(--paper-2);
  border:2px solid var(--ink);
  border-radius:999px;
  padding:0 12px 0 26px;
  box-shadow:0 4px 0 var(--shadow);
}
.logo{
  font-family:var(--font-display);
  font-size:17px; letter-spacing:.02em; text-transform:uppercase; font-weight:700;
  display:flex; flex-direction:column; line-height:1.15;
  transition:transform .3s cubic-bezier(.4,1.8,.6,1);
  transform-origin:left center;
}
.logo:hover{ transform:rotate(-2deg) scale(1.03); }
@keyframes wiggle{
  0%,100%{ transform:rotate(0deg); }
  25%{ transform:rotate(-4deg); }
  75%{ transform:rotate(4deg); }
}
.logo small{
  font-family:var(--font-mono); font-size:9px; letter-spacing:.14em;
  color:var(--purple-lt); text-transform:uppercase; margin-top:2px; font-weight:700;
}
.nav-links{ display:flex; gap:8px; align-items:center; }
.nav-links a{
  font-family:var(--font-body); font-size:14px; font-weight:600;
  color:var(--ink-soft);
  padding:10px 18px; border-radius:999px;
  transition:background .2s ease, color .2s ease;
}
.nav-links a.active,.nav-links a:hover{ color:var(--ink); background:var(--paper); }
.nav-links a.active{ background:var(--yellow); }
.nav-toggle{ display:none; background:var(--ink); color:var(--paper); border:none; width:44px; height:44px; border-radius:50%; font-size:18px; cursor:pointer; }

@media (max-width: 760px){
  .site-header .wrap{ padding:0 8px 0 20px; margin:0 14px; width:auto; }
  .nav-links{
    position:fixed; top:104px; left:16px; right:16px; bottom:16px;
    background:var(--paper-2); border:2px solid var(--ink); border-radius:var(--r-lg);
    flex-direction:column; justify-content:flex-start;
    padding:28px; gap:14px;
    transform:translateY(-12px); opacity:0; visibility:hidden;
    transition:transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .nav-links.open{ transform:translateY(0); opacity:1; visibility:visible; }
  .nav-links a{ font-size:20px; padding:14px 18px; }
  .nav-toggle{ display:block; }
}

/* ---------- buttons ---------- */
.btn{
  font-family:var(--font-body); font-size:14px; font-weight:700;
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 28px;
  border:2px solid var(--ink);
  border-radius:999px;
  color:var(--ink);
  background-color:var(--paper-2);
  background-image:linear-gradient(to bottom, rgba(255,255,255,.9), rgba(255,255,255,0) 55%);
  box-shadow:0 4px 0 var(--shadow);
  transition:transform .18s cubic-bezier(.4,1.6,.6,1), box-shadow .18s ease, background .2s ease;
}
.btn:hover{ transform:translate(-1px,2px) rotate(-1deg); box-shadow:0 2px 0 var(--shadow); background-color:var(--yellow-tint); }
.btn:active{ transform:translate(0,4px); box-shadow:0 0 0 var(--shadow); }
.btn.solid{ background-color:var(--purple); background-image:linear-gradient(to bottom, rgba(255,255,255,.4), rgba(255,255,255,0) 55%); color:#fff; }
.btn.solid:hover{ background-color:var(--purple-dp); }

/* ---------- footer ---------- */
.site-footer{
  padding:56px var(--edge) 40px;
  margin-top:120px;
  background:var(--paper-2);
}
.site-footer .wrap{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:32px;
  padding:0;
}
.footer-col h4{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--purple-lt); margin-bottom:14px; font-weight:700;
}
.footer-col a, .footer-col p{
  display:block; color:var(--ink-soft); font-size:14px; margin-bottom:8px;
}
.footer-col a:hover{ color:var(--ink); }
.footer-bottom{
  text-align:center; margin-top:48px; font-family:var(--font-mono);
  font-size:11px; color:var(--ink-faint); letter-spacing:.05em;
}

/* ---------- section shells ---------- */
.section{ padding:120px 0; position:relative; }
.hero + .section{ padding-top:20px; padding-bottom:40px; }
.section.tight{ padding:80px 0; }
.section-head{ margin-bottom:56px; max-width:640px; }
.section-head h2{ font-size:clamp(30px,4vw,46px); margin-top:16px; }
.section-alt{ background:var(--paper-2); }

/* ---------- utility ---------- */
.text-stone{ color:var(--ink-faint); }
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.gold{ color:var(--purple-lt); }

/* ============================================================
   HOME — HERO SLIDER
   ============================================================ */
.hero{
  position:relative; min-height:100vh; display:flex; flex-direction:column; justify-content:center;
  padding-top:110px; overflow:hidden;
}

/* ---------- hero character illustration ---------- */
@keyframes charFloat{
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-20px) rotate(1.2deg); }
}
.hero-character{
  position:relative;
  width:170px;
  max-width:60vw;
  margin:0 auto -10px;
  pointer-events:none;
  z-index:1;
}
.hero-character-inner{
  animation:charFloat 5s ease-in-out infinite;
}
.hero-character-inner img{
  width:100%; height:auto; display:block;
  filter:drop-shadow(0 30px 34px rgba(6,5,10,.55));
  -webkit-mask-image:linear-gradient(to bottom, #000 72%, transparent 96%);
  mask-image:linear-gradient(to bottom, #000 72%, transparent 96%);
}
.hero-slide p{ color:var(--ink-soft); max-width:480px; margin:22px 0 32px; font-size:17px; line-height:1.6; font-weight:600; }
.hero-slide p{ position:relative; z-index:2; }

@media (min-width:901px){
  .hero-character{
    position:absolute;
    right:clamp(-10px, 1vw, 20px); top:50%; bottom:auto; left:auto;
   transform:translateY(-50%);
    width:clamp(320px, 36vw, 620px);
    max-width:none;
    max-height:68vh;
    margin:0;
  }
  .hero-character-inner{ height:100%; display:flex; align-items:center; }
   .hero-character-inner img{
    width:auto; height:100%; max-height:68vh; max-width:100%;
    object-fit:contain;
  }
}

.hero-slides{ position:relative; }
.hero-slide{
  position:absolute; inset:0; opacity:0; pointer-events:none;
  transition:opacity .6s ease;
}
.hero-slide.is-active{ position:relative; opacity:1; pointer-events:auto; }
.hero-slide-bg{ display:none; }
.hero-slide-content{ position:relative; z-index:2; padding:60px var(--edge) 40px; }
.hero-slide.is-active .hero-slide-num{ animation:riseIn .6s cubic-bezier(.2,.8,.3,1.2) both; }
.hero-slide.is-active h2{ animation:riseIn .7s .08s cubic-bezier(.2,.8,.3,1.2) both; }
.hero-slide.is-active p{ animation:riseIn .7s .16s cubic-bezier(.2,.8,.3,1.2) both; }
.hero-slide.is-active .btn{ animation:riseIn .7s .24s cubic-bezier(.2,.8,.3,1.2) both; }
.hero-slide-num{
  font-family:var(--font-mono); font-size:12px; letter-spacing:.14em; color:var(--purple-lt);
  display:flex; align-items:center; gap:10px; margin-bottom:24px; font-weight:700; text-transform:uppercase;
}
.hero-slide h2{
  font-size:clamp(46px,9vw,110px); text-transform:uppercase; font-weight:700;
  word-spacing:-0.15em; letter-spacing:-0.01em;
}
.hero-slide h2 em{ font-style:normal; color:var(--purple); -webkit-text-stroke:0; display:inline-block; }
.hero-slide p{ color:var(--ink-soft); max-width:480px; margin:22px 0 32px; font-size:17px; line-height:1.6; font-weight:600; }
.hero-scroll{ display:none; }
.hero-controls{
  position:relative; z-index:2;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px;
  padding:24px var(--edge) 0; margin-top:20px;
  max-width:var(--container); margin-left:auto; margin-right:auto;
  box-sizing:border-box;
}
.hero-dots{ display:flex; flex-wrap:wrap; gap:10px; }
.hero-dot{
  font-family:var(--font-body); font-size:13px; font-weight:700;
  padding:10px 20px; border-radius:999px; border:2px solid var(--ink);
  background:var(--paper-2); color:var(--ink-soft); cursor:pointer;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.hero-dot:hover{ transform:translateY(-3px) rotate(-2deg); }
.hero-dot.is-active{ background:var(--ink); color:var(--paper); }
.hero-progress{ font-family:var(--font-mono); font-size:12px; color:var(--ink-faint); }

@media (max-width:640px){
  .hero-controls{ padding:20px 20px 0; gap:10px; }
  .hero-dot{ padding:8px 14px; font-size:12px; }
}

/* ============================================================
   HOME — INTRO
   ============================================================ */
.intro-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:70px; align-items:center; }
.lede{ font-family:var(--font-display); text-transform:none; font-size:clamp(18px,2vw,24px); line-height:1.5; font-weight:400; letter-spacing:0; }
.stat-list{ display:flex; flex-direction:column; gap:5px; }
.stat-row{
  position:relative;
  display:flex; align-items:center; gap:22px;
  padding:18px 90px 18px 24px; border:1px solid rgba(255,255,255,.22); border-radius:28px;
  background:var(--paper-2);
  overflow:hidden;
  box-shadow:
    0 3px 0 -1px var(--shadow),
    0 3px 0 var(--shadow),
    0 10px 18px -6px rgba(0,0,0,.55),
    inset -8px -10px 18px rgba(0,0,0,.22),
    inset 6px 8px 14px rgba(255,255,255,.06);
  transition:transform .2s cubic-bezier(.4,1.6,.6,1), box-shadow .2s ease;
}
.stat-row::before{
  content:"";
  position:absolute; top:-30px; right:-30px;
  width:110px; height:110px; border-radius:50%;
  background:var(--purple); opacity:.18;
}
.stat-row:nth-child(2)::before{ background:var(--yellow); }
.stat-row:nth-child(3)::before{ background:var(--coral); }
.stat-row:hover{
  transform:translateY(-3px);
  box-shadow:
    0 1px 0 -1px var(--shadow),
    0 1px 0 var(--shadow),
    0 16px 24px -8px rgba(0,0,0,.6),
    inset -8px -10px 18px rgba(0,0,0,.22),
    inset 6px 8px 14px rgba(255,255,255,.06);
}
.stat-row .num{ font-family:var(--font-display); font-weight:900; font-size:44px; color:var(--purple); flex:none; position:relative; z-index:1; }
.stat-row:nth-child(2) .num{ color:var(--yellow); }
.stat-row:nth-child(3) .num{ color:var(--coral); }
.stat-row .label{ font-size:15px; color:var(--ink-soft); font-weight:500; line-height:1.5; position:relative; z-index:1; }
.stat-tag{
  position:absolute; bottom:12px; right:22px; z-index:1;
  font-size:10px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-faint); font-weight:700;
}
@media (max-width:860px){ .intro-grid{ grid-template-columns:1fr; gap:40px; } }

/* brand strip */
.brand-strip{
  display:flex; flex-wrap:wrap; gap:12px;
  padding:12px 0;
}
   section:has(> .brand-strip) + .section{ padding-top:30px; }
.brand-strip span{
  font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-soft); padding:12px 20px; border:2px dashed var(--line); border-radius:999px;
  font-weight:700;
}

/* work preview grid (home) */
.preview-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
  max-width:var(--container); margin:0 auto; padding:0 var(--edge);
}
.preview-card{
  position:relative;
  aspect-ratio:1/1;
  background-color:var(--purple);
  background-image:radial-gradient(circle at 22% 18%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 40%);
  border:2px solid var(--ink); border-radius:var(--r-lg);
  padding:26px;
  display:flex; flex-direction:column; justify-content:flex-end;
  overflow:hidden;
  box-shadow:0 6px 0 var(--shadow), inset -8px -12px 20px rgba(0,0,0,.16), inset 6px 8px 14px rgba(255,255,255,.35);
  transition:transform .2s ease, box-shadow .2s ease;
}
.preview-card-img{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; object-fit:cover;
}
.preview-card:nth-child(2){ background-color:var(--yellow); }
.preview-card:nth-child(3){ background-color:var(--coral); }
.preview-card:nth-child(4){ background-color:var(--mint); }
.preview-card:nth-child(5){ background-color:var(--purple); }
.preview-card:nth-child(6){ background-color:var(--yellow); }
.preview-card .tag{ font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink); margin-bottom:8px; font-weight:700; opacity:.7;}
.preview-card h4{ font-size:21px; font-weight:800; color:var(--ink); text-transform:uppercase; }
.preview-card{ transition:transform .2s cubic-bezier(.4,1.6,.6,1), box-shadow .2s ease; }
.preview-card:hover{ transform:translate(-2px,3px) rotate(-1deg) scale(1.02); box-shadow:0 3px 0 var(--shadow), inset -8px -12px 20px rgba(0,0,0,.16), inset 6px 8px 14px rgba(255,255,255,.35); }
@media (max-width:820px){ .preview-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .preview-grid{ grid-template-columns:1fr; } }

/* CTA banner */
.cta-banner{
  text-align:center;
  padding:100px var(--edge);
  position:relative; overflow:hidden;
  background:var(--purple-tint);
}
.cta-banner h2{ font-size:clamp(34px,6vw,68px); position:relative; z-index:1; }
.cta-banner p{ color:var(--ink-soft); margin:18px 0 36px; font-weight:600; position:relative; z-index:1; }
.cta-banner .btn{ position:relative; z-index:1; }

/* ============================================================
   INNER PAGE HERO (About / Work / Contact)
   ============================================================ */
.page-hero{
  padding:190px var(--edge) 70px;
  position:relative; overflow:hidden;
}
.page-hero-slide-strip{
  display:flex; gap:8px; margin-top:28px; position:relative; z-index:1;
}
.page-hero-slide-strip span{
  height:6px; flex:1; background:var(--line); border-radius:4px; position:relative; overflow:hidden;
}
.page-hero-slide-strip span.filled{ background:var(--purple); }
.page-hero .eyebrow{ animation:riseIn .6s cubic-bezier(.2,.8,.3,1.2) both; }
.page-hero h1{ font-size:clamp(40px,7vw,84px); position:relative; z-index:1; animation:riseIn .7s .08s cubic-bezier(.2,.8,.3,1.2) both; }
.page-hero h1 em{ color:var(--purple); font-style:normal; }
.page-hero .page-hero-sub{ color:var(--ink-soft); max-width:520px; margin-top:20px; font-size:16px; line-height:1.7; font-weight:600; position:relative; z-index:1; animation:riseIn .7s .16s cubic-bezier(.2,.8,.3,1.2) both;}
.page-hero .page-hero-slide-strip{ animation:riseIn .7s .22s cubic-bezier(.2,.8,.3,1.2) both; }
.page-hero .blob{ animation:blobFloat 8s ease-in-out infinite, popIn .6s cubic-bezier(.3,1.4,.5,1) both; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid{
  display:flex;
  flex-wrap:wrap;
  gap:60px;
  align-items:stretch;
}
.about-grid .about-portrait{
  order:2;
  flex:1 1 320px;
}
.about-grid > div:not(.about-portrait){
  order:1;
  flex:1.3 1 380px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.about-grid .about-portrait{ order:2; }
.about-grid > div{ order:1; }
.about-portrait{
  aspect-ratio:3/4;
  background:var(--paper-2);
   border:2px solid var(--ink); border-radius:var(--r-lg);
  position:relative;
  display:flex; align-items:flex-end; padding:22px;
  overflow:hidden;
  box-shadow:0 6px 0 var(--shadow);
}
.about-portrait::after{
  content:"";
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(to top, rgba(22,21,27,.75) 0%, rgba(22,21,27,0) 45%);
}
.about-portrait .initials{ display:none; }
.about-portrait .cap{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; color:#fff; text-transform:uppercase; font-weight:700;
}
.about-lede{ font-family:var(--font-display); text-transform:none; font-size:clamp(20px,2.4vw,27px); line-height:1.45; color:var(--ink); margin-bottom:18px;}
.about-body p{ color:var(--ink-soft); line-height:1.85; margin-bottom:18px; font-size:15px; font-weight:500; }

.skill-tags{ display:flex; flex-wrap:wrap; gap:10px; margin-top:auto; }
.skill-tags span{
  font-family:var(--font-body); font-size:12.5px; font-weight:700; text-transform:uppercase;
  border:2px solid var(--ink); border-radius:999px; padding:9px 16px; color:var(--ink); background:var(--paper-2);
}
.skill-tags span:nth-child(3n+1){ background:var(--purple-tint); }
.skill-tags span:nth-child(3n+2){ background:var(--yellow-tint); }
.skill-tags span:nth-child(3n+3){ background:var(--coral-tint); }

@media (max-width:900px){ .about-grid{ grid-template-columns:1fr; gap:40px; } }

/* timeline (experience) */
.timeline{ display:flex; flex-direction:column; }
.timeline-item{
  display:grid; grid-template-columns:160px 1fr; gap:32px;
  padding:32px; border:2px solid var(--ink); border-radius:var(--r-md); margin-bottom:18px;
  background:var(--paper-2);
}
.timeline-item:last-child{ margin-bottom:0; }
.timeline-date{ font-family:var(--font-mono); font-size:12px; letter-spacing:.06em; color:var(--purple-lt); font-weight:700; }
.timeline-role{ font-size:20px; font-family:var(--font-display); margin-bottom:6px; text-transform:uppercase; font-weight:800; }
.timeline-org{ font-family:var(--font-mono); font-size:12px; color:var(--ink-soft); letter-spacing:.04em; margin-bottom:14px; text-transform:uppercase; font-weight:700;}
.timeline-desc{ color:var(--ink-soft); font-size:14px; line-height:1.8; max-width:640px; font-weight:500; }
@media (max-width:640px){ .timeline-item{ grid-template-columns:1fr; gap:10px; padding:22px; } }

/* education / software grid */
.mini-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:50px; }
.mini-list li{
  display:flex; justify-content:space-between; gap:16px;
  padding:16px 4px; border-bottom:2px dashed var(--line); font-size:14px;
}
.mini-list li .deg{ color:var(--ink); font-weight:600; }
.mini-list li .sch{ color:var(--ink-faint); font-family:var(--font-mono); font-size:11.5px; text-align:right; }
@media (max-width:700px){ .mini-grid{ grid-template-columns:1fr; gap:8px; } }

/* ============================================================
   WORK PAGE
   ============================================================ */
.filter-bar{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-bottom:56px;
}
.filter-btn{
  font-family:var(--font-body); font-size:13px; font-weight:700; text-transform:uppercase;
  padding:11px 20px; border:2px solid var(--ink); border-radius:999px; background:var(--paper-2); color:var(--ink-soft); cursor:pointer;
  transition:all .2s ease;
}
.filter-btn.is-active,.filter-btn:hover{ background:var(--ink); color:var(--paper); }

.work-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.work-card{ cursor:default; }
.work-thumb{
  aspect-ratio:4549/3098;
  background:var(--purple-tint);
  border:2px solid var(--ink); border-radius:var(--r-lg);
  position:relative;
  margin-bottom:16px;
  overflow:hidden;
  box-shadow:0 5px 0 var(--shadow);
  transition:transform .2s cubic-bezier(.4,1.6,.6,1), box-shadow .2s ease;
  cursor:zoom-in;
}
.work-thumb:has(img){ aspect-ratio:auto; }
.work-thumb img{ width:100%; height:auto; display:block; }
.work-card:hover .work-thumb{ transform:translate(-2px,3px) rotate(-.6deg); box-shadow:0 2px 0 var(--shadow); }
.work-card:nth-child(4n+2) .work-thumb{ background:var(--yellow-tint); }
.work-card:nth-child(4n+3) .work-thumb{ background:var(--coral-tint); }
.work-card:nth-child(4n+4) .work-thumb{ background:#DFF6ED; }
.work-thumb .ph-label{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:10px; text-align:center; padding:20px;
}
.work-thumb .ph-label .cat{ font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; color:var(--purple-lt); text-transform:uppercase; font-weight:700; }
.work-thumb .ph-label .ttl{ font-family:var(--font-display); text-transform:none; font-size:19px; color:var(--ink); max-width:200px; }
.work-meta{ display:flex; justify-content:space-between; align-items:baseline; }
.work-meta h4{
  font-size:15px;
  font-family:var(--font-body);
  font-weight:800;
  letter-spacing:.01em;
  line-height:1.3;
}
.work-meta .wtag{ font-family:var(--font-mono); font-size:10px; color:var(--purple-lt); text-transform:uppercase; letter-spacing:.06em; font-weight:700; }

@media (max-width:920px){ .work-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .work-grid{ grid-template-columns:1fr; } .work-thumb{ aspect-ratio:4549/3098; } }

/* ---------- lightbox (click a work image to view full size) ---------- */
.lightbox{
  position:fixed; inset:0; z-index:1000;
  background:rgba(6,5,10,.94);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
  padding:48px 20px;
}
.lightbox.is-open{ opacity:1; visibility:visible; }
.lightbox-img{
  max-width:100%; max-height:100%;
  border:2px solid var(--ink); border-radius:var(--r-md);
  box-shadow:0 30px 60px rgba(0,0,0,.55);
  display:block;
}
.lightbox-close{
  position:absolute; top:20px; right:20px; z-index:2;
  width:48px; height:48px; border-radius:50%;
  background:var(--ink); color:var(--paper); border:none; font-size:20px; font-weight:700; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.lightbox-close:hover{ background:var(--purple); color:#fff; transform:scale(1.06); }
@media (max-width:600px){
  .lightbox-close{ top:12px; right:12px; width:42px; height:42px; }
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:56px; height:56px; border-radius:50%;
  background:var(--paper-2); color:var(--ink); border:2px solid var(--ink);
  font-size:28px; font-weight:700; cursor:pointer; z-index:2;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.lightbox-nav:hover{ background:var(--purple); color:#fff; }
.lightbox-prev{ left:20px; }
.lightbox-prev:hover{ transform:translateY(-50%) translateX(-3px); }
.lightbox-next{ right:20px; }
.lightbox-next:hover{ transform:translateY(-50%) translateX(3px); }
@media (max-width:600px){
  .lightbox-nav{ width:44px; height:44px; font-size:22px; }
  .lightbox-prev{ left:8px; }
  .lightbox-next{ right:8px; }
}

.note-card{
  border:2px dashed var(--line); border-radius:var(--r-md); padding:26px; margin-top:60px;
  font-family:var(--font-mono); font-size:12px; color:var(--ink-soft); line-height:1.9;
}
.note-card strong{ color:var(--purple-lt); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid{ display:flex; flex-direction:column; gap:32px; }
.contact-grid > div:first-child{
  border:2px solid var(--ink); border-radius:var(--r-lg);
  background:var(--paper-2);
  padding:32px;
  box-shadow:0 6px 0 var(--shadow);
}
.contact-grid > div:last-child{
  border:2px solid var(--ink); border-radius:var(--r-lg);
  background:var(--paper-2);
  padding:32px;
  box-shadow:0 6px 0 var(--shadow);
}
.contact-grid > div:first-child .contact-list{
  display:grid; grid-template-columns:1fr 1fr; gap:12px;
}
.contact-grid > div:first-child .social-row{
  margin-top:20px;
}
@media (max-width:700px){
  .contact-grid > div:first-child .contact-list{ grid-template-columns:1fr; }
  .contact-grid > div:first-child,
  .contact-grid > div:last-child{ padding:24px; }
}
.contact-list{ margin-top:32px; }
.contact-list li{
  padding:20px 22px; border:2px solid var(--ink); border-radius:var(--r-sm); margin-bottom:12px;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  background:var(--paper-2);
  flex-wrap:wrap;
}
.contact-list li:last-child{ margin-bottom:0; }
.contact-list .clabel{ font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; color:var(--ink-faint); text-transform:uppercase; font-weight:700; flex:none; }
.contact-list .cval{
  font-size:15px; text-align:right; font-weight:700;
  min-width:0;
  flex:1 1 auto;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.contact-list a:hover{ color:var(--purple-lt); }

.social-row{ display:flex; gap:12px; margin-top:32px; flex-wrap:wrap; }
.social-row a{
  font-family:var(--font-body); font-size:13px; font-weight:700; text-transform:uppercase;
  border:2px solid var(--ink); border-radius:999px; padding:10px 18px; background:var(--paper-2);
}
.social-row a:hover{ background:var(--yellow); }

.form-field{ margin-bottom:22px; }
.form-field label{
  display:block; font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--purple-lt); margin-bottom:10px; font-weight:700;
}
.form-field input, .form-field textarea, .form-field select{
  width:100%; background:var(--paper-2); border:2px solid var(--ink); border-radius:var(--r-sm);
  color:var(--ink); font-family:var(--font-body); font-size:15px; padding:14px 16px; font-weight:600;
  transition:box-shadow .2s ease;
  cursor:pointer;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{ outline:none; box-shadow:0 4px 0 var(--purple); }
.form-field textarea{ resize:vertical; min-height:100px; }

@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; gap:48px; } }

@media (max-width:400px){
  .contact-list li{ flex-direction:column; align-items:flex-start; gap:6px; }
  .contact-list .cval{ text-align:left; }
}

/* ---------- mobile: keep decorative blobs, but clustered clear of text ---------- */
@media (max-width:700px){
  .hero .blob,
  .page-hero .blob,
  .cta-banner .blob{
    opacity:.85 !important;
  }
  /* cluster all blobs into the top strip of the section, above where the text block starts */
  .hero .blob:nth-of-type(1),
  .page-hero .blob:nth-of-type(1),
  .cta-banner .blob:nth-of-type(1){
    width:92px !important; height:92px !important;
    top:-10px !important; bottom:auto !important;
    right:-10px !important; left:auto !important;
  }
  .hero .blob:nth-of-type(2),
  .page-hero .blob:nth-of-type(2),
  .cta-banner .blob:nth-of-type(2){
    width:64px !important; height:64px !important;
    top:64px !important; bottom:auto !important;
    right:26% !important; left:auto !important;
  }
  .hero .blob:nth-of-type(3),
  .page-hero .blob:nth-of-type(3),
  .cta-banner .blob:nth-of-type(3){
    width:48px !important; height:48px !important;
    top:8px !important; bottom:auto !important;
    right:46% !important; left:auto !important;
  }
}

/* ============================================================
   AI PRODUCT SHOTS PAGE
   ============================================================ */
.shot-cover-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.shot-cover{
  display:block;
  border:2px solid var(--ink); border-radius:var(--r-lg);
  background:var(--paper-2);
  overflow:hidden;
  box-shadow:0 5px 0 var(--shadow);
  transition:transform .2s cubic-bezier(.4,1.6,.6,1), box-shadow .2s ease;
}
.shot-cover:hover{ transform:translate(-2px,3px); box-shadow:0 2px 0 var(--shadow); }
.shot-cover-thumb{ aspect-ratio:1/1; background:var(--purple-tint); overflow:hidden; }
.shot-cover-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.shot-cover-body{ padding:20px; }
.shot-cover-body h4{ font-size:18px; margin-bottom:6px; }
.shot-cover-body .wtag{ font-family:var(--font-mono); font-size:11px; color:var(--purple-lt); text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
@media (max-width:820px){ .shot-cover-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .shot-cover-grid{ grid-template-columns:1fr; } }

.shot-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:28px;
}
.shot-card{
  border:2px solid var(--ink); border-radius:var(--r-lg);
  background:var(--paper-2);
  overflow:hidden;
  box-shadow:0 5px 0 var(--shadow);
  transition:transform .2s cubic-bezier(.4,1.6,.6,1), box-shadow .2s ease;
}
.shot-card:hover{ transform:translate(-2px,3px); box-shadow:0 2px 0 var(--shadow); }
.shot-thumb{
  aspect-ratio:4549/3098;
  background:var(--purple-tint);
  position:relative;
  cursor:zoom-in;
  overflow:hidden;
}
.shot-thumb:has(img){ aspect-ratio:auto; }
.shot-thumb img{ width:100%; height:auto; display:block; }
.shot-body{ padding:22px; }
.shot-body .clabel{
  font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--purple-lt); font-weight:700; margin-bottom:10px; display:block;
}
.shot-prompt{
  font-family:var(--font-mono); font-size:12.5px; line-height:1.65; color:var(--ink-soft);
  background:var(--paper); border:1px dashed var(--line); border-radius:var(--r-sm);
  padding:14px 16px;
  max-height:160px;
  overflow-y:auto;
}
@media (max-width:920px){ .shot-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .shot-grid{ grid-template-columns:1fr; } }
.shot-body-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; gap:10px; }
.shot-body-head .clabel{ margin-bottom:0; }
.copy-btn{
  font-family:var(--font-mono); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  padding:6px 12px; border-radius:999px; border:1px solid var(--line); background:var(--paper-2); color:var(--ink-soft);
  cursor:pointer; transition:background .2s ease, color .2s ease; flex:none;
}
.copy-btn:hover{ background:var(--ink); color:var(--paper); }
.copy-btn.copied{ background:var(--purple); color:#fff; border-color:var(--purple); }
