/* ================= Tokens ================= */
:root {
  --bg: #faf9fc;
  --surface: #ffffff;
  --ink: #34304a;
  --muted: #6b6582;
  --line: #ebe7f3;

  --lavender: #ece5fb;
  --lavender-deep: #6f5fae;
  --mint: #daf3e8;
  --mint-deep: #3a8f71;
  --peach: #ffe8dc;
  --peach-deep: #c7704b;
  --sky: #deedfa;
  --sky-deep: #4a7fae;
  --blush: #fbe1eb;
  --blush-deep: #b8557e;
  --butter: #fff4cf;
  --butter-deep: #a88317;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 6px 22px rgba(52, 48, 74, 0.07);
  --shadow-hover: 0 12px 30px rgba(52, 48, 74, 0.12);

  --gutter: clamp(16px, 4vw, 32px);
  --font-head: "Comfortaa", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw + 11px, 17px);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(236, 229, 251, .7), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(218, 243, 232, .5), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; margin: 0 0 .5rem; overflow-wrap: break-word; }
p { margin: 0 0 .8rem; }
a { color: inherit; }
button { font: inherit; }

/* ================= Nav ================= */
.nav {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0; width: min(1100px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px 10px 22px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.brand {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  text-decoration: none; color: var(--lavender-deep);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap;
  padding: 7px 12px; border-radius: 10px; transition: background .25s, color .25s;
}
.nav-links a:hover, .nav-links a.active { background: var(--lavender); color: var(--lavender-deep); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
}
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 40px; padding: 6px 10px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang-switch button:hover { color: var(--lavender-deep); }
.lang-switch button.active { background: var(--lavender-deep); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 10px; border-radius: 10px;
}
.nav-toggle:hover { background: var(--lavender); }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ================= Layout ================= */
main { width: min(1100px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.section { padding: clamp(56px, 8vw, 80px) 0 20px; }
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); margin: 0; }
.section-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700;
  background: var(--lavender); color: var(--lavender-deep);
}
.section-intro { max-width: 760px; color: var(--muted); font-size: 1.05em; margin-bottom: 32px; }

.card {
  --tint: var(--lavender); --tint-strong: #e1d5fa; --accent: var(--lavender-deep);
  position: relative; isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  min-width: 0;
}
/* Pastel wash that fades in on hover (gradients can't be transitioned directly) */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(160deg, var(--tint) 0%, var(--tint-strong) 100%);
  opacity: 0; transition: opacity .35s ease;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 18%, transparent);
  }
  .card:hover::before { opacity: 1; }
}
.card h3 { font-size: 1.2rem; transition: color .35s ease; }
@media (hover: hover) { .card:hover h3 { color: var(--accent); } }
.sub { color: var(--muted); font-size: .95em; }

/* Colour themes: resting tint (c-*) and hover colours (c-*, p-*, tint-*) */
.c-lav, .p-lav, .tint-lav       { --tint: var(--lavender); --tint-strong: #e1d5fa; --accent: var(--lavender-deep); }
.c-mint, .p-mint, .tint-mint    { --tint: var(--mint);     --tint-strong: #c6ecda; --accent: var(--mint-deep); }
.c-peach, .p-peach, .tint-peach { --tint: var(--peach);    --tint-strong: #ffd6c2; --accent: var(--peach-deep); }
.c-sky, .p-sky, .tint-sky       { --tint: var(--sky);      --tint-strong: #cae1f7; --accent: var(--sky-deep); }
.c-blush, .p-blush, .tint-blush { --tint: var(--blush);    --tint-strong: #f6cadb; --accent: var(--blush-deep); }
.c-butter, .p-butter            { --tint: var(--butter);   --tint-strong: #fbe6a2; --accent: var(--butter-deep); }

.c-lav   { background: linear-gradient(170deg, #fff 30%, var(--lavender) 160%); }
.c-mint  { background: linear-gradient(170deg, #fff 30%, var(--mint) 160%); }
.c-peach { background: linear-gradient(170deg, #fff 30%, var(--peach) 160%); }
.c-sky   { background: linear-gradient(170deg, #fff 30%, var(--sky) 160%); }
.c-blush { background: linear-gradient(170deg, #fff 30%, var(--blush) 160%); }

/* ================= Buttons & tags ================= */
.btn {
  display: inline-block; text-align: center; text-decoration: none; font-weight: 700;
  padding: 12px 24px; border-radius: 999px; transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #a996e6, #e79bbd);
  color: #fff; box-shadow: 0 8px 20px rgba(184, 85, 126, .2);
}
.btn-ghost { background: #fff; color: var(--lavender-deep); border: 1px solid var(--line); }

.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .88em; transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) { .tag:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(52, 48, 74, .08); } }
.t-lav   { background: var(--lavender); color: var(--lavender-deep); }
.t-mint  { background: var(--mint); color: var(--mint-deep); }
.t-peach { background: var(--peach); color: var(--peach-deep); }
.t-sky   { background: var(--sky); color: var(--sky-deep); }

/* ================= Hero ================= */
.hero {
  display: flex; align-items: center;
  min-height: min(calc(100vh - 90px), 720px); padding: 60px 0 40px;
}
.hero-text { max-width: 820px; }
.hero-name { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 22px); margin-bottom: 18px; }
.hero-name h1 { margin: 0; }
/* Portrait shown exactly as the original photo: natural proportions, no crop, no frame */
.avatar {
  width: clamp(100px, 12vw, 140px); height: auto; flex-shrink: 0;
  align-self: center;
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blush-deep); margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.3rem); margin-bottom: 18px; }
.grad {
  background: linear-gradient(120deg, var(--lavender-deep), var(--blush-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15em; font-weight: 600; }
.hero-text > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 26px; }
.hero-contact a { text-decoration: none; font-weight: 600; color: var(--muted); transition: color .2s; overflow-wrap: anywhere; }
.hero-contact a:hover { color: var(--lavender-deep); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }


/* ================= Media placeholders ================= */
.media-img { width: 100%; height: 100%; object-fit: cover; }
.ph-label {
  display: none; position: absolute; inset: 0;
  place-items: center; text-align: center; padding: 10px;
  font-weight: 700; color: var(--lavender-deep); font-size: 1rem;
}
.missing > .media-img, .missing > .media-video { display: none; }
.missing > .ph-label { display: grid; }
.missing { background: linear-gradient(135deg, var(--lavender), var(--sky)); }

/* ================= Timeline ================= */
.timeline { position: relative; display: grid; gap: 20px; padding-left: 38px; }
.timeline::before {
  content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px;
  background: linear-gradient(var(--lavender), var(--mint), var(--peach));
}
.tl-item { position: relative; }
.tl-dot {
  position: absolute; left: -35px; top: 32px; width: 22px; height: 22px; border-radius: 50%;
  border: 5px solid #fff; box-shadow: 0 0 0 1px var(--line);
  transition: transform .35s ease, box-shadow .35s ease;
}
@media (hover: hover) {
  .tl-item:hover .tl-dot { transform: scale(1.2); box-shadow: 0 0 0 5px var(--tint); }
}
.d-sky { background: var(--sky-deep); }
.d-lav { background: var(--lavender-deep); }
.d-mint { background: var(--mint-deep); }
.d-peach { background: var(--peach-deep); }
.tl-meta {
  display: inline-block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); background: var(--tint); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
  transition: background .35s ease;
}
@media (hover: hover) { .card:hover .tl-meta { background: #fff; } }
.highlight { font-weight: 600; color: var(--mint-deep); margin: 0; }

/* ================= Skills ================= */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.skill-icon, .vol-icon, .well-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); font-size: 1.6rem; margin-bottom: 16px;
}
.skill-icon, .vol-icon, .well-icon, .contact-icon { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
@media (hover: hover) {
  .card:hover :is(.skill-icon, .vol-icon, .well-icon, .contact-icon) {
    transform: translateY(-2px) rotate(-4deg);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 18%, transparent);
  }
}
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: #fff; border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px; font-size: .88em; font-weight: 600;
  transition: border-color .3s ease, color .3s ease, transform .2s ease;
}
@media (hover: hover) {
  .card:hover .chips li { border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
  .chips li:hover { color: var(--accent); transform: translateY(-1px); }
}

/* Languages card spans the full width under the two skill cards */
.lang-card { grid-column: 1 / -1; }
.lang-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.lang-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
}
.lang-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.lang-level {
  font-size: .85em; font-weight: 700; color: var(--mint-deep);
  background: var(--mint); padding: 4px 12px; border-radius: 999px;
}
.lang-note { flex-basis: 100%; font-size: .88em; color: var(--muted); }

/* ================= Erasmus projects ================= */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { display: flex; flex-direction: column; gap: 12px; border-top: 5px solid; }
.project p { color: var(--muted); margin: 0; }
.p-lav    { border-top-color: #cbbcf3; }
.p-mint   { border-top-color: #aee3cb; }
.p-peach  { border-top-color: #ffc9ae; }
.p-sky    { border-top-color: #b3d5f3; }
.p-blush  { border-top-color: #f5b8cf; }
.p-butter { border-top-color: #f7df8d; }
.project-title { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 12px; }
.project-title h3 { margin: 0; font-size: 1.1rem; flex: 1 1 140px; }
.country-flag {
  width: 42px; height: 28px; flex-shrink: 0; object-fit: cover;
  border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 3px 8px rgba(52, 48, 74, .12);
}
.inline-flag { display: inline-block; width: 1.35em; height: .9em; vertical-align: -0.08em; border-radius: 2px; }
.flag {
  align-self: flex-start;
  background: var(--bg); border: 1px solid var(--line); padding: 3px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--muted);
  transition: background .35s ease, color .35s ease;
}
.country-flag { transition: transform .35s ease; }
@media (hover: hover) {
  .project:hover .flag { background: #fff; color: var(--accent); }
  .project:hover .country-flag { transform: translateY(-2px) rotate(3deg); }
}

/* Collage */
.collage {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(130px, 17vw, 190px); gap: 12px;
  grid-auto-flow: dense;
  padding: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.c-item { position: relative; margin: 0; border-radius: 12px; overflow: hidden; }
.c-item.big  { grid-column: span 2; grid-row: span 2; }
.c-item.tall { grid-row: span 2; }
.c-item.wide { grid-column: span 2; }
/* Show the whole event poster instead of cropping it */
.c-item.poster { background: #1f3a8f; }
.c-item.poster .media-img { object-fit: contain; }

/* Activities */
.media-title { font-size: 1.3rem; margin-bottom: 18px; }
.activities { margin-top: 56px; }
.bubble-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bubble-list li {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .93em;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
@media (hover: hover) {
  .bubble-list li:hover { transform: translateY(-2px); filter: saturate(1.5) brightness(.97); box-shadow: 0 6px 14px rgba(52, 48, 74, .08); }
}
.bl-lav { background: var(--lavender); }
.bl-mint { background: var(--mint); }
.bl-peach { background: var(--peach); }
.bl-sky { background: var(--sky); }
.bl-blush { background: var(--blush); }
.bl-butter { background: var(--butter); }

/* ================= Volunteering ================= */
.vol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.dots { margin: 0; padding-left: 20px; }
.dots li { margin-bottom: 6px; }
.dots li::marker { color: var(--mint-deep); }

/* ================= Wellness ================= */
.well-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.well-card p { color: var(--muted); margin: 0; }

.well-media {
  margin: 40px auto 0; max-width: 820px;
  display: grid; grid-template-columns: 1fr minmax(150px, 200px) 1fr; gap: 16px; align-items: center;
}
.wm-photo, .wm-video { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.wm-photo { aspect-ratio: 4 / 5; }
.wm-video { aspect-ratio: 9 / 16; background: #000; }
.media-video { width: 100%; height: 100%; object-fit: cover; }

/* ================= Contact ================= */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.contact-card { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.contact-text { min-width: 0; }
.contact-icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); font-size: 1.5rem;
}
.contact-label { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-value { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.15rem); overflow-wrap: anywhere; }

/* ================= Footer ================= */
.footer { margin-top: 90px; padding: 44px var(--gutter) 36px; background: #fff; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.5rem); color: var(--lavender-deep); margin: 0 0 6px; }
.footer-tag { color: var(--muted); font-weight: 600; }
.footer-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); }
.footer-contact a { text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--lavender-deep); }
.footer-logos { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 22px 0; flex-wrap: wrap; }
.footer-logos img { height: 60px; width: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 3px; }
.copy { font-size: .85rem; color: var(--muted); margin: 0; }

/* ================= Scroll progress & back-to-top ================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 100%;
  background: linear-gradient(90deg, #b9a8ee, #f0a9c6, #ffc6a8);
  transform-origin: 0 50%; transform: scaleX(0);
}
.to-top {
  position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 40;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--lavender-deep); border: 1px solid var(--line);
  font-size: 1.2rem; font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, background .25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--lavender); }

/* ================= Themed cursors per section (mouse only) ================= */
@media (hover: hover) and (pointer: fine) {
  #education    { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='1' y='26' font-size='26'%3E%F0%9F%94%AC%3C/text%3E%3C/svg%3E") 6 6, auto; }
  #skills       { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='1' y='26' font-size='26'%3E%F0%9F%A7%AA%3C/text%3E%3C/svg%3E") 6 6, auto; }
  #erasmus      { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='1' y='26' font-size='26'%3E%E2%9C%88%EF%B8%8F%3C/text%3E%3C/svg%3E") 6 6, auto; }
  #volunteering { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='1' y='26' font-size='26'%3E%F0%9F%90%BE%3C/text%3E%3C/svg%3E") 6 6, auto; }
  #wellness     { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='1' y='26' font-size='26'%3E%F0%9F%A7%98%3C/text%3E%3C/svg%3E") 6 6, auto; }
  #contact      { cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='1' y='26' font-size='26'%3E%E2%9C%89%EF%B8%8F%3C/text%3E%3C/svg%3E") 6 6, auto; }
  /* Keep the normal hand cursor on clickable things */
  .section a, .section button, .section video { cursor: pointer; }
}

/* ================= Reveal animation ================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ================= Responsive ================= */

/* Tablets & narrow windows: collapse the menu */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s;
  }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

@media (max-width: 960px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
}

/* Phones */
@media (max-width: 760px) {
  .hero { min-height: auto; padding: 36px 0 20px; text-align: center; }
  .hero-name { flex-direction: column; gap: 14px; }
  .avatar { width: 124px; }
  .lang-rows { grid-template-columns: 1fr; }
  .hero-tags, .hero-contact, .hero-cta { justify-content: center; }
  .skills-grid, .vol-grid, .well-grid, .projects, .contact-grid { grid-template-columns: 1fr; gap: 16px; }

  .collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; padding: 8px; gap: 8px; margin-top: 32px; }
  .c-item.big { grid-row: span 1; }

  .well-media { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wm-video { grid-column: 1 / -1; order: 3; width: min(200px, 55vw); justify-self: center; }

  .activities { margin-top: 40px; }
  .bubble-list { gap: 8px; }
  .bubble-list li { padding: 8px 14px; }
}

/* Small phones */
@media (max-width: 480px) {
  html { scroll-padding-top: 76px; }
  .nav { top: 8px; margin-top: 8px; padding: 8px 8px 8px 14px; }
  .brand { font-size: .95rem; }
  .lang-switch button { min-width: 36px; padding: 5px 8px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section-head { gap: 10px; }
  .section-num { width: 38px; height: 38px; border-radius: 10px; font-size: .9rem; }
  .timeline { padding-left: 28px; }
  .timeline::before { left: 8px; }
  .tl-dot { left: -29px; width: 20px; height: 20px; border-width: 4px; }
  .collage { grid-auto-rows: 120px; }
  .country-flag { width: 36px; height: 24px; }
  .footer-logos img { height: 50px; }
}
