/* =========================================================
   Portfolio Paul Duboc — reproduction fidèle du template OPPA
   ========================================================= */

:root {
  --lavender:  #e7e4f7;
  --dark:      #0e1525;
  --dark-2:    #16203a;
  --light:     #f1f0f8;
  --soft-bg:   #edecf6;

  --purple:    #7c4dff;
  --purple-d:  #6a3cff;
  --gold:      #f0a93b;
  --green:     #57bf58;
  --red:       #f4614e;
  --ink:       #0e1525;
  --muted:     #6b7280;
  --muted-d:   #98a1b3;
  --line:      #e6e4f1;

  --radius:    22px;
  --radius-lg: 30px;
  --shadow:    0 24px 50px -24px rgba(30, 20, 70, .25);
  --container: 1140px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --font:      "Poppins", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body {
  font-family: var(--font);
  background: var(--lavender);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: clamp(8px, 1.6vw, 22px);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.shell {
  max-width: 1360px; margin-inline: auto;
  background: var(--light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -45px rgba(40, 20, 90, .4);
}
.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .82rem 1.7rem; border-radius: 100px;
  font-weight: 600; font-size: .93rem; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn--purple { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 14px 30px -12px rgba(124,77,255,.7); }
.btn--purple:hover { background: var(--purple-d); border-color: var(--purple-d); }
.btn--outline { background: transparent; color: #c3b2ff; border-color: rgba(124,77,255,.6); }
.btn--outline:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn--ghostp { background: transparent; color: var(--purple); border-color: rgba(124,77,255,.5); padding: .5rem 1.2rem; font-size: .82rem; }
.btn--ghostp:hover { background: var(--purple); color: #fff; }
.btn--lg { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

/* ================= BLOC SOMBRE ================= */
.dark { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.dark--hero {
  background:
    radial-gradient(55rem 40rem at 88% 15%, rgba(124,77,255,.16), transparent 60%),
    var(--dark);
}

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: min(100% - 4rem, 1240px); margin-inline: auto; padding: 1.5rem 0;
}
.brand { display: flex; align-items: center; gap: .55rem; }
.brand__mark svg { border-radius: 12px; display: block; }
.brand__name { font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; color: #fff; }
.brand__name span { color: var(--purple); }
.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .93rem; transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__cta { padding: .55rem 1.35rem; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; z-index: 101; }
.burger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* Hero */
.hero {
  width: min(100% - 4rem, 1240px); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem;
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.hero__eyebrow { color: var(--gold); font-size: clamp(1rem, 2.2vw, 1.4rem); font-weight: 500; }
.hero__name { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; line-height: 1.04; letter-spacing: -.01em; }
.hero__role { font-size: clamp(1.05rem, 2.4vw, 1.55rem); font-weight: 500; margin: .35rem 0 1.2rem; color: #f2f2f7; }
.hero__lead { color: var(--muted-d); max-width: 440px; margin-bottom: 1.8rem; font-size: .98rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero__photo-link { position: relative; z-index: 2; display: block; width: min(100%, 360px); cursor: pointer; }
.hero__photo { width: 100%; }
img.hero__photo {
  aspect-ratio: 4/5; object-fit: cover; border-radius: 28px;
  box-shadow: 0 34px 70px -24px rgba(0,0,0,.6);
  border: 5px solid rgba(255,255,255,.1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.hero__photo-link:hover .hero__photo {
  transform: translateY(-12px) scale(1.035);
  border-color: rgba(154,107,255,.55);
  box-shadow: 0 44px 90px -26px rgba(106,60,255,.65), 0 0 0 6px rgba(124,77,255,.12);
}

/* Sphères */
.sphere { position: absolute; border-radius: 50%; z-index: 1; }
.sphere--coral { width: 290px; height: 290px; top: 2%; left: 8%; background: radial-gradient(circle at 32% 28%, #ff9a8b, #ff5f7e 55%, #e64a72 100%); box-shadow: 0 30px 60px -20px rgba(255,95,126,.5); }
.sphere--green { width: 70px; height: 70px; top: 22%; right: 4%; background: radial-gradient(circle at 32% 28%, #a7e77f, #59c04a 60%, #3ea336 100%); box-shadow: 0 16px 30px -10px rgba(89,192,74,.5); }
.sphere--yellow { width: 110px; height: 110px; bottom: 14%; right: 2%; background: radial-gradient(circle at 32% 28%, #ffe08a, #f5b53f 55%, #ef8f2b 100%); box-shadow: 0 20px 40px -14px rgba(245,181,63,.55); }

/* Placeholders */
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem; text-align: center;
  background: linear-gradient(135deg, #eceaf8, #e0ddf3);
  color: var(--muted); font-weight: 600;
  border: 2px dashed #c6c1e4; border-radius: var(--radius);
}
.placeholder small { font-weight: 500; font-size: .7rem; opacity: .7; }
.placeholder--portrait { aspect-ratio: 4/5; background: linear-gradient(135deg, #232c46, #2c2358); color: #cdd3f5; border-color: #46507e; }
.placeholder--about { aspect-ratio: 4/5; box-shadow: var(--shadow); }
.placeholder--16x9 { aspect-ratio: 16/9; border-radius: 0; }
.placeholder--43 { aspect-ratio: 4/3; border-radius: 0; }
.placeholder--cta { aspect-ratio: 1/1; border-radius: var(--radius); background: linear-gradient(135deg, #8a63ff, #6a3cff); color: #eee; border-color: rgba(255,255,255,.4); }

/* ================= CITATION ================= */
.quote { background: var(--light); padding: clamp(3rem, 6vw, 5.5rem) 1.5rem clamp(2rem, 4vw, 3rem); }
.quote p { max-width: 820px; margin-inline: auto; text-align: center; font-size: clamp(1.4rem, 3.4vw, 2.4rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.quote__mark { color: var(--purple); font-weight: 800; }

/* ================= STATS ================= */
.stats { background: var(--light); padding: 1.5rem 0 clamp(3rem, 6vw, 5rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__num { display: block; font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; color: var(--purple); background: linear-gradient(90deg, var(--purple), #b98bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; transition: transform .35s var(--ease); }
.stat__num.counting { transform: scale(1.08); }
.stats__grid .stat:nth-child(1) { transition-delay: 0s; }
.stats__grid .stat:nth-child(2) { transition-delay: .12s; }
.stats__grid .stat:nth-child(3) { transition-delay: .24s; }
.stats__grid .stat:nth-child(4) { transition-delay: .36s; }
.stat__label { display: block; font-weight: 600; margin: .1rem 0 .4rem; }
.stat p { color: var(--muted); font-size: .85rem; max-width: 220px; margin-inline: auto; }
.stat__src { display: inline-block; margin-top: .7rem; padding: .28rem .8rem; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--purple); background: rgba(124,77,255,.09); border-radius: 100px; }
.stats .head { max-width: 620px; margin-inline: auto; margin-bottom: 2.4rem; }

/* ================= SECTIONS ================= */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--light); }
.section--soft { background: var(--soft-bg); }
.tag { color: var(--purple); font-weight: 600; text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; margin-bottom: .5rem; }
.tag--gold { color: var(--gold); }
.h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.14; letter-spacing: -.01em; }
.h2--light { color: #fff; }
.sub { color: var(--muted); margin-top: .7rem; font-size: 1.02rem; }
.sub--light { color: var(--muted-d); }
.head { max-width: 620px; margin-bottom: 3rem; }
.head--center { max-width: 660px; margin-inline: auto; text-align: center; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.services__intro .h2 { margin: .3rem 0 1rem; }
.services__intro .sub { margin-bottom: 1.6rem; }
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc--raised { transform: translateY(-28px); }
.svc:hover { transform: translateY(-6px); box-shadow: 0 32px 55px -25px rgba(40,20,90,.4); }
.svc--raised:hover { transform: translateY(-34px); }
.svc__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 1.5rem; margin-bottom: 1rem; }
.svc__ico--green { background: rgba(87,191,88,.15); }
.svc__ico--red { background: rgba(244,97,78,.15); }
.svc h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.svc p { color: var(--muted); font-size: .9rem; }

/* ---------- Compétences (sombre) ---------- */
.dark--skills { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.dark--skills .sphere--dark-red { width: 240px; height: 240px; top: 8%; right: -60px; background: radial-gradient(circle at 35% 30%, #6a3550, #3a1f33 70%); opacity: .8; }
.dark--skills .sphere--dark-green { width: 46px; height: 46px; top: 40%; right: 10%; background: radial-gradient(circle at 35% 30%, #5a7a4a, #35472d); }
.dark--skills .sphere--dark-yellow { width: 90px; height: 90px; bottom: 12%; right: 2%; background: radial-gradient(circle at 35% 30%, #7a6636, #4a3d1f 70%); }
.skills { max-width: 1000px; margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.skill-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.4rem; font-weight: 500; font-size: .95rem; color: #e8e9f2; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 100px; backdrop-filter: blur(6px); transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
.skill-pill:hover { transform: translateY(-3px); background: rgba(124,77,255,.18); border-color: rgba(124,77,255,.55); box-shadow: 0 8px 24px rgba(124,77,255,.28); }

/* ---------- Portfolio ---------- */
.portfolio { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.portfolio__intro { position: sticky; top: 40px; }
.portfolio__intro .h2 { margin: .3rem 0 1rem; }
.portfolio__intro .sub { margin-bottom: 1.6rem; }
.portfolio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.pcard { grid-column: span 1; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.pcard--wide { grid-column: 1 / -1; }
.pcard:hover { transform: translateY(-6px); }
.pcard__media img, .pcard__media video { width: 100%; object-fit: cover; }
.pcard--wide .pcard__media img, .pcard--wide .pcard__media video { aspect-ratio: 16/9; }
.pcard__bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.2rem; }
.pcard__bar h3 { font-size: 1rem; font-weight: 700; }

/* ---------- CTA bannière ---------- */
.ctaWrap { padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(3rem, 6vw, 5rem); background: var(--light); }
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(40rem 30rem at 30% 20%, rgba(124,77,255,.25), transparent 60%),
    var(--dark);
  border-radius: var(--radius-lg); color: #fff;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
}
.cta__text { position: relative; z-index: 2; }
.cta__text h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.08; margin-bottom: 1rem; }
.cta__text p { color: var(--muted-d); max-width: 420px; margin-bottom: 1.6rem; }
.cta__visual { position: relative; z-index: 2; }
.cta__photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); border: 4px solid rgba(255,255,255,.12); }
.cta .sphere--cta1 { width: 260px; height: 260px; top: 20%; left: 28%; background: radial-gradient(circle at 35% 30%, #7a3550, #3a1f33 72%); z-index: 1; }
.cta .sphere--cta2 { width: 70px; height: 70px; bottom: 14%; left: 42%; background: radial-gradient(circle at 35% 30%, #a7e77f, #3ea336); z-index: 1; }

/* ---------- Témoignages ---------- */
.testi__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.8rem; box-shadow: var(--shadow); }
.testi__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.testi__avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; font-size: 1.1rem; }
.testi__head strong { display: block; font-size: 1rem; }
.stars { color: var(--gold); font-size: .95rem; letter-spacing: .1em; }
.stars span { color: #d5d5e0; }
.testi p { color: var(--muted); font-size: .95rem; }
.dots { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: #cfcce4; }
.dots span.on { background: var(--purple); width: 26px; border-radius: 100px; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about--solo { display: block; max-width: none; }
.about--solo .about__text p { max-width: 760px; }
.about__media { max-width: 400px; }
.about__photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__text p { color: var(--muted); margin-bottom: 1rem; }
.about__text .h2 { margin: .3rem 0 1rem; }
.ticks { display: grid; gap: .6rem; margin: 1.2rem 0 1.8rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--muted); }
.ticks li::before { content: "✔"; position: absolute; left: 0; color: var(--purple); font-weight: 700; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin: 2.5rem 0; }
.contact__item { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.8rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.contact__item:hover { transform: translateY(-6px); border-color: var(--purple); }
.contact__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 700; font-size: 1.15rem; }
.contact__item span:not(.contact__ico) { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact__item strong { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.72); padding: clamp(2.5rem, 5vw, 4rem) 0 2.5rem; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.brand--center { justify-content: center; }
.footer .brand__name { color: #fff; }
.footer__desc { font-size: .92rem; max-width: 460px; }
.socials { display: flex; gap: .8rem; }
.socials__link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; transition: .25s; }
.socials__link:hover { background: var(--purple); transform: translateY(-3px); }
.socials__link--gold { background: var(--gold); color: #1a1a1a; }
.socials__link--gold:hover { background: #ffbe55; }
.footer__copy { font-size: .82rem; color: var(--muted-d); }

/* ---------- Timeline expériences ---------- */
.timeline { position: relative; max-width: 820px; margin-inline: auto; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--purple), #b98bff); }
.timeline__item { position: relative; padding: 0 0 1.8rem 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -1px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); box-shadow: 0 0 0 5px rgba(124,77,255,.14); }
.timeline__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.timeline__card:hover { transform: translateX(6px); }
.timeline__head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: .9rem; }
.exp-logo { flex: none; height: 62px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 16px -10px rgba(30,20,70,.35); }
.exp-logo img { height: 40px; width: auto; max-width: 130px; object-fit: contain; display: block; }
a.exp-logo { transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
a.exp-logo:hover { transform: translateY(-3px); border-color: rgba(124,77,255,.45); box-shadow: 0 10px 22px -10px rgba(124,77,255,.5); }
.timeline__head h3 { margin: .35rem 0 .15rem; }
.timeline__badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .7rem; border-radius: 100px; margin-right: .6rem; background: rgba(34,197,94,.13); color: #16a34a; }
.timeline__date { font-size: .84rem; font-weight: 600; color: var(--purple); }
.timeline__card h3 { font-size: 1.25rem; font-weight: 700; margin: .5rem 0 .2rem; }
.timeline__company { font-weight: 600; color: var(--muted); margin-bottom: .8rem; font-size: .95rem; }
.bullets { display: grid; gap: .55rem; }
.bullets li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .95rem; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.bullets strong { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tags li { font-size: .76rem; font-weight: 500; padding: .3rem .8rem; border-radius: 100px; background: var(--soft-bg); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Formation ---------- */
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.edu__card { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow); border-top: 4px solid var(--purple); text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.edu__card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(124,77,255,.16); }
.edu__logo { width: 72px; height: 72px; padding: 10px; margin-bottom: 1rem; }
.edu__logo img { height: auto; max-height: 100%; max-width: 100%; }
.edu__year { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--purple); }
.edu__card h3 { font-size: 1.08rem; font-weight: 700; margin: .5rem 0 .4rem; line-height: 1.3; }
.edu__card p { color: var(--muted); font-size: .92rem; }

/* ---------- Langues ---------- */
.langs { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.4rem 0 1rem; }
.langs__title { width: 100%; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); font-weight: 600; }
.lang { padding: .4rem .9rem; border-radius: 100px; background: #fff; border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.lang b { color: var(--ink); font-weight: 600; }

/* ---------- Passions ---------- */
.passions__title { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); font-weight: 600; margin: 1.6rem 0 .9rem; }
.passions { display: flex; flex-wrap: wrap; gap: 1rem; }
.passion { display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 108px; padding: 1.1rem 1.2rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(17,17,26,.05); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.passion:hover { transform: translateY(-5px); border-color: rgba(124,77,255,.4); box-shadow: 0 14px 30px rgba(124,77,255,.18); }
.passion__ico { font-size: 2rem; line-height: 1; }
.passion__label { font-size: .95rem; font-weight: 600; color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.svc--raised.reveal { transform: translateY(26px); }
.svc--raised.reveal.in { transform: translateY(-28px); }

/* ---------- Experience: "View achievements" ---------- */
.timeline__more { margin-top: 1.1rem; display: inline-flex; align-items: center; padding: .55rem 1.15rem; font: inherit; font-size: .85rem; font-weight: 600; color: var(--purple); background: rgba(124,77,255,.08); border: 1px solid rgba(124,77,255,.25); border-radius: 100px; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease); }
.timeline__more:hover { background: rgba(124,77,255,.16); transform: translateX(3px); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.4rem; }
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(14,10,32,.62); backdrop-filter: blur(4px); animation: modalFade .3s var(--ease); }
.modal__dialog { position: relative; z-index: 1; width: min(760px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 2rem 2.1rem 2.3rem; box-shadow: 0 30px 80px rgba(20,12,50,.4); animation: modalPop .35s var(--ease); }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.modal__close:hover { background: var(--purple); color: #fff; }
.modal__header { display: flex; align-items: center; gap: 1.1rem; margin: .2rem 0 1.4rem; padding-right: 2.5rem; }
.modal__header h3 { font-size: 1.35rem; font-weight: 700; margin: .35rem 0 .2rem; }
.modal__subtitle { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); font-weight: 700; margin: 1.6rem 0 .9rem; }
.modal__body .bullets { margin: 0; }

/* ---------- Modal: key figures ---------- */
.modalStats { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: .4rem; }
.modalStat { flex: 1 1 120px; padding: .9rem 1rem; text-align: center; border-radius: 14px; background: linear-gradient(160deg, rgba(124,77,255,.1), rgba(124,77,255,.03)); border: 1px solid rgba(124,77,255,.16); }
.modalStat__num { display: block; font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; color: var(--purple); background: linear-gradient(90deg, var(--purple), #b98bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.modalStat__label { display: block; margin-top: .25rem; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* ---------- Flagship projects ---------- */
.projGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.projCard { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.2rem 1.3rem; border-radius: 16px; background: linear-gradient(160deg, rgba(124,77,255,.07), rgba(124,77,255,.02)); border: 1px solid rgba(124,77,255,.18); }
.projCard__title { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 0; }
.projCard__desc { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.projCard__link { margin-top: auto; display: inline-flex; align-items: center; padding: .45rem 1rem; font-size: .82rem; font-weight: 600; color: #fff; background: var(--purple); border-radius: 100px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.projCard__link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(124,77,255,.35); }

/* ---------- Media gallery ---------- */
.mediaGrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.mediaItem { display: block; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); text-decoration: none; }
.mediaItem img, .mediaItem video { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.mediaItem--video { margin: 0; grid-column: 1 / -1; }
.mediaItem--video video { aspect-ratio: 16 / 9; }
.mediaEmbed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.mediaEmbed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.mediaItem__cap { display: block; padding: .6rem .8rem; font-size: .82rem; color: var(--muted); background: #fff; }
.mediaSoon { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.6rem 1rem; text-align: center; color: var(--muted); background: var(--soft); border: 1px dashed var(--line); border-radius: 16px; }
.mediaSoon__ico { font-size: 1.8rem; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .services, .portfolio, .about, .cta { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }
  .portfolio__intro { position: static; }
  .skills { grid-template-columns: 1fr; }
  .cta__visual { max-width: 340px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; min-height: 360px; }

  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2rem 2.2rem; background: var(--dark);
    transform: translateX(100%); transition: transform .4s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,.5); z-index: 100;
  }
  .nav__links.open { transform: none; }
  .nav__links a { font-size: 1.15rem; }
  .nav__cta { display: none; }
  .burger { display: flex; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .testi__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .svc--raised, .svc--raised.reveal.in { transform: none; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .pcard--wide { grid-column: auto; }
  .mediaGrid { grid-template-columns: 1fr; }
  .projGrid { grid-template-columns: 1fr; }
  .modal__dialog { padding: 1.6rem 1.3rem 1.9rem; }
}
@media (max-width: 520px) {
  .stats__grid { grid-template-columns: 1fr; }
  .sphere--coral { width: 210px; height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .svc--raised.reveal { transform: translateY(-28px); }
}
