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

:root {
  --bg: #f6f4f0;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f2f0ec;
  --border: rgba(30,25,18,.06);
  --border-light: rgba(30,25,18,.1);
  --text: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #a8a29e;
  --accent: #0d9488;
  --accent-bright: #14b8a6;
  --accent-dim: rgba(13,148,136,.06);
  --accent-glow: rgba(13,148,136,.10);
  --green: #15803d;
  --gold: #b45309;
  --shadow-xs: 0 1px 2px rgba(28,25,23,.03);
  --shadow-sm: 0 1px 3px rgba(28,25,23,.04), 0 1px 2px rgba(28,25,23,.03);
  --shadow-md: 0 4px 20px rgba(28,25,23,.05), 0 1px 4px rgba(28,25,23,.03);
  --shadow-lg: 0 12px 40px rgba(28,25,23,.08);
  --nav-blur: rgba(246,244,240,.88);
  --modal-overlay: rgba(28,25,23,.5);
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --nav-h: 64px;
  --section-py: clamp(80px, 10vw, 120px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0a09;
    --bg-elevated: #1a1816;
    --bg-card: #1c1a18;
    --bg-card-hover: #262420;
    --border: rgba(250,245,235,.06);
    --border-light: rgba(250,245,235,.10);
    --text: #f5f5f0;
    --text-secondary: #a8a29e;
    --text-muted: #6b6560;
    --accent: #2dd4bf;
    --accent-bright: #5eead4;
    --accent-dim: rgba(45,212,191,.07);
    --accent-glow: rgba(45,212,191,.10);
    --green: #22c55e;
    --gold: #f59e0b;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.18);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.22);
    --shadow-md: 0 4px 20px rgba(0,0,0,.28);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.4);
    --nav-blur: rgba(12,10,9,.88);
    --modal-overlay: rgba(0,0,0,.6);
  }
}

:root[data-theme="dark"] {
  --bg: #0c0a09;
  --bg-elevated: #1a1816;
  --bg-card: #1c1a18;
  --bg-card-hover: #262420;
  --border: rgba(250,245,235,.06);
  --border-light: rgba(250,245,235,.10);
  --text: #f5f5f0;
  --text-secondary: #a8a29e;
  --text-muted: #6b6560;
  --accent: #2dd4bf;
  --accent-bright: #5eead4;
  --accent-dim: rgba(45,212,191,.07);
  --accent-glow: rgba(45,212,191,.10);
  --green: #22c55e;
  --gold: #f59e0b;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.22);
  --shadow-md: 0 4px 20px rgba(0,0,0,.28);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.4);
  --nav-blur: rgba(12,10,9,.88);
  --modal-overlay: rgba(0,0,0,.6);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.accent { color: var(--accent); }

/* ── Nav ───────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: var(--nav-blur);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color .2s;
  font-weight: 500;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}
.nav__cta:hover {
  background: var(--accent-bright) !important;
  transform: translateY(-1px);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.theme-toggle:hover {
  color: var(--text);
  background: var(--accent-dim);
}
.theme-toggle__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle__moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
:root[data-theme="light"] .theme-toggle__sun { display: block; }
:root[data-theme="light"] .theme-toggle__moon { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width:768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  .nav__links.open { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 1.25rem; color: var(--text-secondary); }
  .nav__links a:hover { color: var(--text); }
  .nav__cta {
    margin-top: 8px;
  }
}

/* ── Hero ──────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  width: 100%;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero__subtitle {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero__name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: 20px;
}
.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  transition: all .2s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,148,136,.25);
}
.btn--secondary {
  border: 1px solid var(--border-light);
  color: var(--text);
  background: var(--bg-elevated);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all .2s;
}
.hero__socials a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}
.hero__socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.hero__visual {
  position: relative;
  width: 320px;
  min-width: 280px;
  flex-shrink: 0;
}
.hero__orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: .5;
  filter: blur(10px);
}
.hero__portrait {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim), var(--shadow-lg);
  z-index: 2;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media(max-width:768px) {
  .hero .container { flex-direction: column; text-align: center; }
  .hero__content { max-width: 100%; }
  .hero__tagline { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__socials { justify-content: center; }
  .hero__visual { width: 100%; min-width: unset; order: -1; margin-bottom: 24px; }
  .hero__portrait { width: 180px; height: 180px; }
  .hero__orb { width: 260px; height: 260px; }
}

/* ── Stats ─────────────────────────── */
.stats {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stat {
  padding: 28px 16px;
  text-align: center;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.stat__value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.stat__label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
@media(max-width:900px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3)::after { display: none; }
}
@media(max-width:500px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n)::after { display: none; }
}

/* ── Sections ──────────────────────── */
.section {
  padding: var(--section-py) 0;
}
.section__label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__heading {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 48px;
}

/* ── About ─────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about__headline {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}
.about__text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: .95rem;
}
.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}
.about__highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.5;
}
.about__highlight-icon {
  width: 6px;
  min-width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
}
@media(max-width:768px) {
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Services ──────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.service-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .3s, transform .2s, border-color .3s;
  position: relative;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.service-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  color: var(--accent);
}
.service-card__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.service-card__desc {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.65;
}

/* ── Experience ────────────────────── */
.experience__timeline {
  position: relative;
  padding-left: 36px;
}
.experience__timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border-light));
}
.exp-company {
  margin-bottom: 40px;
  position: relative;
}
.exp-company:last-child { margin-bottom: 0; }
.exp-company__dot {
  position: absolute;
  left: -36px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: var(--bg);
}
.exp-company__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.exp-company__name {
  font-size: 1.1rem;
  font-weight: 700;
}
.exp-company__type {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--accent-dim);
  color: var(--accent);
}
.exp-company__duration {
  font-size: .8rem;
  color: var(--text-muted);
}
.exp-roles {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exp-role {
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s;
}
.exp-role:hover {
  border-color: var(--border-light);
}
.exp-role__title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 2px;
}
.exp-role__meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.exp-role__desc {
  font-size: .87rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.exp-role__highlights {
  margin-top: 12px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-role__highlights li {
  font-size: .84rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}
.exp-role__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* ── Projects ──────────────────────── */
.projects__filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 7px 16px;
  font-size: .8rem;
  font-weight: 600;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elevated);
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--border-light); color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .3s, transform .25s, border-color .3s;
}
.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
}
.project-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-elevated);
}
.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
.project-card:hover .project-card__thumb img {
  transform: scale(1.04);
}
.project-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
}
.project-card__thumb-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--border-light);
  fill: none;
  stroke-width: 1.2;
}
.project-card__count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}
.project-card__body {
  padding: 18px 20px 20px;
}
.project-card__assoc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 3px 10px 3px 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  width: fit-content;
}
.project-card__assoc img {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  object-fit: contain;
}
.project-card__assoc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 3px;
}
.project-card__category {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 6px;
}
.project-card__name {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.project-card__desc {
  font-size: .83rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.project-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.skill-tag {
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 99px;
}

@media(max-width:500px) {
  .projects__grid { grid-template-columns: 1fr; }
}

/* ── Client Work ───────────────────── */
.client-work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cw-card {
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s;
}
.cw-card:hover {
  border-color: var(--border-light);
}
.cw-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 12px;
}
.cw-card__title {
  font-size: .95rem;
  font-weight: 700;
}
.cw-card__earnings {
  font-size: .9rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.cw-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.cw-card__stars {
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: 2px;
}
.cw-card__rating-value {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.cw-card__summary {
  font-size: .84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}
.cw-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ── Skills ────────────────────────── */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.skill-group {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.skill-group__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
  color: var(--accent);
}
.skill-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.skill-group__item {
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: color .2s, border-color .2s;
}
.skill-group__item:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Education ─────────────────────── */
.education__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.edu-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 14px;
}
.edu-card__logo {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.edu-card__logo-fallback {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
}
.edu-card__institution {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 2px;
}
.edu-card__degree {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.edu-card__meta {
  font-size: .76rem;
  color: var(--text-muted);
}
.education__certs-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.cert-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  margin-bottom: 12px;
  align-items: flex-start;
}
.cert-card__logo {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cert-card__title {
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 3px;
}
.cert-card__issuer {
  font-size: .8rem;
  color: var(--text-secondary);
}
.cert-card__meta {
  font-size: .73rem;
  color: var(--text-muted);
  margin-top: 3px;
}
@media(max-width:768px) {
  .education__grid { grid-template-columns: 1fr; }
}

/* ── Contact ───────────────────────── */
.contact {
  border-top: 1px solid var(--border);
}
.contact__content {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.contact__headline {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 36px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity .2s;
}
.contact__link:hover { opacity: .8; }
.contact__link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.contact__response {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.contact__socials {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact__socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all .2s;
}
.contact__socials a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}
.contact__socials svg { width: 17px; height: 17px; fill: currentColor; }

/* ── Footer ────────────────────────── */
.footer {
  padding: 32px 0;
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Modal ──────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
}
.modal__content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform .3s;
}
.modal.open .modal__content { transform: translateY(0); }
.modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: var(--text-secondary);
  z-index: 2;
  line-height: 1;
  transition: color .2s;
}
.modal__close:hover { color: var(--text); }
.modal__gallery {
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
}
.modal__gallery-track {
  display: flex;
  transition: transform .35s ease;
}
.modal__gallery-slide {
  min-width: 100%;
  aspect-ratio: 16/10;
}
.modal__gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-elevated);
}
.modal__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: background .2s;
  border: none;
}
.modal__gallery-nav:hover { background: rgba(0,0,0,.75); }
.modal__gallery-nav--prev { left: 12px; }
.modal__gallery-nav--next { right: 12px; }
.modal__gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.modal__gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  padding: 0;
  transition: background .2s;
}
.modal__gallery-dot.active { background: #fff; }
.modal__info {
  padding: 24px 28px 28px;
}
.modal__role {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.modal__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 6px 0 12px;
}
.modal__desc {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.65;
  margin-bottom: 18px;
}
.modal__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Scroll Reveal ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
