@media (max-width: 1100px) {
    .hero-content {
        gap: clamp(2rem, 5vw, 4rem);
    }

    .hero-visual {
        min-height: min(50vh, 30rem);
    }

    .floating-panel {
        min-width: 9rem;
        padding: 0.85rem;
    }

    .footer-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 980px) {
    .site-nav {
        top: 0.65rem;
        width: min(calc(100% - 1rem), 720px);
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.6rem);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 0.7rem;
        border: 1px solid var(--border);
        border-radius: 1rem;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .menu-open .nav-links {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .button-compact {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 3rem;
    }

    .hero-copy {
        order: 1;
    }

    .hero-visual {
        order: 2;
        min-height: 28rem;
    }

    .hero-title {
        max-width: 14ch;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .chapter-marker {
        position: relative;
        top: auto;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        text-align: left;
    }

    .section-heading .filter-group {
        margin-top: 0;
    }

    .stack-grid,
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact .two-column {
        gap: 3rem;
    }

    .contact-copy h2 {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .hero {
        min-height: auto;
        padding: 6.7rem 1rem 4.2rem;
    }

    .hero-content,
    .section-shell,
    .footer-inner {
        width: 100%;
    }

    .hero-title {
        max-width: 11ch;
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .hero-actions,
    .skills-header,
    .footer-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 22rem;
        border-radius: 1rem;
    }

    .floating-panel {
        min-width: 8rem;
        padding: 0.7rem;
    }

    .floating-panel strong {
        font-size: 0.95rem;
    }

    .panel-a {
        left: 5%;
        top: 8%;
    }

    .panel-b {
        right: 5%;
        top: 44%;
    }

    .panel-c {
        left: 8%;
        bottom: 8%;
    }

    .stack-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-header {
        gap: 1rem;
    }

    .skills-header h3 {
        margin-bottom: 0;
    }

    .evidence-inner {
        gap: 1.5rem;
    }

    .evidence-item strong {
        font-size: 1.2rem;
    }

    .project-visual {
        min-height: 13rem;
    }

    .contact {
        min-height: auto;
        padding-top: 4.8rem;
    }

    .contact-links {
        gap: 0.85rem;
    }

    .theme-toggle {
        right: 0.8rem;
        bottom: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0.85rem 3.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 3.45rem);
    }

    .hero-intro {
        font-size: 0.95rem;
    }

    .hero-actions {
        gap: 0.65rem;
    }

    .skill-ticker {
        gap: 0.5rem;
        margin-top: 2.5rem;
    }

    .skill-ticker span {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }

    .hero-visual {
        min-height: 18rem;
    }

    .floating-panel {
        min-width: 7rem;
        padding: 0.6rem;
        border-radius: 0.75rem;
    }

    .floating-panel strong {
        font-size: 0.85rem;
    }

    .floating-panel small {
        font-size: 0.65rem;
    }

    .panel-a {
        left: 4%;
        top: 6%;
    }

    .panel-b {
        right: 4%;
        top: 40%;
    }

    .panel-c {
        left: 6%;
        bottom: 6%;
    }

    .evidence-strip {
        margin: 2.5rem 0.85rem;
        padding: 1.5rem;
    }

    .evidence-inner {
        gap: 1rem;
    }

    .evidence-item strong {
        font-size: 1.1rem;
    }

    .evidence-label {
        font-size: 0.6rem;
    }

    .section-heading {
        margin-bottom: 1rem;
    }

    .filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .filter-button {
        flex: 1;
    }

    .project-visual {
        min-height: 11rem;
    }

    .project-body {
        padding: 0.85rem;
    }

    .project-body h3 {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .contact-copy h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .contact-copy p {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem 0.85rem;
    }

    .footer-inner {
        gap: 0.75rem;
    }

    .footer-inner p {
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-visual {
        min-height: 15rem;
    }

    .floating-panel {
        display: none;
    }

    .project-card {
        flex-basis: 92vw;
        min-width: 200px;
    }

    .evidence-item strong {
        font-size: 1rem;
    }
}
