/* ============================================================
   VICTOR MASOKE — Portfolio Stylesheet
   Dark fintech theme | Mobile-first | No dependencies
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:         #070B14;
  --bg-2:       #0D1421;
  --bg-3:       #111827;
  --card:       #131C2E;
  --card-h:     #19253C;
  --border:     #1C2A3E;
  --border-l:   #263547;

  --cyan:       #06B6D4;
  --cyan-l:     #22D3EE;
  --blue:       #3B82F6;
  --green:      #10B981;
  --purple:     #8B5CF6;
  --amber:      #F59E0B;

  --tx:         #F1F5F9;
  --tx-2:       #94A3B8;
  --tx-3:       #5A7080;

  --grad:       linear-gradient(135deg, #06B6D4, #3B82F6);
  --grad-2:     linear-gradient(135deg, #3B82F6, #8B5CF6);
  --grad-green: linear-gradient(135deg, #10B981, #06B6D4);

  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --mono:       'Fira Code', 'Courier New', monospace;

  --r:          12px;
  --r-sm:       8px;
  --r-pill:     9999px;

  --max-w:      1180px;
  --sp:         100px;

  --shadow:     0 4px 24px rgba(0,0,0,.35);
  --glow:       0 0 40px rgba(6,182,212,.12);
  --t:          all .28s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--t); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font); cursor: pointer; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.15; color: var(--tx); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem);   letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--tx-2); line-height: 1.8; }

.mono { font-family: var(--mono); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap    { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--sp) 0; }
.section--alt { background: var(--bg-2); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--cyan);
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .92rem;
  transition: var(--t);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 18px rgba(6,182,212,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(6,182,212,.38); }

.btn-outline {
  background: transparent;
  color: var(--tx);
  border: 1.5px solid var(--border-l);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(6,182,212,.09);
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,.25);
}
.btn-ghost:hover { background: rgba(6,182,212,.17); transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: .82rem; }

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 500;
  background: rgba(6,182,212,.09);
  color: var(--cyan);
  border: 1px solid rgba(6,182,212,.2);
  transition: var(--t);
}
.tag:hover { background: rgba(6,182,212,.17); }
.tag-green  { background: rgba(16,185,129,.09); color: var(--green);  border-color: rgba(16,185,129,.2); }
.tag-purple { background: rgba(139,92,246,.09); color: var(--purple); border-color: rgba(139,92,246,.2); }
.tag-amber  { background: rgba(245,158,11,.09); color: var(--amber);  border-color: rgba(245,158,11,.2);  }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 22px 0;
  transition: var(--t);
}
.nav.solid {
  background: rgba(7,11,20,.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.45rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--tx-2);
  font-weight: 500;
  font-size: .9rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: var(--t);
}
.nav-links a:hover,
.nav-links a.active { color: var(--tx); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 9px 22px;
  background: var(--grad);
  color: #fff !important;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border-l);
  border-radius: var(--r-sm);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--tx);
  font-size: 1.3rem;
}

/* Mobile menu */
.mob-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mob-menu.open { transform: translateX(0); }
.mob-menu a {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--tx-2);
}
.mob-menu a:hover { color: var(--cyan); }
.mob-close {
  position: absolute;
  top: 22px; right: 22px;
  background: none;
  border: none;
  color: var(--tx);
  font-size: 1.6rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
/* Grid bg */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: 40%; left: 40%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(6,182,212,.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 920px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--cyan);
  padding: 8px 16px;
  background: rgba(6,182,212,.08);
  border: 1px solid rgba(6,182,212,.22);
  border-radius: var(--r-pill);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2.2s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.75); }
}

.hero h1 { font-size: clamp(2.5rem, 6.5vw, 5.2rem); margin-bottom: 22px; font-weight: 900; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--tx-2);
  max-width: 660px;
  margin-bottom: 42px;
  line-height: 1.75;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-lbl { font-size: .82rem; color: var(--tx-3); margin-top: 5px; }

.scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--tx-3);
  font-size: .72rem;
  font-family: var(--mono);
  animation: bob 2.2s infinite;
}
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
.scroll-hint svg { width: 18px; height: 18px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}
.avatar-wrap { position: relative; text-align: center; }
.avatar {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.8rem; font-weight: 900; color: #fff;
  margin: 0 auto;
  box-shadow: var(--glow);
  overflow: hidden;
  position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-ring {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--grad) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin-ring 8s linear infinite;
}
@keyframes spin-ring { to { transform: rotate(360deg); } }

.avatar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 7px 14px;
  background: var(--card);
  border: 1px solid var(--border-l);
  border-radius: var(--r-pill);
  font-size: .8rem;
  color: var(--green);
  font-weight: 600;
}
.avatar-badge::before { content: '✓'; }

.about-text h2 { margin-bottom: 18px; }
.about-text p  { margin-bottom: 16px; }

.highlight-list { margin: 28px 0; display: flex; flex-direction: column; gap: 12px; }
.hl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  color: var(--tx-2);
}
.hl-icon {
  width: 32px; height: 32px;
  background: rgba(6,182,212,.09);
  border: 1px solid rgba(6,182,212,.22);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .9rem;
}
.mission-box {
  margin-top: 28px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  border-left: 3px solid var(--cyan);
}
.mission-box h4 { color: var(--cyan); margin-bottom: 10px; font-size: .82rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.mission-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.timeline-wrap { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 7px; top: 14px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}
.tl-item { padding-left: 32px; padding-bottom: 40px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  background: var(--bg-2);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(6,182,212,.35);
}
.tl-date {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--cyan);
  margin-bottom: 6px;
}
.tl-role { font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.tl-company { font-size: .88rem; color: var(--tx-3); margin-bottom: 14px; }
.tl-list { display: flex; flex-direction: column; gap: 7px; }
.tl-list li {
  font-size: .88rem;
  color: var(--tx-2);
  display: flex; gap: 8px; align-items: flex-start;
}
.tl-list li::before { content: '→'; color: var(--cyan); flex-shrink: 0; margin-top: 1px; }
.tl-impact {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(16,185,129,.06);
  border: 1px solid rgba(16,185,129,.2);
  border-radius: var(--r-sm);
  font-size: .82rem;
  color: var(--green);
}

/* ============================================================
   TECH STACK
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.tech-cat h4 {
  font-size: .75rem;
  font-family: var(--mono);
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.expanding-box {
  margin-top: 36px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: center;
}
.expanding-box h4 {
  font-size: .75rem;
  font-family: var(--mono);
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.expanding-box .tech-tags { justify-content: center; }

/* ============================================================
   DIFFERENTIATORS
   ============================================================ */
.diff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.diff-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 28px;
  text-align: center;
  transition: var(--t);
}
.diff-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(6,182,212,.1);
  transform: translateY(-5px);
}
.diff-icon {
  width: 58px; height: 58px;
  background: var(--grad);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 20px;
}
.diff-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.diff-card p  { font-size: .88rem; }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  max-width: 780px;
  transition: var(--t);
}
.edu-card:hover { border-color: var(--cyan); box-shadow: var(--glow); }
.edu-icon {
  width: 76px; height: 76px;
  background: var(--grad);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}
.edu-info h3 { margin-bottom: 4px; }
.edu-school  { color: var(--cyan); font-weight: 500; margin-bottom: 3px; }
.edu-meta    { font-size: .82rem; color: var(--tx-3); margin-bottom: 10px; }
.edu-awards  { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   CONTACT/CTA SECTION
   ============================================================ */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(6,182,212,.06) 0%, transparent 65%);
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.contact-inner h2 { margin-bottom: 18px; }
.contact-inner p  { font-size: 1.1rem; margin-bottom: 38px; }
.contact-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.contact-details { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.c-detail {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; color: var(--tx-2);
}
.c-detail svg { color: var(--cyan); width: 17px; height: 17px; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  padding: 64px 0 28px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: .9rem; max-width: 270px; margin-top: 12px; }
.footer-col h5 {
  font-size: .75rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tx-3);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--tx-2); font-size: .9rem; }
.footer-links a:hover { color: var(--cyan); }
.soc-links { display: flex; flex-direction: column; gap: 11px; }
.soc-link {
  display: flex; align-items: center; gap: 9px;
  color: var(--tx-2); font-size: .9rem;
  transition: var(--t);
}
.soc-link:hover { color: var(--cyan); transform: translateX(4px); }
.soc-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { font-size: .82rem; color: var(--tx-3); }

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.wa-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 800;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--t);
  animation: wa-ring 2.5s infinite;
}
.wa-btn:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,.55); }
.wa-btn svg { width: 27px; height: 27px; fill: #fff; }
.wa-tip {
  position: absolute;
  right: 68px; top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  border: 1px solid var(--border-l);
  color: var(--tx);
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-size: .82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--t);
}
.wa-btn:hover .wa-tip { opacity: 1; }
@keyframes wa-ring {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.35); }
  60%      { box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 0 0 12px rgba(37,211,102,0); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ============================================================
   HERO LAYOUT — two-column with photo
   ============================================================ */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

/* Remove the old single-column max-width now that we use a grid */
.hero-content { max-width: none; }

/* ---- Photo column ---- */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-frame {
  position: relative;
  display: inline-block;
}

/* Clean image — natural proportions, no cropping */
.hero-img {
  display: block;
  width: auto;
  height: 90vh;
  border-radius: 24px;
}

/* ---- Floating credential badges ---- */
.hi-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: rgba(13, 20, 33, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-l);
  border-radius: var(--r-pill);
  font-size: .8rem;
  font-weight: 600;
  color: var(--tx);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}

.hi-badge--tl {
  top: 28px;
  left: -22px;
  color: var(--green);
  animation-delay: 0s;
}

.hi-badge--br {
  bottom: 44px;
  right: -22px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr auto;
    gap: 44px;
  }
  .hero-img { width: auto; height: 90vh; }
}

@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-image { order: -1; }
  .hero-img {
    width: auto;
    height: 50vw;
    min-height: 260px;
    max-height: 400px;
    border-radius: 20px;
  }
  .hi-badge--tl { top: 14px; left: -10px; font-size: .74rem; padding: 7px 12px; }
  .hi-badge--br { bottom: 20px; right: -10px; font-size: .74rem; padding: 7px 12px; }
}

@media (max-width: 480px) {
  .hero-image { display: none; }
}

/* ============================================================
   PAGE HERO (Projects / Blog inner pages)
   ============================================================ */
.pg-hero {
  padding: 152px 0 72px;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.pg-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.pg-hero-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .8rem;
  color: var(--tx-3); margin-bottom: 14px;
}
.breadcrumb a { color: var(--cyan); }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.f-btn {
  padding: 8px 18px;
  background: transparent;
  border: 1.5px solid var(--border-l);
  border-radius: var(--r-pill);
  color: var(--tx-2);
  font-size: .82rem;
  font-weight: 500;
  transition: var(--t);
}
.f-btn:hover, .f-btn.on {
  background: rgba(6,182,212,.1);
  border-color: var(--cyan);
  color: var(--cyan);
}
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px,1fr)); gap: 26px; }
.proj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--t);
  display: flex; flex-direction: column;
}
.proj-card:hover {
  border-color: var(--border-l);
  transform: translateY(-6px);
  box-shadow: 0 14px 44px rgba(0,0,0,.38);
}
.proj-img {
  height: 196px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.proj-img-bg {
  position: absolute; inset: 0;
  opacity: .7;
}
.proj-num {
  position: absolute; bottom: 8px; right: 16px;
  font-size: 3.5rem; font-weight: 900;
  color: rgba(255,255,255,.08);
  font-family: var(--mono);
  line-height: 1;
}
.proj-emoji { font-size: 2.2rem; z-index: 1; }
.vid-badge {
  position: absolute; top: 11px; right: 11px;
  background: rgba(0,0,0,.7);
  color: #fff; padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.vid-badge::before { content: '▶'; font-size: .55rem; }

.proj-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.proj-body h3 { font-size: 1.05rem; margin-bottom: 9px; }
.proj-body p  { font-size: .86rem; margin-bottom: 14px; line-height: 1.65; }
.proj-hi { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.proj-hi li {
  font-size: .82rem; color: var(--tx-2);
  display: flex; gap: 7px; align-items: flex-start;
}
.proj-hi li::before { content: '▸'; color: var(--cyan); flex-shrink: 0; }
.proj-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: auto; }

/* Video modal */
.modal-ov {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.modal-ov.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--card);
  border: 1px solid var(--border-l);
  border-radius: var(--r);
  padding: 22px;
  width: 90%; max-width: 860px;
  position: relative;
}
.modal-title { font-size: 1.1rem; margin-bottom: 4px; }
.modal-sub   { font-size: .84rem; color: var(--tx-2); margin-bottom: 14px; }
.modal-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: var(--border);
  border: none; border-radius: 50%;
  color: var(--tx); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.modal-x:hover { background: var(--border-l); }
.modal-vid {
  width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: var(--r-sm);
  overflow: hidden;
}
.modal-vid iframe, .modal-vid video { width: 100%; height: 100%; border: none; }
.modal-ph {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; color: var(--tx-3);
  font-size: .9rem;
}
.modal-ph svg { width: 52px; height: 52px; opacity: .3; }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.search-bar {
  display: flex; gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.search-wrap {
  flex: 1; min-width: 260px;
  position: relative;
}
.search-ico {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--tx-3); pointer-events: none;
}
.search-ico svg { width: 17px; height: 17px; }
.search-input {
  width: 100%;
  padding: 13px 20px 13px 46px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  color: var(--tx); font-size: .92rem;
  font-family: var(--font);
  outline: none; transition: var(--t);
}
.search-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.1); }
.search-input::placeholder { color: var(--tx-3); }

.cat-bar { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 36px; }
.cat-btn {
  padding: 7px 17px;
  background: transparent;
  border: 1.5px solid var(--border-l);
  border-radius: var(--r-pill);
  color: var(--tx-2); font-size: .8rem;
  font-weight: 500; transition: var(--t);
}
.cat-btn:hover, .cat-btn.on {
  background: rgba(6,182,212,.1);
  border-color: var(--cyan); color: var(--cyan);
}

.feat-post {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 56px;
  transition: var(--t);
}
.feat-post:hover { border-color: var(--border-l); box-shadow: var(--shadow); }
.feat-img {
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.8rem; position: relative; overflow: hidden;
}
.feat-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,182,212,.18), rgba(59,130,246,.18));
}
.feat-body {
  padding: 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.post-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px; font-size: .8rem; color: var(--tx-3);
  flex-wrap: wrap;
}
.post-meta .tag { font-size: .72rem; }
.post-date { font-family: var(--mono); }

.feat-body h2 { font-size: 1.45rem; margin-bottom: 12px; line-height: 1.3; }
.feat-body p  { margin-bottom: 22px; font-size: .92rem; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 22px; }
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--t);
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--border-l); transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-img {
  height: 172px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; position: relative; overflow: hidden;
}
.blog-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-body h3 { font-size: .98rem; margin-bottom: 8px; line-height: 1.4; }
.blog-body p  { font-size: .84rem; margin-bottom: 14px; flex: 1; }
.blog-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }

/* ============================================================
   BLOG POST
   ============================================================ */
.post-hero { padding: 136px 0 56px; background: var(--bg-2); position: relative; overflow: hidden; }
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.post-hero-inner { position: relative; z-index: 1; max-width: 800px; }

.post-body { max-width: 800px; margin: 0 auto; padding: 56px 24px; }
.blog-content h2 { font-size: 1.7rem; margin-top: 44px; margin-bottom: 14px; }
.blog-content h3 { font-size: 1.2rem; margin-top: 30px; margin-bottom: 10px; }
.blog-content p  { margin-bottom: 18px; font-size: .98rem; line-height: 1.82; }
.blog-content ul, .blog-content ol { padding-left: 22px; margin-bottom: 18px; }
.blog-content li { color: var(--tx-2); margin-bottom: 7px; line-height: 1.7; font-size: .96rem; }
.blog-content blockquote {
  border-left: 3px solid var(--cyan);
  padding: 14px 22px;
  margin: 28px 0;
  background: rgba(6,182,212,.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.blog-content blockquote p { color: var(--tx); font-size: 1.06rem; font-style: italic; margin: 0; }
.blog-content code {
  font-family: var(--mono);
  background: var(--card);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .86em;
  color: var(--cyan);
}
.blog-content pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 22px;
  margin: 22px 0;
  overflow-x: auto;
}
.blog-content pre code { background: none; padding: 0; color: var(--tx); font-size: .88rem; }

.author-box {
  display: flex; gap: 18px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-top: 52px;
}
.author-av {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.15rem; color: #fff;
  flex-shrink: 0;
}
.author-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-info h4 { margin-bottom: 3px; }
.author-info p { font-size: .86rem; }

.related-posts h3 { margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

/* ============================================================
   404
   ============================================================ */
.not-found {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.not-found-inner h1 { font-size: 7rem; margin-bottom: 16px; opacity: .15; }
.not-found-inner h2 { margin-bottom: 14px; }
.not-found-inner p  { margin-bottom: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .avatar-wrap { max-width: 280px; }
  .diff-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .feat-post { grid-template-columns: 1fr; }
  .feat-img { min-height: 200px; }
  .exp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --sp: 68px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 110px 0 70px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 24px; }
  .diff-grid { grid-template-columns: 1fr; }
  .edu-card { flex-direction: column; text-align: center; }
  .edu-awards { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .proj-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .wa-btn { bottom: 18px; right: 18px; }
  .contact-details { flex-direction: column; align-items: center; gap: 16px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .avatar { width: 200px; height: 200px; font-size: 3rem; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .search-bar { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.8rem; }
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */

/* ---- Hero ---- */
.pd-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.pd-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.pd-hero::after {
  content: '';
  position: absolute; top: 30%; left: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(6,182,212,.07) 0%, transparent 65%);
  pointer-events: none;
}
.pd-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.pd-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pd-hero-text h1 { font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 18px; line-height: 1.1; }
.pd-hero-text p  { font-size: 1.05rem; margin-bottom: 32px; max-width: 500px; }
.pd-hero-btns    { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Browser frame mockup ---- */
.browser-frame {
  background: var(--bg-3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.55), 0 0 0 1px var(--border-l);
  transition: var(--t);
}
.browser-frame:hover { box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px var(--cyan), 0 0 40px rgba(6,182,212,.1); }
.browser-bar {
  background: var(--bg-2);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--border);
}
.bd { width: 11px; height: 11px; border-radius: 50%; }
.bd-r { background: #FF5F56; }
.bd-y { background: #FFBD2E; }
.bd-g { background: #27C93F; }
.browser-url {
  flex: 1;
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--tx-3);
  margin-left: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.browser-screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.browser-screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
}
.screen-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  font-size: 3.5rem;
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg-3) 100%);
}
.screen-ph span {
  font-size: .78rem;
  font-family: var(--mono);
  color: var(--tx-3);
}

/* ---- Metrics bar ---- */
.pd-metrics {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.pd-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pd-metric {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: var(--t);
}
.pd-metric:last-child { border-right: none; }
.pd-metric:hover { background: rgba(6,182,212,.04); }
.pd-metric-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.pd-metric-lbl { display: block; font-size: .8rem; color: var(--tx-3); }

/* ---- Overview ---- */
.pd-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}
.pd-overview-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.pd-ov-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pd-ov-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pd-overview-card h3 { font-size: 1.1rem; }
.pd-overview-card p  { font-size: .9rem; line-height: 1.75; }
.pd-overview-card ul { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.pd-overview-card li { font-size: .88rem; color: var(--tx-2); display: flex; gap: 8px; align-items: flex-start; }
.pd-overview-card li::before { content: '→'; color: var(--cyan); flex-shrink: 0; }

/* ---- Video section ---- */
.pd-video-wrap { max-width: 860px; margin: 0 auto; }
.pd-video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.pd-video-frame iframe,
.pd-video-frame video { width: 100%; height: 100%; border: none; display: block; }
.pd-video-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
}
.pd-play {
  width: 76px; height: 76px;
  background: var(--grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 30px rgba(6,182,212,.35);
  transition: var(--t);
}
.pd-video-ph:hover .pd-play { transform: scale(1.1); box-shadow: 0 0 50px rgba(6,182,212,.5); }
.pd-video-ph p { font-size: .88rem; color: var(--tx-3); }

/* ---- Screenshots gallery ---- */
.ss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ss-item {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
  transition: var(--t);
  position: relative;
  background: var(--bg-3);
}
.ss-item:hover { border-color: var(--cyan); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.ss-item img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ss-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; font-size: 1.8rem;
}
.ss-ph span { font-size: .72rem; font-family: var(--mono); color: var(--tx-3); }
.ss-overlay {
  position: absolute; inset: 0;
  background: rgba(6,182,212,.08);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--t);
}
.ss-item:hover .ss-overlay { opacity: 1; }
.ss-zoom { font-size: 1.4rem; }

/* ---- Feature cards ---- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feat-card {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: var(--t);
}
.feat-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.feat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.feat-card h4 { font-size: .98rem; margin-bottom: 8px; }
.feat-card p  { font-size: .85rem; }

/* ---- Impact section ---- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.impact-item {
  padding: 32px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: center;
  transition: var(--t);
}
.impact-item:hover { border-color: var(--cyan); box-shadow: var(--glow); transform: translateY(-3px); }
.impact-num {
  font-size: 2.6rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.impact-lbl { font-size: .84rem; color: var(--tx-2); }

/* ---- Project navigation ---- */
.pd-nav { background: var(--bg-2); border-top: 1px solid var(--border); padding: 52px 0; }
.pd-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pd-nav-card {
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; transition: var(--t);
}
.pd-nav-card:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: var(--shadow); }
.pd-nav-card.next { justify-content: flex-end; text-align: right; }
.pd-nav-dir { font-size: .75rem; font-family: var(--mono); color: var(--tx-3); margin-bottom: 4px; display: block; }
.pd-nav-name { font-size: .98rem; font-weight: 700; color: var(--tx); }
.pd-nav-ico { font-size: 1.6rem; flex-shrink: 0; }

/* ---- Lightbox ---- */
.lb-ov {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.96);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.lb-ov.open { opacity: 1; pointer-events: all; }
.lb-inner { position: relative; }
.lb-img {
  max-width: 90vw; max-height: 88vh;
  border-radius: var(--r);
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lb-close {
  position: absolute; top: -46px; right: 0;
  background: var(--card); border: 1px solid var(--border-l);
  border-radius: 50%; width: 36px; height: 36px;
  color: var(--tx); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.lb-close:hover { background: var(--border-l); }
.lb-caption {
  margin-top: 14px; text-align: center;
  font-size: .82rem; color: var(--tx-3); font-family: var(--mono);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .pd-hero-inner       { grid-template-columns: 1fr; }
  .pd-metrics-grid     { grid-template-columns: repeat(2, 1fr); }
  .pd-metric           { border-bottom: 1px solid var(--border); }
  .pd-metric:nth-child(2) { border-right: none; }
  .impact-grid         { grid-template-columns: repeat(2, 1fr); }
  .feat-grid           { grid-template-columns: repeat(2, 1fr); }
  .ss-grid             { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pd-overview-grid    { grid-template-columns: 1fr; }
  .pd-nav-grid         { grid-template-columns: 1fr; }
  .pd-metrics-grid     { grid-template-columns: repeat(2, 1fr); }
  .ss-grid             { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feat-grid           { grid-template-columns: 1fr; }
  .impact-grid         { grid-template-columns: repeat(2, 1fr); }
  .ss-grid             { grid-template-columns: 1fr; }
  .pd-metrics-grid     { grid-template-columns: 1fr; }
  .pd-metric           { border-right: none; }
}
