/* =========================================================
   Portfolio Malek Medjoudj — noir & blanc, glass, rounded
   ========================================================= */

:root {
    --bg: #050505;
    --bg-soft: #0d0d0d;
    --text: #fafafa;
    --text-muted: #a3a3a3;
    --text-faint: #737373;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.09);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --font: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    /* L'overflow du body est propagé au viewport : le snap doit donc
       être déclaré sur html, conteneur de scroll réel. */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}

body.mk-body {
    height: 100%;
    display: flex;
    background: linear-gradient(165deg, #01060e 0%, #020c1a 45%, #03141f 75%, #021a1e 100%);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

::selection {
    background: #fff;
    color: #000;
}

/* Scrollbar — monochrome */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #020a12; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* =========================================================
   Fond — aurore boréale (bleu nuit → turquoise) + grille
   ========================================================= */

.mk-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(110% 85% at 88% 100%, rgba(37, 99, 235, 0.16) 0%, transparent 58%),
        radial-gradient(95% 75% at 8% 0%, rgba(13, 148, 136, 0.12) 0%, transparent 60%),
        linear-gradient(165deg, #01060e 0%, #020c1a 45%, #03141f 75%, #021a1e 100%);
}

/* Rideaux d'aurore : bandes verticales floutées, vertes et bleues */
.mk-glow {
    position: absolute;
    width: 34vw;
    height: 130vh;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
    transform: rotate(14deg);
}

.glow-1 {
    top: -35vh;
    left: 6vw;
    background: linear-gradient(180deg, transparent 0%, rgba(37, 99, 235, 0.11) 30%, rgba(59, 130, 246, 0.06) 60%, transparent 90%);
}

.glow-2 {
    top: -30vh;
    right: 2vw;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 148, 136, 0.08) 35%, rgba(45, 212, 191, 0.06) 65%, transparent 90%);
}

.mk-grid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =========================================================
   Layout
   ========================================================= */

.mk-container {
    width: min(1180px, 94%);
    margin-inline: auto;
}

/* Défilement horizontal : chaque section est un panneau plein écran.
   Le contenu est conçu pour tenir en hauteur (centrage vertical). */
.mk-main {
    display: contents;
}

.mk-section {
    flex: 0 0 100vw;
    min-width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: hidden;
    overflow-x: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 40px 64px 40px 152px;
}

/* =========================================================
   Cartes glass
   ========================================================= */

.mk-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gradient turquoise depuis le coin bas-droite, intensifié au survol */
.mk-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(115% 115% at 100% 100%, rgba(37, 99, 235, 0.24) 0%, rgba(37, 99, 235, 0.07) 38%, transparent 62%),
        radial-gradient(80% 80% at 100% 100%, rgba(255, 255, 255, 0.10) 0%, transparent 55%);
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mk-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 16px 44px rgba(4, 30, 34, 0.45);
}

.mk-card:hover::before {
    opacity: 1;
}

/* =========================================================
   Nav latérale verticale
   ========================================================= */

.mk-nav-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 10px;
    background: rgba(1, 8, 15, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-right: 1px solid var(--border);
}

.mk-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.mk-nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.mk-nav-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    text-align: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.mk-nav-link .mdi {
    font-size: 1.3rem;
}

.mk-nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.mk-nav-link::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 24px;
    border-radius: 3px;
    background: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
    transition: transform 0.25s ease;
}

.mk-nav-link.is-active {
    color: var(--text);
    background: rgba(37, 99, 235, 0.26);
}

.mk-nav-link.is-active::before {
    transform: translateY(-50%) scaleY(1);
}

/* =========================================================
   Hero
   ========================================================= */

.mk-hero {
    display: flex;
    align-items: center;
    position: relative;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 56px;
    position: relative;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.mk-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.mk-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.mk-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-role {
    font-family: var(--mono);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.mk-lead {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 54ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.mk-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mk-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.18);
}

.mk-button-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mk-button-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

/* Bouton CV du rail latéral — même géométrie que les liens de nav */
.mk-button-cv {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 10px 6px;
    border-radius: 14px;
    font-family: var(--font);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: center;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mk-button-cv .mdi {
    font-size: 1.3rem;
}

.mk-button-cv:hover {
    color: var(--text);
    background: rgba(37, 99, 235, 0.26);
    border-color: rgba(96, 165, 250, 0.4);
}

/* =========================================================
   Flèches précédent / suivant
   ========================================================= */

.mk-page-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(1, 8, 15, 0.55);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.mk-page-arrow:hover {
    color: var(--text);
    background: rgba(37, 99, 235, 0.3);
    border-color: rgba(96, 165, 250, 0.4);
}

.mk-page-arrow-prev {
    left: 108px;
}

.mk-page-arrow-next {
    right: 22px;
}

.mk-page-arrow[disabled] {
    opacity: 0.22;
    pointer-events: none;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-meta a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.hero-meta a:hover {
    color: var(--text);
}

.hero-meta .mdi {
    font-size: 1.05rem;
    vertical-align: -0.15em;
}

/* Photo de profil */
.hero-photo {
    display: flex;
    justify-content: center;
}

.hero-photo-frame {
    position: relative;
    width: min(300px, 100%);
    max-height: 62vh;
    aspect-ratio: 1;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
}

/* =========================================================
   Titres de section
   ========================================================= */

.mk-section-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.mk-section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.mk-subtitle {
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 20px 0 12px;
}

/* =========================================================
   À propos
   ========================================================= */

.about-card {
    padding: 24px 32px;
    margin-bottom: 18px;
}

.about-card p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.about-card strong {
    color: var(--text);
}

.about-card ul {
    display: grid;
    gap: 7px;
}

.about-card li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
}

.about-card li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-faint);
    font-family: var(--mono);
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.fact-card {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fact-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* =========================================================
   Compétences
   ========================================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.skills-grid-transversal {
    grid-template-columns: repeat(4, 1fr);
}

/* Icônes MDI */
.contact-icon .mdi {
    font-size: 1.7rem;
}

.mk-button .mdi {
    font-size: 1.05rem;
}

.skill-card {
    padding: 18px 22px 16px;
}

/* Le hover des cartes est géré par .mk-card:hover / .mk-card:hover::before */

.skill-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.skill-card li {
    position: relative;
    padding-left: 16px;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.skill-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   Timeline (expérience & formation)
   ========================================================= */

.timeline {
    position: relative;
    display: grid;
    gap: 14px;
    padding-left: 34px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.06));
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -34px;
    top: 26px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #02121e;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.timeline-item:first-child .timeline-marker {
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.timeline-card {
    padding: 20px 26px;
}

.timeline-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.timeline-head h3 {
    font-size: 1.02rem;
    font-weight: 700;
}

.timeline-date {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.timeline-card ul {
    display: grid;
    gap: 5px;
}

.timeline-card li {
    position: relative;
    padding-left: 22px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--text-faint);
}

.timeline-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* =========================================================
   Projets
   ========================================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.project-card {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-tag {
    align-self: flex-start;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.project-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.project-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* =========================================================
   Médias — vidéos & flyers
   ========================================================= */

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.media-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 36vh;
    background: #000;
    border-bottom: 1px solid var(--border);
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.media-card figcaption {
    padding: 12px 18px;
}

.media-card figcaption h3 {
    font-size: 0.94rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.media-card figcaption p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.flyer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.flyer-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.flyer-card img {
    width: 100%;
    height: clamp(160px, 24vh, 280px);
    object-fit: cover;
    object-position: top;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.4s ease;
}

.flyer-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.flyer-name {
    padding: 14px 18px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* =========================================================
   Contact
   ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 6px;
}

.contact-card {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-icon {
    font-size: 1.4rem;
}

.contact-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.contact-value {
    font-size: 0.88rem;
    color: var(--text-muted);
    word-break: break-word;
}

a.contact-card:hover {
    background: var(--glass-hover);
}

/* =========================================================
   Footer — panneau de clôture du défilement horizontal
   ========================================================= */

.mk-footer {
    flex: 0 0 100vw;
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    padding: 40px 64px 40px 152px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-inner .mk-logo-mark {
    margin-bottom: 12px;
}

.footer-inner p {
    font-size: 0.82rem;
    color: var(--text-faint);
    margin-top: 8px;
}

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

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   Animations reveal
   ========================================================= */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 960px) {
    .mk-section {
        padding: 48px 28px 96px;
        overflow-y: auto;
    }

    .mk-footer {
        padding: 48px 28px 96px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-photo { order: -1; }
    .hero-photo-frame { width: min(240px, 70%); border-radius: 26px; }

    .skills-grid,
    .skills-grid-transversal,
    .projects-grid,
    .flyer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    /* Rail latéral -> barre horizontale en bas */
    .mk-nav-side {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: auto;
        height: 68px;
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        padding: 8px 14px;
        border-right: 0;
        border-top: 1px solid var(--border);
    }

    .mk-logo {
        display: none;
    }

    .mk-nav-links {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 2px;
    }

    .mk-nav-link {
        padding: 8px 6px;
        border-radius: 10px;
    }

    .mk-nav-link .mk-nav-label {
        display: none;
    }

    .mk-nav-link::before {
        left: 50%;
        top: auto;
        bottom: -8px;
        transform: translateX(-50%) scaleX(0);
        width: 24px;
        height: 3px;
    }

    .mk-nav-link.is-active::before {
        transform: translateX(-50%) scaleX(1);
    }

    .mk-button-cv {
        flex-direction: row;
        gap: 6px;
        padding: 8px 14px;
        width: auto;
        font-size: 0.72rem;
    }

    .mk-button-cv .mk-nav-label {
        display: inline;
    }

    .mk-page-arrow {
        display: none;
    }
}

@media (max-width: 600px) {
    .mk-section {
        padding: 40px 20px 88px;
    }

    .mk-footer {
        padding: 40px 20px 88px;
    }

    .skills-grid,
    .skills-grid-transversal,
    .projects-grid,
    .about-facts,
    .contact-grid,
    .flyer-grid {
        grid-template-columns: 1fr;
    }

    .about-card,
    .timeline-card,
    .skill-card,
    .project-card {
        padding: 24px 22px;
    }

    .timeline { padding-left: 26px; }
    .timeline-marker { left: -26px; }

    .hero-actions .mk-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-height: 760px) and (min-width: 961px) {
    .mk-section {
        padding: 24px 48px 24px 152px;
    }

    .mk-footer {
        padding: 24px 48px 24px 152px;
    }

    .mk-section-title {
        margin-bottom: 14px;
    }

    .about-card {
        padding: 16px 24px;
        margin-bottom: 12px;
    }

    .skill-card,
    .timeline-card,
    .project-card,
    .contact-card {
        padding: 14px 18px 12px;
    }

    .hero-photo-frame {
        width: min(230px, 100%);
    }

    .flyer-card img {
        height: clamp(120px, 20vh, 200px);
    }

    .video-frame {
        max-height: 30vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
