/* =====================================================================
   CLEAR NOTE MASTER DESIGN SYSTEM
   Single source of truth for every published mini-website.
   Matches the portfolio.html prototype design system.
   ===================================================================== */

:root {
  --bg: #0d1113;
  --bg2: #161c1f;
  --text: #f5f6f4;
  --muted: #9aa3a0;
  --muted2: #6e7875;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-bright: rgba(255, 255, 255, 0.18);
  --green: #29d978;
  --green-glow: rgba(41, 217, 120, 0.15);
  --green-soft: #9cf2bd;
  --gold: #d9b765;
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  --shadow-card: 0 20px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}
.cn-mini-site { --green: #29d978; max-width: 100%; overflow-x: clip; }
.cn-mini-site.theme-ocean { --green: #38bdf8; }
.cn-mini-site.theme-forest { --green: #4ade80; }
.cn-mini-site.theme-sunset { --green: #fb7185; }
.cn-mini-site.theme-royal { --green: #a78bfa; }
.cn-custom-logo { display: block; width: auto; max-width: min(150px, 38vw); height: auto; max-height: 34px; object-fit: contain; }
.cn-floating-action { position: fixed; right: 18px; bottom: 22px; z-index: 50; padding: 12px 16px; border-radius: 999px; background: var(--green); color: #071009; font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.28); text-decoration: none; }
.cn-premium-blocks { margin-top: 30px; }
.cn-premium-block-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 14px; }
.cn-premium-block { padding: 20px; }
.cn-custom-links { display:flex; flex-wrap:wrap; gap:10px; }

*, *:before, *:after { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 600px at 50% -10%, rgba(41, 217, 120, 0.12), transparent 60%),
    radial-gradient(800px 500px at 85% 25%, rgba(100, 140, 255, 0.06), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
}
main { max-width: 100%; overflow-x: clip; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black 40%, transparent 95%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }

.container { width: min(1080px, calc(100% - 36px)); max-width: 100%; margin: 0 auto; }

/* ============ TOPBAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--stroke);
  background: rgba(13, 17, 19, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.cn-logo { display: flex; align-items: center; gap: 0.35rem; }
.cn-logo-premium { display: inline-flex; align-items: center; gap: 0.35rem; transition: transform 0.18s ease; }
.cn-logo-premium:hover { transform: scale(1.03); }
.cn-logo-premium i { font-size: 1rem; color: var(--green); transition: transform 0.18s ease; }
.cn-logo-premium:hover i { transform: scale(1.1); }
.brand-icon, .cn-logo-premium i { font-size: 1rem; color: var(--green); }
.cn-clear, .brand-clear { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 900; letter-spacing: -0.5px; color: #ffffff; }
.cn-note, .brand-note { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(to right, #ffffff, #4ade80, #22c55e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.nav-center { display: flex; align-items: center; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(41, 217, 120, 0.08);
  border: 1px solid rgba(41, 217, 120, 0.2);
  color: var(--green-soft);
  font-size: 12px;
  font-weight: 600;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.nav-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--stroke);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.icon-btn:hover {
  transform: translateY(-2px);
  background: var(--glass-hover);
  border-color: var(--stroke-bright);
  color: var(--green);
}
.icon-btn svg { width: 17px; height: 17px; }

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--glass);
  border: 1px solid var(--stroke);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle:hover {
  transform: translateY(-1px);
  background: var(--glass-hover);
  border-color: rgba(41, 217, 120, 0.4);
}
.theme-toggle .icon-moon { display: none; }
body.light-mode .theme-toggle .icon-sun { display: none; }
body.light-mode .theme-toggle .icon-moon { display: block; }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .theme-label::before { content: "Light"; }
body.light-mode .theme-toggle .theme-label::before { content: "Dark"; }

/* ============ LIGHT MODE ============ */
body.light-mode {
  --bg: #f4f6f5;
  --bg2: #e8edeb;
  --text: #1a2023;
  --muted: #5b6663;
  --muted2: #8a9491;
  --glass: rgba(0, 0, 0, 0.03);
  --glass-hover: rgba(0, 0, 0, 0.06);
  --stroke: rgba(0, 0, 0, 0.08);
  --stroke-bright: rgba(0, 0, 0, 0.18);
  --green: #16a34a;
  --green-glow: rgba(22, 163, 74, 0.12);
  --green-soft: #15803d;
  --gold: #b99242;
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.5);
  --shadow-card: 0 20px 50px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
}
body.light-mode {
  background-image:
    radial-gradient(1000px 600px at 50% -10%, rgba(22, 163, 74, 0.08), transparent 60%),
    radial-gradient(800px 500px at 85% 25%, rgba(100, 140, 255, 0.05), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
body.light-mode::before {
  background:
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}
body.light-mode .topbar {
  background: rgba(244, 246, 245, 0.85);
  border-bottom-color: var(--stroke);
}
body.light-mode .main-title .gradient-text {
  background: linear-gradient(110deg, #1a2023 20%, #15803d 60%, #16a34a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.light-mode .hero-tagline { color: #5b6663; }
body.light-mode .about-body { color: #4b5653; }
body.light-mode .about-body strong { color: #1a2023; }
body.light-mode .profile-card,
body.light-mode .card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));
}
body.light-mode .skill-card,
body.light-mode .social,
body.light-mode .meta-card,
body.light-mode .stat,
body.light-mode .btn-dark {
  background: var(--glass);
}
body.light-mode .btn-dark:hover { background: var(--glass-hover); }
body.light-mode .role { color: #2a3235; }
body.light-mode .work p,
body.light-mode .experience p { color: #5b6663; }
body.light-mode .work-cat { color: #8a9491; }
body.light-mode .footer-wrap { border-top-color: var(--stroke); }
body.light-mode .mobile-nav {
  background: rgba(244, 246, 245, 0.92);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
body.light-mode .brand-clear { color: #1a2023; }
body.light-mode .footer-brand .brand-clear { color: #2a3235; }
body.light-mode .toast {
  background: #1a2023;
  color: #f4f6f5;
}

/* Light mode text visibility polish */
body.light-mode .skill-card span { color: #2a3235; }
body.light-mode .work h3 { color: #1a2023; }
body.light-mode .social-name { color: #1a2023; }
body.light-mode .exp-title { color: #1a2023; }
body.light-mode .stat b { color: #1a2023; }
body.light-mode .stat span { color: #5b6663; }
body.light-mode .meta-label { color: #5b6663; }
body.light-mode .meta-value { color: #1a2023; }
body.light-mode .exp-date { color: #5b6663; }
body.light-mode .contact p { color: #5b6663; }
body.light-mode .section-note { color: #5b6663; }
body.light-mode .social-handle { color: #5b6663; }
body.light-mode .work-tools { color: #6e7875; }
body.light-mode .work-cat { color: #6e7875; }
body.light-mode .footer-copy { color: #5b6663; }
body.light-mode .footer-copy strong { color: #2a3235; }
body.light-mode .kicker { color: #16a34a; }
body.light-mode .profile-eyebrow { color: #16a34a; }
body.light-mode .work-number { color: #16a34a; }
body.light-mode .work-link { color: #16a34a; }
body.light-mode .exp-company { color: #16a34a; }
body.light-mode .status-pill { color: #15803d; }
body.light-mode .title-kicker { color: #16a34a; }
body.light-mode .meta-icon {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.2);
  color: #16a34a;
}
body.light-mode .skill-card svg { color: #16a34a; }
body.light-mode .social:hover {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.05);
}
body.light-mode .social-arrow { color: #5b6663; }
body.light-mode .social:hover .social-arrow { color: #16a34a; }
body.light-mode .mobile-nav a.active { color: #16a34a; }
body.light-mode .mobile-nav a { color: #5b6663; }
body.light-mode .avatar-inner {
  background: linear-gradient(145deg, #e8edeb, #dce3e0);
  color: #1a2023;
}
body.light-mode .verified svg path:first-child { fill: #25D366; }
body.light-mode .avatar {
  box-shadow: 0 0 25px rgba(22, 163, 74, 0.2);
}
body.light-mode .status-dot { background: #16a34a; box-shadow: 0 0 10px rgba(22, 163, 74, 0.5); }
body.light-mode .btn-dark { color: #1a2023; }
body.light-mode .btn-dark:hover { color: #1a2023; }

/* Light mode work art */
body.light-mode .work-art {
  background: radial-gradient(circle at 80% 20%, rgba(22,163,74,0.12), transparent 40%), linear-gradient(145deg, #eef2f0, #dce3e0);
}
body.light-mode .work-art.two {
  background: radial-gradient(circle at 20% 20%, rgba(185,146,66,0.14), transparent 40%), linear-gradient(145deg, #eef2f0, #dce3e0);
}
body.light-mode .work-art.three {
  background: radial-gradient(circle at 80% 80%, rgba(100,140,255,0.12), transparent 40%), linear-gradient(145deg, #eef2f0, #dce3e0);
}
body.light-mode .work-art.four {
  background: radial-gradient(circle at 60% 10%, rgba(22,163,74,0.12), transparent 45%), radial-gradient(circle at 10% 90%, rgba(185,146,66,0.10), transparent 50%), linear-gradient(145deg, #eef2f0, #dce3e0);
}
body.light-mode .work-art.five {
  background: radial-gradient(circle at 90% 60%, rgba(100,140,255,0.12), transparent 45%), radial-gradient(circle at 20% 30%, rgba(22,163,74,0.08), transparent 45%), linear-gradient(145deg, #eef2f0, #dce3e0);
}
body.light-mode .work-art.six {
  background: radial-gradient(circle at 50% 20%, rgba(185,146,66,0.10), transparent 50%), radial-gradient(circle at 80% 90%, rgba(100,140,255,0.10), transparent 45%), linear-gradient(145deg, #eef2f0, #dce3e0);
}
body.light-mode .work:hover .work-art { transform: scale(1.05); }
body.light-mode .card:hover {
  border-color: rgba(22, 163, 74, 0.25);
  box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}
body.light-mode .profile-card::before {
  background: radial-gradient(circle, rgba(22, 163, 74, 0.1), transparent 70%);
}
body.light-mode .about-statement::before {
  background: radial-gradient(circle, rgba(22, 163, 74, 0.06), transparent 70%);
}

/* ============ HERO ============ */
.hero-title-section {
  padding: 40px 0 16px;
  text-align: center;
}
.title-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.main-title {
  font: 800 clamp(38px, 6vw, 62px)/1.05 "Manrope";
  letter-spacing: -2.5px;
  margin: 0 0 16px;
}
.main-title .gradient-text {
  background: linear-gradient(110deg, #ffffff 20%, var(--green-soft) 60%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: 18px;
  color: #b5bdbc;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ ABOUT ============ */
.about-statement {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 0 36px;
  position: relative;
  overflow: hidden;
}
.about-statement::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 220px;
  background: radial-gradient(circle, rgba(41, 217, 120, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.about-body {
  font-size: 17px;
  line-height: 1.8;
  color: #cbd2cf;
  margin: 0;
}
.about-body strong { color: #ffffff; font-weight: 600; }

/* ============ PROFILE CARD ============ */
.profile-section { padding-bottom: 36px; }
.profile-card {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 36px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.profile-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow), transparent 70%);
  pointer-events: none;
}
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.profile-info { flex: 1 1 auto; min-width: 0; }
.profile-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 800; color: var(--green); margin-bottom: 6px; }
.profile-name { font: 800 32px/1.1 "Manrope"; letter-spacing: -1.2px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.verified {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.verified svg { display: block; }
.role { font-size: 15px; font-weight: 600; color: #e2e6e4; }

.avatar {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow: 0 0 25px rgba(41, 217, 120, 0.2);
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2b3235, #161b1d);
  font: 800 22px "Manrope";
  letter-spacing: -1px;
}
.avatar-inner img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #202827;
  border-radius: 50%;
  display: block;
}

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--stroke);
  flex-wrap: wrap;
}
.profile-stats { display: flex; gap: 10px; }
.stat {
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--glass);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat b { font: 800 15px "Manrope"; color: var(--text); }
.stat span { color: var(--muted); font-size: 11px; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #071009;
  background: linear-gradient(135deg, #f2d382, #b99242);
  border-color: #fce49c;
  box-shadow: 0 8px 20px rgba(217,183,101,0.2);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(217,183,101,0.3); }
.btn-dark { background: var(--glass); border-color: var(--stroke); }
.btn-dark:hover { background: var(--glass-hover); border-color: var(--stroke-bright); }

/* ============ META CARDS ============ */
.meta-zone { max-width: 860px; margin: 0 auto 14px; }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.meta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.meta-card:hover {
  transform: translateY(-2px);
  border-color: var(--stroke-bright);
  background: var(--glass-hover);
}
.meta-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(41, 217, 120, 0.1);
  border: 1px solid rgba(41, 217, 120, 0.2);
  display: grid;
  place-items: center;
  color: var(--green);
  flex-shrink: 0;
}
.meta-icon svg { width: 16px; height: 16px; }
.meta-info { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.meta-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.meta-value { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ SKILLS ============ */
.skills-zone { max-width: 860px; margin: 0 auto; }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--stroke-bright);
  background: rgba(41, 217, 120, 0.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.skill-card svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-bottom: 8px;
}
.skill-card span {
  font-size: 12px;
  font-weight: 700;
  color: #e2e6e4;
  letter-spacing: -0.2px;
}

/* ============ SECTION HEADS ============ */
.section { padding: 36px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; gap: 16px; max-width: 860px; margin-left: auto; margin-right: auto; }
.kicker { font-size: 11px; letter-spacing: 0.18em; color: var(--green); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
h2 { font: 800 30px/1.1 "Manrope"; letter-spacing: -1.2px; margin: 0; }
.section-note { font-size: 13px; color: var(--muted); }

/* ============ CARDS COMMON ============ */
.card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-bright);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

/* ============ SOCIAL ============ */
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 860px; width: 100%; margin: 0 auto; }
.social {
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: var(--glass);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.social:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 217, 120, 0.4);
  background: rgba(41, 217, 120, 0.06);
}
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  flex: 0 0 42px;
  transition: transform 0.25s ease;
}
.social-icon svg { width: 20px; height: 20px; }
.social:hover .social-icon { transform: scale(1.05); }
.social-name { font-size: 14px; font-weight: 700; }
.social-handle { font-size: 11px; color: var(--muted); margin-top: 2px; }
.social-arrow { margin-left: auto; color: var(--muted); font-size: 14px; transition: transform 0.2s ease, color 0.2s ease; }
.social:hover .social-arrow { transform: translate(2px, -2px); color: var(--green); }

.social[data-platform="whatsapp"] .social-icon { color: #25D366; background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.25); }
.social[data-platform="linkedin"] .social-icon { color: #6cb2f0; background: rgba(10,102,194,0.12); border-color: rgba(10,102,194,0.25); }
.social[data-platform="github"] .social-icon { color: #f1f1f1; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.social[data-platform="x"] .social-icon { color: #f4f4f4; background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.18); }
.social[data-platform="instagram"] .social-icon { color: #E1306C; background: linear-gradient(135deg, rgba(131,58,180,0.15), rgba(225,48,108,0.15)); border-color: rgba(225,48,108,0.25); }
.social[data-platform="tiktok"] .social-icon { color: #25F4EE; background: linear-gradient(135deg, rgba(37,244,238,0.12), rgba(254,44,85,0.12)); border-color: rgba(254,44,85,0.25); }
.social[data-platform="youtube"] .social-icon { color: #ff5b5b; background: rgba(255,0,0,0.1); border-color: rgba(255,0,0,0.22); }
.social[data-platform="facebook"] .social-icon { color: #6aa5f0; background: rgba(24,119,242,0.12); border-color: rgba(24,119,242,0.25); }
.social[data-platform="threads"] .social-icon { color: #f1f1f1; background: rgba(60,60,60,0.2); border-color: rgba(255,255,255,0.18); }
.social[data-platform="behance"] .social-icon { color: #7aa2ff; background: rgba(23,105,255,0.12); border-color: rgba(23,105,255,0.25); }
.social[data-platform="dribbble"] .social-icon { color: #ff8bb3; background: rgba(234,76,137,0.12); border-color: rgba(234,76,137,0.25); }
.social[data-platform="medium"] .social-icon { color: #f1f1f1; background: rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.18); }
.social[data-platform="other"] .social-icon { color: var(--green); background: rgba(41,217,120,0.08); border-color: rgba(41,217,120,0.2); }

/* ============ WORK ============ */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; width: 100%; margin: 0 auto; }
.work-grid.single { grid-template-columns: 1fr; max-width: 860px; width: 100%; }
.work-grid.single .work { min-height: 280px; }
.work { min-height: 240px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; }
.work-art {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(41,217,120,0.18), transparent 40%), linear-gradient(145deg, #1d2427, #121618);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-art.two { background: radial-gradient(circle at 20% 20%, rgba(217,183,101,0.15), transparent 40%), linear-gradient(145deg, #1d2427, #121618); }
.work-art.three { background: radial-gradient(circle at 80% 80%, rgba(100,140,255,0.15), transparent 40%), linear-gradient(145deg, #1d2427, #121618); }
.work-art.four { background: radial-gradient(circle at 60% 10%, rgba(41,217,120,0.14), transparent 45%), radial-gradient(circle at 10% 90%, rgba(217,183,101,0.12), transparent 50%), linear-gradient(145deg, #1d2427, #121618); }
.work-art.five { background: radial-gradient(circle at 90% 60%, rgba(100,140,255,0.16), transparent 45%), radial-gradient(circle at 20% 30%, rgba(41,217,120,0.1), transparent 45%), linear-gradient(145deg, #1d2427, #121618); }
.work-art.six { background: radial-gradient(circle at 50% 20%, rgba(217,183,101,0.14), transparent 50%), radial-gradient(circle at 80% 90%, rgba(100,140,255,0.12), transparent 45%), linear-gradient(145deg, #1d2427, #121618); }
.work-art.img { background-size: cover; background-position: center; }
.work-art.img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,17,19,0.05) 30%, rgba(13,17,19,0.88) 100%); }
body.light-mode .work-art.img::after { background: linear-gradient(180deg, rgba(244,246,245,0.02) 28%, rgba(244,246,245,0.92) 100%); }
.work:hover .work-art { transform: scale(1.05); }
.work-content { position: relative; z-index: 1; }
.work-number { font-size: 10px; font-weight: 800; color: var(--green); letter-spacing: 0.15em; margin-bottom: 40px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.work-cat { color: var(--muted); font-weight: 700; }
.work h3 { font: 800 20px "Manrope"; letter-spacing: -0.6px; margin: 0 0 6px; }
.work p { font-size: 12px; line-height: 1.6; color: #a3aca8; margin: 0; }
.work-tools { margin-top: 10px; font-size: 10px; color: var(--muted2); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }
.work-link { font-size: 12px; color: var(--green); font-weight: 700; margin-top: 14px; display: inline-flex; align-items: center; gap: 4px; }

/* ============ EXPERIENCE ============ */
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; width: 100%; margin: 0 auto; }
.experience { padding: 26px; }
.exp-top { display: flex; justify-content: space-between; gap: 16px; }
.exp-title { font-weight: 800; font-size: 15px; }
.exp-company { color: var(--green); font-size: 12px; margin-top: 4px; font-weight: 700; }
.exp-date { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.experience p { color: #a3aca8; font-size: 13px; line-height: 1.7; margin: 16px 0 0; }

/* ============ CONTACT ============ */
.contact { padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 860px; margin: 0 auto; }
.contact h2 { font-size: 32px; }
.contact p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* ============ FOOTER ============ */
.footer { padding: 40px 0 90px; color: var(--muted); font-size: 12px; }
.footer-wrap { padding-top: 24px; border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; transition: transform 0.18s ease; }
.footer-brand:hover { transform: scale(1.03); }
.footer-brand .brand-icon { font-size: 15px; color: var(--green); }
.footer-brand .brand-clear { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 900; letter-spacing: -0.5px; color: #e2e6e4; }
.footer-brand .brand-note { font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -0.5px; color: var(--green); }
.footer-copy { text-align: right; line-height: 1.6; font-size: 11px; }
.footer-copy strong { color: var(--text); }

/* ============ MOBILE NAV ============ */
.mobile-nav {
  display: none;
  position: fixed;
  z-index: 90;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 8px;
  border: 1px solid var(--stroke-bright);
  border-radius: 22px;
  background: rgba(13, 17, 19, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.mobile-nav a { flex: 1; text-align: center; padding: 8px 4px; color: var(--muted); font-size: 10px; font-weight: 700; transition: color 0.2s ease; }
.mobile-nav a.active { color: var(--green); }
.mobile-nav svg { display: block; width: 18px; height: 18px; margin: 0 auto 3px; }

/* ============ TOAST & MODAL ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg2);
  border: 1px solid var(--stroke-bright);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: min(360px, calc(100% - 32px));
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal { transform: scale(1); }
.qr-container { background: #ffffff; padding: 16px; border-radius: var(--radius-md); display: inline-block; margin: 16px 0; }
.qr-container img, .qr-container canvas { display: block; }
.close-btn { margin-top: 12px; width: 100%; }

/* ============ SHARE SHEET ============ */
.cn-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: end center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cn-share-sheet.open { opacity: 1; pointer-events: auto; }
.cn-share-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cn-share-sheet-panel {
  position: relative;
  width: min(480px, calc(100% - 24px));
  margin-bottom: 12px;
  background: var(--bg2);
  border: 1px solid var(--stroke-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.cn-share-sheet.open .cn-share-sheet-panel { transform: none; }
.cn-share-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--stroke);
}
.cn-share-sheet-title {
  font: 800 15px "Manrope";
  letter-spacing: -0.3px;
  color: var(--text);
}
.cn-share-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--muted);
  transition: all 0.2s ease;
}
.cn-share-sheet-close:hover {
  color: var(--text);
  background: var(--glass-hover);
  border-color: var(--stroke-bright);
}
.cn-share-sheet-items {
  padding: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.cn-share-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s ease;
}
.cn-share-item:hover { background: var(--glass-hover); }
.cn-share-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--stroke);
  flex-shrink: 0;
  font-size: 16px;
  color: var(--green);
}
.cn-share-item-body { flex: 1; min-width: 0; }
.cn-share-item-label { font-size: 13px; font-weight: 700; display: block; }
.cn-share-item-sub { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.cn-share-item-arrow { color: var(--muted); font-size: 12px; }


/* ============ BUSINESS CARD ============ */
.business-card-modal { max-width: 520px; }
.business-card-preview {
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(145deg, #0d1113 0%, #15201b 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 26px 70px rgba(0,0,0,.25);
}
.business-card-brand { color: #6fe49a; font-weight: 800; letter-spacing: .12em; font-size: 11px; }
.business-card-name { margin-top: 44px; font: 800 30px/1.05 "Manrope", sans-serif; letter-spacing: -0.8px; }
.business-card-role { margin-top: 8px; color: #aeb7b3; font-size: 13px; }
.business-card-qr { margin-top: 24px; background: #fff; border-radius: 16px; padding: 10px; width: 170px; min-height: 170px; display: grid; place-items: center; }
.business-card-qr img, .business-card-qr canvas { max-width: 100%; height: auto; }
.business-card-url { margin-top: 16px; color: #6fe49a; font-size: 12px; line-height: 1.55; word-break: break-all; }
.business-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ============ REVEAL ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.visible { opacity: 1; transform: none; filter: none; }

/* ============ RESPONSIVE ============ */
@media(max-width: 860px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid.single { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-center { display: none; }
}
@media(max-width: 620px) {
  body { padding: 0; }
  .container { width: calc(100% - 24px); margin-left: 12px; margin-right: 12px; }
  .section { width: 100%; }
  .section.container { width: calc(100% - 24px); margin-left: 12px; margin-right: 12px; }
  .section-head, .social-grid, .work-grid, .experience-grid, .meta-zone, .skills-zone { width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; min-width: 0; }
  .profile-card, .contact { width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; }
  .mobile-nav { left: 12px; right: 12px; }
  .topbar { left: 0; right: 0; }
  .toast { left: 50%; transform: translate(-50%, 16px); }
  .toast.show { transform: translate(-50%, 0); }
  .nav { height: 60px; }
  .hero-title-section { padding: 24px 0 12px; }
  .main-title { font-size: 34px; letter-spacing: -1.5px; }
  .hero-tagline { font-size: 15px; }
  .about-statement { padding: 16px 0 24px; }
  .about-statement::before { width: 100%; }
  .about-body { font-size: 15px; line-height: 1.7; }
  .profile-card { padding: 24px 20px; border-radius: 24px; }
  .profile-header { flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; min-width: 0; }
  .avatar { width: 64px; height: 64px; flex-basis: 64px; }
  .avatar-inner { font-size: 18px; }
  .avatar-inner img { object-fit: contain; object-position: center; background: #202827; }
  .cn-custom-logo { max-width: 34vw; max-height: 28px; }
  .profile-name { font-size: 24px; overflow-wrap: anywhere; }
  .role { font-size: 13px; overflow-wrap: anywhere; }
  .profile-footer { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 18px; padding-top: 16px; }
  .profile-stats { justify-content: space-between; }
  .stat { flex: 1; justify-content: center; padding: 6px 8px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .btn { padding: 0 12px; font-size: 12px; min-height: 42px; }
  .meta-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid, .work-grid, .experience-grid { grid-template-columns: 1fr; }
  .work-grid.single { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contact { display: block; padding: 24px; }
  .contact .actions { margin-top: 20px; display: flex; }
  .mobile-nav { display: flex; }
  .footer-wrap { flex-direction: column; text-align: left; align-items: flex-start; }
  .footer-copy { text-align: left; margin-top: 10px; }
}

@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .card, .social, .btn { transition: none !important; }
}
/* Product polish: keep utility control clear of the mobile nav. */
@media (max-width: 720px) {
  #cnBackToTop { right: 14px !important; bottom: 76px !important; }
}
