/* ============================================================
   Nayyer Abbas — Portfolio
   Framer-style dark theme: aurora, motion, CSS-art thumbnails
   ============================================================ */

:root {
  --bg: #07070a;
  --bg-soft: #0f0f15;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --muted: #9b9ba8;
  --accent: #6366f1;
  --upwork: #14a800;
  --fiverr: #1dbf73;
  --radius: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-name { font-family: "Instrument Serif", serif; font-size: clamp(1.6rem, 5vw, 2.6rem); letter-spacing: .01em; }
.loader-bar { width: 180px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6366f1, #ec4899); animation: load 1.1s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }

/* ---------- Aurora backdrop ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(circle at 50% -10%, rgba(99,102,241,0.12), transparent 55%), var(--bg); }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(95px); opacity: .5; animation: float 18s var(--ease) infinite alternate; }
.blob-1 { width: 540px; height: 540px; background: #6366f1; top: -120px; left: -80px; }
.blob-2 { width: 460px; height: 460px; background: #ec4899; top: 28%; right: -130px; animation-delay: -6s; }
.blob-3 { width: 520px; height: 520px; background: #22d3ee; bottom: -180px; left: 28%; animation-delay: -11s; }
@keyframes float { to { transform: translate3d(60px, 40px, 0) scale(1.15); } }
.grain { position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1500; border-radius: 50%; transform: translate(-50%,-50%); mix-blend-mode: difference; }
.cursor { width: 36px; height: 36px; border: 1.5px solid #fff; transition: width .25s var(--ease), height .25s var(--ease), background .25s var(--ease); }
.cursor-dot { width: 5px; height: 5px; background: #fff; }
.cursor.is-active { width: 66px; height: 66px; background: rgba(255,255,255,0.14); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, #6366f1, #ec4899, #22d3ee); }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px); transition: padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease); }
.nav.scrolled { padding: 12px clamp(20px, 5vw, 56px); background: rgba(7,7,10,0.6); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: #fff; background: linear-gradient(135deg, #6366f1, #ec4899); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .95rem; transition: color .25s; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--text); transition: width .3s var(--ease); }
.nav-links a:hover { color: var(--text); } .nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 9px 18px; border: 1px solid var(--border); border-radius: 100px; font-size: .9rem; font-weight: 500; transition: background .25s, border-color .25s, color .25s; }
.nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px;
  padding: 130px clamp(20px, 5vw, 40px) 90px; position: relative; }
.hero-badges { margin-bottom: 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); font-size: .85rem; color: var(--muted); }
.chip-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
.hero-title .line { display: block; }
.hero-title em { font-weight: 400; }
.hero-sub { margin-top: 26px; max-width: 50ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-rated { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.rated { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 100px; font-size: .88rem; font-weight: 600; border: 1px solid var(--border); background: var(--surface); }
.rated svg { flex-shrink: 0; }
.rated.upwork { color: #6ee787; } .rated.upwork svg { color: var(--upwork); }
.rated.fiverr { color: #5be3a5; } .rated.fiverr svg { color: var(--fiverr); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn { padding: 14px 28px; border-radius: 100px; font-weight: 500; font-size: .98rem; transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s; border: 1px solid transparent; }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 8px 30px rgba(255,255,255,0.08); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255,255,255,0.16); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-3px); }

/* Hero portrait */
.hero-portrait { position: relative; display: grid; place-items: center; }
.portrait-ring { position: relative; width: clamp(240px, 32vw, 360px); aspect-ratio: 1; border-radius: 50%; padding: 10px; }
.portrait-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 0deg, #6366f1, #ec4899, #22d3ee, #6366f1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portrait-glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.5), transparent 65%); filter: blur(28px); z-index: -1; }
.portrait-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); }
.floor-shadow { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); width: 60%; height: 26px; background: rgba(99,102,241,.45); filter: blur(22px); border-radius: 50%; }
.float-chip { position: absolute; padding: 9px 14px; border-radius: 100px; background: rgba(15,15,21,0.7); backdrop-filter: blur(10px); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; white-space: nowrap; animation: bob 5s ease-in-out infinite; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.fc-1 { top: 6%; left: -6%; } .fc-2 { top: 24%; right: -10%; animation-delay: -1.2s; }
.fc-3 { bottom: 16%; left: -12%; animation-delay: -2.4s; } .fc-4 { bottom: 2%; right: -2%; animation-delay: -3.6s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(var(--muted), transparent); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 22px 0; background: rgba(255,255,255,.015); }
.marquee-track { display: flex; white-space: nowrap; width: max-content; animation: scroll 32s linear infinite; }
.marquee-track span { font-family: "Instrument Serif", serif; font-size: clamp(1.4rem, 3.4vw, 2.3rem); color: var(--muted); padding-right: 30px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(72px, 11vw, 150px) clamp(20px, 5vw, 40px); }
.eyebrow { color: var(--accent); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.section-head { margin-bottom: 56px; }
.section-head h2, .about-text h2, .contact-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.section-lead { color: var(--muted); margin-top: 18px; max-width: 56ch; font-size: 1.05rem; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project { cursor: pointer; }
.thumb { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  display: grid; place-items: center; padding: 26px; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--accent2, var(--accent)) 30%, #0b0b12), #0a0a10); }
.project:hover .thumb { box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.thumb-tag { position: absolute; top: 16px; left: 16px; padding: 5px 12px; border-radius: 100px; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); font-size: .72rem; font-weight: 600; letter-spacing: .03em; z-index: 3; }
.metric { position: absolute; bottom: 16px; right: 16px; padding: 5px 12px; border-radius: 100px; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); font-size: .74rem; font-weight: 600; z-index: 3; }
.project-meta { padding: 22px 4px 0; }
.project-meta h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; }
.project-meta p { color: var(--muted); margin-top: 8px; font-size: .98rem; }
.tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tags span { padding: 5px 12px; border: 1px solid var(--border); border-radius: 100px; font-size: .78rem; color: var(--muted); }

/* mockups inside thumbnails */
.thumb .phone, .thumb .browser { transition: transform .6s var(--ease); }
.project:hover .phone, .project:hover .browser { transform: translateY(-8px) scale(1.02); }

/* phone */
.phone { width: 120px; height: 220px; border-radius: 26px; background: #0c0c14; border: 2px solid rgba(255,255,255,.22); position: relative; padding: 14px 10px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 38px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); }
.phone-screen { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; height: calc(100% - 14px); }
.idcard { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.idphoto { width: 30px; height: 30px; border-radius: 7px; background: rgba(255,255,255,.85); }
.idline { height: 5px; border-radius: 4px; background: rgba(255,255,255,.7); }
.w70 { width: 70%; } .w50 { width: 50%; } .w40 { width: 40%; }
.dots { display: flex; gap: 8px; margin-top: auto; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); }
.dots i:first-child { background: rgba(255,255,255,.8); }

/* browser */
.browser { width: 86%; max-width: 320px; border-radius: 12px; overflow: hidden; background: #0c0c14; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.bar { display: flex; gap: 6px; padding: 10px 12px; background: rgba(255,255,255,.06); }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); }
.bar i:first-child { background: #ff5f57; } .bar i:nth-child(2) { background: #febc2e; } .bar i:nth-child(3) { background: #28c840; }

/* SaaS dashboard */
.dash { padding: 14px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.dash .kpi { height: 30px; border-radius: 7px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, #fff 0%), var(--accent2)); opacity: .9; }
.dash .chart { grid-column: 1/-1; height: 72px; display: flex; align-items: flex-end; gap: 8px; padding-top: 6px; }
.dash .chart b { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(var(--accent), var(--accent2)); }

/* e-commerce */
.shop { padding: 14px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.shop .product { display: flex; flex-direction: column; gap: 5px; }
.shop .product b { height: 46px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.shop .product u { height: 5px; border-radius: 4px; background: rgba(255,255,255,.45); } .shop .product u.s { width: 60%; }

/* marketing landing */
.landing { padding: 16px; position: relative; min-height: 96px; }
.landing .hl { display: block; height: 9px; width: 80%; border-radius: 5px; background: rgba(255,255,255,.7); margin-bottom: 8px; }
.landing .hl.s { width: 55%; background: rgba(255,255,255,.4); }
.landing .cta-pill { display: inline-block; margin-top: 8px; width: 64px; height: 20px; border-radius: 100px; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.landing .hero-blob { position: absolute; right: 14px; bottom: 12px; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent2)); transform: rotate(12deg); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent); }

/* portal */
.portal { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.portal .portal-head { height: 12px; width: 50%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent2)); margin-bottom: 4px; }
.portal .field { height: 14px; border-radius: 6px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); } .portal .field.s { width: 60%; }
.portal .submit { height: 18px; width: 80px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent2)); margin-top: 4px; }

/* nft grid */
.nft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 70%; }
.nft { aspect-ratio: 1; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 10px 26px rgba(0,0,0,.4); transition: transform .5s var(--ease); }
.nft:nth-child(2) { background: linear-gradient(135deg, var(--accent2), #fff3); }
.nft:nth-child(3) { background: linear-gradient(135deg, #ffffff22, var(--accent)); }
.nft:nth-child(4) { background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.project:hover .nft:nth-child(1) { transform: translate(-3px,-3px); }
.project:hover .nft:nth-child(4) { transform: translate(3px,3px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-portrait { position: relative; }
.about-portrait img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.about-portrait::after { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); box-shadow: inset 0 0 80px rgba(99,102,241,.35); pointer-events: none; }
.about-badge { position: absolute; bottom: 16px; left: 16px; padding: 8px 14px; border-radius: 100px; background: rgba(7,7,10,.7); backdrop-filter: blur(10px); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; }
.about-body { color: var(--muted); margin-top: 20px; max-width: 56ch; font-size: 1.05rem; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 34px; }
.stat { background: var(--bg); padding: 24px 18px; }
.stat-num { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: .85rem; }

/* ---------- Expertise pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(26px,3vw,38px); transition: transform .4s var(--ease), background .4s, border-color .4s; }
.pillar:hover { transform: translateY(-8px); background: var(--surface-2); border-color: rgba(255,255,255,.18); }
.pillar--feature { background: linear-gradient(160deg, rgba(99,102,241,.18), rgba(236,72,153,.1)); border-color: rgba(99,102,241,.35); }
.pillar-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 18px; }
.pillar h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; }
.pillar p { color: var(--muted); margin-top: 10px; }
.skill-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.skill-tags li { padding: 5px 12px; border: 1px solid var(--border); border-radius: 100px; font-size: .78rem; color: var(--muted); }

/* ---------- Domains ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.domain { background: var(--bg); padding: clamp(24px,3vw,34px); transition: background .35s; }
.domain:hover { background: var(--bg-soft); }
.domain span { font-size: 1.8rem; }
.domain h4 { font-size: 1.12rem; font-weight: 600; margin: 12px 0 8px; }
.domain p { color: var(--muted); font-size: .92rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 30px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 42px; }
.tl-item { position: relative; }
.tl-dot { position: absolute; left: -38px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.tl-when { color: var(--accent); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.tl-body h3 { font-size: 1.3rem; font-weight: 600; margin-top: 6px; letter-spacing: -0.01em; }
.tl-body h3 span { color: var(--muted); font-weight: 400; font-size: .95rem; }
.tl-body p { color: var(--muted); margin-top: 8px; max-width: 64ch; }
.award { display: flex; gap: 20px; align-items: flex-start; margin-top: 50px; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(236,72,153,.08)); border: 1px solid rgba(245,158,11,.3); }
.award-icon { font-size: 2rem; }
.award h3 { font-size: 1.2rem; font-weight: 600; }
.award p { color: var(--muted); margin-top: 8px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-mail { display: inline-block; margin-top: 34px; font-size: clamp(1.3rem, 5vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; position: relative; }
.contact-mail::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.contact-mail:hover::after { transform: scaleX(1); }
.socials { display: flex; gap: 24px; margin-top: 42px; flex-wrap: wrap; justify-content: center; }
.socials a { color: var(--muted); font-size: .98rem; transition: color .25s; }
.socials a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(20px, 5vw, 40px); border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora-blob, .marquee-track, .chip-live .dot, .float-chip, .portrait-ring::before, .loader-bar span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero-copy { order: 2; } .hero-portrait { order: 1; margin-bottom: 10px; }
  .hero-badges, .hero-rated, .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 360px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 18px; position: absolute; top: 100%; left: 0; right: 0; padding: 24px clamp(20px, 5vw, 40px); background: rgba(7,7,10,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
  .nav.open .nav-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .domain-grid, .stats { grid-template-columns: 1fr; }
  .float-chip { font-size: .72rem; padding: 6px 10px; }
  .fc-1 { top: 4%; left: 0; } .fc-2 { top: 20%; right: 0; }
  .fc-3 { bottom: 14%; left: 0; } .fc-4 { bottom: 0; right: 2%; }
}
