/* ================================================================
   ROPRASH — Premium Personal Site v2
   2026 Indie Maker Edition · Warm Ivory · 1100px · Gradient Accent
   ================================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ── Design Tokens ── */
:root {
  /* Background */
  --bg:           #fffaf5;
  --bg-alt:       #fdf8f2;
  --white:        #ffffff;

  /* Text */
  --ink:          #0f172a;
  --ink-2:        #1e293b;
  --mid:          #64748b;
  --muted:        #94a3b8;
  --faint:        #cbd5e1;

  /* Borders */
  --border:       #e2e8f0;
  --border-light: #f1f5f9;

  /* Gradient Accent System */
  --accent-from:  #4f46e5;
  --accent-to:    #7c3aed;
  --accent:       #4f46e5;
  --accent-mid:   #6246ea;
  --accent-light: #ede9fe;
  --accent-pale:  #f5f3ff;

  /* Status Colors */
  --green:        #22c55e;
  --green-light:  #dcfce7;
  --amber:        #f59e0b;
  --amber-light:  #fef3c7;
  --blue:         #3b82f6;
  --blue-light:   #dbeafe;

  /* Gradients */
  --grad-accent:  linear-gradient(135deg, var(--accent-from), var(--accent-to));
  --grad-hero:    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99,91,255,0.06) 0%, transparent 70%);
  --grad-card:    linear-gradient(160deg, #ffffff 0%, #fdf8ff 100%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', serif;

  /* Type scale */
  --sz-xs:   0.6875rem;  /* 11px */
  --sz-sm:   0.8125rem;  /* 13px */
  --sz-base: 1rem;       /* 16px */
  --sz-md:   1.0625rem;  /* 17px */
  --sz-lg:   1.125rem;   /* 18px */
  --sz-xl:   1.25rem;    /* 20px */
  --sz-2xl:  1.5rem;     /* 24px */
  --sz-3xl:  1.875rem;   /* 30px */
  --sz-4xl:  2.25rem;    /* 36px */
  --sz-5xl:  3rem;       /* 48px */
  --sz-hero: clamp(4rem, 10.5vw, 7rem); /* 64–112px */

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --container: 1100px;
  --side-pad: clamp(1.5rem, 6vw, 5rem);
  --section-y: clamp(4rem, 8vw, 6.5rem);

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   28px;
  --r-2xl:  40px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs:  0 1px 3px rgb(15 23 42 / 0.04), 0 1px 2px rgb(15 23 42 / 0.03);
  --sh-sm:  0 2px 8px rgb(15 23 42 / 0.05), 0 1px 3px rgb(15 23 42 / 0.03);
  --sh-md:  0 8px 24px rgb(15 23 42 / 0.06), 0 2px 8px rgb(15 23 42 / 0.04);
  --sh-lg:  0 20px 40px rgb(15 23 42 / 0.07), 0 8px 16px rgb(15 23 42 / 0.04);
  --sh-xl:  0 32px 64px rgb(15 23 42 / 0.08), 0 16px 32px rgb(15 23 42 / 0.04);
  --sh-accent: 0 6px 24px -4px rgb(79 70 229 / 0.30);
  --sh-accent-lg: 0 12px 40px -4px rgb(79 70 229 / 0.40);

  /* Transitions */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --t-fast:    150ms;
  --t-base:    220ms;
  --t-slow:    400ms;
  --t-enter:   600ms;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  font-size: var(--sz-md);
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── Container ── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

/* ── Gradient utility ── */
.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  background: rgb(255 250 245 / 0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgb(255 250 245 / 0.94);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--grad-accent);
  color: white;
  font-size: 15px;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
  box-shadow: var(--sh-accent);
  flex-shrink: 0;
}

.nav-name {
  font-size: var(--sz-sm);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-links a {
  font-size: var(--sz-sm);
  font-weight: 500;
  color: var(--mid);
  transition: color var(--t-fast) var(--ease);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--ink) !important;
  color: white !important;
  font-size: var(--sz-sm) !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease) !important;
}

.nav-cta:hover {
  background: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
}


/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
main { padding-block-start: 64px; }

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem) clamp(4rem, 8vw, 6.5rem);
  background: var(--grad-hero);
  text-align: center;
}

/* Ambient glow circles */
.hero-glow {
  position: absolute;
  border-radius: var(--r-full);
  pointer-events: none;
  filter: blur(80px);
  opacity: 0;
  animation: glowIn 1.6s var(--ease) forwards;
}

.hero-glow--1 {
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(99, 91, 255, 0.10) 0%, transparent 70%);
  top: -100px; left: 50%; transform: translateX(-50%);
  animation-delay: 0.2s;
}

.hero-glow--2 {
  width: 350px; height: 250px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  top: 40%; left: 10%;
  animation-delay: 0.4s;
}

.hero-glow--3 {
  width: 350px; height: 250px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
  top: 30%; right: 10%;
  animation-delay: 0.6s;
}

@keyframes glowIn {
  to { opacity: 1; }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Status badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--sz-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mid);
  background: white;
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-8);
  box-shadow: var(--sh-xs);
}

/* Avatar */
.hero-avatar-wrap { margin-bottom: var(--sp-6); }

.hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--accent-light);
  border: 3px solid white;
  box-shadow:
    0 0 0 1px var(--accent-light),
    0 8px 32px rgb(79 70 229 / 0.15),
    var(--sh-md);
  margin: 0 auto;
}

.hero-avatar svg { width: 100%; height: 100%; }

/* Headline */
.hero-name {
  font-size: var(--sz-hero);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: var(--sp-6);
  background: linear-gradient(160deg, var(--ink) 0%, var(--accent-from) 50%, var(--accent-to) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tagline */
.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  color: var(--mid);
  line-height: 1.35;
  margin-bottom: var(--sp-8);
  font-weight: 400;
  max-width: 620px;
}

.tagline-break { display: none; }
@media (min-width: 640px) { .tagline-break { display: block; } }

/* Bio */
.hero-bio {
  font-size: clamp(var(--sz-base), 1.8vw, var(--sz-lg));
  color: var(--mid);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: var(--sp-10);
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-16);
  flex-wrap: wrap;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-6) var(--sp-8);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: var(--sz-2xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-size: var(--sz-xs);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* Status dot */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--green);
  box-shadow: 0 0 0 2.5px var(--green-light);
  animation: blink 2.8s ease infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { box-shadow: 0 0 0 2.5px var(--green-light); }
  50%       { box-shadow: 0 0 0 4px var(--green-light); }
}


/* ════════════════════════════════════════
   SECTION STRUCTURE
   ════════════════════════════════════════ */
.section-divider {
  padding-inline: var(--side-pad);
}

.section-divider .container {
  height: 1px;
  background: var(--border);
  padding: 0;
}

section .container { padding-block: var(--section-y); }

.section-header { margin-bottom: var(--sp-12); }

.eyebrow {
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-4);
  display: inline-block;
}

.section-title {
  font-size: clamp(var(--sz-3xl), 3.5vw, var(--sz-5xl));
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.section-sub {
  font-size: var(--sz-lg);
  color: var(--mid);
  line-height: 1.7;
  max-width: 500px;
}


/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--grad-accent);
  color: white;
  font-size: var(--sz-sm);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: var(--sh-accent);
  transition:
    opacity var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--sh-accent-lg);
}

.btn-primary:active { transform: translateY(0); }

.btn-lg {
  font-size: var(--sz-base);
  padding: 0.9rem 1.8rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: white;
  color: var(--mid);
  font-size: var(--sz-sm);
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: var(--sh-xs);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--faint);
  box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}

/* Gradient text on ghost hover */
.btn-ghost:hover { color: var(--ink); }


/* ════════════════════════════════════════
   FOCUS / WHAT I DO
   ════════════════════════════════════════ */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.focus-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  transition:
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

.focus-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--accent-light);
  transform: translateY(-5px);
}

.focus-icon-wrap {
  margin-bottom: var(--sp-5);
}

.focus-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--grad-accent);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-accent);
}

.focus-icon--violet {
  background: linear-gradient(135deg, #7c3aed, #9f27f0);
  box-shadow: 0 4px 16px -4px rgba(124, 58, 237, 0.4);
}

.focus-icon--teal {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  box-shadow: 0 4px 16px -4px rgba(14, 165, 233, 0.4);
}

.focus-card h3 {
  font-size: var(--sz-lg);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.focus-card p {
  font-size: var(--sz-sm);
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.focus-tag {
  display: inline-block;
  font-size: var(--sz-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-pale);
  border: 1px solid var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--r-full);
}


/* ════════════════════════════════════════
   PROJECTS — tile grid
   ════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

.project-tile {
  display: flex;
  flex-direction: column;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition:
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

.project-tile:hover {
  border-color: var(--accent-light);
  box-shadow: var(--sh-lg), 0 0 0 1px var(--accent-light);
  transform: translateY(-5px);
}

.project-tile:hover .project-tile-link {
  gap: var(--sp-2);
}

.project-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-5);
}

.project-tile-name {
  font-size: var(--sz-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.project-tile-desc {
  font-size: var(--sz-sm);
  color: var(--mid);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--sp-6);
}

.project-tile-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--sz-sm);
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: gap var(--t-fast) var(--ease);
  align-self: flex-start;
}

/* keep old list styles for reference (unused) */
.projects-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: white;
  box-shadow: var(--sh-sm);
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-8);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast) var(--ease);
}

.project-row:last-child { border-bottom: none; }

.project-row:hover {
  background: var(--accent-pale);
}

.project-row:hover .project-row-link {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  gap: var(--sp-2);
}

.project-row--ghost {
  background: var(--bg);
}

.project-row--ghost:hover {
  background: var(--accent-pale);
}

.project-row-left {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  flex: 1;
  min-width: 0;
}

.project-icon-sm {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.project-icon-sm--indigo {
  background: var(--accent-pale);
  color: var(--accent);
}

.project-icon-sm--violet {
  background: #f5f3ff;
  color: #7c3aed;
}

.project-icon-sm--slate {
  background: var(--border-light);
  color: var(--mid);
}

.project-icon-sm--ghost {
  background: var(--bg-alt);
  color: var(--muted);
}

.project-row-text {
  flex: 1;
  min-width: 0;
}

.project-row-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-1);
}

.project-row-header h3 {
  font-size: var(--sz-lg);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.project-row-text p {
  font-size: var(--sz-sm);
  color: var(--mid);
  line-height: 1.6;
}

.project-row-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--sz-sm);
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
  transition: gap var(--t-fast) var(--ease);
}

.project-row-link--muted {
  color: var(--muted);
  font-weight: 500;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.badge--live    { background: var(--green-light);  color: #15803d; }
.badge--building{ background: var(--amber-light);  color: #92400e; }
.badge--shipped { background: var(--accent-pale);  color: var(--accent); }
.badge--soon    { background: var(--border-light); color: var(--muted); }


/* ════════════════════════════════════════
   WRITING
   ════════════════════════════════════════ */
.posts-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: white;
  box-shadow: var(--sh-sm);
  margin-bottom: var(--sp-6);
}

.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-8);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast) var(--ease);
}

.post-row:last-child { border-bottom: none; }

.post-row:hover { background: var(--accent-pale); }

.post-row:hover h4 {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-row:hover .post-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.post-row-inner {
  flex: 1;
  min-width: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.post-date {
  font-size: var(--sz-xs);
  font-weight: 500;
  color: var(--muted);
}

.post-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  border: 1px solid var(--accent-light);
  padding: 2px 9px;
  border-radius: var(--r-full);
}

.post-row h4 {
  font-size: var(--sz-base);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-1);
  transition: color var(--t-fast) var(--ease);
}

.post-row p {
  font-size: var(--sz-sm);
  color: var(--mid);
  line-height: 1.55;
}

.post-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.all-posts-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--sz-sm);
  font-weight: 700;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--t-fast) var(--ease);
}

.all-posts-link:hover { opacity: 0.75; }


/* ════════════════════════════════════════
   CONNECT / CTA
   ════════════════════════════════════════ */
.connect .container { padding-block: var(--section-y); }

.connect-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--accent-pale) 0%, #f0ebff 50%, #ece7ff 100%);
  border: 1px solid var(--accent-light);
  border-radius: var(--r-2xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem);
  text-align: center;
  box-shadow: var(--sh-md), inset 0 1px 0 rgb(255 255 255 / 0.6);
}

.connect-decoration {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 20% 40%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(124, 58, 237, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.connect-content { position: relative; }

.eyebrow--light { color: var(--accent-mid); }

.connect-title {
  font-size: clamp(var(--sz-4xl), 4.5vw, var(--sz-5xl));
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.connect-sub {
  font-size: var(--sz-lg);
  color: var(--mid);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto var(--sp-10);
}

.connect-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}


/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  background: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--sp-8);
}

.footer-copy {
  font-size: var(--sz-sm);
  color: var(--muted);
  font-weight: 400;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.social-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  color: var(--muted);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.social-btn:hover {
  color: var(--accent);
  background: var(--accent-pale);
}


/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Hero entrance */
#hero-badge    { animation: fadeUp var(--t-enter) var(--ease) 0.10s both; }
#hero-avatar   { animation: scaleIn var(--t-enter) var(--ease) 0.20s both; }
#hero-name     { animation: fadeUp var(--t-enter) var(--ease) 0.30s both; }
#hero-tagline  { animation: fadeUp var(--t-enter) var(--ease) 0.42s both; }
#hero-bio      { animation: fadeUp var(--t-enter) var(--ease) 0.52s both; }
#hero-actions  { animation: fadeUp var(--t-enter) var(--ease) 0.62s both; }
#hero-stats    { animation: fadeUp var(--t-enter) var(--ease) 0.72s both; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .focus-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

@media (max-width: 768px) {
  section .container { padding-block: clamp(3rem, 7vw, 5rem); }

  .hero { padding-block: 4.5rem 3.5rem; }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--sp-5);
    justify-content: center;
  }

  .stat-sep { display: none; }

  .project-row {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-5) var(--sp-6);
  }

  .project-row-link { align-self: flex-start; }

  .connect-card {
    padding: var(--sp-10) var(--sp-5);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
    padding-block: var(--sp-6);
  }

  .post-row {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-5) var(--sp-6);
    gap: var(--sp-3);
  }
}

@media (max-width: 580px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-name { display: none; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  .btn-primary, .btn-ghost {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    border-radius: var(--r-lg);
  }

  .connect-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
  }
}


/* ════════════════════════════════════════
   BROWSER UTILITIES
   ════════════════════════════════════════ */
::selection {
  background: var(--accent-light);
  color: #3730a3;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
