@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body-font: 'Inter', system-ui, sans-serif;
  --bg: #FBF7F9;
  --surface: #FFFFFF;
  --ink: #1F1420;
  --body: #4E4151;
  --muted: #6B5C6E;
  --line: #EEE3EA;
  --accent: #C42A6E;
  --on-accent: #FFFFFF;
  --hover: #B0215F;
  --pink-soft: #FCE3EF;
  --pink-ink: #8A2A55;
  --pink-line: #F3C6DA;
  --lilac: #EFE4FB;
  --lilac-ink: #5B4A75;
  --grey-chip: #F2EEF1;
  --btn-line: #DCCCD6;
  --photo-bg: #F3E6EE;
  --live: #1E9E5A;
  --star-lilac: #B79AE0;
  --ring: #E7D6F7;
  --toggle-bg: #FCE3EF;
  --toggle-line: #F3C6DA;
  --toggle-icon: #8A2A55;
  --dark-btn-bg: #1F1420;
  --dark-btn-ink: #FFFFFF;
  --feat-bg: #1F1420;
  --feat-line: transparent;
  --feat-ink: #FFFFFF;
  --feat-label: #F6B8D3;
  --feat-text: #E9E0EA;
  --feat-chip: #3A2440;
  --feat-btn-bg: #FFFFFF;
  --feat-btn-ink: #1F1420;
  --lilac-card-text: #3F3350;
  --lilac-card-chip: #FFFFFF;
  --lilac-card-btn: #5B4A75;
  --pink-card-text: #5A2A40;
  --pink-card-chip: #FFFFFF;
  --contact-ink: #FFFFFF;
  --contact-solid-bg: #FFFFFF;
  --contact-solid-ink: #1F1420;
  --focus: #8A2A55;
  --nav-shadow: 0 10px 30px rgba(31, 20, 32, 0.10);
  --shimmer: #FFD1E6;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #120C14;
  --surface: #1C1420;
  --ink: #F5EDF3;
  --body: #CDBFD0;
  --muted: #A897AC;
  --line: #2E2233;
  --accent: #F07AB0;
  --on-accent: #1A0A12;
  --hover: #F07AB0;
  --pink-soft: #3A1D2C;
  --pink-ink: #F6B8D3;
  --pink-line: #4A2B3D;
  --lilac: #2A2040;
  --lilac-ink: #CDB8F0;
  --grey-chip: #2A2230;
  --btn-line: #3D2E44;
  --photo-bg: #2A1E2A;
  --star-lilac: #8B6FC0;
  --ring: #3A2D4A;
  --toggle-bg: #2A1624;
  --toggle-line: #4A2B3D;
  --toggle-icon: #E3B8CC;
  --dark-btn-bg: #F5EDF3;
  --dark-btn-ink: #120C14;
  --feat-bg: #2A1630;
  --feat-line: #4A2B4F;
  --feat-ink: #FFFFFF;
  --feat-label: #F6B8D3;
  --feat-text: #E9E0EA;
  --feat-chip: #3E2446;
  --feat-btn-bg: #FFFFFF;
  --feat-btn-ink: #120C14;
  --lilac-card-text: #E6DCF7;
  --lilac-card-chip: #1C1420;
  --lilac-card-btn: #CDB8F0;
  --pink-card-text: #F2D3E1;
  --pink-card-chip: #1C1420;
  --contact-ink: #1A0A12;
  --contact-solid-bg: #1A0A12;
  --contact-solid-ink: #FFFFFF;
  --focus: #F6B8D3;
  --nav-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shimmer: #FFE3F0;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 112px; }
.i18n-pending body { visibility: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, p, ul { margin: 0; }
img, svg { display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--hover); }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}
.btn:focus-visible, .contact-link:focus-visible, .theme-toggle:focus-visible, .lang-opt:focus-visible { border-radius: 999px; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 10000;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: 12px 20px; border-radius: 999px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; color: var(--on-accent); }

.page { position: relative; isolation: isolate; overflow: clip; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.section { padding-top: 96px; }
.accent { color: var(--accent); }

.shapes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.shape { position: absolute; will-change: transform; }
.shape-blob-pink { top: -220px; right: -180px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, var(--pink-soft) 0%, var(--pink-soft) 55%, transparent 72%); opacity: 0.85; }
.shape-ring { top: 260px; right: 380px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid var(--pink-line); }
.shape-blob-lilac { top: 1250px; left: -240px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, var(--lilac) 0%, var(--lilac) 55%, transparent 72%); opacity: 0.9; }
.shape-star { color: var(--accent); }
.shape-star-1 { top: 150px; left: 47%; opacity: 0.6; }
.shape-star-2 { top: 1900px; left: 6%; color: var(--star-lilac); opacity: 0.8; }

.site-header { position: sticky; top: -8px; z-index: 100; padding-top: 20px; padding-bottom: 20px; }
.site-header .nav-bar { transition: box-shadow 0.25s ease; }
.site-header.is-stuck .nav-bar { box-shadow: var(--nav-shadow); }
.nav-bar {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 6px 6px 22px;
}
.nav-logo { font-family: var(--head); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 4px; font-size: 14px; font-weight: 500; }
.nav-links a { padding: 12px; border-radius: 999px; }
.nav-links a.is-active { color: var(--accent); }
.nav-actions { display: flex; gap: 6px; align-items: center; }

.theme-toggle {
  position: relative; width: 72px; height: 44px; padding: 4px; border-radius: 999px;
  border: 1px solid var(--toggle-line); background: var(--toggle-bg); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: space-between;
}
.theme-side { width: 34px; display: inline-flex; justify-content: center; color: var(--toggle-icon); }
.theme-knob {
  position: absolute; top: 4px; left: 4px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(.4, 1.4, .6, 1), background-color 0.3s ease;
}
.knob-moon { display: none; }
[data-theme="dark"] .theme-knob { transform: translateX(28px); }
[data-theme="dark"] .knob-sun { display: none; }
[data-theme="dark"] .knob-moon { display: block; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 4px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
}
.lang-opt {
  height: 34px; min-width: 40px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); cursor: default; }

.btn {
  height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-dark { background: var(--dark-btn-bg); color: var(--dark-btn-ink); }
.btn-dark:hover { color: var(--dark-btn-ink); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); }
.btn-outline { border: 1px solid var(--btn-line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--feat-btn-bg); color: var(--feat-btn-ink); }
.btn-light:hover { color: var(--feat-btn-ink); }
.btn-ghost { border: 1px solid var(--lilac-card-btn); color: var(--lilac-card-text); align-self: flex-start; margin-top: 4px; padding: 0 16px; }
.btn-ghost:hover { color: var(--lilac-card-text); }
.btn-ghost-pink { border-color: var(--pink-ink); color: var(--pink-card-text); }
.btn-ghost-pink:hover { color: var(--pink-card-text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-section { padding-top: 8px; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px;
  overflow: hidden; display: flex; flex-wrap: wrap;
}
.hero-text {
  flex: 999 1 480px; min-width: 0; padding: clamp(28px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--pink-ink); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: badgePulse 2s infinite; }
@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.pill-pink { background: var(--pink-soft); color: var(--pink-ink); }
.pill-pink:hover { color: var(--pink-ink); background: var(--pink-line); }
.hero-name {
  font-family: var(--head); font-weight: 800; font-size: clamp(44px, 5.4vw, 76px);
  line-height: 0.95; letter-spacing: -0.04em;
}
.hero-role {
  margin-top: 16px; font-family: var(--head); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px); color: var(--accent); letter-spacing: -0.02em; line-height: 1.2;
}
.hero-sub { margin-top: 18px; max-width: 540px; font-size: 17px; color: var(--body); }
html[lang="es"] .hero-sub { max-width: 580px; }

.hero-photo {
  flex: 1 1 340px; min-height: 420px; position: relative; background: var(--photo-bg);
  border: 0; padding: 0; margin: 0; cursor: pointer; overflow: hidden;
}
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 0.6s ease;
}
.hero-photo:hover img { transform: scale(1.03); }
.hero-photo:focus-visible { outline-offset: -4px; border-radius: 0; }
.photo-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 800; font-size: 72px; color: var(--accent);
}

.now-strip {
  margin-top: 16px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--line);
}
.now-item { background: var(--surface); padding: 20px 28px; display: flex; gap: 16px; align-items: center; min-width: 0; }
a.now-item:hover { color: var(--ink); }
a.now-item:hover .now-arrow { color: var(--accent); transform: translate(2px, -2px); }
.now-icon {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.now-icon-dark { background: var(--dark-btn-bg); color: var(--dark-btn-ink); }
.now-icon-lilac { background: var(--lilac); color: var(--lilac-ink); }
.now-body { min-width: 0; flex: 1; }
.now-label {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: livePulse 2s infinite; }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 158, 90, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(30, 158, 90, 0); }
}
.now-title { display: block; margin-top: 4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-detail { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.now-commit-row { display: flex; gap: 6px; min-width: 0; }
.now-msg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-ago { flex: none; white-space: nowrap; }
.now-ago:not(:empty)::before { content: "· "; }
.now-arrow { color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }

.about-title {
  font-family: var(--head); font-weight: 800; font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05; letter-spacing: -0.035em;
}
.about-text { margin-top: 20px; font-size: 18px; color: var(--body); }

.section-title {
  margin-bottom: 32px; font-family: var(--head); font-weight: 800;
  font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -0.04em;
}

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.card-pad { padding: clamp(24px, 3vw, 36px); }

.work-list { display: flex; flex-direction: column; gap: 16px; }
.job { padding: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 24px 48px; }
.job-head { flex: 1 1 220px; }
.job-company {
  font-family: var(--head); font-weight: 800; font-size: 30px; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--accent);
}
.job-dates { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.job-meta { margin-top: 2px; font-size: 14px; color: var(--muted); }
.job-roles { flex: 999 1 460px; min-width: 0; position: relative; padding-left: 36px; }
.job-line { position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--pink-line); }
.role { position: relative; }
.role-dot {
  position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.role-dot-filled { background: var(--accent); }
.role-dot-single { left: 0; }
.role-dates { font-size: 13px; font-weight: 600; color: var(--muted); }
.role-title { margin-top: 2px; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; line-height: 1.3; }
.job-roles-single { align-self: center; }
.job-roles-single .role-title { margin-top: 0; }
.role-desc { margin-top: 6px; color: var(--body); }
.promoted {
  position: relative; margin: 18px 0 18px -48px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; background: var(--pink-soft); color: var(--pink-ink);
  padding: 5px 12px; border-radius: 999px; border: 2px solid var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.promoted svg { animation: promoRise 3.2s ease-in-out infinite; }
.promoted:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 50%, transparent); }
@keyframes promoRise {
  0%, 55%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(-5px); opacity: 0; }
  71% { transform: translateY(5px); opacity: 0; }
  85% { transform: translateY(0); opacity: 1; }
}

.bn-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bn-s2 { grid-column: span 2; }

.project { border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.25s ease; }
.project:hover { transform: translateY(-4px); }
.project-tag { font-size: 13px; font-weight: 600; }
.project-title { font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; }
.project-desc { font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 600; }
.chips span { padding: 5px 10px; border-radius: 999px; }
.chips-push { margin-top: auto; padding-top: 12px; }

.project-lilac, .project-pink { padding-bottom: clamp(24px, 3vw, 36px); }
.project-featured {
  background: var(--feat-bg); color: var(--feat-ink); border: 1px solid var(--feat-line);
  padding: clamp(24px, 3vw, 36px); gap: 14px;
}
.project-featured .project-tag { color: var(--feat-label); }
.project-title-lg { font-family: var(--head); font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; letter-spacing: -0.035em; }
.project-featured .project-desc { font-size: 16px; color: var(--feat-text); max-width: 560px; }
.project-points { list-style: none; margin-top: 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--feat-text); }
.project-points li { display: flex; gap: 10px; }
.project-points li > span:first-child { color: var(--feat-label); }
.project-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.project-featured .chips span { background: var(--feat-chip); }

.project-lilac { background: var(--lilac); }
.project-lilac .project-tag { color: var(--lilac-ink); }
.project-lilac .project-desc, .project-lilac .chips { color: var(--lilac-card-text); }
.project-lilac .chips span { background: var(--lilac-card-chip); }

.project-pink { background: var(--pink-soft); }
.project-pink .project-tag { color: var(--pink-ink); }
.project-pink .project-desc, .project-pink .chips { color: var(--pink-card-text); }
.project-pink .chips span { background: var(--pink-card-chip); }

.shape-ring-projects {
  position: absolute; z-index: -1; top: -77px; right: -229px; width: 420px; height: 420px;
  border-radius: 50%; border: 2px solid var(--ring); pointer-events: none;
}

.more-github {
  margin-top: 16px; border: 1.5px dashed var(--btn-line); border-radius: 24px; padding: 20px 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  transition: border-color 0.2s ease;
}
.more-github:hover { border-color: var(--accent); color: var(--ink); }
.more-github:hover .btn { transform: translateY(-2px); }
.more-title { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }

.card-title { margin-bottom: 20px; font-family: var(--head); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -0.04em; }
.toolkit { position: relative; }
.shape-blob-skills {
  position: absolute; z-index: -1; left: -99px; top: 79px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--lilac) 0%, var(--lilac) 50%, transparent 72%); opacity: 0.9; pointer-events: none;
}
.skill-group { padding: 14px 0; border-top: 1px solid var(--line); }
.skill-group-last { padding-bottom: 0; }
.skill-label { margin-bottom: 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.chips-lg { gap: 8px; font-size: 14px; }
.chips-lg span {
  padding: 8px 14px; display: inline-block; cursor: default;
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) + var(--lift, 0px))) scale(var(--grow, 1));
  transition: transform 0.25s cubic-bezier(.3, 1.6, .5, 1), box-shadow 0.25s ease;
}
.chips-lg span:hover { --lift: -3px; --grow: 1.06; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 45%, transparent); }
.chips-lilac span { background: var(--lilac); }
.chips-pink span { background: var(--pink-soft); }
.chips-grey span { background: var(--grey-chip); }

.certs { display: flex; flex-direction: column; }
.cert-list { list-style: none; padding: 0; font-size: 15px; flex: 1; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cert-list li {
  flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cert-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cert-strong { font-weight: 600; }
.cert-new { color: var(--accent); font-weight: 600; white-space: nowrap; }
.cert-issuer { color: var(--muted); white-space: nowrap; text-align: right; }
.cert-list li { position: relative; transition: padding-left 0.3s cubic-bezier(.3, 1.4, .5, 1); }
.cert-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top: -5.5px;
  background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transform: scale(0) rotate(-90deg); transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1);
}
.cert-list li:last-child::before { margin-top: 1.5px; }
.cert-issuer, .cert-new { transition: color 0.2s ease, transform 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .cert-list li:hover { padding-left: 20px; }
  .cert-list li:hover::before { transform: scale(1) rotate(0deg); }
  .cert-list li:hover .cert-issuer { color: var(--accent); }
}
.cert-new { display: inline-flex; align-items: center; gap: 6px; }
.cert-new::before {
  content: ""; width: 9px; height: 9px; background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.5; }
  50% { transform: scale(1.15) rotate(45deg); opacity: 1; }
}

.contact-section { padding-bottom: 40px; }
.contact-card {
  background: var(--accent); color: var(--contact-ink); border-radius: 36px; padding: clamp(32px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; justify-content: space-between;
}
.contact-text { flex: 999 1 420px; min-width: 0; }
.contact-title { font-family: var(--head); font-weight: 800; font-size: clamp(44px, 7vw, 96px); line-height: 0.92; letter-spacing: -0.045em; }
.contact-title {
  background: linear-gradient(100deg, var(--contact-ink) 0%, var(--contact-ink) 44%, var(--shimmer) 50%, var(--contact-ink) 56%, var(--contact-ink) 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: titleShimmer 5s ease-in-out 1s infinite;
  padding: 0.06em 0 0.18em; margin: -0.06em 0 -0.18em;
}
@keyframes titleShimmer {
  0% { background-position: 100% 0; }
  45%, 100% { background-position: 0% 0; }
}
.contact-sub { margin-top: 20px; max-width: 480px; font-size: 17px; }
.contact-links { flex: 0 1 300px; display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: transform 0.2s ease;
}
.contact-link:hover { transform: translateX(4px); }
.contact-link-solid { background: var(--contact-solid-bg); color: var(--contact-solid-ink); }
.contact-link-solid:hover { color: var(--contact-solid-ink); }
.contact-link-outline { border: 1px solid var(--contact-ink); color: var(--contact-ink); }
.contact-link-outline:hover { color: var(--contact-ink); }

.site-footer { padding: 0 16px 40px; text-align: center; font-size: 13px; color: var(--muted); }
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--accent); border: 1px solid var(--line);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, box-shadow 0.25s ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top.is-shown:hover { transform: translateY(-3px); color: var(--accent); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.to-top:hover svg { animation: promoRise 1.2s ease-in-out infinite; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible, .reveal-off .reveal { opacity: 1; transform: none; }

.has-custom-cursor, .has-custom-cursor * { cursor: none !important; }
.cursor-sparkle {
  display: none; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 22px; height: 22px; margin: -11px 0 0 -11px; color: var(--accent);
  transition: opacity 0.2s ease;
}
.cursor-sparkle svg { transition: transform 0.25s cubic-bezier(.4, 1.6, .6, 1); filter: drop-shadow(0 0 1px var(--halo, var(--bg))) drop-shadow(0 0 1px var(--halo, var(--bg))); }
.has-custom-cursor .cursor-sparkle { display: block; }
.cursor-hidden .cursor-sparkle { opacity: 0; }
.cursor-on-accent .cursor-sparkle { color: var(--contact-ink); --halo: var(--accent); }
.cursor-hover .cursor-sparkle svg { transform: scale(1.5) rotate(45deg); }
.cursor-press .cursor-sparkle svg { transform: scale(0.75); }
.sparkle-trail {
  position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: sparkleFade 0.42s ease-out forwards;
}
@keyframes sparkleFade {
  0% { opacity: 0.9; transform: translate(var(--x), var(--y)) translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) translate(-50%, -50%) scale(0.2) rotate(90deg); }
}

.heart-rain { position: fixed; top: -40px; pointer-events: none; z-index: 9999; animation: heartFall linear forwards; }
.heart-rain svg { display: block; width: 100%; height: 100%; }
@keyframes heartFall {
  0% { transform: translateY(0) rotate(-10deg) scale(0); opacity: 1; }
  10% { transform: translateY(-20px) scale(1); }
  100% { transform: translateY(108vh) rotate(20deg) scale(0.6); opacity: 0; }
}

.error-page {
  min-height: calc(100vh - 200px); max-width: 700px; margin: 0 auto; padding: 80px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px;
}
.error-code { font-family: var(--head); font-size: clamp(88px, 16vw, 140px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--accent); }
.error-title { font-family: var(--head); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.error-desc { font-size: 17px; color: var(--body); max-width: 420px; }

@media (max-width: 1000px) {
  .bn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 150px; }
  .nav-bar { border-radius: 28px; padding: 10px 10px 10px 18px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 4px; }
  .nav-links a { padding: 10px 8px; }
  .section { padding-top: 72px; }
  .hero-photo { min-height: 360px; }
  .shape-ring-projects { display: none; }
}

@media (max-width: 640px) {
  .bn-grid { grid-template-columns: minmax(0, 1fr); }
  .bn-s2 { grid-column: auto; }
  .now-item { padding: 18px 20px; }
  .promoted { margin-left: -48px; }
  .cert-list li { flex-wrap: wrap; gap: 4px 16px; }
}

@media (max-width: 420px) {
  .site-header.is-stuck .nav-logo { display: none; }
  .nav-bar { padding-left: 14px; }
  .nav-logo { font-size: 16px; }
  .nav-links { font-size: 13px; }
  .nav-links a { padding: 10px 4px; }
  .nav-actions { width: 100%; justify-content: space-between; }
  .nav-actions .btn { padding: 0 14px; }
}

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