/* ─── tablet ──────────────────────────────────────── */
@media(max-width:768px){
    .section{padding:10px 14px;}
    .section-card{padding:20px 18px 18px;gap:15px;}
    .stats-grid{grid-template-columns:repeat(2,1fr);}
    .timeline-layout{grid-template-columns:1fr;gap:20px;}
    .tech-grid{grid-template-columns:repeat(auto-fill,minmax(95px,1fr));}
    .project-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr));}
    .contact-social-row{gap:10px;}
    .social-icon-btn{width:40px;height:40px;font-size:1.05rem;}
}

/* ─── mobile ──────────────────────────────────────── */
@media(max-width:480px){
    .hero{padding:48px 12px 10px;}
    .hero-card{padding:15px 15px 14px;gap:12px;}
    .hero-avatar{width:68px;height:68px;}
    .hero-full-name{font-size:1.06rem;}
    .hero-role-inline{font-size:.68rem;}
    .hero-btn{font-size:.74rem;padding:.58rem .65rem;min-width:100px;}
    .hero-actions{gap:8px;}
    .hero-tagline-quote{font-size:.73rem;padding:7px 10px 7px 12px;}
    .hero-corner-chevron{top:12px;right:12px;width:26px;height:26px;font-size:.72rem;}

    .section{padding:9px 12px;}
    .section-card{padding:16px 14px 15px;gap:13px;}
    .section-title{font-size:.96rem;}

    .stats-grid{grid-template-columns:repeat(2,1fr);gap:7px;}
    .stat-num{font-size:1.2rem;}
    .stat-label{font-size:.57rem;}
    .stat-icon{width:22px;height:22px;font-size:.7rem;margin-bottom:5px;}

    .timeline-layout{grid-template-columns:1fr;gap:16px;}
    .tech-grid{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:7px;}
    .tech-tabs{gap:5px;}
    .tech-tab{font-size:.68rem;padding:4px 10px;}
    .project-grid{grid-template-columns:1fr;}
    .project-actions{gap:6px;}
    .project-card .link{font-size:.68rem;padding:3px 7px;}
    .masonry{column-count:2;}

    .contact-email-val{font-size:.74rem;}
    .contact-social-row{gap:9px;}
    .social-icon-btn{width:38px;height:38px;font-size:1rem;}

    .dock{gap:3px;padding:6px 7px;}
    .dock-item{width:32px;height:32px;font-size:.88rem;border-radius:9px;}
    .dock-sep{display:none;}
    .settings-popover{bottom:64px;}
}

/* ─── very small ──────────────────────────────────── */
@media(max-width:340px){
    .dock-item{width:28px;height:28px;font-size:.78rem;}
    .hero-name{font-size:.96rem;}
    .stats-grid{grid-template-columns:repeat(2,1fr);}
    .social-icon-btn{width:34px;height:34px;font-size:.92rem;}
}

/* ─── landscape mobile ────────────────────────────── */
@media(max-height:480px) and (orientation:landscape){
    .hero{padding-top:46px;}
    .scroll-indicator{display:none;}
}

/* ─── print ───────────────────────────────────────── */
@media print{
    .dock,#loadingScreen,#mouseGlow,.cursor-dot,.cursor-ring,
    .scroll-indicator,.grid-bg,.grid-glow,#scrollProgress,#lightbox{display:none!important;}
    .section{padding:10px 0;}
    .section-card,.stat-card{box-shadow:none;border:1px solid #ddd;}
}
