/* =====================================================================
   Japneet Singh — Portfolio design system
   Dark editorial. Black / grey / white. Shared across all pages.
   ===================================================================== */
:root {
  /* Neutral grey — dark charcoal accent — Vercel/Linear aesthetic */
  --bg:           #FAFAFA;
  --bg-soft:      #F0F0F0;
  --bg-soft-2:    #E8E8E8;
  --card:         #FFFFFF;
  --card-2:       #F5F5F5;
  --line:         rgba(0, 0, 0, 0.07);
  --line-2:       rgba(0, 0, 0, 0.12);
  --line-3:       rgba(0, 0, 0, 0.22);
  --ink:          #0D0D0D;
  --ink-2:        #525252;
  --ink-3:        #8A8A8A;
  --ink-faint:    #C0C0C0;
  --accent:       #1A1A1A;
  --accent-2:     #3D3D3D;
  --accent-soft:  rgba(0, 0, 0, 0.05);
  --accent-soft-2:rgba(0, 0, 0, 0.09);
  --radius:       16px;
  --radius-sm:    10px;
  --container:    1080px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:  0 20px 60px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0,0,0,0.05);
  --shadow-sm: 0 8px 28px rgba(0, 0, 0, 0.07);
  --shadow-up: 0 -4px 24px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: rgba(0, 0, 0, 0.12); color: #0D0D0D; }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.05; font-weight: 700; }

/* Blueprint line grid — Vercel/Linear signature pattern, fades from center */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 0%, black 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 100% 90% at 50% 0%, black 30%, transparent 85%);
}

/* Scroll progress bar (top) */
#scrollbar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: linear-gradient(90deg, transparent, var(--ink) 50%, transparent);
  transition: width 0.08s linear;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); position: relative; z-index: 2; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; z-index: 2; }
.soft { background: var(--bg-soft); }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* Eyebrow with number */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px;
}
.eyebrow .ix { color: var(--ink-faint); font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 11px; }
.eyebrow .ix::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); margin-left: 12px; vertical-align: middle; }

.display { font-size: clamp(54px, 11vw, 116px); font-weight: 700; letter-spacing: -0.04em; line-height: 0.93; color: var(--ink); }
.h-section { font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.lead { font-size: clamp(18px, 2.3vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 640px; }

/* =====================================================================
   Buttons (+ magnetic via JS)
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 980px;
  font-size: 15.5px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  will-change: transform;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,0.03); }

/* =====================================================================
   Navbar
   ===================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: 64px;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(245, 245, 245, 0.85);
  -webkit-backdrop-filter: saturate(140%) blur(20px); backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; font-size: 14.5px; color: var(--ink-2); padding: 8px 16px; border-radius: 980px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: center; transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.nav-cta { background: var(--accent); color: #fff; padding: 8px 20px; }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--accent-2); color: #fff; }

.nav-toggle { display: none; width: 42px; height: 42px; border: none; background: transparent; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 17px; } .nav-toggle span:nth-child(2) { bottom: 17px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(245,245,245,0.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); padding: 16px clamp(20px, 5vw, 40px) 28px;
    transform: translateY(-14px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 6px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-links a::after { display: none; }
  .nav-links a.nav-cta { background: transparent; color: var(--accent); margin-top: 4px; border-bottom: none; padding: 14px 6px; }
}

/* =====================================================================
   Page header (interior pages)
   ===================================================================== */
.page-head { padding-top: clamp(124px, 16vw, 172px); padding-bottom: clamp(36px, 6vw, 64px); }
.page-head .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 60px); align-items: end; }
.page-head .lead { margin-top: 0; }
@media (max-width: 760px) { .page-head .grid { grid-template-columns: 1fr; gap: 18px; } }

/* =====================================================================
   HERO (home)
   ===================================================================== */
.hero { padding-top: clamp(130px, 18vw, 190px); padding-bottom: clamp(56px, 8vw, 92px); position: relative; overflow: hidden; }
.hero-aura {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  width: 760px; height: 760px; filter: blur(90px); opacity: 0.75;
  background: radial-gradient(circle, rgba(0,0,0,0.03), transparent 65%);
  top: -32%; left: 50%; transform: translateX(-50%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: 520px; height: 520px; border-radius: 50%; filter: blur(110px); opacity: 0.5;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.02), transparent 65%);
  bottom: -25%; right: -10%;
}
/* Hero status badge */
.hero-status {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2);
  border: 1px solid var(--line-2); background: var(--card); border-radius: 980px;
  padding: 7px 15px 7px 11px; margin-bottom: 28px;
  font-weight: 500; letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hero-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5); animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.45);} 70%,100% { box-shadow: 0 0 0 10px rgba(34,197,94,0);} }
.hero h1 { margin-bottom: 22px; }
.hero .hero-lead { font-size: clamp(19px, 2.6vw, 25px); color: var(--ink-2); max-width: 600px; line-height: 1.5; }
.hero .hero-lead .hl { color: var(--ink); }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(30px, 6vw, 72px); align-items: center; position: relative; z-index: 2; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-photo-wrap {
  justify-self: center; position: relative;
}
/* Subtle decorative ring around photo */
.hero-photo-wrap::before {
  content: ""; position: absolute; inset: -6px; border-radius: 33px;
  border: 1px solid var(--line-2); pointer-events: none; z-index: 0;
}
.hero-photo, .hero-photo-fb {
  width: clamp(230px, 32vw, 310px); aspect-ratio: 1; border-radius: 26px; object-fit: cover;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative; z-index: 1;
}
.hero-photo-fb {
  display: none; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink); font-size: 90px; font-weight: 700;
}
.hero-photo-tag {
  position: absolute; left: -14px; bottom: -14px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-sm); font-size: 13px; color: var(--ink-2);
  z-index: 2;
}
.hero-photo-tag b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; margin-bottom: 1px; }

/* Worked-at strip */
.worked { margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.worked .lbl { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 16px; }
.worked .orgs { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.worked .org { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 600; font-size: 16.5px; }
.worked .org .mono {
  width: 34px; height: 34px; border-radius: 9px; background: var(--card); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink); font-weight: 700;
}

/* =====================================================================
   Feature cards — cursor spotlight + dim siblings on hover
   ===================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.feature, .cert, .card-row, .role, .contact-card, .cs-card, .cell {
  position: relative; overflow: hidden;
}
.spot {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform 0.4s var(--ease), border-color 0.3s, opacity 0.3s, box-shadow 0.35s var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset;
}
.spot::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0,0,0,0.035), transparent 60%);
  border-radius: inherit;
}
.spot:hover::before { opacity: 1; }
.spot:hover {
  border-color: var(--line-3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.9) inset;
}
.feature-grid:hover .feature:not(:hover) { opacity: 0.45; }

.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  border: 1px solid var(--line);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--ink-2); line-height: 1.55; position: relative; }

/* =====================================================================
   Marquee / ticker strip
   ===================================================================== */
.marquee-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0; overflow: hidden; position: relative; z-index: 2;
  background: var(--card);
}
.marquee-inner { overflow: hidden; padding: 15px 0; }
.marquee-track {
  display: inline-flex; align-items: center;
  animation: marquee 32s linear infinite;
  white-space: nowrap; will-change: transform;
}
.marquee-track .mk {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 22px; font-family: var(--mono);
}
.marquee-track .msep { color: var(--ink-faint); font-size: 14px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* =====================================================================
   Bento grid (home: "What I do")
   ===================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 460px;
}
@media (max-width: 820px) {
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .bento-main { min-height: 320px; }
}
.bento-main {
  grid-row: 1 / 3;
  padding: 38px 36px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.bento-sm {
  padding: 28px;
  display: flex; flex-direction: column;
}
.bento-tag {
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 28px;
}
.bento-main .ico { margin-bottom: 20px; flex-shrink: 0; }
.bento-main .ico svg { width: 42px; height: 42px; }
.bento-main h3 { font-size: clamp(22px, 3vw, 26px); font-weight: 700; margin-bottom: 12px; }
.bento-main p { font-size: 16px; color: var(--ink-2); line-height: 1.6; max-width: 380px; flex-grow: 1; }
.bento-cta {
  margin-top: auto; padding-top: 22px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px;
  border-top: 1px solid var(--line); text-decoration: none;
  transition: gap 0.2s var(--ease), color 0.2s;
}
.bento-cta:hover { color: var(--ink-2); gap: 12px; }
/* Large ghost decoration text */
.bento-deco {
  position: absolute; bottom: -24px; right: -12px;
  font-size: clamp(96px, 14vw, 160px); font-weight: 800; letter-spacing: -0.06em;
  line-height: 1; color: var(--line); pointer-events: none; user-select: none;
  transition: color 0.3s;
}
.bento-main:hover .bento-deco { color: rgba(0,0,0,0.1); }
.bento-sm h3 { font-size: 17px; font-weight: 700; margin-top: 14px; margin-bottom: 8px; }
.bento-sm p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; flex-grow: 1; position: relative; }
.bento-sm .ico { margin-bottom: 0; flex-shrink: 0; }
.bento-sm .ico svg { width: 32px; height: 32px; }

/* =====================================================================
   Stats — editorial horizontal strip (no card boxes)
   ===================================================================== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
@media (max-width: 620px) { .stats-strip { grid-template-columns: 1fr; } }
.stats-strip .stat {
  text-align: center; padding: 52px 20px;
  border-right: 1px solid var(--line);
  background: var(--card); border-radius: 0;
  position: relative;
}
.stats-strip .stat:last-child { border-right: none; }
.stats-strip .stat::before { display: none; } /* override .spot spotlight if applied */
.stats-strip .stat .num {
  font-size: clamp(52px, 7vw, 72px); font-weight: 700; color: var(--ink);
  letter-spacing: -0.05em; line-height: 1;
}
.stats-strip .stat .num .u { color: var(--ink-faint); font-weight: 600; }
.stats-strip .stat .lbl {
  margin-top: 10px; font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--mono);
}

/* =====================================================================
   Stats
   ===================================================================== */
/* .stats kept for non-home pages; home uses .stats-strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }
.stat {
  text-align: center; padding: 36px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.stat .num { font-size: clamp(46px, 6vw, 64px); font-weight: 700; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.stat .num .u { color: var(--ink-faint); }
.stat .lbl { margin-top: 14px; font-size: 14px; color: var(--ink-3); letter-spacing: 0.04em; }

/* =====================================================================
   CTA band (used for inline calls, NOT a footer "Let's connect")
   ===================================================================== */
.band {
  background: var(--card-2); border: 1px solid var(--line); border-radius: clamp(20px, 4vw, 32px);
  padding: clamp(40px, 6vw, 72px); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
  background: radial-gradient(800px circle at 100% 0%, rgba(0,0,0,0.03), transparent 60%);
}
.band h2 { font-size: clamp(26px, 4vw, 40px); }
.band p { color: var(--ink-2); margin-top: 10px; }
.band > div { position: relative; z-index: 1; }

/* =====================================================================
   Timeline (experience)
   ===================================================================== */
.timeline { position: relative; }
.tl-item { position: relative; padding-left: 76px; padding-bottom: 56px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 27px; top: 60px; bottom: -10px; width: 1px;
  background: linear-gradient(var(--line-2), var(--line), transparent);
}
.tl-item:last-child::before { display: none; }
.tl-logo {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 15px;
  background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.tl-item:hover .tl-logo { border-color: var(--line-3); transform: scale(1.06); }
.tl-co { font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--ink); }
.tl-loc { font-size: 14.5px; color: var(--ink-3); margin-top: 4px; margin-bottom: 26px; letter-spacing: 0.01em; }
.role { padding: 26px 28px; margin-bottom: 14px; }
.role:last-child { margin-bottom: 0; }
.role-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.role-top h3 { font-size: 20px; font-weight: 700; }
.role-top .when {
  font-size: 13px; color: var(--ink); font-weight: 500;
  background: var(--accent-soft); border: 1px solid var(--line); padding: 3px 11px; border-radius: 980px;
}
.role-top .type { font-size: 14px; color: var(--ink-3); }
.role p { margin-top: 14px; font-size: 16px; color: var(--ink-2); line-height: 1.55; position: relative; }
.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.tags span { font-size: 13px; color: var(--ink-2); background: var(--bg-soft-2); border: 1px solid var(--line); border-radius: 980px; padding: 6px 13px; }

/* =====================================================================
   Education / generic list cards
   ===================================================================== */
.stack { display: grid; gap: 14px; }
.card-row {
  padding: 28px 30px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
}
.card-row .t { font-size: 21px; font-weight: 700; color: var(--ink); position: relative; }
.card-row .s { font-size: 16px; color: var(--ink-2); margin-top: 4px; position: relative; }
.card-row .meta { font-size: 14.5px; color: var(--ink-3); white-space: nowrap; position: relative; }
.card-row .dist { flex-basis: 100%; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 9px; position: relative; }
.card-row .dist svg { width: 16px; height: 16px; color: var(--ink); flex: none; }

/* =====================================================================
   Certifications
   ===================================================================== */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cert-grid { grid-template-columns: 1fr; } }
.cert { padding: 28px 26px; }
.cert .badge {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  border: 1px solid var(--line);
}
.cert .badge svg { width: 22px; height: 22px; }
.cert .cn { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; position: relative; }
.cert .ci { font-size: 14px; color: var(--ink-3); margin-top: 10px; position: relative; letter-spacing: 0.01em; }

/* =====================================================================
   Skills downloads page
   ===================================================================== */
.claude-code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 8px; font-size: 0.86em; color: var(--ink);
}
.dl-howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 56px); }
@media (max-width: 820px) { .dl-howto { grid-template-columns: 1fr; } }
.dl-howto .step { padding: 28px; }
.dl-howto .step-num {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--ink-faint);
  letter-spacing: 0.12em; margin-bottom: 14px;
}
.dl-howto .step h3 { font-size: 18px; margin-bottom: 8px; }
.dl-howto .step p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

#cskills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: clamp(40px, 6vw, 56px); }
@media (max-width: 620px) { #cskills { grid-template-columns: 1fr; } }
.cs-empty {
  grid-column: 1 / -1; border: 1.5px dashed var(--line-2); border-radius: var(--radius);
  padding: 64px 28px; text-align: center; background: var(--bg-soft-2); position: relative; overflow: hidden;
}
.cs-empty::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: radial-gradient(600px circle at 50% 0%, rgba(0,0,0,0.03), transparent 60%);
}
.cs-empty .orb {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
  border: 1px solid var(--line); position: relative;
}
.cs-empty .orb svg { width: 24px; height: 24px; }
.cs-empty .orb::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--line-2);
  animation: orbPulse 2.6s ease-out infinite;
}
@keyframes orbPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.cs-empty .t { color: var(--ink); font-size: 20px; font-weight: 700; position: relative; }
.cs-empty .s { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 480px; margin-left: auto; margin-right: auto; position: relative; }
.cs-card { padding: 28px; display: flex; flex-direction: column; }
.cs-card .cat {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: 980px; padding: 5px 12px; margin-bottom: 16px;
}
.cs-card .nm { font-size: 19px; font-weight: 700; color: var(--ink); position: relative; }
.cs-card .ds { margin-top: 10px; font-size: 15px; color: var(--ink-2); flex-grow: 1; position: relative; }
.cs-card .ft { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.cs-card .ver { font-size: 12.5px; color: var(--ink-3); font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* =====================================================================
   Contact
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 34px; }
.contact-card .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  border: 1px solid var(--line);
}
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card .ck { font-size: 13px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; position: relative; }
.contact-card .cv { font-size: 21px; font-weight: 700; color: var(--ink); margin-top: 6px; position: relative; }
.contact-card .cv a { color: var(--ink); }
.contact-card .cv a:hover { color: #fff; }

/* =====================================================================
   Footer (minimal — no "Let's connect" CTA)
   ===================================================================== */
.footer { border-top: 1px solid var(--line); padding: 36px 0; position: relative; z-index: 2; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: var(--ink-2); font-size: 13.5px; transition: color 0.2s; }
.footer-nav a:hover { color: var(--ink); }

/* Back to top */
#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 110; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, border-color 0.3s, background 0.3s;
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { border-color: var(--ink); background: rgba(0,0,0,0.04); }
#toTop svg { width: 20px; height: 20px; }

/* =====================================================================
   Reveal + utilities
   ===================================================================== */
.section-title-wrap { margin-bottom: clamp(36px, 5vw, 56px); }
.mt-block { margin-top: clamp(48px, 7vw, 88px); }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.1s; }
.js .reveal.d2 { transition-delay: 0.2s; }
.js .reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body::before { display: none; }
}
