/* ===== Fonts (self-hosted, SIL Open Font License – see fonts/) ===== */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }

/* ===== Design tokens ===== */
:root {
  /* Pastel yellow */
  --yellow-50: #fffbea;
  --yellow-100: #fff3c4;
  --yellow-200: #ffeba6;
  --yellow-300: #ffe38a;
  --yellow-400: #ffd95a;
  --yellow-500: #f2c53a;
  /* Pastel blue */
  --blue-50: #f2f7ff;
  --blue-100: #dcebff;
  --blue-200: #c3dbfb;
  --blue-300: #a9cbf7;
  --blue-400: #86b3ef;
  --blue-600: #3f6fb5;
  /* Pastel pink */
  --pink-50: #fff4f8;
  --pink-100: #ffe1ec;
  --pink-200: #ffc9dc;
  --pink-300: #ffb0cb;
  --pink-400: #f792b6;
  --pink-600: #b83d70;
  /* Pastel lilac (languages) */
  --lilac-300: #cfc2f5;
  /* Neutrals (dark navy text keeps contrast high on pastels – WCAG AA+) */
  --ink: #1e2b4a;
  --ink-soft: #4a5774;
  --line: #ebe6f0;
  --bg: #fffdf8;
  --surface: #ffffff;

  --grad-hero: linear-gradient(120deg, var(--yellow-300), var(--pink-300) 50%, var(--blue-300));
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(30, 43, 74, 0.08);
  --shadow-hover: 0 18px 40px rgba(30, 43, 74, 0.14);
  --maxw: 1120px;
  --space: clamp(64px, 9vw, 112px);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }

/* ===== Languages: show only the texts of the active language ===== */
html[data-ui="en"] [data-l]:not([data-l="en"]),
html[data-ui="es"] [data-l]:not([data-l="es"]),
html[data-ui="de"] [data-l]:not([data-l="de"]) { display: none !important; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); }
a:hover { color: var(--pink-600); }

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 8px;
}

.container { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 28px;
  font: inherit; font-weight: 800; text-decoration: none;
  border-radius: 999px; border: 2px solid var(--ink); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--yellow-400); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { background: var(--yellow-300); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-pink { background: var(--pink-200); }
.btn-pink:hover { background: var(--pink-100); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--ink); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; border: 2px solid var(--ink);
  background: var(--grad-hero); color: var(--ink);
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.1rem;
  text-decoration: none; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s ease;
}
.logo:hover { color: var(--ink); transform: rotate(-6deg); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0 auto 0 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 16px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 700; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--pink-100); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--blue-100); color: var(--ink); }

/* Language switch */
.lang-switch {
  display: flex; padding: 3px; gap: 2px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--surface);
}
.lang-switch button {
  min-width: 38px; min-height: 34px; padding: 0 8px;
  font: inherit; font-size: .85rem; font-weight: 800; color: var(--ink-soft);
  background: transparent; border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang-switch button:hover { background: var(--pink-50); color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--blue-200); color: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 128px);
  background:
    radial-gradient(circle at 88% 12%, var(--blue-100) 0, transparent 38%),
    radial-gradient(circle at 70% 85%, var(--pink-100) 0, transparent 40%),
    radial-gradient(circle at 5% 70%, var(--yellow-100) 0, transparent 42%);
}
/* dotted pattern */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(30, 43, 74, .09) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 16px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 700; font-size: .9rem; box-shadow: 3px 3px 0 var(--pink-300);
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #3fb07a; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3fb07a;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { to { transform: scale(2.6); opacity: 0; } }

h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); letter-spacing: -1px; }
.highlight { position: relative; white-space: nowrap; z-index: 0; }
.highlight::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .06em; height: .38em; z-index: -1;
  background: var(--grad-hero); border-radius: 8px; transform: rotate(-1.2deg);
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }

/* Big Documents button */
.docs-cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px;
  max-width: 460px; padding: 22px 26px;
  background: var(--blue-100); color: var(--ink); text-decoration: none;
  border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.docs-cta::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  border-radius: 50%; background: var(--pink-200); opacity: .7;
  transition: transform .3s ease;
}
.docs-cta:hover { color: var(--ink); transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.docs-cta:hover::before { transform: scale(1.25); }
.docs-cta > * { position: relative; }
.docs-cta-icon {
  display: grid; place-items: center; flex: none;
  width: 62px; height: 62px; border-radius: 18px;
  background: var(--yellow-300); color: var(--ink); border: 2px solid var(--ink);
}
.docs-cta-text { display: flex; flex-direction: column; flex: 1; }
.docs-cta-text strong { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; }
.docs-cta-text small { color: var(--ink-soft); font-size: .95rem; }
.docs-cta-arrow { font-size: 1.7rem; font-weight: 800; transition: transform .15s ease; }
.docs-cta:hover .docs-cta-arrow { transform: translateX(5px); }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 36px 0 0; padding: 0; list-style: none; }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: "Fraunces", Georgia, serif; font-size: 2rem; line-height: 1; }
.stats span { color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.stats li + li { padding-left: 28px; border-left: 2px dashed var(--pink-300); }

/* Hero visual */
.hero-card { position: relative; display: grid; place-items: center; min-height: 500px; }
.avatar-wrap { position: relative; width: min(420px, 80vw); aspect-ratio: 1; }
.avatar-ring {
  position: absolute; inset: -18px; border-radius: 50%;
  border: 2px dashed var(--pink-400);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar {
  position: relative; z-index: 2; width: 100%; height: 100%;
  display: grid; place-items: center;
  border-radius: 46% 54% 52% 48% / 50% 45% 55% 50%;
  background: var(--grad-hero);
  border: 3px solid var(--ink);
  font-family: "Fraunces", Georgia, serif; font-size: 5.5rem; color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink); overflow: hidden;
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph {
  50% { border-radius: 55% 45% 44% 56% / 45% 56% 44% 55%; }
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sticker {
  position: absolute; z-index: 3;
  padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--surface);
  font-weight: 800; font-size: .95rem; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  animation: float 6s ease-in-out infinite;
}
.sticker-1 { top: 4%; left: -6%; background: var(--yellow-200); transform: rotate(-6deg); }
.sticker-2 { top: 74%; right: -20%; background: var(--pink-200); animation-delay: -2s; }
.sticker-3 { bottom: 2%; left: 4%; background: var(--blue-200); animation-delay: -4s; }
@keyframes float { 50% { translate: 0 -10px; } }
.spark { position: absolute; z-index: 1; color: var(--pink-400); font-size: 1.8rem; }
.spark-1 { top: -6%; right: 8%; color: var(--yellow-500); }
.spark-2 { bottom: 12%; right: -4%; color: var(--blue-400); font-size: 1.3rem; }

/* Marquee strip */
.strip {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--ink); color: var(--yellow-200);
  border-block: 2px solid var(--ink);
  transform: rotate(-1.2deg); margin: -28px -10px 0;
}
.strip-track {
  display: flex; gap: 40px; width: max-content; padding: 14px 0;
  font-family: "Fraunces", Georgia, serif; font-size: 1.15rem;
  animation: marquee 30s linear infinite;
}
.strip-track span:nth-child(3n+2) { color: var(--pink-200); }
.strip-track span:nth-child(3n) { color: var(--blue-200); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { position: relative; padding: var(--space) 0; }
.section-tinted { background: var(--blue-50); }
.section-pink { background: var(--pink-50); }
.section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.section-icon {
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 16px;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.5rem;
}
.icon-yellow { background: var(--yellow-300); }
.icon-blue { background: var(--blue-200); }
.icon-pink { background: var(--pink-200); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.section-kicker { display: block; font-family: "Nunito", sans-serif; font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-600); margin-bottom: 4px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--ink-soft); max-width: 62ch; }
.about-text p:first-child {
  font-family: "Fraunces", Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.4; color: var(--ink);
  padding-left: 20px; border-left: 5px solid var(--pink-300);
}
.facts {
  position: relative; list-style: none; margin: 0; padding: 12px 26px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--pink-300);
}
.facts::before {
  content: "Quick facts"; position: absolute; top: -16px; left: 20px;
  padding: 2px 14px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--yellow-300); font-weight: 800; font-size: .85rem;
}
html[data-ui="es"] .facts::before { content: "Datos rápidos"; }
html[data-ui="de"] .facts::before { content: "Auf einen Blick"; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--pink-300); }
.facts li:first-child { padding-top: 20px; }
.facts li:last-child { border-bottom: 0; }
.fact-label { font-weight: 800; }
.facts li span:last-child { color: var(--ink-soft); text-align: right; }

/* Experience timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 4px;
  background: linear-gradient(var(--yellow-400), var(--pink-300), var(--blue-300));
  border-radius: 4px;
}
.job {
  --accent: var(--yellow-300);
  position: relative; margin-bottom: 26px; padding: 26px 30px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.job:nth-child(3n+2) { --accent: var(--pink-300); }
.job:nth-child(3n) { --accent: var(--blue-300); }
.job:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--accent); }
.job::before {
  content: ""; position: absolute; left: -36px; top: 30px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--ink);
}
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.job-head h3 { font-size: 1.35rem; margin: 0; }
.job-date {
  padding: 4px 14px; border-radius: 999px;
  background: var(--accent); border: 2px solid var(--ink);
  font-weight: 800; font-size: .85rem;
}
.job-company { color: var(--blue-600); font-weight: 800; margin: 6px 0 12px; }
.job ul { margin: 0; padding-left: 0; list-style: none; color: var(--ink-soft); }
.job ul li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.job ul li::before { content: "✦"; position: absolute; left: 0; color: var(--pink-400); }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-group {
  --accent: var(--yellow-300);
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform .2s ease;
}
.skill-group:nth-child(3n+2) { --accent: var(--pink-300); }
.skill-group:nth-child(3n) { --accent: var(--blue-300); }
.skill-group:hover { transform: translateY(-4px) rotate(-.6deg); }
.skill-emoji {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px;
  border-radius: 14px; background: var(--accent); border: 2px solid var(--ink); font-size: 1.4rem;
}
.skill-group h3 { font-size: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg); border: 1.5px solid var(--ink);
  font-weight: 700; font-size: .9rem;
}

.job-link { display: inline-block; margin-top: 12px; font-weight: 800; text-decoration: none; }
.job-link:hover { text-decoration: underline; }
.skill-group .job-link { margin-top: 14px; }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.edu-card {
  --accent: var(--blue-300);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
}
.edu-card:nth-child(3n+2) { --accent: var(--yellow-300); }
.edu-card:nth-child(3n) { --accent: var(--pink-300); }
.edu-card h3 { font-size: 1.3rem; margin: 14px 0 0; }
.edu-card .job-company { margin: 6px 0 12px; }
.edu-card ul { margin: 0; padding: 0; list-style: none; color: var(--ink-soft); flex: 1; }
.edu-card ul li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.edu-card ul li::before { content: "✦"; position: absolute; left: 0; color: var(--pink-400); }

.hero-actions .btn-ghost, .cta-actions .btn-ghost { box-shadow: 4px 4px 0 var(--ink); }
.hero-actions .btn-ghost:hover, .cta-actions .btn-ghost:hover { box-shadow: 6px 6px 0 var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Contact band */
.cta-band {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(32px, 6vw, 56px);
  border-radius: calc(var(--radius) + 10px);
  border: 2px solid var(--ink);
  background: linear-gradient(120deg, var(--yellow-200), var(--pink-200) 50%, var(--blue-200));
  box-shadow: 10px 10px 0 var(--ink);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; border: 2px dashed rgba(30, 43, 74, .25);
}
.cta-band::before { width: 220px; height: 220px; right: 18%; top: -110px; }
.cta-band::after { width: 140px; height: 140px; left: -50px; bottom: -60px; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta-band p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }

/* Footer */
.site-footer { position: relative; margin-top: 40px; padding: 56px 0 32px; background: var(--ink); color: var(--blue-100); font-size: .95rem; }
.footer-wave { position: absolute; left: 0; right: 0; top: -39px; width: 100%; height: 40px; color: var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--yellow-300); font-weight: 700; }
.footer-inner a:hover { color: var(--pink-200); }

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Legal pages (Impressum, Datenschutz) */
.legal { max-width: 760px; padding-bottom: var(--space); }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p { color: var(--ink-soft); }
.legal-address { color: var(--ink) !important; font-weight: 700; line-height: 1.7; }
.legal-note {
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: var(--yellow-50); border: 2px dashed var(--yellow-400);
  color: var(--ink) !important; font-weight: 600;
}
html[data-ui="de"] .legal-note { display: none; }
.legal-date { margin-top: 36px; font-size: .9rem; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Documents page ===== */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 80px) 0 56px;
  background:
    radial-gradient(circle at 92% 0, var(--pink-100) 0, transparent 40%),
    radial-gradient(circle at 70% 100%, var(--blue-100) 0, transparent 40%),
    radial-gradient(circle at 0 30%, var(--yellow-100) 0, transparent 35%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(30, 43, 74, .09) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); }
.back-link { display: inline-flex; gap: 6px; margin-bottom: 18px; font-weight: 800; text-decoration: none; }
.page-hero p { color: var(--ink-soft); max-width: 60ch; font-size: 1.15rem; }
.page-hero .spark { font-size: 2.4rem; }
.page-hero .spark-1 { top: 10%; right: 12%; }
.page-hero .spark-2 { top: 55%; right: 26%; color: var(--pink-400); }

.doc-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.filter-btn {
  min-height: 44px; padding: 6px 18px; border-radius: 999px;
  font: inherit; font-weight: 800; color: var(--ink);
  background: var(--surface); border: 2px solid var(--ink); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.filter-btn:hover { background: var(--pink-50); transform: translateY(-2px); }
.filter-btn[aria-pressed="true"] { background: var(--pink-200); box-shadow: 3px 3px 0 var(--ink); }

.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; list-style: none; margin: 0; padding: 0; }
.doc-card {
  --accent: var(--yellow-300);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; padding: 0 26px 26px;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.doc-section[data-category="master"] .doc-card { --accent: var(--pink-300); }
.doc-section[data-category="master"] .doc-top { background: var(--grad-hero); }
.doc-section[data-category="bachelor"] .doc-card { --accent: var(--blue-300); }
.doc-section[data-category="certificate"] .doc-card { --accent: var(--yellow-300); }
.doc-section[data-category="language"] .doc-card { --accent: var(--lilac-300); }
.doc-section[data-category="cv"] .doc-card { --accent: var(--yellow-400); }
.doc-section[data-category="reference"] .doc-card { --accent: var(--pink-200); }
.doc-featured { grid-column: span 2; }
.doc-featured h3 { font-size: 1.55rem; }
@media (max-width: 700px) { .doc-featured { grid-column: auto; } }

.doc-page { padding-bottom: var(--space); }
.doc-section { margin-top: 56px; }
.doc-section[hidden] { display: none; }
.doc-section-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.doc-section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0; }
.doc-section-head p { margin: 2px 0 0; color: var(--ink-soft); font-weight: 600; }
.icon-lilac { background: var(--lilac-300); }
.doc-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--accent); }
.doc-card[hidden] { display: none; }
.doc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -26px 8px; padding: 18px 26px;
  background: var(--accent); border-bottom: 2px solid var(--ink);
}
.doc-type { font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.doc-file {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface); border: 2px solid var(--ink);
}
.doc-card h3 { font-size: 1.3rem; margin: 0; }
.doc-card p { margin: 0; color: var(--ink-soft); font-size: .975rem; flex: 1; }
.doc-meta { font-size: .875rem; font-weight: 700; color: var(--ink-soft); }
.doc-actions { display: flex; gap: 12px; margin-top: 8px; }
.doc-actions .btn { flex: 1; min-height: 46px; padding: 8px 14px; font-size: .95rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--blue-50); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

/* ===== Responsive ===== */
.nav-links a { white-space: nowrap; }
.logo { flex: none; }
@media (max-width: 1024px) {
  .nav-links { display: none; } /* tablets & phones: logo + language + Contact */
  .logo { margin-right: auto; }
}
@media (max-width: 900px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; min-height: 380px; }
  .avatar-wrap { width: 310px; }
  .avatar { font-size: 4rem; }
  .sticker-1 { left: -38%; }
  .sticker-2 { top: auto; bottom: 14%; right: -62%; }
  .sticker-3 { left: -28%; }
  .skills-grid, .edu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav { gap: 8px; }
  .lang-switch button { min-width: 32px; padding: 0 5px; }
  .hero-card { min-height: 260px; }
  h1 { font-size: 2.05rem; letter-spacing: -.5px; }
  .avatar-wrap { width: 220px; }
  .avatar { font-size: 2.6rem; box-shadow: 6px 6px 0 var(--ink); }
  .avatar-ring { inset: -10px; }
  .sticker { font-size: .8rem; padding: 5px 12px; }
  .sticker-1 { left: -24%; top: -2%; }
  .sticker-2 { right: -24%; bottom: 2%; }
  .sticker-3 { left: -22%; bottom: 8%; }
  .spark { display: none; }
  .docs-cta { max-width: none; }
  .stats { gap: 18px; }
  .stats li + li { padding-left: 18px; }
  .stats strong { font-size: 1.6rem; }
  .job { padding: 22px; }
  .timeline { padding-left: 30px; }
  .job::before { left: -30px; }
}

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