/* ===== Design system moderne (navy + accent or) ===== */
:root {
    --navy: #0b1220;
    --navy-2: #111a2e;
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --gold: #f5b301;
    --white: #ffffff;
    --grey: #f5f7fb;
    --grey-line: #e5e9f2;
    --ink: #0f172a;
    --ink-soft: #5b6478;
    --radius: 18px;
    --shadow: 0 14px 40px rgba(15, 23, 42, .12);
    --maxw: 1180px;
    --grad: linear-gradient(135deg, #0b1220 0%, #4c1d95 40%, #7c3aed 75%, #06b6d4 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 100%; }
body { margin: 0; font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1,h2,h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); text-align: center; margin-bottom: 1.8rem; position: relative; padding-bottom: .8rem; letter-spacing: -.02em; }
h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; margin-left: -32px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: 860px; }
.sec { padding: 6rem 0; position: relative; }
.sec.alt { background: var(--grey); }

/* Background animé global */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(79,124,255,.18), transparent 60%),
        radial-gradient(900px 500px at 95% 10%, rgba(34,211,238,.12), transparent 60%),
        radial-gradient(1000px 700px at 50% 110%, rgba(245,179,1,.08), transparent 60%);
    animation: bgShift 18s ease-in-out infinite alternate;
}
@keyframes bgShift { 0% { transform: translate(0,0); } 100% { transform: translate(-3%, -2%); } }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; transition: all .35s; background: rgba(11,18,32,.55); backdrop-filter: blur(14px); }
.nav.scrolled { background: rgba(11,18,32,.92); box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: .7rem 1.5rem; }
.logo { color: var(--white); font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -.02em; background: linear-gradient(90deg,#fff,#93c5fd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav nav { display: flex; gap: 1.6rem; }
.nav nav a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .95rem; font-weight: 500; position: relative; padding: .3rem 0; transition: color .2s; }
.nav nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--accent-2); transition: width .3s; }
.nav nav a:hover, .nav nav a.active { color: var(--white); }
.nav nav a:hover::after, .nav nav a.active::after { width: 100%; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; }
.burger span { display: block; height: 3px; background: var(--white); border-radius: 3px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero */
.hero {
    min-height: 100vh; display: grid; place-items: center; text-align: center; color: var(--white); position: relative; overflow: hidden;
    padding: 7rem 1.25rem 5rem; background: var(--grad);
    z-index: 1;
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: float 14s ease-in-out infinite; }
.hero::before { width: 420px; height: 420px; background: #60a5fa; top: -120px; right: 6%; }
.hero::after { width: 320px; height: 320px; background: #22d3ee; bottom: -80px; left: 8%; animation-delay: -7s; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,40px); } }

.hero-inner { position: relative; z-index: 3; max-width: 820px; animation: rise .9s ease both; }
@keyframes rise { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform:none; } }

/* Cadre photo de profil */
.avatar-btn {
    position: relative; display: inline-block; width: 240px; height: 240px; margin: 0 auto 1.8rem; cursor: pointer;
    border-radius: 50%; overflow: hidden;
    border: 6px solid rgba(255,255,255,.95);
    box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 0 60px rgba(79,124,255,.55), 0 20px 40px rgba(0,0,0,.3);
    transition: transform .4s, box-shadow .4s;
    animation: pop .9s ease both;
}
.avatar-btn:hover { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(255,255,255,.18), 0 0 80px rgba(34,211,238,.6), 0 24px 48px rgba(0,0,0,.35); }
@keyframes pop { from { transform: scale(.7); opacity:0; } to { transform: scale(1); opacity:1; } }
.avatar-btn .avatar { width: 100%; height: 100%; margin: 0; border-radius: 0; border: none; box-shadow: none; animation: none; object-fit: cover; }
.avatar-zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,18,32,.35); color: #fff; font-size: 2rem; opacity: 0; transition: opacity .3s; pointer-events: none; backdrop-filter: blur(2px); }
.avatar-btn:hover .avatar-zoom { opacity: 1; }

.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .85rem; opacity: .9; margin: 0 0 .6rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 4.8rem); font-weight: 800; margin-bottom: .4rem; text-shadow: 0 6px 30px rgba(0,0,0,.3); letter-spacing: -.03em; }
.typed { font-size: clamp(1.1rem, 2.4vw, 1.5rem); min-height: 2.2em; margin: 0 0 2.2rem; opacity: .95; font-weight: 400; }
.typed::after { content: "|"; margin-left: 3px; animation: blink 1s steps(1) infinite; color: var(--accent-2); }
@keyframes blink { 50% { opacity: 0; } }
.cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll { position: absolute; bottom: 1.8rem; left: 50%; margin-left: -22px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); text-decoration: none; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; animation: bounce 2s infinite; z-index: 0; backdrop-filter: blur(4px); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Boutons */
.btn { display: inline-block; padding: .9rem 1.9rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--white); transition: transform .25s, box-shadow .25s, background .25s; box-shadow: 0 8px 20px rgba(79,124,255,.35); }
.btn:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(79,124,255,.5); background: #3b66f0; border-color: #3b66f0; }
.btn.light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); box-shadow: none; }
.btn.outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn:focus-visible, .chip:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Texte/frises */
.meta { color: var(--ink-soft); font-size: .92rem; margin: .3rem 0; }
.lead { text-align: center; color: var(--ink-soft); margin-top: -.6rem; }
.timeline { position: relative; padding-left: 2rem; border-left: 3px solid var(--accent); margin-left: .5rem; }
.tl-item { position: relative; background: var(--white); padding: 1.3rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.5rem; transition: transform .3s, box-shadow .3s; }
.tl-item:hover { transform: translateX(6px); box-shadow: 0 18px 44px rgba(79,124,255,.18); }
.tl-item::before { content: ""; position: absolute; left: -2.65rem; top: 1.5rem; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(79,124,255,.2); }
.tl-date { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--white); background: linear-gradient(90deg, var(--accent), var(--accent-2)); padding: .2rem .9rem; border-radius: 999px; margin-bottom: .5rem; }
.tl-sub { color: #1e3a8a; font-weight: 600; margin: 0 0 .5rem; }
.tl-item p, .tl-item ul { margin: .4rem 0; }
.tl-item ul { padding-left: 1.2rem; }

/* Compétences */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.skill-group { background: var(--white); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); border: 1px solid var(--grey-line); transition: transform .3s; }
.skill-group:hover { transform: translateY(-4px); }
.skill-group h3 { color: #1e3a8a; margin-bottom: 1.1rem; }
.skill { margin-bottom: 1rem; }
.skill-top { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 500; margin-bottom: .35rem; }
.bar { height: 11px; border-radius: 11px; background: var(--grey-line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 11px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px rgba(79,124,255,.4); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

/* Projets */
.filters { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.chip { font: inherit; font-weight: 600; padding: .55rem 1.3rem; border-radius: 999px; border: 2px solid var(--accent); background: var(--white); color: var(--accent); cursor: pointer; transition: all .25s; }
.chip:hover, .chip.active { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(79,124,255,.3); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--grey-line); display: flex; flex-direction: column; transition: transform .35s, box-shadow .35s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(79,124,255,.2); }
.card.hide { display: none; }
.card-img { position: relative; border: 0; padding: 0; cursor: zoom-in; aspect-ratio: 16/10; overflow: hidden; background: var(--grey); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.08); }
.count { position: absolute; right: .8rem; bottom: .8rem; background: rgba(11,18,32,.85); color: var(--white); padding: .15rem .8rem; border-radius: 999px; font-size: .85rem; backdrop-filter: blur(4px); }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card-body p { margin: .3rem 0; }
.badge { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .8rem; border-radius: 999px; background: var(--grey); color: #1e3a8a; }
.badge.collectif { background: var(--accent); color: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags span { background: var(--grey); color: #1e3a8a; padding: .2rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; transition: background .2s, color .2s; }
.tags span:hover { background: var(--accent); color: var(--white); }
.more { margin-top: auto; padding-top: .7rem; font-weight: 600; text-decoration: none; color: var(--accent); }
.more:hover { text-decoration: underline; }

/* Loisirs/langues */
.wrap.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 3rem; }
.pills, .langs { list-style: none; margin: 0; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.pills li { background: var(--white); border-radius: 999px; padding: .7rem 1.4rem; box-shadow: var(--shadow); font-weight: 500; transition: transform .25s, box-shadow .25s; border: 1px solid var(--grey-line); }
.pills li:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 28px rgba(79,124,255,.2); }
.pills span { margin-right: .5rem; }
.langs li { display: flex; justify-content: space-between; align-items: center; background: var(--white); border-left: 5px solid var(--accent); border-radius: 12px; padding: 1rem 1.3rem; margin-bottom: .9rem; box-shadow: var(--shadow); transition: transform .25s; }
.langs li:hover { transform: translateX(6px); }
.langs span { color: var(--ink-soft); }

/* Contact */
.form { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.form label { display: grid; gap: .4rem; font-weight: 500; font-size: .95rem; }
.form input, .form textarea { font: inherit; padding: .9rem 1.1rem; border: 2px solid var(--grey-line); border-radius: 12px; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,124,255,.18); transform: translateY(-1px); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
#formStatus { margin: 0; min-height: 1.5em; font-weight: 500; }
#formStatus.ok { color: #0a7a3d; }
#formStatus.err { color: #c0262d; }
.links { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.links a { font-weight: 600; text-decoration: none; }
.foot { background: var(--navy); color: rgba(255,255,255,.85); text-align: center; padding: 1.8rem 1rem; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.06); }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(11,18,32,.94); display: grid; place-items: center; padding: 1rem; backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 1180px); text-align: center; }
.lightbox img { max-height: 82vh; margin: 0 auto; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox figcaption { color: var(--white); margin-top: .9rem; min-height: 1.5em; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: var(--white); border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: background .2s, transform .2s; backdrop-filter: blur(4px); }
.lb-close:hover, .lb-nav:hover { background: var(--accent); transform: scale(1.08); }
.lb-close { top: 1rem; right: 1rem; }
.lb-nav { top: 50%; margin-top: -25px; }
.lb-nav.prev { left: 1rem; }
.lb-nav.next { right: 1rem; }

/* Typage bio */
.typed-bio { min-height: 4em; white-space: pre-wrap; overflow: hidden; font-size: 1.25rem; line-height: 1.8; color: var(--ink); font-weight: 500; max-width: 720px; margin: 1.5rem auto 0; border-left: 4px solid var(--accent); padding-left: 1.1rem; opacity: 0; transition: opacity .4s; }
.typed-bio.typed-done { opacity: 1; border-left: none; padding-left: 0; }
.typed-bio::after { content: "|"; display: inline-block; width: 1ch; animation: blink 1s steps(1) infinite; margin-left: 2px; color: var(--accent); font-weight: 700; }

/* A propos : photo grande et attractive */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-top: 1rem; }
.about-photo { display: flex; justify-content: center; }
.about-img { width: 100%; max-width: 620px; height: auto; border-radius: 26px; box-shadow: 0 24px 60px rgba(79,124,255,.25); border: 6px solid var(--white); object-fit: cover; opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1s ease, transform 1s ease; }
.about-img.visible { opacity: 1; transform: none; }
.about-img:hover { transform: scale(1.02); }
.about-img-placeholder { width: 400px; height: 400px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--white); border-radius: 22px; display: grid; place-items: center; font-size: 5rem; font-weight: 800; box-shadow: var(--shadow); }
.about-text h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); text-align: left; margin-bottom: 1.1rem; letter-spacing: -.02em; }
.about-text h2::after { left: 0; margin-left: 0; }
.about-text .meta { margin-top: 1.1rem; font-size: 1.05rem; }

/* Formes flottantes */
.floating-shapes { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; background: rgba(79,124,255,.12); animation: floatShape linear infinite; opacity: .06; will-change: transform, opacity; }
.shape-1 { width: 560px; height: 560px; top: -180px; right: -180px; animation-duration: 40s; }
.shape-2 { width: 400px; height: 400px; bottom: -140px; left: -140px; animation-duration: 46s; animation-delay: -10s; background: rgba(34,211,238,.1); }
.shape-3 { width: 280px; height: 280px; top: 30%; left: 8%; animation-duration: 34s; animation-delay: -18s; background: rgba(79,124,255,.08); }
.shape-4 { width: 460px; height: 460px; bottom: 12%; right: 10%; animation-duration: 42s; animation-delay: -26s; }
.shape-5 { width: 200px; height: 200px; top: 14%; right: 22%; animation-duration: 30s; animation-delay: -5s; background: rgba(245,179,1,.08); }
.shape-6 { width: 340px; height: 340px; bottom: 32%; left: 16%; animation-duration: 48s; animation-delay: -14s; }
.shape-7 { width: 220px; height: 220px; top: 58%; right: 32%; animation-duration: 36s; animation-delay: -22s; background: rgba(34,211,238,.1); }
.shape-8 { width: 420px; height: 420px; bottom: 4%; left: 32%; animation-duration: 40s; animation-delay: -8s; }
@keyframes floatShape { 0% { transform: translate(0,0) scale(1); opacity: .05; } 15% { opacity: .1; } 85% { opacity: .1; } 100% { transform: translate(calc(60vw - 40%), calc(55vh - 40%)) scale(1.25); opacity: .05; } }

/* Carousel about */
.photo-carousel { position: relative; display: flex; align-items: center; gap: .6rem; }
.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 1.2rem; padding: .6rem 0; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 auto; scroll-snap-align: start; width: 100%; max-width: 460px; opacity: .55; transition: opacity .4s ease, transform .4s ease; }
.carousel-slide.active { opacity: 1; transform: scale(1.04); }
.carousel-slide img { width: 100%; height: 420px; object-fit: cover; border-radius: 18px; box-shadow: 0 16px 44px rgba(15,23,42,.18); border: 6px solid var(--white); object-fit: cover; display: block; transition: transform .4s; }
.carousel-slide img:hover { transform: scale(1.03); }
.carousel-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); background: var(--white); color: var(--navy); font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow); z-index: 10; }
.carousel-btn:hover { transform: scale(1.12); box-shadow: 0 0 26px rgba(79,124,255,.4); background: var(--accent); color: var(--white); }
.carousel-btn.prev { margin-right: -.8rem; }
.carousel-btn.next { margin-left: -.8rem; }
.carousel-dots { display: flex; gap: .6rem; justify-content: center; margin-top: 1.1rem; }
.carousel-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--accent); background: var(--white); cursor: pointer; transition: background .2s, transform .2s; }
.carousel-dot.active { background: var(--accent); transform: scale(1.15); }
.carousel-dot:hover { transform: scale(1.25); }

/* Social */
.links { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; list-style: none; padding: 0; }
.social-link { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--brand, var(--accent)); background: var(--white); color: var(--brand, var(--navy)); text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s, color .25s; box-shadow: var(--shadow); }
.social-link svg { width: 26px; height: 26px; }
.social-link:hover { transform: translateY(-5px) scale(1.08); background: var(--brand, var(--accent)); color: var(--white); box-shadow: 0 0 28px rgba(0,0,0,.25); }

/* Audio */
.audio-control { position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 60; }
.audio-btn { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--accent); background: var(--white); color: var(--navy); font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; transition: transform .25s, box-shadow .25s, background .25s; box-shadow: var(--shadow); }
.audio-btn:hover { transform: scale(1.12); box-shadow: 0 0 28px rgba(79,124,255,.4); }
.audio-btn[aria-pressed="true"] { background: var(--accent); color: var(--white); border-color: #3b66f0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 860px) {
    .burger { display: flex; }
    .nav nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(11,18,32,.98); max-height: 0; overflow: hidden; transition: max-height .35s ease; backdrop-filter: blur(14px); }
    .nav nav.open { max-height: 80vh; }
    .nav nav a { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: 1.05rem; }
    .nav nav a::after { display: none; }
    .sec { padding: 4rem 0; }
    .timeline { padding-left: 1.4rem; }
    .tl-item::before { left: -2.05rem; }
    .avatar-btn { width: 160px; height: 160px; }
    .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .about-photo { order: -1; }
    .about-img { max-width: 520px; }
    .carousel-slide { max-width: 380px; }
}
@media (max-width: 480px) {
    .cards { grid-template-columns: 1fr; }
    .form .btn, .cta .btn { width: 100%; text-align: center; }
}

@media (min-width: 1600px) { html { font-size: 118%; } :root { --maxw: 1380px; } }
@media (min-width: 2400px) { html { font-size: 150%; } :root { --maxw: 1720px; } }

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