:root {
  --bg: #ffffff;
  --bg-alt: #f5f8f8;
  --surface: #ffffff;
  --text: #13201f;
  --muted: #5b6b6a;
  --border: #e2e9e9;
  --accent: #0f8b8d;
  --accent-strong: #0b6e70;
  --accent-soft: #e3f3f3;
  --shadow: 0 1px 2px rgba(16, 32, 31, .04), 0 8px 24px rgba(16, 32, 31, .06);
  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1414;
    --bg-alt: #111c1c;
    --surface: #152222;
    --text: #e6eeee;
    --muted: #9db0af;
    --border: #213333;
    --accent: #3cc4c6;
    --accent-strong: #6ad6d8;
    --accent-soft: #163536;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  box-shadow: 0 4px 12px rgba(15, 139, 141, .28);
  transition: transform .2s;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; margin-left: 8px;
  background: none; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-name span { font-weight: 500; color: var(--muted); }
.brand-tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--text); }
.nav nav a.nav-cta {
  color: #fff; background: var(--accent); padding: 8px 16px; border-radius: 999px;
}
.nav nav a.nav-cta:hover { background: var(--accent-strong); color: #fff; }

/* Hero */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(800px 400px at 85% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero-top { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.hero-photo {
  width: 300px; height: 300px; object-fit: cover; object-position: 50% 15%;
  border-radius: 50%; border: 6px solid var(--surface); background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 16px;
}
.certs-row { list-style: none; padding: 0; margin-top: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.certs-row li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px 4px 4px;
}
.certs-row img {
  width: 24px; height: 24px; object-fit: contain;
  background: #fff; border-radius: 50%; padding: 2px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
.role { font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 600; color: var(--accent); margin: 12px 0 0; }
.lead { font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--muted); max-width: 640px; margin: 18px 0 14px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; transition: background .15s, border-color .15s, color .15s;
  overflow-wrap: anywhere;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-strong); color: #fff; }
.btn.ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 56px 0 0; padding: 0;
}
.stats div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.stats dt { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stats dd { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.stat-note { display: block; margin-top: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--accent); }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-title {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 32px;
}
.two-col { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.two-col p { font-size: 1.08rem; color: var(--text); text-align: justify; hyphens: auto; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline > li {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px;
  padding-bottom: 36px; position: relative;
}
.timeline > li:last-child { padding-bottom: 0; }
.when { color: var(--muted); font-size: .9rem; font-weight: 500; padding-top: 3px; }
.what {
  border-left: 2px solid var(--border); padding-left: 28px; position: relative;
}
.what::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--accent);
}
.timeline > li:first-child .what::before { background: var(--accent); }
/* Organization logos: always on a white tile so dark marks stay visible in dark mode */
.logo {
  flex: none; width: 56px; height: 56px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; padding: 7px; overflow: hidden;
}
.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo.initials { background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.job-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.job-head .logo { width: 124px; padding: 8px 10px; }
.job-head .logo img { max-height: 38px; }
@media (max-width: 640px) { .job-head .logo { width: 88px; height: 48px; } }
.job-head .org { margin-bottom: 0; }
.card-logo {
  display: block; height: 52px; max-width: 170px; object-fit: contain; object-position: left center;
  background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; box-sizing: content-box;
}
.what h3 { font-size: 1.15rem; font-weight: 700; }
.org { color: var(--accent); font-weight: 500; font-size: .95rem; margin: 4px 0 10px; }
.what ul { margin: 0; padding-left: 18px; color: var(--muted); }
.what li { margin-bottom: 4px; }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card.featured { grid-column: span 3; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.tag {
  font-size: .75rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 999px;
}
.value { font-weight: 800; font-size: 1.3rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p, .card ul { color: var(--muted); font-size: .95rem; margin: 0; }
.card ul { padding-left: 18px; }
.card li { margin-bottom: 4px; }

/* Skills */
.sub-title { font-size: 1.05rem; font-weight: 700; margin: 48px 0 14px; }
.sub-title.first { margin-top: 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; font-size: .88rem;
}
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.skill-icon, .tech-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 12px;
}
.skill-icon svg, .tech-icon svg { width: 20px; height: 20px; }
.tech-icon { width: 34px; height: 34px; border-radius: 9px; margin-bottom: 10px; }
.tech-icon svg { width: 18px; height: 18px; }
.skill-card h4 { font-size: 1rem; margin-bottom: 6px; }
.skill-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.skill-card .chips-sm { margin-top: 14px; gap: 6px; }
.chips-sm li { font-size: .8rem; padding: 4px 10px; background: var(--bg-alt); }
.ai-chips { margin-top: 16px; }
.skill-card, .tech-grid > div { transition: border-color .15s, transform .15s; }
.skill-card:hover, .tech-grid > div:hover { border-color: var(--accent); transform: translateY(-2px); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tech-grid > div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.tech-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 8px; }
.tech-grid p { margin: 0; font-size: .92rem; }

/* Education / certs */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: center; }
.list li:first-child { padding-top: 0; }
.list li > div { display: flex; flex-direction: column; }
.list .logo { width: 48px; height: 48px; padding: 6px; }
.list span:not(.logo) { color: var(--muted); font-size: .92rem; }

/* Blog */
.nav nav a[aria-current="page"] { color: var(--accent); }
.section.blog-hero { padding-bottom: 20px; background: radial-gradient(800px 300px at 85% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; max-width: 720px; }
.blog-hero .lead { margin-bottom: 0; }
.section.blog-list { padding-top: 20px; }
.post {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.post-cover { display: block; border-radius: 10px; overflow: hidden; align-self: start; }
.post-cover img { display: block; width: 100%; height: auto; transition: transform .3s; }
.post-cover:hover img { transform: scale(1.03); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.post-title { font-size: 1.4rem; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--accent); }
.post-body > p { color: var(--muted); }
.post-body h3 { font-size: 1rem; margin: 18px 0 8px; }
.post-points { margin: 0 0 24px; padding-left: 18px; color: var(--muted); }
.post-points li { margin-bottom: 6px; }
.post-points strong { color: var(--text); }

/* Events */
.events { display: grid; gap: 28px; }
.event {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.event-cover { display: block; background: #0d4f55; }
.event-cover img { display: block; width: 100%; height: auto; }
.event-cover-logo {
  display: grid; place-items: center; padding: 28px;
  background: linear-gradient(135deg, #fbf4fb, #efe4f3);
}
.event-cover-logo img { width: auto; max-width: 220px; max-height: 130px; }
.event-body { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 24px; }
.event-date {
  width: 84px; text-align: center; border-radius: 12px; padding: 10px 6px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; align-self: start;
}
.event-date span { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-transform: none; }
.event-body p:not(.post-meta) { color: var(--muted); }
.event-tags { margin-top: 4px; }
.event-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--border); }
.event-photos img { display: block; width: 100%; height: 440px; object-fit: cover; object-position: center 30%; }
.event-split { display: grid; grid-template-columns: 400px 1fr; }
.event-side-photo { margin: 0; }
.event-side-photo img { display: block; width: 100%; height: 100%; min-height: 360px; object-fit: cover; object-position: 70% 35%; }
.event-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 4px; }
.event-gallery figure { margin: 0; }
.event-gallery img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: center 30%; border-radius: 10px; }
.event-gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.event-quote {
  margin: 18px 0; padding: 16px 20px; border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 10px 10px 0;
}
.event-body .event-quote p { color: var(--text); font-style: italic; margin-bottom: .7em; }
.event-quote footer a { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; }
.event-quote footer img { border-radius: 4px; }

/* Contact */
.contact { background: var(--accent-soft); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.contact p { color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.contact .hero-actions { justify-content: center; }

.footer { padding: 28px 0; color: var(--muted); font-size: .88rem; text-align: center; border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-top { grid-template-columns: 1fr; gap: 32px; }
  .post { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .event-body { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .event-photos img { height: 260px; }
  .event-gallery { grid-template-columns: 1fr 1fr; }
  .event-gallery img { height: 220px; }
  .event-split { grid-template-columns: 1fr; }
  .event-side-photo img { height: 340px; min-height: 0; }
  .event-date { width: auto; display: inline-flex; gap: 6px; align-items: baseline; justify-self: start; padding: 6px 12px; }
  .event-date span { display: inline; font-size: 1.1rem; }
  .hero-photo { order: -1; width: 180px; height: 180px; justify-self: center; }
  .hero-text { text-align: center; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .certs-row, .contact-line, .hero-text .hero-actions { justify-content: center; }
  .two-col, .cols, .skill-grid { grid-template-columns: 1fr; gap: 16px; }
  .cols { gap: 48px; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .when { padding-left: 30px; }
  .cards { grid-template-columns: 1fr; }
  .card, .card.featured { grid-column: auto; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-toggle { display: flex; }
  .nav nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    padding: 8px 16px 16px; display: none;
  }
  .nav.nav-open nav { display: flex; }
  .nav nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 1rem; color: var(--text); }
  .nav nav a.nav-cta { margin-top: 12px; border: 0; text-align: center; padding: 12px 16px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
}
/* Print: plain single-column resume, readable by ATS parsers when saved as PDF */
@media print {
  @page { margin: 14mm 16mm; }
  :root {
    --bg: #fff; --bg-alt: #fff; --surface: #fff; --text: #000; --muted: #222;
    --border: #ccc; --accent: #000; --accent-soft: #fff; --shadow: none;
  }
  body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; line-height: 1.35; }
  .nav, .hero-photo, .hero-actions, .stats, .footer, .contact, .eyebrow, .logo, .card-logo { display: none !important; }
  .job-head { display: block; margin: 0; }
  .cols > div { break-inside: avoid; }
  .cols > div + div { margin-top: 12pt; }
  .container { max-width: none; padding: 0; }
  .hero, .section, .section.alt, .contact { padding: 0; margin: 0 0 12pt; background: none; text-align: left; }
  .hero-top, .two-col, .cols { display: block; }
  .hero h1 { font-size: 20pt; }
  .role { color: #000; font-size: 12pt; margin-top: 2pt; }
  .lead { font-size: 10.5pt; max-width: none; margin: 6pt 0; }
  .contact-line { margin-bottom: 0; }
  a { color: #000; }
  .section-title, .contact h2 {
    font-size: 12pt; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid #000; padding-bottom: 2pt; margin: 0 0 6pt;
    break-after: avoid;
  }
  .two-col p { font-size: 10.5pt; color: #000; margin-bottom: 5pt; }
  .what ul, .card ul { padding-left: 14pt; }
  .contact-inner { align-items: flex-start; }
  .contact p { margin: 0; max-width: none; }
  .timeline > li { display: block; padding-bottom: 8pt; break-inside: avoid; }
  .what { border: 0; padding: 0; }
  .what::before { display: none; }
  .when { padding: 0; font-size: 10pt; }
  .what h3, .card h3 { font-size: 11pt; }
  .org { color: #000; margin: 0 0 2pt; font-style: italic; }
  .cards { display: block; }
  .card { border: 0; padding: 0 0 6pt; box-shadow: none; break-inside: avoid; }
  .card:hover { transform: none; }
  .card-head { justify-content: flex-start; margin: 0; }
  .tag { padding: 0; font-size: 10pt; color: #000; }
  .tag::after { content: " ·"; }
  .value { font-size: 10pt; }
  .chips { display: block; }
  .chips li { display: inline; border: 0; padding: 0; font-size: 10.5pt; }
  .chips li:not(:last-child)::after { content: ", "; }
  .sub-title { font-size: 10.5pt; margin: 6pt 0 2pt; }
  .tech-grid, .skill-grid { display: block; }
  .skill-card { border: 0; padding: 0 0 4pt; box-shadow: none; }
  .skill-icon, .tech-icon { display: none; }
  .skill-card h4 { font-size: 10.5pt; margin: 0; }
  .skill-card p { font-size: 10.5pt; color: #000; }
  .skill-card .chips-sm { margin-top: 0; }
  .skill-card:has(.chips-sm) { display: flex; flex-wrap: wrap; gap: 0 6pt; padding-bottom: 2pt; }
  .skill-card:has(.chips-sm) p { display: none; }
  .skill-card:has(.chips-sm) h4::after { content: ":"; }
  .chips-sm li { background: none; font-size: 10.5pt; }
  .tech-grid > div { border: 0; padding: 0; }
  .tech-grid h4 { display: inline; font-size: 10.5pt; text-transform: none; letter-spacing: 0; color: #000; }
  .tech-grid h4::after { content: ": "; }
  .tech-grid p { display: inline; }
  .list li { padding: 1pt 0; border: 0; }
  .list li > div { display: block; }
  .list li > div span::before { content: " — "; }
  .list span { color: #222; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .brand-mark, .post-cover img, .skill-card, .tech-grid > div { transition: none; }
}

/* Narrow phones: keep just the monogram so Blog, Events and Contact fit */
@media (max-width: 420px) {
  .brand-tag { font-size: .6rem; letter-spacing: .06em; }
  .contact-line { flex-direction: column; align-items: center; gap: 2px; }
  .contact-line span[aria-hidden] { display: none; }
}

/* Visiting card (card.html) */
.vcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.vcard {
  container-type: inline-size; position: relative; overflow: hidden;
  aspect-ratio: 89 / 51; border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 18px 40px rgba(10, 79, 81, .22);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.vcard-front {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 5.5% 6%; color: #fff;
  background:
    radial-gradient(60cqw 60cqw at 105% -15%, rgba(159, 240, 230, .28), transparent 60%),
    radial-gradient(45cqw 45cqw at -10% 120%, rgba(255, 255, 255, .10), transparent 60%),
    linear-gradient(135deg, #12a0a2 0%, #0b6e70 55%, #083f41 100%);
}
.vc-top { display: flex; justify-content: space-between; align-items: center; gap: 4cqw; }
.vc-mark { width: 10cqw; height: 10cqw; border-radius: 2.4cqw; box-shadow: 0 0 0 .5cqw rgba(255, 255, 255, .35); }
.vc-web { font-size: 2.3cqw; letter-spacing: .02em; opacity: .75; }
.vc-name { font-size: 6.2cqw; white-space: nowrap; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.vc-title { font-size: 3.3cqw; font-weight: 600; color: #9ff0e6; margin: 1.2cqw 0 0; }
.vc-sub { font-size: 2.4cqw; white-space: nowrap; opacity: .85; margin: 1cqw 0 0; }
.vc-certs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 1.4cqw; }
.vc-certs li {
  display: inline-flex; align-items: center; gap: 1.2cqw;
  font-size: 2.2cqw; font-weight: 700; letter-spacing: .02em;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: .8cqw 2.2cqw .8cqw .8cqw;
}
.vc-certs img { width: 4cqw; height: 4cqw; object-fit: contain; background: #fff; border-radius: 50%; padding: .4cqw; }

.vcard-back {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5cqw;
  padding: 5.5% 6% 8%; background: #fff; color: #13201f; border: 1px solid #e2e9e9;
}
.vcard-back::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.4cqw;
  background: linear-gradient(90deg, #12a0a2, #0b6e70 60%, #9ff0e6);
}
.vc-back-name { font-size: 5.2cqw; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.vc-back-title { font-size: 2.8cqw; color: #0f8b8d; font-weight: 600; margin: .6cqw 0 3.6cqw; }
.vc-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2cqw; }
.vc-contact li { display: flex; align-items: center; gap: 2cqw; font-size: 2.9cqw; }
.vc-contact li svg { flex: none; width: 4.4cqw; height: 4.4cqw; color: #0f8b8d; }
.vc-contact a { color: #13201f; overflow-wrap: anywhere; }
.vc-qr { margin: 0; text-align: center; }
.vc-qr img { display: block; width: 24cqw; height: 24cqw; padding: 1.6cqw; border: 1px solid #e2e9e9; border-radius: 2.4cqw; background: #fff; }
.vc-qr figcaption { font-size: 2.3cqw; color: #5b6b6a; margin-top: 1.2cqw; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 860px) {
  .vcards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
}
@media print {
  .card-page .nav, .card-page .card-hero, .card-page .footer { display: none !important; }
  .card-page .section { padding: 0; }
  .card-page .vcards { display: block; }
  .card-page .vcard { width: 89mm; height: 51mm; aspect-ratio: auto; margin: 0 0 8mm; box-shadow: none; border-radius: 3mm; break-inside: avoid; }
}
.card-hero .lead { margin-bottom: 24px; }
.vc-photo {
  position: absolute; right: 6%; top: 50%; transform: translateY(-46%);
  width: 23cqw; height: 23cqw; border-radius: 50%; object-fit: cover; object-position: 50% 15%;
  background: #fff; border: .9cqw solid rgba(255, 255, 255, .9);
  box-shadow: 0 1.5cqw 4cqw rgba(0, 0, 0, .25);
}
.vc-id, .vc-certs { max-width: 68%; }
.share-panel {
  margin-top: 20px; max-width: 520px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.share-panel[hidden] { display: none; }
.share-label { font-weight: 700; margin-bottom: 10px; }
.share-link { display: flex; gap: 8px; }
.share-link input {
  flex: 1; min-width: 0; font: inherit; font-size: .9rem; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--text);
}
.share-link .btn { padding: 10px 16px; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.share-targets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-targets a, .share-targets button {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
  font-size: .9rem; font-weight: 600; color: var(--text); background: var(--bg);
}
.share-targets a:hover, .share-targets button:hover { border-color: var(--accent); color: var(--accent); }
.share-targets button { font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.share-targets button[hidden] { display: none; }
.share-status { margin: 8px 0 0; min-height: 1.2em; font-size: .88rem; color: var(--accent); font-weight: 600; }
button.btn { cursor: pointer; font: inherit; font-weight: 600; }

/* Skills carousel */
.skills-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.skills-intro { position: sticky; top: 96px; }
.skills-intro > p { color: var(--muted); margin-bottom: 20px; }
.carousel-tabs { display: flex; flex-direction: column; gap: 6px; }
.carousel-tabs button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--muted);
  background: none; border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.carousel-tabs button:hover { color: var(--text); background: var(--surface); }
.carousel-tabs button[aria-selected="true"] { color: var(--accent); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.tab-num { font-size: .75rem; font-weight: 800; letter-spacing: .05em; color: var(--accent); opacity: .7; }
.carousel-controls { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.carousel-arrow {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-count { font-size: .9rem; color: var(--muted); min-width: 42px; text-align: center; }
.carousel-count strong { color: var(--text); }

.carousel { min-width: 0; }
.carousel-track {
  display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  transition: height .3s ease;
  scrollbar-width: none; border-radius: var(--radius); outline-offset: 4px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 2px 2px 12px; align-self: flex-start; }
.carousel-slide .sub-title { margin-top: 0; }
.carousel-slide .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carousel-slide .tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width .2s, background .2s; }
.carousel-dots span.active { width: 24px; background: var(--accent); }

@media (max-width: 1080px) {
  .carousel-slide .skill-grid, .carousel-slide .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .skills-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .skills-intro { position: static; }
  .carousel-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
  .carousel-tabs::-webkit-scrollbar { display: none; }
  .carousel-tabs button { flex: none; width: auto; padding: 8px 14px; border-color: var(--border); border-radius: 999px; font-size: .9rem; }
  .tab-num { display: none; }
  .carousel-controls { margin-top: 12px; }
}
@media (max-width: 640px) {
  .carousel-slide .skill-grid, .carousel-slide .tech-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}
@media print {
  .skills-layout { display: block; }
  .skills-intro > p, .carousel-tabs, .carousel-controls, .carousel-dots { display: none !important; }
  .skills-intro { position: static; }
  .carousel-track { display: block; overflow: visible; height: auto !important; }
  .carousel-slide { padding: 0; }
}

/* Side arrows on the skills carousel */
.carousel { position: relative; }
.carousel-side {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 46px; height: 46px; box-shadow: var(--shadow);
  background: var(--surface);
}
.carousel-side.prev { left: -23px; }
.carousel-side.next { right: -23px; }
.carousel-side:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 1240px) {
  .carousel-side.prev { left: -12px; }
  .carousel-side.next { right: -12px; }
}
@media (max-width: 860px) {
  .carousel-side { display: none; }
}
@media print { .carousel-side { display: none !important; } }

/* Contact icons */
.contact-badge {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, #16a6a8, #0a5f61); color: #fff;
  box-shadow: 0 8px 20px rgba(15, 139, 141, .3);
}
.contact-badge svg { width: 28px; height: 28px; }
.btn-with-icon { display: inline-flex; align-items: center; gap: 10px; }
.btn-icon { width: 20px; height: 20px; flex: none; }
.btn-icon.brand-li { color: #0a66c2; }
.btn-icon.brand-card { color: var(--accent); }
.btn-with-icon:hover .btn-icon.brand-card { color: inherit; }
@media print { .contact-badge, .btn-icon { display: none !important; } }
@media (prefers-color-scheme: dark) {
  .btn.primary, .btn.primary:hover, .nav nav a.nav-cta, .nav nav a.nav-cta:hover { color: #062b2c; }
}
.icon-link { display: inline-flex; align-items: center; gap: 7px; }
.link-icon { width: 16px; height: 16px; flex: none; }
.link-icon.brand-gmail { color: #ea4335; }
.link-icon.brand-li { color: #0a66c2; }
@media print { .link-icon { display: none !important; } }
button.btn { font-size: .95rem; line-height: inherit; }
.share-targets a, .share-targets button { display: inline-flex; align-items: center; gap: 7px; }
.share-icon { width: 16px; height: 16px; flex: none; color: var(--accent); }
.share-icon.brand-wa { color: #25d366; }
.share-icon.brand-li { color: #0a66c2; }
.share-link .btn { font-size: .95rem; }

/* ITCN card: two portrait photos plus one landscape */
.event-photos:has(.event-photo-wide) { grid-template-columns: 1fr 1fr 1.5fr; }
.event-photo-wide { margin: 0; position: relative; }
.event-photo-wide img { object-position: center 40%; }
.event-photo-wide figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .8rem; font-weight: 600;
}
@media (max-width: 860px) {
  .event-photos:has(.event-photo-wide) { grid-template-columns: 1fr 1fr; }
  .event-photo-wide { grid-column: 1 / -1; }
}
