*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html.cursor-ready {
  cursor: none;
}

:root {
  --ink: #0c0b09;
  --ink2: #151311;
  --gold: #d4a017;
  --gold2: #f0c040;
  --gold3: #e8b82a;
  --cream: #f5efe6;
  --dim: #7a7060;
  --glass-bg: rgba(245, 239, 230, 0.04);
  --glass-bg2: rgba(245, 239, 230, 0.07);
  --glass-b: rgba(245, 239, 230, 0.1);
  --glass-bh: rgba(245, 239, 230, 0.22);
  --r: 16px;
  --fd: 'Bebas Neue', sans-serif;
  --fb: 'Outfit', sans-serif;
  --fm: 'DM Mono', monospace;
  --glow: 0 0 60px rgba(212, 160, 23, .12), 0 0 120px rgba(212, 160, 23, .06);
  --border-line: rgba(245, 239, 230, .06);
  --border-line2: rgba(245, 239, 230, .08);
  --border-line3: rgba(245, 239, 230, .1);
  --nav-bg: rgba(12, 11, 9, .7);
  --noise-opacity: .028;
}

/* ─── LIGHT THEME ────────────────────────────────────── */
[data-theme="light"] {
  --ink: #faf6ee;
  --ink2: #f0ebe0;
  --cream: #1a1714;
  --dim: #5c554a;
  --gold: #b8880f;
  --gold2: #d4a017;
  --gold3: #c99512;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg2: rgba(255, 255, 255, 0.8);
  --glass-b: rgba(26, 24, 21, 0.08);
  --glass-bh: rgba(26, 24, 21, 0.14);
  --glow: 0 0 40px rgba(184, 136, 15, .06);
  --border-line: rgba(26, 24, 21, .07);
  --border-line2: rgba(26, 24, 21, .1);
  --border-line3: rgba(26, 24, 21, .14);
  --nav-bg: rgba(250, 246, 238, .82);
  --noise-opacity: .012;
}

/* ── Hero ── */
[data-theme="light"] .hero-name .line2 {
  -webkit-text-stroke: 2px rgba(26, 23, 20, .22);
}

[data-theme="light"] .hero-name .line2:hover {
  -webkit-text-stroke-color: var(--gold);
}

/* ── Contact hollow text ── */
[data-theme="light"] .contact-big .hollow {
  -webkit-text-stroke-color: rgba(26, 23, 20, .25);
}

[data-theme="light"] .contact-big .hollow:hover {
  -webkit-text-stroke-color: var(--gold);
}

/* ── Background geometry ── */
[data-theme="light"] .geo-line {
  background: linear-gradient(180deg, transparent, rgba(184, 136, 15, .06), transparent);
}

[data-theme="light"] .gw1 {
  background: radial-gradient(ellipse, rgba(184, 136, 15, .07), transparent 70%);
}

[data-theme="light"] .gw2 {
  background: radial-gradient(ellipse, rgba(184, 136, 15, .04), transparent 70%);
}

/* ── Cursor ── */
[data-theme="light"] #cursor {
  mix-blend-mode: exclusion;
}

/* ── Glass cards — solid white with soft shadow ── */
[data-theme="light"] .gc {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(26, 23, 20, .06);
  box-shadow: 0 2px 8px rgba(26, 23, 20, .04), 0 0 0 1px rgba(26, 23, 20, .03);
  backdrop-filter: blur(16px) saturate(1.2);
}

[data-theme="light"] .gc:hover {
  border-color: rgba(184, 136, 15, .2);
  box-shadow: 0 12px 40px rgba(26, 23, 20, .08), 0 0 0 1px rgba(184, 136, 15, .1);
}

[data-theme="light"] .gc::before {
  background: linear-gradient(135deg, rgba(184, 136, 15, .04), transparent 60%);
}

/* ── Social icons ── */
[data-theme="light"] .si-gh svg {
  fill: var(--cream);
}

[data-theme="light"] .social-card {
  color: var(--cream);
}

[data-theme="light"] .soc-n {
  color: var(--cream);
  font-weight: 600;
}

[data-theme="light"] .soc-h {
  color: var(--dim);
}

[data-theme="light"] .si-ig {
  background: rgba(228, 64, 95, .08);
  border-color: rgba(228, 64, 95, .15);
}

[data-theme="light"] .si-gm {
  background: rgba(234, 67, 53, .08);
  border-color: rgba(234, 67, 53, .16);
}

[data-theme="light"] .si-tt {
  background: rgba(26, 23, 20, .06);
  border-color: rgba(26, 23, 20, .1);
}

[data-theme="light"] .si-tt svg {
  fill: var(--cream);
}

[data-theme="light"] .si-gh {
  background: rgba(26, 23, 20, .06);
  border-color: rgba(26, 23, 20, .1);
}

[data-theme="light"] .si-li {
  background: rgba(10, 102, 194, .07);
  border-color: rgba(10, 102, 194, .14);
}

[data-theme="light"] .si-fb {
  background: rgba(24, 119, 242, .07);
  border-color: rgba(24, 119, 242, .14);
}

/* ── Skills ── */
[data-theme="light"] .sc-tag {
  background: rgba(26, 23, 20, .05);
  border-color: rgba(26, 23, 20, .1);
  color: var(--dim);
}

[data-theme="light"] .skill-cat:hover .sc-tag {
  background: rgba(184, 136, 15, .08);
  border-color: rgba(184, 136, 15, .18);
  color: #6b5300;
}

[data-theme="light"] .sc-num {
  background: linear-gradient(135deg, var(--gold), rgba(184, 136, 15, .3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .skill-cat {
  background: rgba(255, 255, 255, .5);
}

[data-theme="light"] .skill-cat:hover {
  background: rgba(255, 255, 255, .8);
}

[data-theme="light"] .skill-item:hover .skill-name-t {
  color: var(--cream);
  text-shadow: none;
}

/* ── Projects ── */
[data-theme="light"] .proj-num {
  background: linear-gradient(135deg, rgba(26, 23, 20, .08), rgba(26, 23, 20, .03));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .proj-thumb::after {
  background: linear-gradient(to top, rgba(250, 246, 238, .25), transparent 50%);
}

[data-theme="light"] .plink {
  background: rgba(255, 255, 255, .5);
}

[data-theme="light"] .plink:hover {
  background: rgba(184, 136, 15, .06);
}

/* ── Certificates ── */
[data-theme="light"] .cert-mat {
  background: rgba(26, 23, 20, .04);
  border-color: rgba(26, 23, 20, .08);
  color: var(--dim);
}

[data-theme="light"] .cert-row:hover .cert-mat {
  color: #6b5300;
  background: rgba(184, 136, 15, .06);
  border-color: rgba(184, 136, 15, .15);
}

[data-theme="light"] .cert-row {
  background: rgba(255, 255, 255, .4);
}

[data-theme="light"] .cert-row:hover {
  background: rgba(255, 255, 255, .7);
}

[data-theme="light"] .cert-org-badge.alt {
  color: var(--dim);
  background: rgba(26, 23, 20, .05);
  border-color: rgba(26, 23, 20, .1);
}

/* ── Blog ── */
[data-theme="light"] .blog-tag {
  background: rgba(184, 136, 15, .06);
  border-color: rgba(184, 136, 15, .14);
}

/* ── Buttons — dark text on gold ── */
[data-theme="light"] .btn-gold,
[data-theme="light"] .nav-hire,
[data-theme="light"] .filter-btn.active {
  color: #1a1714;
}

/* ── Hero card ── */
[data-theme="light"] .hc-photo {
  background: linear-gradient(135deg, #f0ebe0, #e5dfd3);
  border-color: rgba(184, 136, 15, .25);
}

/* ── About cards ── */
[data-theme="light"] .hi-icon {
  background: rgba(184, 136, 15, .08);
  border-color: rgba(184, 136, 15, .18);
}

/* ── Back to top ── */
[data-theme="light"] .back-to-top {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(184, 136, 15, .2);
  box-shadow: 0 4px 16px rgba(26, 23, 20, .08);
}

/* ── Contact meta ── */
[data-theme="light"] .contact-meta {
  background: rgba(255, 255, 255, .5);
}

/* ── Scrollbar ── */
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--ink);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(184, 136, 15, .3);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 136, 15, .5);
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

/* CURSOR */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s cubic-bezier(.4, 0, .2, 1), height .2s cubic-bezier(.4, 0, .2, 1), background .2s;
  left: -20px;
  top: -20px;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(212, 160, 23, .35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  left: -20px;
  top: -20px;
  transition: width .3s cubic-bezier(.4, 0, .2, 1), height .3s cubic-bezier(.4, 0, .2, 1), opacity .3s;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 18px;
  height: 18px;
  background: var(--gold2);
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 52px;
  height: 52px;
  opacity: .4;
}

/* NOISE */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 1;
}

/* BG GEO */
.bg-geo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.geo-line {
  position: absolute;
  background: linear-gradient(180deg, transparent, rgba(212, 160, 23, .06), transparent);
  width: 1px;
}

.geo-line:nth-child(1) {
  left: 20%;
  height: 100%;
  top: 0;
  animation: lp 8s ease-in-out infinite;
}

.geo-line:nth-child(2) {
  left: 55%;
  height: 100%;
  top: 0;
  animation: lp 8s ease-in-out infinite;
  animation-delay: -3s;
  opacity: .5;
}

.geo-line:nth-child(3) {
  left: 80%;
  height: 100%;
  top: 0;
  animation: lp 8s ease-in-out infinite;
  animation-delay: -6s;
  opacity: .3;
}

.geo-warm {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: wd 20s ease-in-out infinite alternate;
}

.gw1 {
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 160, 23, .08), transparent 70%);
  top: -100px;
  left: -150px;
}

.gw2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 160, 23, .05), transparent 70%);
  bottom: -50px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes lp {

  0%,
  100% {
    opacity: .4
  }

  50% {
    opacity: 1
  }
}

@keyframes wd {
  from {
    transform: translate(0, 0) scale(1)
  }

  to {
    transform: translate(40px, 30px) scale(1.1)
  }
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-line);
  background: var(--nav-bg);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  transition: background .4s ease, border-color .4s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  height: 60px;
}

.nav-logo {
  font-family: var(--fd);
  font-size: 1.4rem;
  letter-spacing: .06em;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding-right: 40px;
  border-right: 1px solid var(--border-line2);
  transition: opacity .2s, color .4s;
  flex-shrink: 0;
}

.nav-logo:hover {
  opacity: .8;
}

.nav-logo em {
  color: var(--gold);
  font-style: normal;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  margin-left: 32px;
  gap: 0;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 18px;
  height: 60px;
  display: flex;
  align-items: center;
  transition: color .25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.nav-active {
  color: var(--cream);
}

.nav-links a.nav-active::after {
  transform: scaleX(1);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-hire {
  font-family: var(--fm);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: .04em;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-hire::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  opacity: 0;
  transition: opacity .25s;
  z-index: -1;
}

.nav-hire:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 160, 23, .3);
}

.nav-hire:hover::before {
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: background .3s, transform .3s;
}

/* THEME TOGGLE */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-line2);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s;
  color: var(--cream);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 23, .08);
  transform: scale(1.05);
}

.theme-toggle svg {
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.theme-toggle:hover svg {
  transform: rotate(30deg);
}

/* LAYOUT */
.wrapper {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 110px 0;
}

/* GLASS CARD */
.gc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-b);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-radius: var(--r);
  transition: border-color .35s cubic-bezier(.4, 0, .2, 1), transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s cubic-bezier(.4, 0, .2, 1), background .4s;
  position: relative;
  overflow: hidden;
}

.gc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 160, 23, .03), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

.gc:hover {
  border-color: var(--glass-bh);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .4), var(--glow);
}

.gc:hover::before {
  opacity: 1;
}

/* SECTION META */
.s-index {
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.s-index::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.s-title {
  font-family: var(--fd);
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: .04em;
  line-height: .95;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--cream) 40%, var(--dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s-sub {
  color: var(--dim);
  font-size: .95rem;
  line-height: 1.75;
  max-width: 480px;
}

/* HERO */
#home {
  min-height: 100svh;
  display: block;
  padding-top: clamp(88px, 11vh, 132px);
  padding-bottom: clamp(44px, 7vh, 72px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

#home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--ink), transparent);
  pointer-events: none;
  z-index: 0;
}

#home .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: clamp(36px, 5vw, 60px);
  align-items: center;
  will-change: transform, opacity;
}

.hero-inner>.fu:first-child {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 28px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(212, 160, 23, .5);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .2
  }
}

.hero-name {
  font-family: var(--fd);
  font-size: clamp(4rem, 9vw, 8rem);
  letter-spacing: .03em;
  line-height: .9;
  margin-bottom: 4px;
}

.hero-name .line2 {
  -webkit-text-stroke: 1.5px rgba(245, 239, 230, .25);
  color: transparent;
  transition: all .4s;
}

.hero-name .line2:hover {
  -webkit-text-stroke-color: var(--gold);
  text-shadow: 0 0 40px rgba(212, 160, 23, .15);
}

/* TYPED ANIMATION */
.hero-role {
  font-family: var(--fm);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  padding-left: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.4em;
}

.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold);
  margin-left: 2px;
  animation: typed-blink .7s infinite;
  vertical-align: middle;
}

@keyframes typed-blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-desc {
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-gold {
  font-family: var(--fm);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  transition: left .5s;
  pointer-events: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 160, 23, .35);
}

.btn-gold:hover::before {
  left: 150%;
}

.btn-outline {
  font-family: var(--fm);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  color: var(--cream);
  padding: 13px 28px;
  border-radius: 4px;
  border: 1px solid var(--border-line3);
  text-decoration: none;
  transition: border-color .25s, transform .25s, box-shadow .25s, color .4s;
}

.btn-outline:hover {
  border-color: rgba(212, 160, 23, .4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 160, 23, .1);
}

.hero-numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-line);
}

.hn {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hn-val {
  font-family: var(--fd);
  font-size: 2rem;
  letter-spacing: .04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hn-lbl {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .58;
  margin-top: 4px;
}

/* HERO CARD */
.hero-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 160, 23, .1), transparent 70%);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(212, 160, 23, .04), transparent 30%);
  animation: cardSpin 8s linear infinite;
  pointer-events: none;
}

@keyframes cardSpin {
  to {
    transform: rotate(360deg)
  }
}

.hc-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e1a14, #2a2318);
  border: 2px solid rgba(212, 160, 23, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(212, 160, 23, .1);
}

.hc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: filter .4s;
}

.hero-card:hover .hc-photo img {
  filter: grayscale(0) brightness(1) contrast(1);
}

.hc-name {
  font-family: var(--fd);
  font-size: 1.6rem;
  letter-spacing: .06em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.hc-tag {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 160, 23, .1);
  border: 1px solid rgba(212, 160, 23, .2);
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hc-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-line2), transparent);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hc-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
}

.hc-row-k {
  color: var(--dim);
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hc-row-v {
  color: var(--cream);
  font-weight: 500;
}

/* MARQUEE */
#skills {
  padding: 80px 0;
  overflow: hidden;
}

.marquee-wrap {
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
  padding: 28px 0;
  margin-top: 48px;
  position: relative;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--ink), transparent);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--ink), transparent);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 36px;
  border-right: 1px solid var(--border-line);
  white-space: nowrap;
}

.skill-dot-s {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(212, 160, 23, .3);
}

.skill-name-t {
  font-family: var(--fm);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .25s, text-shadow .25s;
}

.skill-item:hover .skill-name-t {
  color: var(--cream);
  text-shadow: 0 0 20px rgba(245, 239, 230, .15);
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

.skills-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border-line);
  border-radius: var(--r);
  overflow: hidden;
}

.skill-cat {
  padding: 32px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  transition: background .3s, transform .3s;
  position: relative;
}

.skill-cat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 160, 23, .05), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.skill-cat:hover {
  background: var(--glass-bg2);
}

.skill-cat:hover::before {
  opacity: 1;
}

.sc-num {
  font-family: var(--fd);
  font-size: 3rem;
  letter-spacing: .04em;
  background: linear-gradient(135deg, rgba(212, 160, 23, .22), rgba(212, 160, 23, .06));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.sc-title {
  font-family: var(--fd);
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: var(--cream);
  margin-bottom: 12px;
}

.sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-tag {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(245, 239, 230, .05);
  border: 1px solid var(--border-line2);
  color: var(--dim);
  transition: color .25s, border-color .25s, background .25s;
}

.skill-cat:hover .sc-tag {
  color: var(--cream);
  border-color: rgba(245, 239, 230, .16);
  background: rgba(245, 239, 230, .07);
}

/* PROJECTS */
.project-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 8px;
}

.filter-btn {
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid var(--border-line2);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: all .25s;
  min-height: 38px;
}

.filter-btn:hover {
  border-color: rgba(212, 160, 23, .3);
  color: var(--cream);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--ink);
  border-color: transparent;
  font-weight: 500;
}


.projects-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.proj-card {
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.proj-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), transparent);
  transform: scaleX(0);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.proj-card:hover::after {
  transform: scaleX(1);
}

.proj-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-line);
  position: relative;
}

.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1), filter .4s;
}

.proj-card:hover .proj-thumb img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.proj-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 11, 9, .4), transparent 50%);
  pointer-events: none;
}

.proj-num {
  font-family: var(--fd);
  font-size: 4rem;
  letter-spacing: .04em;
  background: linear-gradient(135deg, rgba(245, 239, 230, .06), rgba(245, 239, 230, .02));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
  transition: opacity .3s;
}

.proj-card:hover .proj-num {
  opacity: .6;
}

.proj-links {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.plink {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid var(--border-line3);
  padding: 6px 14px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .25s, border-color .25s, background .25s;
}

.plink:hover {
  color: var(--gold);
  border-color: rgba(212, 160, 23, .3);
  background: rgba(212, 160, 23, .05);
}

.proj-title {
  font-family: var(--fd);
  font-size: 1.8rem;
  letter-spacing: .04em;
  margin-bottom: 12px;
  line-height: 1;
}

.proj-desc {
  color: var(--dim);
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.st {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  background: rgba(212, 160, 23, .08);
  border: 1px solid rgba(212, 160, 23, .15);
  color: var(--gold);
  transition: background .25s, border-color .25s;
}

.proj-card:hover .st {
  background: rgba(212, 160, 23, .12);
  border-color: rgba(212, 160, 23, .25);
}

/* CERTS */
.certs-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-line);
  border-radius: var(--r);
  overflow: hidden;
}

.cert-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: start;
  padding: 28px 32px;
  gap: 32px;
  border-bottom: 1px solid var(--border-line);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  transition: background .3s, padding-left .3s;
}

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

.cert-row:hover {
  background: var(--glass-bg2);
  padding-left: 38px;
}

.cert-org-badge {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 160, 23, .1);
  border: 1px solid rgba(212, 160, 23, .2);
  padding: 5px 12px;
  border-radius: 3px;
  display: inline-block;
  align-self: flex-start;
  transition: box-shadow .3s;
}

.cert-row:hover .cert-org-badge {
  box-shadow: 0 0 16px rgba(212, 160, 23, .15);
}

.cert-org-badge.alt {
  color: var(--cream);
  background: var(--glass-bg2);
  border-color: var(--border-line2);
}

.cert-row:hover .cert-org-badge.alt {
  box-shadow: 0 0 16px rgba(245, 239, 230, .05);
}

.cert-t {
  font-family: var(--fd);
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin-bottom: 10px;
  line-height: 1.2;
}

.cert-mats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cert-mat {
  font-size: .72rem;
  color: var(--dim);
  background: var(--glass-bg);
  border: 1px solid var(--border-line);
  padding: 3px 9px;
  border-radius: 2px;
  transition: color .25s, border-color .25s;
}

.cert-row:hover .cert-mat {
  color: var(--cream);
  border-color: var(--border-line2);
}

.cert-date {
  font-family: var(--fm);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  align-self: flex-start;
}

/* BLOG */
#blog {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.blog-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.blog-card .blog-date {
  font-family: var(--fm);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card .blog-date span {
  color: var(--gold);
}

.blog-card .blog-title {
  font-family: var(--fd);
  font-size: 1.3rem;
  letter-spacing: .04em;
  line-height: 1.15;
  transition: color .25s;
}

.blog-card:hover .blog-title {
  color: var(--gold);
}

.blog-card .blog-excerpt {
  font-size: .84rem;
  color: var(--dim);
  line-height: 1.7;
}

.blog-card .blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.blog-card .blog-tag {
  font-family: var(--fm);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(212, 160, 23, .08);
  border: 1px solid rgba(212, 160, 23, .15);
  color: var(--gold);
}

.blog-card .blog-read {
  font-family: var(--fm);
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: gap .25s;
}

.blog-card:hover .blog-read {
  gap: 10px;
}

/* CONTACT */
.contact-big {
  font-family: var(--fd);
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: .02em;
  line-height: .9;
  margin-bottom: 60px;
}

.contact-big .hollow {
  -webkit-text-stroke: 1.5px rgba(245, 239, 230, .2);
  color: transparent;
  transition: all .4s;
}

.contact-big .hollow:hover {
  -webkit-text-stroke-color: var(--gold);
}

.contact-big .cgold {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  text-decoration: none;
  color: var(--cream);
}

.soc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s, box-shadow .25s;
}

.social-card:hover .soc-icon {
  transform: scale(1.1);
}

.si-ig {
  background: rgba(228, 64, 95, .12);
  border: 1px solid rgba(228, 64, 95, .2);
}

.social-card:hover .si-ig {
  box-shadow: 0 0 20px rgba(228, 64, 95, .15);
}

.si-gm {
  background: rgba(234, 67, 53, .12);
  border: 1px solid rgba(234, 67, 53, .22);
}

.social-card:hover .si-gm {
  box-shadow: 0 0 20px rgba(234, 67, 53, .16);
}

.si-tt {
  background: rgba(245, 239, 230, .06);
  border: 1px solid rgba(245, 239, 230, .12);
}

.social-card:hover .si-tt {
  box-shadow: 0 0 20px rgba(245, 239, 230, .08);
}

.si-gh {
  background: rgba(245, 239, 230, .06);
  border: 1px solid rgba(245, 239, 230, .12);
}

.social-card:hover .si-gh {
  box-shadow: 0 0 20px rgba(245, 239, 230, .08);
}

.si-li {
  background: rgba(10, 102, 194, .12);
  border: 1px solid rgba(10, 102, 194, .2);
}

.social-card:hover .si-li {
  box-shadow: 0 0 20px rgba(10, 102, 194, .15);
}

.si-fb {
  background: rgba(24, 119, 242, .12);
  border: 1px solid rgba(24, 119, 242, .2);
}

.social-card:hover .si-fb {
  box-shadow: 0 0 20px rgba(24, 119, 242, .15);
}

.soc-n {
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 2px;
}

.soc-h {
  font-family: var(--fm);
  font-size: .7rem;
  color: var(--dim);
}

.contact-meta {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1/-1;
}

.cm-email {
  font-family: var(--fd);
  font-size: 1.3rem;
  letter-spacing: .06em;
  color: var(--cream);
  transition: color .25s;
}

.cm-email:hover {
  color: var(--gold);
}

.cm-loc {
  font-family: var(--fm);
  font-size: .72rem;
  color: var(--dim);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-line);
  padding: 24px 90px 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .4s;
}

.fc {
  font-family: var(--fm);
  font-size: .68rem;
  color: var(--dim);
  letter-spacing: .06em;
}

.fc span {
  color: var(--gold);
}

.fl {
  display: flex;
  gap: 24px;
}

.fl a {
  font-family: var(--fm);
  font-size: .68rem;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .25s;
}

.fl a:hover {
  color: var(--cream);
}

/* BLOG ARTICLE PAGE */
.blog-article {
  padding-top: 120px;
  padding-bottom: 80px;
}

.ba-meta {
  font-family: var(--fm);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ba-title {
  font-family: var(--fd);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: .03em;
  line-height: 1;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--cream) 40%, var(--dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ba-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-line);
}

.ba-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--cream);
}

.ba-body p {
  margin-bottom: 1.5em;
  color: var(--dim);
}

.ba-body h2 {
  font-family: var(--fd);
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--cream);
  margin-top: 2.4em;
  margin-bottom: .8em;
  line-height: 1.1;
}

.ba-body h3 {
  font-family: var(--fd);
  font-size: 1.15rem;
  letter-spacing: .04em;
  color: var(--cream);
  margin-top: 1.8em;
  margin-bottom: .6em;
}

.ba-body strong {
  color: var(--cream);
  font-weight: 600;
}

.ba-body em {
  font-style: italic;
}

.ba-body ul,
.ba-body ol {
  margin-bottom: 1.5em;
  padding-left: 1.4em;
  color: var(--dim);
}

.ba-body li {
  margin-bottom: .5em;
  padding-left: .3em;
}

.ba-body li strong {
  color: var(--cream);
}

.ba-body code {
  font-family: var(--fm);
  font-size: .85em;
  background: var(--glass-bg2);
  border: 1px solid var(--border-line2);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--gold);
}

.ba-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.5em 0;
  padding: .8em 1.2em;
  background: var(--glass-bg);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--dim);
  font-style: italic;
}

.ba-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.ba-body a:hover {
  color: var(--gold2);
}

.ba-footer {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border-line);
}

@media(max-width:640px) {
  .blog-article {
    padding-top: 88px;
    padding-bottom: 48px;
  }

  .ba-title {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .ba-tags {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }

  .ba-body {
    font-size: .94rem;
  }

  .ba-body h2 {
    font-size: 1.25rem;
  }
}

/* DIVIDER */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, .08), var(--border-line), rgba(212, 160, 23, .08), transparent);
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 23, .25);
  background: rgba(12, 11, 9, .8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s, visibility .35s, transform .35s, border-color .25s, background .25s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 23, .1);
  transform: translateY(-2px);
}

[data-theme="light"] .back-to-top {
  background: rgba(245, 240, 232, .8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

/* SKELETON LOADER */
.skeleton-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 40px;
  overflow: hidden;
  transition: opacity .5s ease, visibility .5s ease;
}

.skeleton-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skeleton-bar {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--glass-bg), var(--glass-bg2), var(--glass-bg));
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

/* fake navbar */
.skel-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
}

.skel-nav-logo {
  width: 72px;
  height: 22px;
}

.skel-nav-links {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.skel-nav-pill {
  width: 56px;
  height: 14px;
  border-radius: 3px;
  animation-delay: .1s;
}

.skel-nav-btn {
  width: 96px;
  height: 32px;
  border-radius: 4px;
  margin-left: 16px;
  background: linear-gradient(90deg, rgba(212, 160, 23, .08), rgba(212, 160, 23, .15), rgba(212, 160, 23, .08));
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  animation-delay: .15s;
}

/* fake hero */
.skel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: clamp(36px, 5vw, 60px);
  flex: 0 1 auto;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: clamp(28px, 5vh, 52px);
}

.skel-hero-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.skel-label {
  width: 100px;
  height: 12px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.skel-h1-1 {
  width: 300px;
  height: 56px;
  border-radius: 8px;
  animation-delay: .05s;
}

.skel-h1-2 {
  width: 200px;
  height: 56px;
  border-radius: 8px;
  animation-delay: .1s;
}

.skel-typed {
  width: 180px;
  height: 14px;
  margin-top: 4px;
  animation-delay: .15s;
}

.skel-desc {
  width: 360px;
  height: 12px;
  margin-top: 8px;
  animation-delay: .2s;
}

.skel-desc-s {
  width: 260px;
  height: 12px;
  animation-delay: .25s;
}

.skel-ctas {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.skel-cta-gold {
  width: 140px;
  height: 44px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(212, 160, 23, .08), rgba(212, 160, 23, .18), rgba(212, 160, 23, .08));
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  animation-delay: .3s;
}

.skel-cta-outline {
  width: 130px;
  height: 44px;
  border-radius: 4px;
  animation-delay: .35s;
}

.skel-hero-right {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.skel-card {
  width: 100%;
  max-width: 320px;
  height: 400px;
  border-radius: 16px;
  animation-delay: .2s;
}

/* fake stats */
.skel-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 0 40px;
  flex-shrink: 0;
}

.skel-stat {
  height: 72px;
  border-radius: 12px;
  min-width: 0;
}

.skel-stat:nth-child(1) {
  animation-delay: .1s;
}

.skel-stat:nth-child(2) {
  animation-delay: .2s;
}

.skel-stat:nth-child(3) {
  animation-delay: .3s;
}

.skel-stat:nth-child(4) {
  animation-delay: .4s;
}

/* loading dots */
.skel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-bottom: 32px;
  flex-shrink: 0;
}

.skel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.2s ease-in-out infinite;
}

.skel-dot:nth-child(2) {
  animation-delay: .2s;
}

.skel-dot:nth-child(3) {
  animation-delay: .4s;
}

@media(min-width:961px) and (max-height:860px) {
  #home {
    padding-top: 82px;
    padding-bottom: 32px;
  }

  .hero-inner {
    align-items: start;
    gap: 40px;
  }

  .hero-eyebrow {
    margin-bottom: 20px;
  }

  .hero-role {
    margin-bottom: 24px;
  }

  .hero-desc {
    margin-bottom: 32px;
  }

  .hero-numbers {
    margin-top: 32px;
    padding-top: 24px;
  }

  .hero-card {
    padding: 32px 24px;
  }

  .hc-photo {
    width: 118px;
    height: 118px;
    margin-bottom: 18px;
  }

  .skel-hero {
    padding-top: 24px;
    align-items: start;
  }

  .skel-card {
    height: 360px;
  }

  .skel-stats {
    padding: 24px 0 28px;
  }
}

@media(max-width:960px) {
  .skel-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 32px;
    text-align: center;
    align-items: center;
  }

  .skel-hero-left {
    align-items: center;
  }

  .skel-hero-right {
    justify-content: center;
  }

  .skel-card {
    width: 260px;
    height: 320px;
  }

  .skel-h1-1 {
    width: 240px;
    height: 44px;
  }

  .skel-h1-2 {
    width: 160px;
    height: 44px;
  }

  .skel-desc {
    width: 280px;
  }

  .skel-desc-s {
    width: 200px;
  }
}

@media(max-width:640px) {
  .skeleton-screen {
    padding: 0 20px;
  }

  .skel-nav {
    height: 56px;
  }

  .skel-hero-right {
    display: none;
  }

  .skel-h1-1 {
    width: 200px;
    height: 38px;
  }

  .skel-h1-2 {
    width: 140px;
    height: 38px;
  }

  .skel-desc {
    width: 240px;
  }

  .skel-desc-s {
    width: 180px;
  }

  .skel-cta-gold {
    width: 120px;
    height: 38px;
  }

  .skel-cta-outline {
    width: 110px;
    height: 38px;
  }

  .skel-stat {
    height: 56px;
  }
}

/* FADE */
.fu {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1);
}

.fu.vis {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2), var(--gold));
  z-index: 9998;
  width: 0%;
  transition: none;
  box-shadow: 0 0 8px rgba(212, 160, 23, .4);
}

/* ─── STAGGERED CARD ENTRANCE ─── */
.stagger-1 {
  transition-delay: .05s !important;
}

.stagger-2 {
  transition-delay: .12s !important;
}

.stagger-3 {
  transition-delay: .19s !important;
}

.stagger-4 {
  transition-delay: .26s !important;
}

.stagger-5 {
  transition-delay: .33s !important;
}

.stagger-6 {
  transition-delay: .40s !important;
}

/* ─── 3D TILT CARD ─── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1), box-shadow .4s;
}

.tilt-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15), 0 0 0 1px rgba(212, 160, 23, .1);
}

/* ─── TEXT REVEAL ─── */
.text-reveal {
  overflow: hidden;
  display: inline-block;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .6s cubic-bezier(.77, 0, .175, 1);
}

.text-reveal.revealed span {
  transform: translateY(0);
}

/* ─── COUNTER ANIMATION FOR STAT NUMBERS ─── */
.hn-val {
  display: inline-block;
  transition: transform .3s;
}

.hn.counted .hn-val {
  animation: countPop .4s cubic-bezier(.4, 0, .2, 1);
}

@keyframes countPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* ─── MAGNETIC HOVER BUTTON ─── */
.magnetic-wrap {
  display: inline-block;
  transition: transform .3s cubic-bezier(.23, 1, .32, 1);
}

/* ─── SECTION TITLE TEXT SPLIT ─── */
.s-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-40deg);
  transition: opacity .4s, transform .4s cubic-bezier(.4, 0, .2, 1);
}

.fu.vis .s-title .char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ─── SKILL ITEM HOVER SCALE ─── */
.skill-item {
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.skill-item:hover {
  transform: scale(1.08);
}

/* ─── SOCIAL CARD HOVER SLIDE ─── */
.social-card {
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), border-color .35s, box-shadow .35s, background .4s;
}

.social-card:hover {
  transform: translateY(-4px);
}

/* ─── HERO NUMBER COUNT-UP SHIMMER ─── */
.hn-val.shimmer {
  background: linear-gradient(90deg, var(--cream) 0%, var(--gold) 50%, var(--cream) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: valShimmer 1.5s ease-out forwards;
}

@keyframes valShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ABOUT GRID */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.hi-card {
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.hi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(212, 160, 23, .1);
  border: 1px solid rgba(212, 160, 23, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s, box-shadow .25s;
}

.hi-card:hover .hi-icon {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(212, 160, 23, .15);
}

.hi-title {
  font-family: var(--fd);
  font-size: .9rem;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.hi-desc {
  font-size: .8rem;
  color: var(--dim);
}

/* SELECTION */
::selection {
  background: rgba(212, 160, 23, .25);
  color: var(--cream);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 160, 23, .25);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 160, 23, .4);
}

/* ─── TOUCH DEVICE: HIDE CUSTOM CURSOR ───────────────── */
@media(pointer:coarse), (hover:none) {

  #cursor,
  #cursor-ring {
    display: none !important;
  }

  html.cursor-ready {
    cursor: auto;
  }

  * {
    cursor: auto !important;
  }
}

/* ─── GLOBAL TOUCH OPTIMIZATION ──────────────────────── */
@media(pointer:coarse) {

  a,
  button,
  .plink,
  .sc-tag,
  .cert-mat,
  .social-card,
  .btn-gold,
  .btn-outline,
  .nav-hire,
  .filter-btn,
  .theme-toggle,
  .back-to-top,
  .blog-card {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(212, 160, 23, .1);
  }
}

/* ─── REDUCED MOTION ─────────────────────────────────── */
@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .marquee-track {
    animation: none !important;
  }

  .fu {
    opacity: 1;
    transform: none;
  }
}

/* ─── TABLET (≤960px) ────────────────────────────────── */
@media(max-width:960px) {

  /* Nav: switch to hamburger menu */
  .nav-links {
    display: none;
    margin-left: 0;
  }

  .nav-hire {
    display: none;
  }

  .nav-logo {
    padding-right: 0;
    border-right: none;
  }

  .hamburger {
    display: flex;
    z-index: 301;
    position: relative;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  }

  .hamburger:hover {
    transform: scale(1.1);
  }

  /* Hamburger → X morphing */
  .hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    background: var(--gold);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    background: var(--gold);
  }

  /* Skeleton nav adjustments */
  .skel-nav-links {
    display: none;
  }

  .skel-nav-btn {
    display: none;
  }

  .skel-nav-logo {
    margin-right: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-numbers {
    gap: 16px;
  }

  .hero-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .projects-layout {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .skills-cats {
    grid-template-columns: 1fr 1fr;
  }

  .cert-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 24px;
  }

  .cert-date {
    order: -1;
    margin-bottom: 4px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── MOBILE (≤640px) ────────────────────────────────── */
@media(max-width:640px) {
  .container {
    padding: 0 20px;
  }

  section {
    padding: 64px 0;
  }

  .nav-inner {
    padding: 0 16px;
    height: 56px;
  }

  .skel-nav {
    height: 56px;
  }

  .s-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 14px;
  }

  .s-index {
    font-size: .62rem;
    margin-bottom: 10px;
  }

  .s-sub {
    font-size: .88rem;
  }
}

/* ─── MOBILE NAV OVERLAY (outside nav to fix backdrop-filter bug) ─── */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(12, 11, 9, .97);
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1);
}

.mobile-nav-overlay.open {
  display: flex;
  opacity: 1;
  animation: navOverlayIn .35s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* Subtle radial glow */
.mobile-nav-overlay::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(212, 160, 23, .06), transparent 70%);
  pointer-events: none;
}

[data-theme="light"] .mobile-nav-overlay {
  background: rgba(250, 246, 238, .97);
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  width: 100%;
  max-width: 400px;
}

.mobile-nav-label {
  font-family: var(--fm);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.mobile-nav-overlay.open .mobile-nav-label {
  animation: navItemSlideIn .4s cubic-bezier(.4, 0, .2, 1) .05s forwards;
}

.mobile-nav-label::before,
.mobile-nav-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, .4));
}

.mobile-nav-label::after {
  background: linear-gradient(90deg, rgba(212, 160, 23, .4), transparent);
}

.mobile-nav-links {
  list-style: none;
  width: 100%;
  text-align: center;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(212, 160, 23, .06);
  opacity: 0;
  transform: translateY(18px);
}

.mobile-nav-overlay.open .mobile-nav-links li {
  animation: navItemSlideIn .45s cubic-bezier(.4, 0, .2, 1) forwards;
}

.mobile-nav-links li:last-child {
  border-bottom: none;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  font-family: var(--fd);
  font-size: 1.2rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .25s, letter-spacing .3s, transform .25s;
  position: relative;
}

.mobile-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  border-radius: 2px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.nav-active {
  color: var(--cream);
  letter-spacing: .24em;
  transform: scale(1.05);
}

.mobile-nav-links a:hover::after,
.mobile-nav-links a.nav-active::after {
  transform: translateX(-50%) scaleX(1);
}

.mobile-nav-footer {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
}

.mobile-nav-overlay.open .mobile-nav-footer {
  animation: navItemSlideIn .4s cubic-bezier(.4, 0, .2, 1) .4s forwards;
}

.mobile-nav-cta {
  width: 100%;
  max-width: 260px;
  text-align: center;
  justify-content: center;
  display: flex;
}

.mobile-nav-copy {
  font-family: var(--fm);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--dim);
  opacity: .5;
}

@keyframes navOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes navItemSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Continue mobile styles */
@media(max-width:640px) {

  #home {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }

  .hero-name {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero-role {
    font-size: .72rem;
    margin-bottom: 24px;
  }

  .hero-desc {
    font-size: .92rem;
    margin-bottom: 32px;
    max-width: 100%;
  }

  .hero-eyebrow {
    font-size: .65rem;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn-gold,
  .btn-outline {
    padding: 14px 24px;
    font-size: .72rem;
    flex: 1;
    text-align: center;
    justify-content: center;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .hero-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
  }

  .hn {
    align-items: center;
    text-align: center;
  }

  .hn-val {
    font-size: 1.6rem;
  }

  .hn-lbl {
    font-size: .6rem;
  }

  .hero-card {
    max-width: 100%;
    padding: 28px 20px;
  }

  .hc-photo {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }

  .hc-name {
    font-size: 1.3rem;
  }

  .hc-tag {
    font-size: .6rem;
    margin-bottom: 20px;
    padding: 4px 12px;
  }

  .hc-row {
    font-size: .72rem;
  }

  .hc-row-k {
    font-size: .6rem;
  }

  .about-grid {
    gap: 28px;
    margin-top: 32px;
  }

  .about-grid>div>p {
    font-size: .88rem;
    line-height: 1.8;
    margin-bottom: 16px !important;
  }

  .hi-card {
    padding: 16px 18px;
    gap: 14px;
  }

  .hi-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .hi-title {
    font-size: .82rem;
  }

  .hi-desc {
    font-size: .76rem;
  }

  #skills {
    padding: 56px 0;
  }

  .marquee-wrap {
    margin-top: 32px;
    padding: 20px 0;
  }

  .marquee-wrap::before,
  .marquee-wrap::after {
    width: 40px;
  }

  .skill-item {
    padding: 0 24px;
    gap: 10px;
  }

  .skill-name-t {
    font-size: .72rem;
  }

  .skills-cats {
    grid-template-columns: 1fr;
    margin-top: 28px !important;
  }

  .skill-cat {
    padding: 24px 20px;
  }

  .sc-num {
    font-size: 2.2rem;
    margin-bottom: 8px;
  }

  .sc-title {
    font-size: .95rem;
    margin-bottom: 10px;
  }

  .sc-tag {
    font-size: .6rem;
    padding: 5px 10px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  .project-filters {
    margin-top: 24px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: .62rem;
    min-height: 36px;
  }

  .projects-layout {
    margin-top: 16px !important;
    gap: 16px;
  }

  .proj-card {
    padding: 24px 20px;
  }

  .proj-num {
    font-size: 3rem;
    top: 14px;
    right: 16px;
  }

  .proj-links {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }

  .plink {
    padding: 10px 16px;
    font-size: .65rem;
    min-height: 40px;
    flex: 1;
    justify-content: center;
  }

  .proj-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    padding-right: 48px;
  }

  .proj-desc {
    font-size: .84rem;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .st {
    font-size: .6rem;
    padding: 5px 10px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }

  .certs-layout {
    margin-top: 32px !important;
    border-radius: 12px;
  }

  .cert-row {
    padding: 20px 18px;
    gap: 10px;
    flex-direction: column;
  }

  .cert-row:hover {
    padding-left: 18px;
  }

  .cert-org-badge {
    font-size: .6rem;
    padding: 4px 10px;
    align-self: flex-start;
  }

  .cert-t {
    font-size: .95rem;
    margin-bottom: 8px;
  }

  .cert-mats {
    gap: 5px;
  }

  .cert-mat {
    font-size: .66rem;
    padding: 4px 8px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
  }

  .cert-date {
    font-size: .62rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .blog-card {
    padding: 22px 20px;
    gap: 12px;
  }

  .blog-card .blog-title {
    font-size: 1.1rem;
  }

  .blog-card .blog-excerpt {
    font-size: .82rem;
  }

  .contact-big {
    font-size: clamp(2.2rem, 12vw, 4rem);
    margin-bottom: 36px;
  }

  .contact-big+.s-sub {
    margin-top: -16px !important;
    margin-bottom: 32px !important;
  }

  .contact-grid {
    gap: 10px;
  }

  .social-card {
    padding: 18px 20px;
    gap: 14px;
    min-height: 64px;
    border-radius: var(--r);
  }

  .soc-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .soc-n {
    font-size: .86rem;
  }

  .soc-h {
    font-size: .66rem;
  }

  .contact-meta {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 22px 18px;
  }

  .cm-email {
    font-size: 1.05rem;
  }

  .cm-loc {
    font-size: .68rem;
  }

  footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 24px 20px 80px 20px;
  }

  .fl {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .fl a {
    font-size: .66rem;
    padding: 4px 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .fc {
    font-size: .64rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .gc:hover {
    transform: none;
    box-shadow: none;
  }

  .gc:active {
    border-color: var(--glass-bh);
    background: var(--glass-bg2);
  }
}

/* ─── SMALL PHONES (≤480px) ──────────────────────────── */
@media(max-width:480px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 52px 0;
  }

  .nav-inner {
    padding: 0 14px;
  }

  .hero-name {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

  .hero-desc {
    font-size: .86rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-gold,
  .btn-outline {
    width: 100%;
  }

  .hero-numbers {
    gap: 12px;
  }

  .hn-val {
    font-size: 1.4rem;
  }

  .proj-card {
    padding: 20px 16px;
  }

  .proj-title {
    font-size: 1.2rem;
  }

  .proj-links {
    flex-direction: column;
  }

  .plink {
    width: 100%;
  }

  .cert-row {
    padding: 16px 14px;
  }

  .social-card {
    padding: 16px;
  }

  .contact-meta {
    padding: 18px 14px;
  }

  .cm-email {
    font-size: .92rem;
  }

  .about-grid>div>p {
    font-size: .84rem;
  }

  .contact-big {
    font-size: clamp(1.8rem, 11vw, 3rem);
  }

  .s-title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .filter-btn {
    padding: 7px 12px;
    font-size: .58rem;
  }
}

/* ─── EXTRA SMALL (≤360px) ───────────────────────────── */
@media(max-width:360px) {
  .container {
    padding: 0 12px;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-card {
    padding: 22px 14px;
  }

  .hc-photo {
    width: 80px;
    height: 80px;
  }

  .hc-name {
    font-size: 1.1rem;
  }

  .hc-row {
    font-size: .66rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .proj-desc {
    font-size: .8rem;
  }

  .skill-cat {
    padding: 18px 14px;
  }
}