/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ===== CSS VARIABLES ===== */
:root {
  --accent: #1B4FD8;
  --accent-light: #4668F5;
  --accent-dim: rgba(27,79,216,0.1);
  --accent-red: #C42020;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s ease;
}

/* ===== LIGHT THEME (default) ===== */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #faf8f5;
  --bg-3: #f0ece6;
  --bg-card: #ffffff;
  --border: rgba(0,0,0,0.1);
  --border-hover: rgba(0,0,0,0.22);
  --text: #111111;
  --text-2: #555555;
  --text-3: #999999;
  --glow: rgba(27,79,216,0.2);
  --nav-bg: #111111;
  --shadow: rgba(0,0,0,0.08);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #141210;
  --bg-2: #1C1A16;
  --bg-3: #252218;
  --bg-card: #1A1814;
  --border: rgba(255,240,200,0.09);
  --border-hover: rgba(255,240,200,0.2);
  --text: #F0E8D0;
  --text-2: #A89878;
  --text-3: #6A5A42;
  --glow: rgba(70,104,245,0.3);
  --nav-bg: rgba(20,18,16,0.9);
  --shadow: rgba(0,0,0,0.35);
}

body {
  background: linear-gradient(160deg, #F5EFE6 0%, #FAF7F3 40%, #ffffff 100%);
  background-attachment: fixed;
  color: var(--text);
}
[data-theme="dark"] body {
  background: linear-gradient(160deg, #141210 0%, #1C1A16 40%, #141210 100%);
}

/* ===== CUSTOM CURSOR ===== */
#cursor {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px;
  background: #FF5500; border-radius: 50%; pointer-events: none;
  z-index: 10000; transform: translate(-50%,-50%);
  transition: width 0.2s ease, height 0.2s ease;
}
#cursor-ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1.5px solid #FF5500; border-radius: 50%; pointer-events: none;
  z-index: 9999; transform: translate(-50%,-50%);
  transition: width 0.25s ease, height 0.25s ease; opacity: 0.55;
}
body.cursor-hover #cursor { width: 6px; height: 6px; }
body.cursor-hover #cursor-ring { width: 52px; height: 52px; opacity: 0.9; }

/* ===== LOADING SCREEN ===== */
#loader {
  position: fixed; inset: 0; z-index: 9998;
  background: #FBF7EF;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.05em; color: #FF5500; }
.loader-bar { width: 120px; height: 2px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.loader-fill {
  height: 100%; width: 0%; background: var(--accent);
  border-radius: 2px; transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between;
  height: 44px;
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: none;
}
.nav-logo {
  font-weight: 500; font-size: 0.875rem; letter-spacing: 0;
  color: rgba(255,255,255,0.85); cursor: pointer; transition: opacity 0.2s ease;
  text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.nav-logo:hover { opacity: 0.5; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 4px 14px;
  text-decoration: none; font-size: 0.75rem; font-weight: 400; letter-spacing: 0;
  color: rgba(255,255,255,0.72); transition: color 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
.nav-links a:hover { color: rgba(255,255,255,0.95); background: none; }
.nav-links a.active { color: #ffffff; background: none; font-weight: 400; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%; border: 0.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 0.875rem; transition: all 0.2s ease; color: rgba(255,255,255,0.75);
}
.theme-toggle:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  width: 36px; height: 36px; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
}
.hamburger span { width: 18px; height: 1.5px; background: rgba(255,255,255,0.7); transition: all var(--transition-fast); border-radius: 2px; }
.mobile-nav {
  display: none; position: fixed; inset: 0; top: 52px;
  background: rgba(0, 18, 80, 0.96);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  z-index: 850; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 2.2rem; font-weight: 900; text-decoration: none;
  color: rgba(255,255,255,0.5); transition: color var(--transition-fast);
}
.mobile-nav a:hover { color: #ffffff; }

/* ===== SECTIONS ===== */
section { min-height: 100vh; padding: clamp(80px, 10vw, 140px) clamp(20px, 8vw, 100px); }
section:first-of-type { padding-top: 100px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

/* ===== FADE IN ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== ABOUT / HERO ===== */
#about { position: relative; padding-left: 0; padding-right: 0; background: #1a1a1a; }
.about-layout {
  display: flex;
  gap: 120px;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.about-sticky-col {
  position: sticky;
  top: 72px;
  width: 420px;
  flex-shrink: 0;
}
.about-scroll-col {
  flex: 1;
  min-width: 0;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  animation: float 9s ease-in-out infinite;
}
.orb-1 { width: 560px; height: 560px; background: rgba(27,79,216,0.07); top: -120px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 340px; height: 340px; background: rgba(196,32,32,0.06); bottom: 80px; left: -60px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-28px) scale(1.04); }
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; min-height: 80vh; }
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-red); margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent-red); }
.hero-name {
  font-size: clamp(3.4rem, 6.5vw, 6rem); font-weight: 900;
  letter-spacing: -0.05em; line-height: 0.94; margin-bottom: 14px; color: var(--text);
}
.hero-title {
  font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 400;
  color: var(--text-2); margin-bottom: 28px; letter-spacing: -0.01em;
}
.hero-bio {
  font-size: 1.0625rem; color: var(--text-2); line-height: 1.75;
  max-width: 460px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  padding: 13px 30px; background: var(--accent); color: #fff; border: 2px solid var(--accent);
  border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 800; cursor: pointer;
  transition: all var(--transition); text-decoration: none; display: inline-block; letter-spacing: 0.01em;
}
.btn-primary:hover { transform: translate(-3px, -4px); box-shadow: 5px 6px 0 var(--accent); background: var(--accent-light); border-color: var(--accent-light); }
.btn-secondary {
  padding: 13px 30px; background: transparent; color: var(--text);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 800; cursor: pointer; transition: all var(--transition);
  text-decoration: none; display: inline-block; letter-spacing: 0.01em;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); transform: translate(-3px, -4px); box-shadow: 5px 6px 0 var(--border); }

/* Hero avatar */
.hero-avatar {
  width: 100%; aspect-ratio: 1; max-width: 440px; margin: 0 auto;
  border-radius: 20px; position: relative; overflow: hidden;
  background: var(--bg-card); border: 2px solid var(--border);
  box-shadow: 8px 8px 0 var(--border);
  transition: all var(--transition);
}
.hero-avatar:hover { transform: translate(-4px, -5px); box-shadow: 12px 13px 0 var(--accent); border-color: var(--accent); }
.avatar-art {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--bg-2), var(--bg-3));
  position: relative; overflow: hidden;
}
.avatar-initials { font-size: 5.5rem; font-weight: 900; letter-spacing: -0.05em; color: var(--accent); z-index: 1; }
.avatar-glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: var(--accent); filter: blur(70px); opacity: 0.1;
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.1; } 50% { transform: scale(1.15); opacity: 0.18; } }

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-red); margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 2px; background: var(--border); }
.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 900;
  letter-spacing: -0.045em; margin-bottom: 16px; color: var(--text); line-height: 1.05;
}
.section-subtitle { font-size: 1.0625rem; color: var(--text-2); max-width: 520px; margin-bottom: 56px; line-height: 1.72; }

/* ===== SKILL CARDS ===== */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.skill-card {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
  transition: all var(--transition); position: relative;
  box-shadow: 4px 4px 0 var(--border);
}
.skill-card:hover { border-color: var(--accent); transform: translate(-4px, -5px); box-shadow: 7px 8px 0 var(--accent); }
.skill-icon { font-size: 1.8rem; margin-bottom: 14px; }
.skill-name { font-size: 0.9375rem; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.skill-desc { font-size: 0.8125rem; color: var(--text-2); line-height: 1.55; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { position: relative; margin-bottom: 44px; }
.timeline-dot {
  position: absolute; left: -37px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.timeline-year { font-size: 0.7rem; font-weight: 900; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.timeline-role { font-size: 1.0625rem; font-weight: 800; margin-bottom: 3px; color: var(--text); }
.timeline-company { font-size: 0.875rem; color: var(--accent-red); font-weight: 700; margin-bottom: 8px; }
.timeline-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ===== PORTFOLIO ===== */
#portfolio { background: var(--bg); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.project-card {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all var(--transition); box-shadow: 5px 5px 0 var(--border);
  text-decoration: none; color: inherit; display: block;
}
.project-card:hover { transform: translate(-5px, -6px); box-shadow: 10px 11px 0 var(--accent); border-color: var(--accent); }
.project-thumb { height: 230px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.project-thumb-1 { background: linear-gradient(135deg, #3B0764, #7C3AED, #C026D3); }
.project-thumb-2 { background: linear-gradient(135deg, #7F1D1D, #DC2626, #F97316); }
.project-thumb-3 { background: linear-gradient(135deg, #0C4A6E, #0284C7, #06B6D4); }
.thumb-icon { font-size: 3.5rem; opacity: 0.75; }
.thumb-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.project-card:hover .thumb-overlay { opacity: 1; }
.thumb-cta {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: #fff; color: #111; padding: 9px 22px;
  border-radius: 100px; font-size: 0.8125rem; font-weight: 800;
  opacity: 0; transition: opacity var(--transition), transform var(--transition); white-space: nowrap;
}
.project-card:hover .thumb-cta { opacity: 1; transform: translateX(-50%) translateY(0); }
.project-body { padding: 28px; }
.project-tag {
  display: inline-block; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-dim);
  border-radius: 4px; padding: 4px 10px; margin-bottom: 12px;
}
.project-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; color: var(--text); }
.project-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }
.project-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.project-meta-item { font-size: 0.75rem; color: var(--text-3); font-weight: 600; }

/* ===== BLOG ===== */
#blog { background: var(--bg-2); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all var(--transition); box-shadow: 4px 4px 0 var(--border);
}
.blog-card:hover { transform: translate(-4px, -5px); box-shadow: 8px 9px 0 var(--border-hover); border-color: var(--border-hover); }
.blog-thumb { height: 168px; position: relative; display: flex; align-items: center; justify-content: center; }
.blog-thumb-1 { background: linear-gradient(135deg, #14532D, #16A34A, #4ADE80); }
.blog-thumb-2 { background: linear-gradient(135deg, #7F1D1D, #DC2626, #F87171); }
.blog-thumb-3 { background: linear-gradient(135deg, #312E81, #4338CA, #818CF8); }
.blog-thumb-emoji { font-size: 2.8rem; opacity: 0.65; }
.blog-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.blog-date, .blog-readtime { font-size: 0.75rem; color: var(--text-3); font-weight: 600; }
.blog-dot { width: 3px; height: 3px; background: var(--text-3); border-radius: 50%; }
.blog-title { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.28; color: var(--text); }
.blog-excerpt { font-size: 0.8125rem; color: var(--text-2); line-height: 1.65; }

/* ===== CONTACT ===== */
#contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.availability-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; background: rgba(22,163,74,0.1);
  border: 2px solid rgba(22,163,74,0.35); border-radius: 6px;
  font-size: 0.8125rem; font-weight: 800; color: #16A34A; width: fit-content; letter-spacing: 0.02em;
}
.availability-dot { width: 7px; height: 7px; background: #16A34A; border-radius: 50%; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--text);
  transition: all var(--transition-fast); box-shadow: 3px 3px 0 var(--border);
}
.contact-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--accent); }
.contact-link-icon { font-size: 1.2rem; width: 22px; text-align: center; }
.contact-link-label { font-size: 0.9375rem; font-weight: 600; }
.contact-link-arrow { margin-left: auto; color: var(--text-3); font-size: 0.875rem; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.72rem; font-weight: 900; color: var(--text-2); letter-spacing: 0.1em; text-transform: uppercase; }
.form-input, .form-textarea {
  width: 100%; padding: 12px 16px; background: var(--bg-card);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.9375rem; font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast); outline: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-input:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit {
  padding: 14px 28px; background: var(--accent); color: #fff; border: 2px solid var(--accent);
  border-radius: var(--radius-sm); font-size: 0.9375rem; font-weight: 800;
  cursor: pointer; transition: all var(--transition); width: 100%; letter-spacing: 0.01em;
}
.form-submit:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--accent); }

/* ===== CASE STUDY OVERLAY ===== */
.case-study-overlay {
  position: fixed; inset: 0; z-index: 950; background: var(--bg);
  overflow-y: auto; transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.case-study-overlay.open { transform: translateX(0); }
.cs-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 960; transition: width 0.1s linear; width: 0%; }
.cs-nav {
  position: sticky; top: 44px; z-index: 855;
  background: rgba(29, 29, 31, 0.10);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: none;
  padding: 0 clamp(20px,5vw,60px); height: 44px; display: flex;
  align-items: center; justify-content: space-between;
}
body.cs-page { padding-top: 44px; }
.cs-close {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  color: #444444; font-size: 0.875rem; font-weight: 800;
  transition: color var(--transition-fast); background: none; border: none; padding: 8px 0;
}
.cs-close:hover { color: #111111; }
.cs-title-nav { font-size: 0.875rem; font-weight: 700; color: #444444; }
.cs-content { max-width: 1100px; margin: 0 auto; padding: clamp(40px,6vw,80px) clamp(16px,3vw,32px); }
.cs-hero { margin-bottom: 80px; }
.cs-tag {
  display: inline-block; font-size: 0.67rem; font-weight: 900; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-dim);
  border-radius: 4px; padding: 5px 12px; margin-bottom: 20px;
}
.cs-headline { font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 20px; color: var(--text); }
.cs-lead { font-size: 1.125rem; color: var(--text-2); line-height: 1.75; max-width: 620px; }
.cs-meta-bar {
  display: flex; flex-wrap: wrap; border: 2px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 48px 0;
  box-shadow: 5px 5px 0 var(--border);
}
.cs-meta-item { flex: 1; min-width: 140px; padding: 20px 24px; border-right: 1px solid var(--border); }
.cs-meta-item:last-child { border-right: none; }
.cs-meta-label { font-size: 0.67rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.cs-meta-value { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.cs-section { margin-bottom: 72px; }
.cs-section-num { font-size: 0.67rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-red); margin-bottom: 8px; }
.cs-section-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; color: var(--text); }
.cs-section-body { font-size: 0.9375rem; color: var(--text-2); line-height: 1.8; }
.cs-section-body p { margin-bottom: 16px; }
.cs-section-body p:last-child { margin-bottom: 0; }
.cs-callout {
  background: var(--accent-dim); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 24px 0; font-size: 0.9375rem; line-height: 1.72; color: var(--text); font-weight: 500;
}
.cs-quote {
  border-left: 4px solid var(--accent-red); padding: 16px 24px; margin: 20px 0;
  font-style: italic; color: var(--text-2); font-size: 1rem; line-height: 1.72;
  background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.cs-quote cite { display: block; font-style: normal; font-size: 0.8125rem; color: var(--text-3); margin-top: 8px; font-weight: 700; }
.cs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.cs-card { background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.cs-card-title { font-size: 0.8125rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.cs-card-body { font-size: 0.8125rem; color: var(--text-2); line-height: 1.6; }
.cs-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.cs-metric {
  background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; box-shadow: 4px 4px 0 var(--border);
}
.cs-metric-num { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.05em; color: var(--accent); margin-bottom: 6px; }
.cs-metric-label { font-size: 0.75rem; color: var(--text-2); line-height: 1.4; font-weight: 600; }
.affinity-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.affinity-cluster { border-radius: var(--radius-sm); padding: 16px; border: 2px solid; }
.affinity-cluster-1 { background: rgba(27,79,216,0.07); border-color: rgba(27,79,216,0.25); }
.affinity-cluster-2 { background: rgba(124,58,237,0.07); border-color: rgba(124,58,237,0.25); }
.affinity-cluster-3 { background: rgba(6,182,212,0.07); border-color: rgba(6,182,212,0.25); }
.affinity-cluster-4 { background: rgba(234,88,12,0.07); border-color: rgba(234,88,12,0.25); }
.affinity-cluster-5 { background: rgba(22,163,74,0.07); border-color: rgba(22,163,74,0.25); }
.affinity-cluster-6 { background: rgba(196,32,32,0.07); border-color: rgba(196,32,32,0.25); }
.affinity-head { font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; color: var(--text); }
.affinity-item { font-size: 0.8rem; color: var(--text-2); margin-bottom: 6px; display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; }
.affinity-item::before { content: '—'; color: var(--text-3); flex-shrink: 0; }
.persona-card {
  background: var(--bg-2); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 20px; margin: 24px 0; align-items: flex-start;
  box-shadow: 4px 4px 0 var(--border);
}
.persona-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--accent-dim); border: 2px solid var(--border); }
.persona-name { font-size: 1.0625rem; font-weight: 800; margin-bottom: 2px; color: var(--text); }
.persona-role { font-size: 0.8125rem; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.persona-desc { font-size: 0.8125rem; color: var(--text-2); line-height: 1.6; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-chip { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; letter-spacing: 0.04em; background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; color: var(--text-2); }
.divider { height: 2px; background: var(--border); margin: 56px 0; }
.cs-hero-img {
  width: 100%; height: 320px; border-radius: var(--radius); overflow: hidden;
  margin: 40px 0; display: flex; align-items: center; justify-content: center;
  position: relative; border: 2px solid var(--border); box-shadow: 6px 6px 0 var(--border);
}
.cs-hero-img-1 { background: linear-gradient(135deg, #3B0764, #7C3AED, #C026D3); }
.cs-hero-img-2 { background: linear-gradient(135deg, #7F1D1D, #DC2626, #F97316); }
.cs-hero-img-3 { background: linear-gradient(135deg, #0C4A6E, #0284C7, #06B6D4); }
.cs-hero-img-text { font-size: 0.875rem; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; font-weight: 700; }

/* ===== MACBOOK SHOWCASE ===== */
.macbook-showcase {
  background: #dbeafe;
  padding: 72px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.macbook-lid {
  position: relative;
  width: 720px;
  background: #1c1c1e;
  border-radius: 14px 14px 0 0;
  padding: 14px 10px 0;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.1),
    0 0 0 1px #3a3a3a,
    0 40px 100px rgba(0,0,0,0.3);
}
.macbook-camera {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  background: #2e2e30;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.macbook-screen {
  width: 100%;
  aspect-ratio: 2940 / 1530;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background: #000;
}
.macbook-screen img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
.macbook-hinge {
  width: 740px;
  height: 5px;
  background: linear-gradient(to bottom, #505050, #383838);
}
.macbook-base {
  width: 760px;
  height: 16px;
  background: linear-gradient(160deg, #3c3c3e, #2c2c2e);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.22);
  position: relative;
}
.macbook-base::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 4px;
  background: #444;
  border-radius: 0 0 4px 4px;
}

/* ===== FOOTER ===== */
footer { background: var(--text); color: var(--bg); padding: 40px clamp(20px,8vw,100px); text-align: center; }
.footer-text { font-size: 0.8125rem; opacity: 0.45; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-layout { flex-direction: column; gap: 48px; }
  .about-sticky-col { position: static; width: 100%; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-avatar { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cs-metrics { grid-template-columns: 1fr 1fr; }
  .affinity-board { grid-template-columns: 1fr 1fr; }
  .cs-grid-2 { grid-template-columns: 1fr; }
  .cs-meta-bar { flex-direction: column; }
  .cs-meta-item { border-right: none; border-bottom: 1px solid var(--border); }
  .cs-meta-item:last-child { border-bottom: none; }

  /* MacBook showcase scales down */
  .macbook-lid  { width: 100%; max-width: 720px; }
  .macbook-hinge { width: calc(100% + 20px); max-width: 740px; }
  .macbook-base  { width: calc(100% + 40px); max-width: 760px; }
  .macbook-showcase { padding: 40px 20px 0; overflow: hidden; }
}

@media (max-width: 768px) {
  /* Nav */
  nav .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Case study hero */
  .cs-headline { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .cs-lead { font-size: 1rem; }
  .cs-section-title { font-size: 1.25rem; }
  .cs-meta-bar { flex-direction: column; }
  .cs-meta-item { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 20px; }
  .cs-meta-item:last-child { border-bottom: none; }
  .cs-content { padding: clamp(24px,5vw,48px) clamp(16px,4vw,24px); }

  /* Images and videos always fit */
  img, video { max-width: 100%; height: auto; }

  /* Divider spacing */
  .divider { margin: 36px 0; }
  .cs-section { margin-bottom: 48px; }

  /* Footer stack */
  footer { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 640px) {
  nav .nav-links { display: none; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .cs-metrics { grid-template-columns: 1fr; }
  .affinity-board { grid-template-columns: 1fr; }
  .persona-card { flex-direction: column; }

  /* Section padding tighter */
  section { padding: clamp(60px,10vw,100px) clamp(16px,5vw,32px); }

  /* Cursor hidden on touch */
  #cursor, #cursor-ring { display: none; }
}
