/*
Theme Name:  Subhan Portfolio
Theme URI:   https://github.com/yourusername/portfolio-admin
Author:      Apifel DIGI
Author URI:  https://apifeldigi.com
Description: Subhan Portfolio — High-End Dark Portfolio Theme with Custom Admin Panel, Projects, Blog, Contact & Newsletter.
Version:     2.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GPL v2 or later
Text Domain: subhan-portfolio
*/

/* ── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:ital,wght@0,700;1,700&family=DM+Sans:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

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

/* ── Variables ──────────────────────────────────────────── */
:root{
  --bg:#080b10;
  --card:#111520;
  --border:rgba(255,255,255,.07);
  --text:#e8eaf0;
  --muted:rgba(255,255,255,.35);
  --accent:#3b82f6;
  --accent2:#60a5fa;
  --white:#ffffff;
  --sans:'DM Sans',ui-sans-serif,system-ui,sans-serif;
  --display:'Bebas Neue',cursive;
  --serif:'Playfair Display',serif;
  --mono:'Space Mono',ui-monospace,monospace;
  --radius:10px;
}

html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  overflow-x:hidden;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
button{cursor:pointer;border:none;background:none;font-family:var(--sans)}
::-webkit-scrollbar{width:4px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:rgba(59,130,246,.3);border-radius:2px}

/* ── Stars canvas ───────────────────────────────────────── */
#stars-canvas{position:fixed;inset:0;z-index:0;pointer-events:none}
.site-wrap{position:relative;z-index:1}

/* ════════════════════════════════════════════════════════
════════════════════════════════════════════════════════ */

/* Shrink padding once scrolled for a tighter sticky bar */

/* Pill */

/* Scroll progress */
.pa-scroll-progress-track{
  position:absolute;top:0;left:24px;right:24px;height:1.5px;
  background:rgba(59,130,246,.1);border-radius:99px;overflow:hidden;z-index:2;pointer-events:none;
}
.pa-scroll-progress-bar{
  height:100%;width:0%;background:#60a5fa;
  box-shadow:0 0 20px rgba(96,165,250,1);border-radius:99px;transition:width .1s linear;
}

/* Avatar */

/* Separator */

/* Nav links */

/* Active pill indicator */

@keyframes pa-dot-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(59,130,246,.6)}
  50%{box-shadow:0 0 0 4px rgba(59,130,246,0)}
}

/* CTA button */
.pa-pill-cta-wrap{display:flex;align-items:center;padding:0 4px 0 6px;position:relative;z-index:1;flex-shrink:0}

/* Clock */

/* ════════════════════════════════════════════════════════
════════════════════════════════════════════════════════ */

.hero > *{position:relative;z-index:1}

/* Available badge */

/* Eyebrow */

/* Heading — two lines */

/* Sub text */

/* Stats box — horizontal */

/* CTAs */

/* View Projects button */

.btn-primary:hover::before{opacity:.8}

/* Ghost text link */

/* Fade-up animation */
@keyframes pa-fade-up{from{opacity:0;transform:translateY(28px);filter:blur(8px)}to{opacity:1;transform:none;filter:blur(0)}}
.fade-up{animation:pa-fade-up 1s cubic-bezier(0.16,1,0.3,1) both}
.delay-1{animation-delay:.15s}
.delay-2{animation-delay:.3s}
.delay-3{animation-delay:.5s}
.delay-4{animation-delay:.7s}

/* ════════════════════════════════════════════════════════
════════════════════════════════════════════════════════ */
.section-eyebrow{
  display:flex;align-items:center;gap:12px;
  font-family:var(--mono);font-size:9px;letter-spacing:.2em;
  color:rgba(255,255,255,.5);text-transform:uppercase;margin-bottom:16px;
}
.section-eyebrow::before{content:'';display:block;width:28px;height:1px;background:rgba(255,255,255,.25)}
.section-header{
  display:flex;align-items:flex-end;justify-content:space-between;
  flex-wrap:wrap;gap:12px;margin-bottom:36px;
}
.section-title{
  font-size:clamp(2.2rem,4.5vw,3.4rem);font-weight:700;
  letter-spacing:-.03em;color:var(--white);line-height:1.1;
}
.section-title em{font-style:italic;font-family:var(--serif)}
.view-all-btn{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--mono);font-size:9px;font-weight:700;letter-spacing:.16em;
  color:rgba(255,255,255,.5);text-transform:uppercase;
  border:1px solid rgba(255,255,255,.14);border-radius:50px;padding:7px 16px;
  transition:all .2s;flex-shrink:0;
}
.view-all-btn:hover{color:var(--white);border-color:rgba(255,255,255,.45);text-decoration:none}

/* ════════════════════════════════════════════════════════
════════════════════════════════════════════════════════ */
.work-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.project-card{display:flex;flex-direction:column;cursor:pointer;text-decoration:none;color:inherit;border-radius:12px;isolation:isolate}
.project-card:hover .project-thumb,
.project-card:hover .project-thumb-placeholder{transform:scale(1.03)}
.project-card-img-wrap{
  position:relative;aspect-ratio:16/11;border-radius:12px;overflow:hidden;
  margin-bottom:12px;background:#18181b;border:1px solid rgba(255,255,255,.05);
}
.project-thumb{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s ease-out,filter 1.2s ease-out;filter:grayscale(.15)}
.project-thumb-placeholder{width:100%;height:100%;display:block;transition:transform 1.2s ease-out}

.project-meta-row{
  display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:4px;
}
.project-title{
  font-size:1.1rem;font-weight:600;color:var(--white);
  letter-spacing:-.01em;line-height:1.3;transition:color .2s;
}
.project-card:hover .project-title{color:var(--accent2)}
.project-year{
  font-family:var(--mono);font-size:11px;color:rgba(255,255,255,.5);
  letter-spacing:.06em;flex-shrink:0;
}
.project-category{
  font-family:var(--mono);font-size:9px;font-weight:600;
  letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.45);
}

/* ════════════════════════════════════════════════════════
════════════════════════════════════════════════════════ */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.blog-card{display:flex;flex-direction:column;cursor:pointer;text-decoration:none;color:inherit;
  border:1px solid rgba(255,255,255,.1);border-radius:12px;overflow:hidden;isolation:isolate;
  background:rgba(255,255,255,.02);transition:background .3s,border-color .3s,box-shadow .3s}
.blog-card:hover{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.45)}
.blog-card:hover .blog-thumb,
.blog-card:hover .blog-thumb-placeholder{transform:scale(1.04)}
.blog-card-img-wrap{
  position:relative;overflow:hidden;aspect-ratio:16/10;background:#18181b;
}
.blog-card-img-wrap::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.6),transparent 50%);
  pointer-events:none;
}
.blog-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s ease-out}
.blog-thumb-placeholder{position:absolute;inset:0;width:100%;height:100%}
.blog-thumb-placeholder{display:block;width:100%;aspect-ratio:16/10;transition:transform .5s ease}

/* Tag overlaid BOTTOM-LEFT on image */
.blog-tag{
  position:absolute;top:12px;left:12px;
  display:inline-flex;align-items:center;padding:4px 11px;border-radius:9999px;
  font-family:var(--mono);font-size:9px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  background:rgba(255,255,255,.9);color:#000;backdrop-filter:blur(4px);z-index:3;
}
.tag-dev{background:rgba(30,30,30,.75);color:rgba(255,255,255,.85);border:1px solid rgba(255,255,255,.12)}
.tag-design{background:rgba(37,99,235,.75);color:#fff;border:1px solid rgba(59,130,246,.3)}
.tag-animation,.tag-marketing{background:rgba(234,88,12,.75);color:#fff;border:1px solid rgba(249,115,22,.3)}

.blog-title{
  font-size:1rem;font-weight:500;color:var(--white);
  line-height:1.45;letter-spacing:-.01em;transition:color .2s;
  padding:16px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.blog-card:hover .blog-title{color:var(--accent2)}

/* ════════════════════════════════════════════════════════
   CONTACT SECTION (footer.php)
════════════════════════════════════════════════════════ */
.contact-section{padding:100px 48px;text-align:center}
.contact-heading{
  font-family:var(--display);font-size:clamp(2.5rem,6vw,5rem);font-weight:900;
  letter-spacing:-.02em;color:var(--white);line-height:1;margin-bottom:14px;text-transform:uppercase;
}
.contact-subheading{
  font-family:var(--display);font-size:clamp(2rem,4.5vw,3.8rem);font-weight:900;
  letter-spacing:-.02em;color:rgba(255,255,255,.45);line-height:1.1;margin-bottom:48px;text-transform:uppercase;
}
.contact-links{display:flex;align-items:center;justify-content:center;gap:48px;flex-wrap:wrap;margin-bottom:56px}
.contact-link{font-family:var(--mono);font-size:clamp(15px,2vw,20px);font-weight:700;color:var(--accent2);letter-spacing:.02em;transition:color .2s}
.contact-link:hover{color:var(--white)}
.contact-sep{color:rgba(255,255,255,.45)}
.contact-form-card{
  position:relative;overflow:hidden;
  max-width:520px;margin:0 auto;background:var(--card);
  border:1px solid rgba(59,130,246,.2);border-radius:16px;padding:28px;
  box-shadow:0 0 0 1px rgba(59,130,246,.07),0 24px 60px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.04);
  text-align:left;
}
.contact-form-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,#3b82f6,#a855f7);z-index:2;
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.form-field{margin-bottom:12px}
.form-label{font-family:var(--mono);font-size:8px;letter-spacing:.14em;color:rgba(255,255,255,.5);text-transform:uppercase;display:block;margin-bottom:6px}
.form-input,.form-textarea{
  width:100%;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);
  border-radius:8px;padding:10px 14px;font-family:var(--sans);font-size:13px;color:var(--text);
  outline:none;transition:border-color .2s;resize:none;
}
.form-input:focus,.form-textarea:focus{border-color:rgba(59,130,246,.4)}
.form-input::placeholder,.form-textarea::placeholder{color:rgba(255,255,255,.45)}
.form-textarea{min-height:80px}
.form-footer{display:flex;align-items:center;justify-content:space-between;margin-top:16px}
.form-socials{display:flex;gap:16px}
.form-social-link{font-family:var(--mono);font-size:9px;letter-spacing:.1em;color:rgba(255,255,255,.45);text-transform:uppercase;transition:color .2s}
.form-social-link:hover{color:var(--white)}
.btn-send{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--white);color:#000;padding:10px 22px;border-radius:50px;
  font-family:var(--mono);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  transition:all .15s;cursor:pointer;
}
.btn-send:hover{background:#e5e7eb;transform:scale(.97)}

/* ════════════════════════════════════════════════════════
════════════════════════════════════════════════════════ */
.newsletter-wrap{padding:60px 48px 0;display:flex;justify-content:center}
.newsletter-card{
  max-width:880px;width:100%;background:#0a0a0a;
  border:1px solid rgba(255,255,255,.05);border-radius:32px;padding:56px 48px;text-align:center;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
}
.newsletter-title{font-family:var(--display);font-weight:700;font-size:clamp(1.6rem,3vw,2.2rem);color:#fff;margin-bottom:12px;letter-spacing:-.02em}
.newsletter-sub{font-size:16px;color:rgba(255,255,255,.55);margin-bottom:32px}
.newsletter-form{display:flex;gap:12px;max-width:560px;margin:0 auto;width:100%}
.newsletter-input{
  flex:1;background:#151515;border:1px solid rgba(255,255,255,.05);
  border-radius:12px;padding:15px 22px;
  font-family:var(--sans);font-size:15px;color:#fff;outline:none;transition:border-color .2s;
}
.newsletter-input:focus{border-color:rgba(59,130,246,.4)}
.newsletter-input::placeholder{color:rgba(255,255,255,.45)}
.newsletter-btn{
  display:inline-flex;align-items:center;gap:8px;background:#2563eb;color:#fff;
  padding:15px 30px;border-radius:12px;
  font-family:var(--sans);font-size:15px;font-weight:700;transition:background .2s,transform .1s;}
.newsletter-btn:hover{background:#1d4ed8}
.newsletter-btn:active{transform:scale(.96)}
.newsletter-btn{
  white-space:nowrap;cursor:pointer;border:none;
}
.newsletter-btn:hover{background:#2563eb}

/* ════════════════════════════════════════════════════════
════════════════════════════════════════════════════════ */
.footer-wordmark{padding:32px 0 0;overflow:hidden;text-align:center;line-height:.85;user-select:none}
.footer-wordmark span{
  font-family:var(--display);font-size:clamp(80px,18vw,220px);letter-spacing:.02em;
  background:linear-gradient(180deg,rgba(232,234,240,.18) 0%,rgba(232,234,240,.04) 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;display:block;
}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;
  padding:20px 48px 32px;font-family:var(--sans);font-size:13px;
  letter-spacing:.01em;color:rgba(255,255,255,.5);text-transform:none;flex-wrap:wrap;gap:12px;
}
.footer-links{display:flex;gap:28px;font-size:13px;text-transform:none;letter-spacing:.01em}
.footer-links a{position:relative;padding:4px 0;transition:color .3s}
.footer-links a:hover{color:rgba(255,255,255,.7)}
.footer-links a::after{content:'';position:absolute;bottom:0;left:0;width:0;height:1.5px;background:#3b82f6;transition:width .3s}
.footer-links a:hover::after{width:100%}
.footer-links a:hover{color:rgba(255,255,255,.45)}

/* Scroll to top */

/* ════════════════════════════════════════════════════════
════════════════════════════════════════════════════════ */
.post-content h1,.post-content h2,.post-content h3,.post-content h4{color:var(--white);font-weight:700;margin:2rem 0 .75rem;letter-spacing:-.02em}
.post-content h2{font-size:1.6rem}.post-content h3{font-size:1.3rem}
.post-content p{margin-bottom:1.1rem;color:rgba(232,234,240,.75)}
.post-content a{color:var(--accent2);text-decoration:underline;text-decoration-color:rgba(96,165,250,.35)}
.post-content strong{color:var(--white);font-weight:600}
.post-content code{font-family:var(--mono);font-size:.875em;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);padding:.15em .4em;border-radius:4px}
.post-content pre{background:var(--card);border:1px solid rgba(255,255,255,.07);border-radius:var(--radius);padding:1.25rem;margin:1.5rem 0;overflow-x:auto}
.post-content pre code{background:none;border:none;padding:0;font-size:.85rem}
.post-content ul,.post-content ol{margin:0 0 1.1rem 1.5rem}
.post-content blockquote{border-left:3px solid var(--accent);padding:.75rem 1.25rem;margin:1.5rem 0;color:rgba(255,255,255,.5);font-style:italic;background:rgba(59,130,246,.04);border-radius:0 10px 10px 0}
.post-content img{border-radius:10px;margin:1.5rem 0;width:100%}
.post-content hr{border:none;border-top:1px solid rgba(255,255,255,.07);margin:2rem 0}
.page-numbers{font-family:var(--mono);font-size:11px;letter-spacing:.08em;color:rgba(255,255,255,.5);padding:6px 14px;border-radius:50px;border:1px solid rgba(255,255,255,.08);transition:all .2s;display:inline-block}
.page-numbers:hover,.page-numbers.current{color:var(--white);border-color:rgba(59,130,246,.3);background:rgba(59,130,246,.1)}

/* ════════════════════════════════════════════════════════
   WORK PAGE (archive.php)
════════════════════════════════════════════════════════ */
.work-page-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(59,130,246,.08);border:1px solid rgba(59,130,246,.2);
  border-radius:50px;padding:5px 16px 5px 10px;margin-bottom:28px;
  font-family:var(--mono);font-size:9px;letter-spacing:.18em;color:var(--accent2);text-transform:uppercase;
}
.work-page-badge-dot{width:6px;height:6px;border-radius:50%;background:var(--accent)}
.work-page-heading{
  font-size:clamp(2.2rem,5.5vw,4rem);font-weight:700;letter-spacing:-.03em;
  line-height:1.1;color:var(--white);margin-bottom:20px;
}
.work-page-heading em{font-style:italic;font-family:var(--serif);color:var(--accent2);-webkit-text-fill-color:var(--accent2);background:none}
.work-page-sub{font-size:15px;line-height:1.75;color:rgba(255,255,255,.5);max-width:560px;margin:0 auto}
.work-editorial-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px 32px;max-width:960px;margin:0 auto;padding:0 48px 80px}
.work-editorial-card{display:flex;flex-direction:column;cursor:pointer}
.work-editorial-card:hover .work-editorial-img{transform:scale(1.03)}
.work-editorial-img-wrap{border-radius:10px;overflow:hidden;margin-bottom:20px;background:var(--card)}
.work-editorial-img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;transition:transform .5s ease}
.work-editorial-placeholder{width:100%;aspect-ratio:4/3;display:block;transition:transform .5s ease}
.work-editorial-card:hover .work-editorial-placeholder{transform:scale(1.03)}
.work-editorial-cat{font-family:var(--mono);font-size:9px;letter-spacing:.18em;color:rgba(255,255,255,.45);text-transform:uppercase;margin-bottom:8px}
.work-editorial-title{font-size:1.5rem;font-weight:700;letter-spacing:-.02em;color:var(--white);margin-bottom:10px;line-height:1.2;transition:color .2s}
.work-editorial-card:hover .work-editorial-title{color:var(--accent2)}
.work-editorial-desc{font-size:13.5px;color:rgba(255,255,255,.5);line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ════════════════════════════════════════════════════════
════════════════════════════════════════════════════════ */
@media(max-width:640px){
  
  
  
  
  .work-grid{grid-template-columns:1fr;gap:32px}
  .blog-grid{grid-template-columns:1fr;gap:28px}
  .contact-section,.newsletter-wrap{padding-left:20px;padding-right:20px}
  .newsletter-card{padding:28px 24px}
  .newsletter-form{flex-direction:column}
  .newsletter-input{border-radius:12px;border-right:1px solid rgba(255,255,255,.1);margin-bottom:8px}
  .newsletter-btn{border-radius:12px;justify-content:center}
  .footer-bottom{padding:12px 20px 20px}
  .form-row{grid-template-columns:1fr}
  .work-editorial-grid{grid-template-columns:1fr;padding:0 20px 60px;gap:40px}
}
@media(min-width:641px) and (max-width:900px){
  .blog-grid{grid-template-columns:repeat(2,1fr)}
}

/* ═══════════════════════════════════════════════════════
   SCROLL TO TOP — exact source match
   Source: bg-zinc-900/80, border-white/10, backdrop-blur-md
   SVG: r=48, stroke-width=2, stroke-blue-500, -rotate-90
═══════════════════════════════════════════════════════ */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(24,24,27,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  cursor: pointer;
  /* Hidden by default — JS adds .visible when scrollY > 100 */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1),
              transform 0.4s cubic-bezier(0.16,1,0.3,1),
              color 0.2s, border-color 0.2s;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.scroll-top-btn:hover {
  color: #ffffff;
  border-color:rgba(255,255,255,.45);
  transform: scale(1.05);
}
.scroll-top-btn:active { transform: scale(0.95); }

/* SVG progress ring — rotated -90deg (arc starts at top) */
.scroll-top-btn .stt-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

/* Arrow */
.scroll-top-btn .stt-arrow {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.scroll-top-btn:hover .stt-arrow { transform: translateY(-2px); }

/* ════════════════════════════════════════════════════════
   WORK ARCHIVE PAGE — exact match to screenshot
════════════════════════════════════════════════════════ */

/* ── Hero area (centered) ───────────────────────────── */
.work-hero {
  padding: 100px 32px 56px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

/* Badge */
.work-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 9999px;
  padding: 6px 20px 6px 12px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
}
.work-hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(59,130,246,.6);
  animation: wa-dot-pulse 2s ease-in-out infinite;
}
@keyframes wa-dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,.6); }
  50%      { box-shadow: 0 0 0 5px rgba(59,130,246,0); }
}

/* Heading — "form" and "function" are italic serif with gradient */
.work-hero-heading {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 24px;
}
.work-hero-heading em {
  font-style: italic;
  font-family: var(--serif);
  color: #3b82f6;
  font-weight: 500;
}
.work-hero-heading em {
  font-style: italic;
  font-family: var(--serif);
  background: linear-gradient(135deg, #93c5fd, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.work-hero-period {
  font-style: normal;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}

/* Subtitle */
.work-hero-sub {
  font-size: 14.5px;
  line-height: 1.75;
  color:rgba(255,255,255,.55);
  max-width: 520px;
  margin: 0 auto;
}

/* ── 2-col project grid ─────────────────────────────── */

/* Card */

/* Image */

/* Category label */

/* Title */

/* Description */

/* Responsive */
@media (max-width: 640px) {
  .work-hero { padding: 100px 20px 40px; }
  
}

/* ════════════════════════════════════════════════════════
   CONTACT PAGE — exact match to screenshot
════════════════════════════════════════════════════════ */

/* ── Hero ──────────────────────────────────────────── */
.contact-page-hero {
  padding: 110px 32px 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.contact-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 9999px;
  padding: 5px 18px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent2);
  text-transform: uppercase;
}
.contact-page-badge svg { color: var(--accent2); }
.contact-page-heading {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}
.contact-page-sub {
  font-size: 14.5px;
  line-height: 1.75;
  color:rgba(255,255,255,.55);
}

/* ── Two-column body ───────────────────────────────── */
.contact-page-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 0 48px;
  align-items: start;
}

/* ── LEFT column ───────────────────────────────────── */
.contact-page-left-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 36px;
}
.contact-page-left-heading em {
  font-style: italic;
  font-family: var(--serif);
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  display: block;
}

/* Info items */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  flex-shrink: 0;
}
.contact-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}
.contact-info-label {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color:rgba(255,255,255,.45);
}
.contact-info-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: color .2s;
}
.contact-info-value:hover { color: var(--accent2); text-decoration: none; }

/* Social icons */
.contact-social-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.contact-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: all .2s;
}
.contact-social-btn:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border-color:rgba(255,255,255,.45);
  text-decoration: none;
}

/* ── RIGHT column: Form card ───────────────────────── */
.contact-form-card-new {
  background: rgba(17,21,32,.8);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4),
              inset 0 1px 0 rgba(255,255,255,.04);
}

/* Form field */
.cf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.cf-field { margin-bottom: 14px; }
.cf-label {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color:rgba(255,255,255,.45);
  margin-bottom: 7px;
}
.cf-input, .cf-textarea {
  display: block;
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  resize: none;
}
.cf-input:focus, .cf-textarea:focus {
  border-color: rgba(59,130,246,.45);
}
.cf-input::placeholder, .cf-textarea::placeholder {
  color:rgba(255,255,255,.45);
}
.cf-textarea { min-height: 120px; }

/* Submit button */
.cf-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s, transform .15s;
}
.cf-submit-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.cf-submit-btn:active { transform: scale(.98); }
.cf-submit-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-page-body {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 32px;
  }
  .contact-page-hero { padding: 100px 20px 32px; }
  .cf-row-2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   LIGHT THEME — body.pa-light
   Strategy: flip all dark surfaces to white/light,
   flip all white text to dark, keep accent blue.
════════════════════════════════════════════════════════ */

/* ── Root overrides ──────────────────────────────── */
body.pa-light {
  background: #f5f6fa;
  color: #111827;
}
body.pa-light #stars-canvas { opacity: .06; }

/* ── CSS variable overrides ──────────────────────── */
body.pa-light {
  --bg:     #f5f6fa;
  --card:   #ffffff;
  --border: rgba(0,0,0,.09);
  --text:   #111827;
  --muted:  rgba(0,0,0,.45);
  --white:  #111827;
}

/* ── Navbar / Pill ───────────────────────────────── */
body.pa-light .pa-brand-name  { color: #111827; }
body.pa-light .pa-brand-location { color: rgba(0,0,0,.45); }
body.pa-light .pa-clock-time  { color: #111827; }
body.pa-light .pa-clock-tz    { color:rgba(0,0,0,.6); }

body.pa-light .pa-pill {
  background: rgba(255,255,255,.82);
  border-color:rgba(0,0,0,.5);
  box-shadow: 0 4px 24px rgba(0,0,0,.1), inset 0 1px 1px rgba(255,255,255,.8);
}
body.pa-light .pa-pill.scrolled {
  background: rgba(255,255,255,.95);
  border-color:rgba(0,0,0,.5);
}
body.pa-light .pa-pill-sep    { background: rgba(0,0,0,.1); }
body.pa-light .pa-link-sep    { background: rgba(0,0,0,.06); }

body.pa-light .pa-pill-link   { color:rgba(0,0,0,.6); }
body.pa-light .pa-pill-link:hover { color: #2563eb; }
body.pa-light .pa-pill-link.active { color: #111827; }
body.pa-light .pa-nav-svg     { color: inherit; }

body.pa-light .pa-active-pill {
  background: rgba(0,0,0,.06);
  border-color:rgba(0,0,0,.5);
  box-shadow: 0 4px 12px rgba(37,99,235,.1);
}
body.pa-light .pa-active-dot  { background: linear-gradient(90deg,transparent,#2563eb,transparent); }
body.pa-light .pa-contact-dot { background: #2563eb; border-color: #f5f6fa; }

body.pa-light .pa-scroll-progress-track { background: rgba(37,99,235,.1); }
body.pa-light .pa-scroll-progress-bar   { background: #2563eb; box-shadow: 0 0 12px rgba(37,99,235,.6); }

body.pa-light .pa-pill-avatar { border-color:rgba(0,0,0,.5); }
body.pa-light .pa-pill-avatar-initials { background: linear-gradient(135deg,#1d4ed8,#7c3aed); }

/* ── Hero ────────────────────────────────────────── */
body.pa-light .hero { background: #f5f6fa; }
body.pa-light .hero::before {
  background: radial-gradient(ellipse at top left,rgba(37,99,235,.14) 0%,transparent 65%);
}
body.pa-light .hero::after {
  background: radial-gradient(ellipse at bottom right,rgba(37,99,235,.07) 0%,transparent 65%);
}
body.pa-light .hero > * { position: relative; z-index: 1; }

body.pa-light .available-badge {
  background: rgba(255,255,255,.7);
  border-color:rgba(0,0,0,.5);
  color: rgba(0,0,0,.5);
}
body.pa-light .hero-eyebrow { color: #2563eb; }
body.pa-light .hero-heading-line1 { color: #111827; }
body.pa-light .hero-heading-line2 { color: rgba(0,0,0,.75); }
body.pa-light .hero-sub { color: rgba(0,0,0,.45); }

body.pa-light .hero-stats-box {
  background: rgba(0,0,0,.03);
  border-color:rgba(0,0,0,.5);
}
body.pa-light .hero-stat-item + .hero-stat-item { border-left-color:rgba(0,0,0,.5); }
body.pa-light .hero-stat-val  { color: #111827; }
body.pa-light .hero-stat-label { color:rgba(0,0,0,.6); }

body.pa-light .btn-primary {
  background: #111827;
  color: #ffffff;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.2), 0 4px 16px rgba(0,0,0,.15);
}
body.pa-light .btn-primary:hover { color: #fff; background: #1f2937; }
body.pa-light .btn-ghost { color:rgba(0,0,0,.6); }
body.pa-light .btn-ghost:hover { color: rgba(0,0,0,.75); }
body.pa-light .btn-ghost-line { background: rgba(0,0,0,.2); }
body.pa-light .btn-ghost:hover .btn-ghost-line { background: rgba(0,0,0,.45); }

/* ── Section headers ─────────────────────────────── */
body.pa-light .section-eyebrow { color:rgba(0,0,0,.55); }
body.pa-light .section-eyebrow::before { background: rgba(0,0,0,.2); }
body.pa-light .section-title { color: #111827; }
body.pa-light .view-all-btn {
  color: rgba(0,0,0,.45);
  border-color:rgba(0,0,0,.5);
}
body.pa-light .view-all-btn:hover { color: #111827; border-color:rgba(0,0,0,.5); }

/* ── Work grid ───────────────────────────────────── */
body.pa-light .project-card-img-wrap { background: #e5e7eb; }
body.pa-light .project-category { color:rgba(0,0,0,.5); }
body.pa-light .project-title { color: #111827; }
body.pa-light .project-year  { color:rgba(0,0,0,.55); }

/* ── Blog grid ───────────────────────────────────── */
body.pa-light .blog-card-img-wrap { background: #e5e7eb; }
body.pa-light .blog-title { color: #111827; }
body.pa-light .tag-dev {
  background: rgba(0,0,0,.07);
  color: rgba(0,0,0,.7);
  border-color:rgba(0,0,0,.5);
}

/* ── Work archive page ───────────────────────────── */
body.pa-light .work-hero-badge {
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.2);
  color: #2563eb;
}
body.pa-light .work-hero-heading { color: #111827; }
body.pa-light .work-hero-sub { color:rgba(0,0,0,.6); }

/* ── Newsletter ──────────────────────────────────── */
/* Newsletter stays black in light mode (reference design) */
body.pa-light .newsletter-card { background: #000000; border-color:rgba(0,0,0,.5); }
body.pa-light .newsletter-title { color: #ffffff; }
body.pa-light .newsletter-sub   { color:rgba(255,255,255,.55); }
body.pa-light .newsletter-input { background: #ffffff; border-color:rgba(0,0,0,.5); color: #111827; }
body.pa-light .newsletter-input::placeholder { color:rgba(0,0,0,.55); }

/* ── Footer wordmark ─────────────────────────────── */
body.pa-light .footer-wordmark span {
  background: linear-gradient(180deg,rgba(0,0,0,.12) 0%,rgba(0,0,0,.03) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.pa-light .footer-bottom { color:rgba(0,0,0,.5); }
body.pa-light .footer-links a:hover { color: rgba(0,0,0,.65); }

/* ── Contact section (footer) ────────────────────── */
body.pa-light .contact-heading  { color: #111827; }
body.pa-light .contact-subheading { color:rgba(0,0,0,.5); }
body.pa-light .contact-link     { color: #2563eb; }
body.pa-light .contact-sep      { color:rgba(0,0,0,.5); }
body.pa-light .contact-form-card {
  background: #ffffff;
  border-color: rgba(37,99,235,.15);
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
}
body.pa-light .form-label { color:rgba(0,0,0,.6); }
body.pa-light .form-input,
body.pa-light .form-textarea {
  background: #f9fafb;
  border-color:rgba(0,0,0,.5);
  color: #111827;
}
body.pa-light .form-input:focus,
body.pa-light .form-textarea:focus { border-color: rgba(37,99,235,.4); }
body.pa-light .form-input::placeholder,
body.pa-light .form-textarea::placeholder { color:rgba(0,0,0,.5); }
body.pa-light .form-social-link { color:rgba(0,0,0,.55); }
body.pa-light .form-social-link:hover { color: #111827; }
body.pa-light .btn-send {
  background: #111827;
  color: #fff;
}
body.pa-light .btn-send:hover { background: #1f2937; }

/* ── Scroll to top ───────────────────────────────── */
body.pa-light .scroll-top-btn {
  background: rgba(0,0,0,.06);
  border-color:rgba(0,0,0,.5);
  color: #111827;
}
body.pa-light .scroll-top-btn:hover { background: rgba(0,0,0,.12); border-color:rgba(0,0,0,.5); }

/* ── Post content ────────────────────────────────── */
body.pa-light .post-content h1,
body.pa-light .post-content h2,
body.pa-light .post-content h3,
body.pa-light .post-content h4 { color: #111827; }
body.pa-light .post-content p   { color: rgba(0,0,0,.65); }
body.pa-light .post-content a   { color: #2563eb; }
body.pa-light .post-content strong { color: #111827; }
body.pa-light .post-content code {
  background: rgba(0,0,0,.05);
  border-color:rgba(0,0,0,.5);
  color: #1d4ed8;
}
body.pa-light .post-content pre {
  background: #1e293b;
  border-color:rgba(0,0,0,.5);
}
body.pa-light .post-content blockquote {
  border-left-color: #2563eb;
  color: rgba(0,0,0,.5);
  background: rgba(37,99,235,.04);
}
body.pa-light .post-content hr { border-top-color:rgba(0,0,0,.5); }

/* ── Work page pagination ────────────────────────── */
.work-pagination {
  display: flex;
  justify-content: center;
  padding: 32px 0 60px;
}
.work-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.work-pagination ul.page-numbers li { margin: 0; padding: 0; list-style: none; }
.work-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color:rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: all .2s;
  margin: 0 3px;
}
.work-pagination .page-numbers:hover { color: var(--white); border-color:rgba(255,255,255,.45); }
.work-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.work-pagination .page-numbers.prev,
.work-pagination .page-numbers.next { font-size: 16px; }

/* Light mode */
body.pa-light .work-pagination .page-numbers { color:rgba(0,0,0,.6); border-color:rgba(0,0,0,.5); background: #fff; }
body.pa-light .work-pagination .page-numbers:hover { color: #111827; border-color:rgba(0,0,0,.5); }
body.pa-light .work-pagination .page-numbers.current { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ── Work card hover overlay + arrow (reference match) ── */
.project-hover-overlay{
  position:absolute;inset:0;background:rgba(0,0,0,.15);
  opacity:0;transition:opacity .5s;pointer-events:none;
}
.project-card:hover .project-hover-overlay{opacity:1}
.project-hover-arrow{
  position:absolute;bottom:16px;right:16px;
  width:44px;height:44px;border-radius:50%;
  background:rgba(255,255,255,.95);backdrop-filter:blur(4px);
  color:#000;
  display:flex;align-items:center;justify-content:center;
  opacity:0;transform:translateY(8px);
  transition:opacity .5s,transform .5s;
  box-shadow:0 8px 24px rgba(0,0,0,.3);pointer-events:none;
}
.project-card:hover .project-hover-arrow{opacity:1;transform:translateY(0)}
body.pa-light .project-hover-overlay{background:rgba(0,0,0,.08)}

.blog-tag.tag-dev,.blog-tag.tag-design,.blog-tag.tag-animation{background:rgba(255,255,255,.9);color:#000;border:none}

/* ── Work/Blog card light mode (reference) ── */
body.pa-light .project-card-img-wrap { background: #e5e7eb; border-color:rgba(0,0,0,.5); }
body.pa-light .blog-card {
  background: #ffffff;
  border-color:rgba(0,0,0,.5);
}
body.pa-light .blog-card:hover {
  border-color:rgba(0,0,0,.5);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
body.pa-light .blog-card-img-wrap { background: #e5e7eb; }
body.pa-light .blog-card-img-wrap::after { background: linear-gradient(to top,rgba(0,0,0,.4),transparent 50%); }
body.pa-light .blog-title { color: #111827; }
body.pa-light .blog-card:hover .blog-title { color: #2563eb; }

/* Wordmark per-letter hover (reference) */
.footer-wordmark-text { display:flex; justify-content:center; align-items:center; flex-wrap:nowrap; }
.footer-wordmark span {
  display:inline-block;
  transition:transform .3s,color .3s,text-shadow .3s,-webkit-text-fill-color .3s;
  cursor:default;
}
.footer-wordmark span:hover {
  transform:translateY(-8px) scale(1.05);
  color:#3b82f6 !important;
  -webkit-text-fill-color:#3b82f6 !important;
  text-shadow:0 0 25px rgba(59,130,246,.45);
}

/* ── 404 PAGE ─────────────────────────────────────── */
.pa-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  z-index: 1;
}
.pa-404-num {
  font-family: var(--display);
  font-size: clamp(100px, 20vw, 200px);
  letter-spacing: .02em;
  line-height: 1;
  display: block;
  background: linear-gradient(180deg, rgba(232,234,240,.15), rgba(232,234,240,.03));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pa-404-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin: .5rem 0 1rem;
  letter-spacing: -.02em;
}
.pa-404-text {
  color:rgba(255,255,255,.55);
  font-size: 14px;
  margin-bottom: 2rem;
}
/* Light mode */
body.pa-light .pa-404-num {
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.04));
  -webkit-background-clip: text;
  background-clip: text;
}
body.pa-light .pa-404-title { color: #111827; }
body.pa-light .pa-404-text  { color: rgba(0,0,0,.45); }

/* ── WORK ARCHIVE GRID (reference ProjectCard match) ── */
.work-archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 36px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px 80px;
  position: relative;
  z-index: 1;
}
.work-archive-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 16px;       /* matches .work-archive-img-wrap so 3D tilt looks unified */
  isolation: isolate;        /* own compositing layer — prevents corner artifacts while tilted */
}
.work-archive-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #18181b;
  border: 1px solid rgba(255,255,255,.05);
  margin-bottom: 16px;
  transition: box-shadow .5s cubic-bezier(.16,1,.3,1), border-color .5s;
}
/* Lift is handled by the JS 3D-tilt on .work-archive-card itself (translateZ) —
   this rule only adds the glow/border feedback, no competing transform. */
.work-archive-card:hover .work-archive-img-wrap {
  box-shadow: 0 20px 50px -15px rgba(59,130,246,.2);
  border-color: rgba(59,130,246,.3);
}
.work-archive-img-wrap img,
.work-archive-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.work-archive-card:hover .work-archive-img-wrap img,
.work-archive-card:hover .work-archive-placeholder {
  transform: scale(1.03);
}
.work-archive-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.2), transparent 50%);
  opacity: 0;
  transition: opacity .7s;
  pointer-events: none;
}
.work-archive-card:hover .work-archive-overlay { opacity: 1; }
.work-archive-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  pointer-events: none;
}
.work-archive-card:hover .work-archive-arrow { opacity: 1; transform: translateY(0); }
.work-archive-cat {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color:rgba(255,255,255,.5);
  margin-bottom: 10px;
  padding: 0 8px;
}
.work-archive-title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 12px;
  padding: 0 8px;
  transition: color .5s;
}
.work-archive-card:hover .work-archive-title { color: #3b82f6; }
.work-archive-desc {
  font-size: 15px;
  color:rgba(255,255,255,.55);
  line-height: 1.6;
  padding: 0 8px;
  max-width: 95%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Light mode */
body.pa-light .work-archive-img-wrap { background: #e5e7eb; border-color:rgba(0,0,0,.5); }
body.pa-light .work-archive-cat { color:rgba(0,0,0,.6); }
body.pa-light .work-archive-title { color: #111827; }
body.pa-light .work-archive-card:hover .work-archive-title { color: #2563eb; }
body.pa-light .work-archive-desc { color: rgba(0,0,0,.45); }
body.pa-light .work-archive-arrow { background: #000; color: #fff; }
@media (max-width: 768px) {
  .work-archive-grid { grid-template-columns: repeat(2,1fr); gap: 16px; padding: 0 16px 50px; }
  .work-archive-title { font-size: 1rem; }
  .work-archive-cat { font-size: 8px; margin-bottom: 6px; }
  .work-archive-arrow { width: 36px; height: 36px; bottom: 10px; right: 10px; }
  .work-archive-arrow svg { width: 16px; height: 16px; }
}

/* ════════════════════════════════════════════════════════
   CINEMATIC DEPTH (static — no distracting movement)
════════════════════════════════════════════════════════ */
/* Subtle vignette for cinematic depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 130% 90% at 50% 35%, transparent 60%, rgba(0,0,0,.3) 100%);
}
body.pa-light::before {
  background: radial-gradient(ellipse 130% 90% at 50% 35%, transparent 65%, rgba(0,0,0,.05) 100%);
}
.site-wrap, .pa-navbar, header, footer, main, section { position: relative; z-index: 1; }

/* ════════════════════════════════════════════════════════
   MOBILE CAROUSEL — home work + blog cards
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Turn the home work/blog grids into horizontal swipe carousels */
  .work-grid,
  .blog-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 16px 16px;
    margin: 0 -16px;            /* bleed to screen edges */
    scroll-padding-left: 16px;
  }
  .work-grid::-webkit-scrollbar,
  .blog-grid::-webkit-scrollbar { display: none; }

  /* Each card takes ~82% width so the next peeks in */
  .work-grid > .work-archive-card,
  .blog-grid > .blog-card {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: start;
  }

  /* Carousel dots indicator */
  .pa-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
  }
  .pa-carousel-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    transition: background .3s, width .3s;
  }
  .pa-carousel-dot.active {
    background: #3b82f6;
    width: 20px;
    border-radius: 4px;
  }
  body.pa-light .pa-carousel-dot { background: rgba(0,0,0,.2); }
  body.pa-light .pa-carousel-dot.active { background: #2563eb; }
}
/* Hide carousel dots on desktop */
.pa-carousel-dots { display: none; }

/* Carousel cards always visible on mobile (override scroll-reveal) */
@media (max-width: 768px) {
  .work-grid > .work-archive-card.pa-reveal,
  .blog-grid > .blog-card.pa-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ════════════════════════════════════════════════════════
   NAVBAR  —  pixel-perfect reference match
   Reference: fixed top-0, justify-center, pt-4 sm:pt-6 lg:pt-8
════════════════════════════════════════════════════════ */

/* ── Outer nav ─────────────────────────────────────── */
.pa-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;   /* pill always centred */
  align-items: flex-start;
  padding-top: 16px;         /* pt-4 base */
  padding-left: 12px;
  padding-right: 12px;
  pointer-events: none;
}
@media (min-width: 640px)  { .pa-navbar { padding-top: 24px; } }   /* sm:pt-6 */
@media (min-width: 1024px) { .pa-navbar { padding-top: 32px; } }   /* lg:pt-8 */

/* ── Brand — absolute left-8 top-11, lg:flex ────── */
.pa-brand {
  position: absolute;
  left: 32px; top: 46px;
  display: none;            /* hidden by default, show lg+ */
  flex-direction: column;
  gap: 3px;
  pointer-events: auto;
}
@media (min-width: 1024px) { .pa-brand { display: flex; } }

.pa-brand-name {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: #ffffff;
}
.pa-brand-location {
  font-family: var(--mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* ── Clock — absolute right-8 top-11, lg:flex ──── */
.pa-clock {
  position: absolute;
  right: 32px; top: 46px;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  pointer-events: auto;
}
@media (min-width: 1024px) { .pa-clock { display: flex; } }

.pa-clock-time {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: #ffffff;
}
.pa-clock-tz {
  font-family: var(--mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ── PILL ────────────────────────────────────────── */
.pa-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 9999px;    /* rounded-full */
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,12,12,.5);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  box-shadow: 0 48px 96px -16px rgba(0,0,0,.8),
              inset 0 1px 1px rgba(255,255,255,.2),
              inset 0 -1px 1px rgba(0,0,0,.4);
  pointer-events: auto;
  overflow: visible;
  transition: background .7s, border-color .7s;
}
.pa-pill.scrolled {
  background: rgba(12,12,12,.82);
  border-color: rgba(255,255,255,.2);
}

/* Scroll progress line */
.pa-scroll-track {
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1.5px;
  background: rgba(96,165,250,.1);
  border-radius: 9999px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.pa-scroll-bar {
  height: 100%; width: 0;
  background: #60a5fa;
  box-shadow: 0 0 20px rgba(96,165,250,1);
  border-radius: 9999px;
  transition: width .1s linear;
}

/* Sweep glow animation */
.pa-sweep {
  position: absolute; inset: 0;
  border-radius: 9999px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.pa-sweep-wide, .pa-sweep-core {
  position: absolute; top: 0; bottom: 0; left: -100%;
  transform: skewX(-30deg);
  animation: pa-sweep-anim 8s cubic-bezier(.4,0,.2,1) 1s infinite;
}
.pa-sweep-wide {
  width: 40%;
  background: linear-gradient(to right, transparent, rgba(59,130,246,.55), transparent);
  filter: blur(14px);
}
.pa-sweep-core {
  width: 18%;
  background: linear-gradient(to right, transparent, rgba(34,211,238,.7), transparent);
  filter: blur(6px);
}
@keyframes pa-sweep-anim { from{left:-100%} to{left:200%} }

/* ── Avatar ──────────────────────────────────────── */
.pa-av-wrap {
  display: flex;
  align-items: center;
  padding: 0 6px 0 4px;    /* pl-1.5 pr-1.5 sm:pl-2 sm:pr-2 */
  position: relative; z-index: 1;
}
.pa-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,.25);
  box-shadow: 0 0 0 0 transparent;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
  display: block;
}
.pa-av:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(59,130,246,.3);
}
.pa-av-init {
  background: linear-gradient(135deg,#1d4ed8,#7c3aed);
  color: #fff; font-family: var(--mono);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 640px) {
  .pa-av { width: 34px; height: 34px; }
  .pa-av-wrap { padding: 0 8px 0 6px; }
}

/* ── Separators ──────────────────────────────────── */
.pa-sep {
  width: 1px; height: 20px;
  background: rgba(255,255,255,.1);
  border-radius: 1px;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
/* Avatar separator: hidden on mobile */
.pa-sep-av { display: none; }
@media (min-width: 640px) { .pa-sep-av { display: block; } }
/* CTA separator: hidden on mobile */
.pa-sep-cta { display: none; }
@media (min-width: 640px) { .pa-sep-cta { display: block; } }

/* Small dividers between nav items */
.pa-link-div {
  width: 1px; height: 12px;
  background: rgba(255,255,255,.05);
  border-radius: 1px;
  flex-shrink: 0;
  margin: 0 2px;
}

/* ── Nav links ───────────────────────────────────── */
.pa-links {
  display: flex;
  align-items: center;
  padding: 0 4px;
  position: relative; z-index: 1;
}
.pa-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--nav-link-color, rgba(100,116,139,1));
  text-decoration: none;
  white-space: nowrap;
  transition: color .3s;
}
.pa-link:hover { color: var(--nav-link-hover, #60a5fa); text-decoration: none; }
.pa-link--active { color: var(--nav-link-active, #ffffff); }

@media (min-width: 640px)  { .pa-link { padding: 9px 14px; font-size: 11.5px; } }
@media (min-width: 1024px) { .pa-link { padding: 8px 17px; font-size: 12px; } }

/* Icon */
.pa-link-icon {
  display: flex; align-items: center;
  position: relative;
  transition: transform .3s, filter .3s;
}
.pa-link-icon svg { width: 17px; height: 17px; }
@media (min-width: 640px) { .pa-link-icon svg { width: 14px; height: 14px; } }
.pa-link:hover .pa-link-icon { transform: scale(1.1); color: var(--nav-link-hover, #60a5fa); }
.pa-link--active .pa-link-icon {
  color: var(--nav-link-hover, #60a5fa);
  filter: drop-shadow(0 0 6px var(--nav-glow-color, rgba(96,165,250,.5)));
}

/* Label — only desktop */
.pa-link-label { display: none; }
@media (min-width: 1024px) { .pa-link-label { display: inline; } }

/* Contact pulsing dot */
.pa-contact-dot {
  position: absolute;
  top: -3px; right: -4px;
  width: 7px; height: 7px;
  background: #3b82f6;
  border-radius: 50%;
  border: 1.5px solid #050505;
  animation: pa-cdot 2s ease-in-out infinite;
}
@keyframes pa-cdot {
  0%,100%{ box-shadow:0 0 0 0 rgba(59,130,246,.6); }
  50%    { box-shadow:0 0 0 4px rgba(59,130,246,0); }
}

/* Active background pill (spring-like via CSS transition) */
.pa-active-bg {
  position: absolute; inset: 0; z-index: -1;
  border-radius: 9999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 12px 24px -10px var(--nav-glow-color, rgba(59,130,246,.3)),
              inset 0 1px 1px rgba(255,255,255,.08);
  pointer-events: none;
}
/* Active underline dot */
.pa-active-dot {
  position: absolute;
  bottom: -3px;
  left: 50%; transform: translateX(-50%);
  width: 32px; height: 2px;
  border-radius: 9999px;
  background: linear-gradient(to right, transparent, var(--nav-glow-color, #60a5fa), transparent);
  box-shadow: 0 0 12px var(--nav-glow-color, rgba(96,165,250,1));
  pointer-events: none;
}

/* ── Theme toggle ────────────────────────────────── */
.pa-toggle-wrap {
  display: flex; align-items: center;
  padding: 0 8px;           /* px-2 sm:px-3 */
  position: relative; z-index: 1;
}
@media (min-width: 640px) { .pa-toggle-wrap { padding: 0 12px; } }

.pa-toggle {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: none; outline: none;
  background: #ffffff;
  color: #000000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 0 15px rgba(255,255,255,.3);
  flex-shrink: 0;
  transition: transform .2s cubic-bezier(.16,1,.3,1);
}
.pa-toggle:hover  { transform: scale(1.1); }
.pa-toggle:active { transform: scale(.9);  }

/* Icon animation: slide + rotate on theme change */
.pa-tog-icon {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s ease, transform .3s ease;
}
.pa-tog-sun  { opacity:1; transform:translateY(0) rotate(0); }
.pa-tog-moon { opacity:0; transform:translateY(20px) rotate(-45deg); }
body.pa-light .pa-tog-sun  { opacity:0; transform:translateY(-20px) rotate(45deg); }
body.pa-light .pa-tog-moon { opacity:1; transform:translateY(0) rotate(0); }
body.pa-light .pa-toggle {
  background: #000000; color: #ffffff;
  box-shadow: 0 0 15px rgba(0,0,0,.3);
}

/* ── CTA Connect button ──────────────────────────── */
.pa-cta-wrap {
  display: none;            /* hidden on mobile */
  align-items: center;
  padding: 0 4px 0 12px;   /* pl-3 pr-1 */
  position: relative; z-index: 1;
}
@media (min-width: 640px) { .pa-cta-wrap { display: flex; } }

.pa-cta {
  position: relative;
  display: inline-flex; align-items: center;
  height: 36px;             /* h-9 */
  padding: 0 20px;          /* px-5 */
  border-radius: 9999px;    /* rounded-full */
  background: #ffffff;
  color: #000000;
  font-family: var(--mono);
  font-size: 9px; font-weight: 900;
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  transition: transform .2s;
}
.pa-cta:hover  { transform: scale(1.02); text-decoration: none; }
.pa-cta:active { transform: scale(.98); }

/* Blue fill slides from left */
.pa-cta-fill {
  position: absolute; inset: 0;
  background: #3b82f6;
  transform: translateX(-101%);
  transition: transform .5s cubic-bezier(0.16,1,.3,1);
  z-index: 0;
}
.pa-cta:hover .pa-cta-fill { transform: translateX(0); }

/* Text + arrow layer above fill */
.pa-cta-inner {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  color: #000000;
  transition: color .5s;
}
.pa-cta:hover .pa-cta-inner { color: #ffffff; }
.pa-cta-inner svg { transition: transform .3s; }
.pa-cta:hover .pa-cta-inner svg { transform: translateX(2px); }

/* ── Light theme overrides ───────────────────────── */
body.pa-light .pa-brand-name     { color: #111827; }
body.pa-light .pa-brand-location { color: rgba(0,0,0,.45); }
body.pa-light .pa-clock-time     { color: #111827; }
body.pa-light .pa-clock-tz       { color: rgba(0,0,0,.45); }
body.pa-light .pa-pill {
  background: rgba(255,255,255,.4);
  border-color: rgba(0,0,0,.1);
  box-shadow: 0 48px 96px -16px rgba(0,0,0,.12),
              inset 0 1px 1px rgba(255,255,255,.8),
              inset 0 -1px 1px rgba(0,0,0,.05);
}
body.pa-light .pa-pill.scrolled { background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.15); }
body.pa-light .pa-sep             { background: rgba(0,0,0,.1); }
body.pa-light .pa-link-div        { background: rgba(0,0,0,.05); }
body.pa-light .pa-link            { color: rgba(100,116,139,1); }
body.pa-light .pa-link:hover      { color: #2563eb; }
body.pa-light .pa-link--active    { color: #111827; }
body.pa-light .pa-active-bg {
  background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.12);
  box-shadow: 0 12px 24px -10px rgba(37,99,235,.2);
}
body.pa-light .pa-active-dot { background: linear-gradient(to right, transparent, #2563eb, transparent); }
body.pa-light .pa-contact-dot { border-color: #f8f9fa; }
body.pa-light .pa-cta { background: #000000; color: #ffffff; }
body.pa-light .pa-cta-inner { color: #ffffff; }
body.pa-light .pa-cta-fill { background: #2563eb; }
body.pa-light .pa-cta:hover .pa-cta-inner { color: #ffffff; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE — mobile / tablet
════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ─────────────────────────────── */
@media (max-width:1024px) {
  .hero { padding-left:24px; padding-right:24px; }
  .work-grid  { gap:20px; }
  .blog-grid  { gap:20px; }
}

/* ── Mobile (≤768px) ──────────────────────────────── */
@media (max-width:768px) {
  /* Hero — top-align instead of center, removes the large perceived
     gap caused by vertical centering inside a now-shorter (min-height:auto)
     flex container combined with the fixed header overlapping the top. */
  .hero {
    min-height:auto;
    align-items:flex-start;
    padding:64px 20px 40px;
  }
  .hero-heading { margin-bottom:12px; }
  .hero-heading-line1 { font-size:clamp(1.9rem,9vw,2.8rem); }
  .hero-heading-line2 { font-size:clamp(1.7rem,8vw,2.5rem); }
  .hero-sub { font-size:14px; max-width:95%; margin:0 auto 20px; }
  .available-badge { margin-bottom:20px; }
  .hero-stats-box {
    flex-direction:column;
    max-width:280px;
    border-radius:12px;
    margin-bottom:28px;
  }
  .hero-stat-item + .hero-stat-item {
    border-left:none;
    border-top:1px solid rgba(255,255,255,.08);
  }
  .hero-stat-item { padding:16px; }
  .hero-inner { padding: 8px 0 24px; }
  .hero-ctas {
    flex-direction:column;
    gap:14px; width:100%; max-width:260px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width:100%; justify-content:center; }

  /* Sections — tighter spacing between sections */
  .section-header { flex-direction:column; align-items:flex-start; gap:8px; margin-bottom:20px; padding:0 16px; }
  .section-title  { font-size:clamp(1.5rem,6vw,2rem); }
  .section-eyebrow{ font-size:9px; }
  #work, #blog { padding-top:48px !important; padding-bottom:48px !important; }

  /* Work + Blog → horizontal carousel */
  .work-grid,
  .blog-grid {
    display:flex;
    flex-direction:row;
    flex-wrap:nowrap;
    gap:14px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:4px 16px 16px;
    margin:0 -16px;
    scroll-padding-left:16px;
  }
  .work-grid::-webkit-scrollbar,
  .blog-grid::-webkit-scrollbar { display:none; }
  .work-grid > .work-archive-card,
  .blog-grid > .blog-card {
    flex:0 0 82%;
    max-width:82%;
    scroll-snap-align:start;
    opacity:1 !important;
    transform:none !important;
  }

  /* Contact — tighter section, email/phone on one line */
  .contact-section { padding:48px 16px; }
  .contact-heading  { font-size:clamp(1.8rem,10vw,3rem); margin-bottom:4px; }
  .contact-subheading { font-size:clamp(1.4rem,7vw,2.2rem); margin-bottom:24px; }
  .contact-links {
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px 12px;
    margin-bottom:28px;
  }
  .contact-link { font-size:13px; }
  .contact-sep { display:inline-block; }
  .contact-form-card { padding:20px 16px; }
  .form-row { grid-template-columns:1fr; }

  /* Newsletter */
  .newsletter-card { padding:36px 18px; border-radius:24px; margin-top:0; }
  .newsletter-form { flex-direction:column; gap:10px; }
  .newsletter-input,
  .newsletter-btn   { width:100%; border-radius:12px; justify-content:center; }

  /* Footer */
  .footer-bottom { flex-direction:column; text-align:center; gap:10px; padding:16px 16px 24px; }
  .footer-links  { justify-content:center; gap:20px; }
  .footer-wordmark span { font-size:clamp(44px,20vw,100px); }

  /* Blog page */
  .blog-page-grid { grid-template-columns:1fr; gap:16px; }

  /* Work archive page — sizing handled in the consolidated mobile block above */

  /* About */
  .about-photo-panel { grid-template-columns:1fr; padding:0 16px; margin-top:80px; }
  .about-bio-section { padding:0 16px; }
  .about-mid-grid  { grid-template-columns:1fr; padding:0 16px; }
  .about-arsenal-wrap { padding:0 16px; }
  .about-tech-boxes   { grid-template-columns:repeat(3,1fr); }

  /* Single blog */
  .sng-layout  { grid-template-columns:1fr; }
  .sng-sidebar { position:static; }
  .sng-more-grid { grid-template-columns:1fr; gap:16px; }

  /* Single project */
  .spj-wrap   { padding:0 16px; }
  .spj-topbar { padding:84px 16px 14px; }
  .spj-det-grid { grid-template-columns:repeat(2,1fr); gap:16px; }
  .spj-det { border-right:none; margin-right:0; padding-right:0; }
  .spj-proc { grid-template-columns:1fr; gap:24px; }
  .spj-psep { display:none; }
  .spj-gal  { grid-template-columns:1fr 1fr; grid-auto-rows:150px; }
  .spj-metrics { grid-template-columns:1fr; max-width:220px; }
}

/* ── Small mobile (≤480px) ────────────────────────── */
@media (max-width:480px) {
  .hero-heading-line1 { font-size:clamp(1.7rem,10vw,2.2rem); }
  .hero-heading-line2 { font-size:clamp(1.5rem,9vw,2rem); }
  .available-badge    { font-size:8px; padding:6px 12px; }
  .btn-primary        { padding:13px 26px; font-size:13px; }
  .about-tech-boxes   { grid-template-columns:repeat(2,1fr); }
  .work-archive-grid  { grid-template-columns:1fr; gap:20px; }
}

/* ── Touch: arrows always visible ─────────────────── */
@media (hover:none) {
  .project-hover-arrow,
  .work-archive-arrow { opacity:1; transform:none; }
}

/* ── Carousel dots (mobile only) ──────────────────── */
.pa-carousel-dots { display:none; }
@media (max-width:768px) {
  .pa-carousel-dots {
    display:flex; justify-content:center;
    gap:7px; margin-top:14px;
  }
  .pa-carousel-dot {
    width:7px; height:7px;
    border-radius:50%;
    background:rgba(255,255,255,.2);
    transition:background .3s, width .3s;
    cursor:pointer;
  }
  .pa-carousel-dot.active {
    background:#3b82f6; width:20px; border-radius:4px;
  }
  body.pa-light .pa-carousel-dot       { background:rgba(0,0,0,.2); }
  body.pa-light .pa-carousel-dot.active{ background:#2563eb; }
}

/* ════════════════════════════════════════════════════════
   HERO SECTION — MinimalHero reference exact
════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050505;
  color: #ffffff;
  transition: background .5s, color .5s;
}
body.pa-light .hero { background: #fafaf7; color: #0a0a0a; }

/* Atmospheric background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: -30%; left: -25%;
  width: 55%; height: 55%;
  background: rgba(37,99,235,.15);
  filter: blur(160px);
  border-radius: 50%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 60%, transparent 100%);
}
body.pa-light .hero-blob { background: rgba(59,130,246,.15); }
body.pa-light .hero-grid {
  background-image:
    linear-gradient(to right, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.04) 1px, transparent 1px);
}

/* Hero inner */
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }
.hero-inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 96px 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Available badge */
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8,8,8,.4);
  backdrop-filter: blur(12px);
  margin-bottom: 40px;
  cursor: default;
}
.badge-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59,130,246,.6);
  flex-shrink: 0;
}
.badge-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #3b82f6;
  opacity: .5;
  animation: badge-ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes badge-ping { 75%,100%{ transform:scale(2.2); opacity:0; } }
.badge-sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}
.available-badge span:last-child {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
body.pa-light .available-badge {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.1);
}
body.pa-light .badge-sep   { background: rgba(0,0,0,.18); }
body.pa-light .available-badge span:last-child { color: rgba(0,0,0,.5); }

/* Eyebrow */
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .35em; text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: 20px;
}
body.pa-light .hero-eyebrow { color: #2563eb; }

/* Heading */
.hero-heading {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  margin-bottom: 32px;
}
.hero-heading-line1 {
  display: block;
  color: #ffffff;
}
body.pa-light .hero-heading-line1 { color: #0a0a0a; }

/* Line2 — gradient gray (reference exact) */
.hero-heading-line2 {
  display: block;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 300;
  padding-bottom: .15em;
  padding-right: .1em;
  color: #3b82f6;
  -webkit-text-fill-color: #3b82f6;
}
body.pa-light .hero-heading-line2 {
  color: #2563eb;
  -webkit-text-fill-color: #2563eb;
}

/* Tagline */
.hero-sub {
  max-width: 32rem;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  font-weight: 300;
  color: rgba(161,161,170,1);  /* zinc-400 */
  margin-bottom: 40px;
}
body.pa-light .hero-sub { color: rgba(82,82,91,1); }  /* zinc-600 */

/* Stats box */
.hero-stats-box {
  width: 100%;
  max-width: 42rem;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  background: rgba(39,39,42,.3);  /* zinc-800/30 */
  border: 1px solid rgba(63,63,70,.6);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 56px;
  backdrop-filter: blur(8px);
}
body.pa-light .hero-stats-box {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.08);
}
.hero-stat-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 16px;
  background: #080808;
  transition: background .5s;
  cursor: default;
}
.hero-stat-item:hover { background: rgba(39,39,42,.4); }
.hero-stat-item + .hero-stat-item {
  border-left: 1px solid rgba(63,63,70,.5);
}
body.pa-light .hero-stat-item { background: #ffffff; }
body.pa-light .hero-stat-item:hover { background: rgba(0,0,0,.03); }
body.pa-light .hero-stat-item + .hero-stat-item { border-left-color: rgba(0,0,0,.08); }

.hero-stat-val {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  transition: transform .5s;
}
.hero-stat-item:hover .hero-stat-val { transform: scale(1.1); }
body.pa-light .hero-stat-val { color: #0a0a0a; }

.hero-stat-label {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(113,113,122,1);  /* zinc-500 */
}
body.pa-light .hero-stat-label { color: rgba(113,113,122,1); }

/* CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
@media (min-width: 640px) { .hero-ctas { flex-direction: row; justify-content: center; } }

/* Primary CTA wrapper (holds glow + button) */
.btn-primary-wrap {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.btn-primary-glow {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: linear-gradient(to right, #2563eb, #4f46e5);
  filter: blur(8px);
  opacity: .3;
  transition: opacity .7s;
  z-index: 0;
  pointer-events: none;
}
.btn-primary-wrap:hover .btn-primary-glow { opacity: .8; }
.btn-primary {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 36px;
  border-radius: 9999px;
  background: #ffffff; color: #000000;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform .3s;
}
.btn-primary-wrap:hover .btn-primary { transform: translateY(-2px); }
.btn-primary-arrow { display: inline-block; transition: transform .3s; }
.btn-primary-wrap:hover .btn-primary-arrow { transform: rotate(45deg); }
body.pa-light .btn-primary { background: #000000; color: #ffffff; }

/* Ghost / secondary CTA */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: rgba(113,113,122,1);
  text-decoration: none;
  transition: color .3s;
}
.btn-ghost:hover { color: #ffffff; text-decoration: none; }
body.pa-light .btn-ghost { color: rgba(113,113,122,1); }
body.pa-light .btn-ghost:hover { color: #0a0a0a; }
.btn-ghost-line {
  display: block;
  width: 32px; height: 1px;
  background: rgba(63,63,70,1);
  transition: width .5s, background .5s;
}
.btn-ghost:hover .btn-ghost-line { width: 56px; background: #3b82f6; }
body.pa-light .btn-ghost-line { background: rgba(0,0,0,.3); }

/* ════════════════════════════════════════════════════════
   CARD HOVER — GPU-accelerated, no 3D rotation (avoids shape distortion)
════════════════════════════════════════════════════════ */

/* Perspective context for pill nav (separate mouse-attract tilt feature) */
.pa-navbar { perspective: 1000px; }
.pa-pill { transform-style: preserve-3d; }

/* Cards — simple GPU layer for smooth lift+scale on hover */
.project-card,
.work-archive-card,
.blog-card,
.blog-page-card,
.about-bio-card,
.about-section-card,
.about-arsenal-card,
.spj-met,
.sng-author-card,
.sng-share-card,
.sng-rc {
  will-change: transform;
}

/* Hero inner — GPU layer for parallax */
.hero-inner { will-change: transform; }
.hero-blob  { will-change: transform; }

/* Cursor glow overlay — color/size set dynamically via JS from admin settings */
#pa-cursor-glow { opacity: 1; }

/* Section entrance — depth-enhanced */
.pa-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(0.16,1,0.3,1),
              transform .9s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.pa-reveal.in-view { opacity: 1; transform: none; }

/* Stagger siblings (applied via JS delay) — reveal-only, hover timing is set by JS */
.project-card, .blog-card, .work-archive-card,
.blog-page-card, .sng-rc {
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.16,1,0.3,1);
}

/* Base shadow on cards — JS overrides dynamically while tilting */
.project-card,
.work-archive-card,
.blog-card,
.blog-page-card,
.about-bio-card,
.about-section-card,
.about-arsenal-card,
.sng-author-card,
.sng-share-card,
.sng-rc {
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
body.pa-light .project-card,
body.pa-light .work-archive-card,
body.pa-light .blog-card,
body.pa-light .blog-page-card,
body.pa-light .about-bio-card,
body.pa-light .about-section-card,
body.pa-light .about-arsenal-card,
body.pa-light .sng-author-card,
body.pa-light .sng-share-card,
body.pa-light .sng-rc {
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.spj-met { box-shadow: 0 2px 8px rgba(0,0,0,.15); }
body.pa-light .spj-met { box-shadow: 0 2px 8px rgba(15,23,42,.06); }

/* Reduced motion: disable all 3D */
@media (prefers-reduced-motion: reduce) {
  .pa-pill,
  .project-card, .work-archive-card, .blog-card,
  .blog-page-card, .about-bio-card, .about-section-card,
  .about-arsenal-card, .spj-met, .sng-author-card,
  .sng-share-card, .sng-rc {
    transform-style: flat !important;
    will-change: auto !important;
  }
  .pa-reveal { animation: none; opacity: 1; transform: none; }
  #pa-cursor-glow { display: none; }
}

/* ════════════════════════════════════════════════════════
   FORM SUCCESS ANIMATION — checkmark + particle burst
════════════════════════════════════════════════════════ */
.pa-success-burst {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.pa-success-check {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  filter: drop-shadow(0 4px 16px rgba(59,130,246,.5));
}
.pa-success-burst-active .pa-success-check {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.pa-success-check-circle {
  stroke: #3b82f6;
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  transition: stroke-dashoffset .5s ease .1s;
}
.pa-success-burst-active .pa-success-check-circle { stroke-dashoffset: 0; }
.pa-success-check-mark {
  stroke: #3b82f6;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  transition: stroke-dashoffset .35s ease .45s;
}
.pa-success-burst-active .pa-success-check-mark { stroke-dashoffset: 0; }

.pa-success-particle {
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, -50%) translate(0, 0) scale(0) rotate(0deg);
  transition: transform .9s cubic-bezier(.16,1,.3,1) var(--delay, 0s),
              opacity .9s ease var(--delay, 0s);
}
.pa-success-burst-active .pa-success-particle {
  opacity: 1;
  transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) scale(1) rotate(220deg);
  transition: transform .9s cubic-bezier(.16,1,.3,1) var(--delay, 0s),
              opacity .9s ease .6s;
}

@media (prefers-reduced-motion: reduce) {
  .pa-success-burst { display: none; }
}

/* ════════════════════════════════════════════════════════
   LEGAL PAGES — Privacy Policy / Terms of Service
════════════════════════════════════════════════════════ */
.legal-page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 32px 100px;
  position: relative;
  z-index: 1;
}
.legal-page-hero {
  text-align: center;
  margin-bottom: 56px;
}
.legal-page-badge {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
}
.legal-page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 10px;
}
.legal-page-updated {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.legal-page-body { padding-bottom: 40px; }
.legal-page-body h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.legal-page-body h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.legal-page-body p  { margin-bottom: 1.1rem; }
.legal-page-body ul, .legal-page-body ol { margin: 0 0 1.1rem 1.5rem; }

body.pa-light .legal-page-badge { color: #2563eb; background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.25); }
body.pa-light .legal-page-title { color: #111827; }
body.pa-light .legal-page-updated { color: rgba(0,0,0,.4); }

@media (max-width: 768px) {
  .legal-page-wrap { padding: 100px 20px 70px; }
}
