/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --off-white: #fafafa;
    --light-gray: #e8e8e8;
    --mid-gray: #888888;
    --dark-gray: #444444;
    --near-black: #1a1a1a;
    --black: #0a0a0a;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
    scrollbar-width: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--black);
    color: var(--white);
}

/* ============================================
   NAVIGATION
   ============================================ */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

#main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.5;
}

.logo-dot {
    color: var(--mid-gray);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}

.nav-toggle .bar {
    width: 28px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out-expo), opacity 0.25s ease;
}

.nav-toggle.active .bar:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle.active .bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--mid-gray);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width 0.35s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
    color: var(--black);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================
   SECTIONS — FULL VIEWPORT
   ============================================ */
.section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: var(--white);
    height: 100vh;
    max-height: 100vh;
}

.hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    padding: 0 2rem;
    position: relative;
}

/* Hero texts */
.hero-text {
    flex: 0 1 auto;
    padding-bottom: 25vh;
    z-index: 2;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hero-text-left {
    text-align: left;
    margin-right: 0;
}

.hero-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.8vw, 2.4rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--mid-gray);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s var(--ease-out-expo) 0.7s, transform 0.9s var(--ease-out-expo) 0.7s;
}

.hero-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(4.5rem, 8vw, 9rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--black);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s var(--ease-out-expo) 0.5s, transform 0.9s var(--ease-out-expo) 0.5s;
}

/* Hero image — large, anchored to bottom */
.hero-image-wrapper {
    flex: 0 0 auto;
    height: 82vh;
    margin-right: 4rem;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s var(--ease-out-expo) 0.1s, transform 1s var(--ease-out-expo) 0.1s;
    z-index: 1;
}

.hero-image {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: bottom right;
}

/* Animate in */
.hero-section.animate-in .hero-image-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.hero-section.animate-in .hero-label,
.hero-section.animate-in .hero-name {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-driven exit: hero image slides down and out */
.hero-section.animate-out .hero-image-wrapper {
    transition: opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(100px);
}

.hero-section.animate-out .hero-label {
    transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s;
    opacity: 0;
    transform: translateY(40px);
}

.hero-section.animate-out .hero-name {
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
    opacity: 0;
    transform: translateY(40px);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-section {
    background: var(--off-white);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 3rem 6rem;
    min-height: 100vh;
    scroll-margin-top: 2rem;
}

.skills-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5rem;
    max-width: 1300px;
    width: 100%;
}

/* Hanging image column — bigger */
.skills-image-col {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    width: 420px;
    padding-top: 0;
}

.hanging-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: top center;
    opacity: 0;
    transform: translateY(-200px) rotate(0deg);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.hanging-wrapper.animate-in {
    opacity: 1;
    transform: translateY(0) rotate(3deg);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.hanging-wrapper.animate-in.swinging {
    animation: pendulum 4s ease-in-out infinite;
}

.hanging-rope {
    width: 2px;
    height: 0px;
    background: var(--light-gray);
    border-radius: 1px;
}

.hanging-image {
    width: 400px;
    height: auto;
    display: block;
}

/* Transition between skills and projects */
.fall-transition {
    position: fixed;
    top: 0;
    left: calc(50% - 320px);
    z-index: 90;
    width: min(400px, 32vw);
    height: 100vh;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
}

.fall-transition-image {
    position: absolute;
    left: 50%;
    bottom: 42vh;
    width: 100%;
    height: auto;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center;
}

.fall-transition-fallen {
    opacity: 0;
    transform: translate(-50%, 0) rotate(-8deg);
}

.fall-transition.active {
    opacity: 1;
    visibility: visible;
    animation: fallTransitionVisibility 3.6s ease forwards;
}

.fall-transition.active .hanging-wrapper {
    animation: hangingDrop 1.7s ease-in-out forwards;
}

.fall-transition.active .fall-transition-fallen {
    animation: fallenReveal 1.7s ease 1.25s forwards;
}

.fall-transition.complete .fall-transition-fallen {
    opacity: 1;
}

.hanging-wrapper.falling {
    position: absolute;
    left: 50%;
    bottom: 5vh;
    width: 100%;
    opacity: 1;
    transform: translate(-50%, -34vh) rotate(3deg);
    transition: none;
}

.hanging-wrapper.falling .hanging-image {
    width: 100%;
}

@keyframes hangingDrop {
    0% {
        opacity: 1;
        transform: translate(-50%, -34vh) rotate(3deg);
    }

    65% {
        opacity: 1;
        transform: translate(-50%, 20vh) rotate(-6deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 34vh) rotate(-12deg);
    }
}

@keyframes fallenReveal {
    0% {
        opacity: 0;
        transform: translate(-50%, 20vh) rotate(-12deg);
    }

    22%, 78% {
        opacity: 1;
        transform: translate(-50%, 20vh) rotate(-8deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 25vh) rotate(-8deg);
    }
}

@keyframes fallTransitionVisibility {
    0%, 82% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@media (min-width: 1001px) {
    .fall-transition.active .hanging-wrapper {
        animation-name: hangingDropVertical;
    }

    .fall-transition.active .fall-transition-fallen {
        animation-name: fallenRevealVertical;
    }
}

@keyframes hangingDropVertical {
    0% {
        opacity: 1;
        transform: translate(-50%, -34vh) rotate(0deg);
    }

    65% {
        opacity: 1;
        transform: translate(-50%, 20vh) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 34vh) rotate(0deg);
    }
}

@keyframes fallenRevealVertical {
    0% {
        opacity: 0;
        transform: translate(-50%, 20vh) rotate(0deg);
    }

    22%, 78% {
        opacity: 1;
        transform: translate(-50%, 20vh) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 25vh) rotate(0deg);
    }
}

@keyframes pendulum {
    0% {
        transform: translateY(0) rotate(3deg);
    }

    50% {
        transform: translateY(0) rotate(-3deg);
    }

    100% {
        transform: translateY(0) rotate(3deg);
    }
}

/* Skills content column — reduced top padding */
.skills-content-col {
    flex: 1;
    max-width: 560px;
    padding-top: 4rem;
}

.skills-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
    color: var(--black);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.skills-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.skill-card {
    min-height: 240px;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(40px);
}

.skill-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.skill-card:hover {
    transform: translateY(-6px);
}

.skill-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 240px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.skill-card:hover .skill-card-inner,
.skill-card.is-flipped .skill-card-inner {
    transform: rotateY(180deg);
}

.skill-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.4rem 1.25rem 1.2rem;
    border: 1px solid #dfe1e5;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfdfd 100%);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 10px 28px rgba(10, 10, 10, 0.045);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.skill-card-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.25rem;
    width: 3.2rem;
    height: 3px;
    background: var(--black);
    border-radius: 0 0 2px 2px;
}

.skill-card-back {
    align-items: flex-start;
    background: var(--black);
    color: var(--white);
    transform: rotateY(180deg);
}

.skill-card:hover .skill-card-face,
.skill-card.is-flipped .skill-card-face {
    border-color: var(--black);
    box-shadow: 0 18px 42px rgba(10, 10, 10, 0.09);
}

.skill-card-kicker {
    margin-bottom: 1rem;
    color: var(--mid-gray);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.skill-card-back p {
    max-width: 18rem;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.55;
}

.skill-icon {
    font-size: 1.65rem;
    margin: 0.95rem 0 0.8rem;
    color: var(--black);
    font-weight: 700;
    line-height: 1;
}

.skill-card h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.28rem;
    margin-bottom: 0.9rem;
    color: var(--black);
    letter-spacing: -0.03em;
}

.skill-card-hint {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--mid-gray);
    line-height: 1.3;
    font-weight: 500;
}

.skill-card-hint span {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    background: #f7f7f7;
    color: var(--dark-gray);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.skill-card:hover .skill-card-hint span {
    background: #f0f0f0;
    border-color: #d2d2d2;
    color: var(--black);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    background: var(--white);
    height: 135vh;
    min-height: auto;
    position: relative;
    overflow: visible;
    /* MUST be visible for sticky to work */
    padding: 0;
}

/* Sticky pinned container — fills one screen and sticks */
.projects-pinned {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 3rem 0;
    gap: 1.2rem;
    box-sizing: border-box;
    overflow: hidden;
}

.projects-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    color: var(--black);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
    flex-shrink: 0;
}

.projects-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Project boxes row */
.projects-boxes {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    justify-content: center;
    flex-shrink: 0;
}

/* Individual project box */
.project-box {
    flex: 1;
    max-width: 420px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--black);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo),
        border-color 0.4s ease, box-shadow 0.5s ease, filter 0.5s ease;
    opacity: 0;
    transform: translateY(40px);
}

.project-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Highlighted state */
.project-box.highlighted {
    border-color: var(--black);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px) scale(1.02);
}

/* Dimmed state */
.project-box.dimmed {
    opacity: 0.3;
    filter: grayscale(0.5);
    transform: translateY(0) scale(0.97);
}

.project-preview {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--off-white);
}

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-box:hover .project-thumb {
    transform: scale(1.05);
}

.project-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.3rem;
}

.project-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.project-arrow {
    font-size: 1.3rem;
    color: var(--mid-gray);
    transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.project-box:hover .project-arrow {
    color: var(--black);
    transform: translate(3px, -3px);
}

/* Character images area — situated right under project cards */
.projects-character {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: clamp(200px, 32vh, 320px);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: 0;
}

/* Base: hidden below the container */
.character-img {
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 780px;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s ease, transform 0.8s var(--ease-out-expo);
}

/* Entered: positioned in place (slid up), but invisible */
.character-img.entered {
    transform: translateY(0);
}

/* Visible: faded in */
.character-img.visible {
    opacity: 1;
}

/* ============================================
   CONTACTS / SOCIAL SECTION
   ============================================ */
.contacts-section {
    background: var(--off-white);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 0;
    scroll-margin-top: -5.3rem;
}

.contacts-pinned {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem 1.5rem 0;
    gap: 1.2rem;
    box-sizing: border-box;
}

.contacts-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    color: var(--black);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
    flex-shrink: 0;
    margin: 0;
}

.contacts-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stage: full width, anchored to bottom of viewport */
.contacts-stage {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 300px;
    max-height: 70vh;
    overflow: hidden;
}

/* Truck wrapper — responsive sizing */
.truck-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(calc(-50% - 100vw));
    transition: transform 2s var(--ease-out-expo);
    z-index: 2;
    will-change: transform;
    height: 100%;
}

.truck-wrapper.arrived {
    transform: translateX(-65%);
}

.truck-image {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: bottom;
    position: relative;
    z-index: 2;
}

/* Social parcel assembly — includes trolley + icons block */
.social-parcel-assembly {
    position: absolute;
    bottom: 175px;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    will-change: transform, opacity;
}

/* Slide-out animation state */
.social-parcel-assembly.sliding-out {
    animation: parcelSlideOut 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide out to the right from behind the truck */
@keyframes parcelSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 1;
        transform: translateX(100%);
    }
}

/* Social parcel — 2x2 grid block */
.social-parcel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--light-gray);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Trolley bar — black bar under the parcel simulating a cart */
.parcel-trolley {
    width: 110%;
    height: 6px;
    background: var(--near-black);
    border-radius: 4px;
    margin-top: -2px;
    align-self: flex-start;
    transform: translateX(-20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Individual social icon button */
.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.social-icon-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 18px;
    background: var(--white);
    border: 2px solid var(--light-gray);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.social-icon-btn:hover .social-icon-img {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    border-color: var(--mid-gray);
}

.social-icon-btn:active .social-icon-img {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   CONTACT DETAILS SECTION
   ============================================ */
.contact-details-section {
    background: var(--white);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5rem 1.5rem 3rem;
}

.contact-details-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-details-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.badge-wrapper {
    position: relative;
    width: min(520px, 80vw);
    transform-origin: 50% 0;
    opacity: 0;
    transform: translateY(-180px) rotate(0deg);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.badge-wrapper.animate-in {
    opacity: 1;
    transform: translateY(0) rotate(3deg);
}

.badge-wrapper.animate-in.swinging {
    animation: pendulum 4s ease-in-out infinite;
}

.badge-image {
    display: block;
    width: 100%;
    height: auto;
}

.badge-profile {
    position: absolute;
    top: 46%;
    left: 52%;
    width: 34%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: var(--black);
    font-family: var(--font-body);
    font-size: clamp(0.58rem, 1.45vw, 0.8rem);
    line-height: 1.25;
}

.badge-profile strong {
    font-family: var(--font-display);
    font-size: clamp(0.72rem, 1.8vw, 1rem);
    line-height: 1.1;
}

.badge-profile b {
    font-weight: 700;
}

.badge-details {
    position: absolute;
    top: 80%;
    left: 50%;
    width: 74%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.badge-contact-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
}

.badge-contact-label {
    color: var(--mid-gray);
    font-family: var(--font-body);
    font-size: clamp(0.65rem, 1.4vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.badge-details a {
    color: var(--black);
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.badge-details a:hover {
    text-decoration: underline;
}

@media (min-width: 1001px) {
    .contact-details-section {
        align-items: center;
        padding: 4rem 5vw 5rem;
    }

    .contact-details-content {
        max-width: 1280px;
        min-height: 78vh;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: clamp(3rem, 8vw, 9rem);
    }

    .contact-details-title {
        flex: 1 1 auto;
        max-width: 420px;
        font-size: clamp(4rem, 8vw, 8rem);
        line-height: 0.9;
        letter-spacing: -0.06em;
    }

    .badge-wrapper {
        flex: 0 1 min(560px, 43vw);
        width: min(560px, 43vw);
        margin-right: clamp(1rem, 5vw, 6rem);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 3rem 1.5rem;
}

.footer-main,
.footer-bottom {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: 2rem;
    padding-bottom: 4rem;
}

.footer-logo {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.55;
}

.footer-tagline {
    color: var(--mid-gray);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.75rem;
}

.footer-links a {
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--mid-gray);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--mid-gray);
    display: flex;
    font-size: 0.7rem;
    justify-content: space-between;
    letter-spacing: 0.06em;
    padding-top: 1.25rem;
    text-transform: uppercase;
}

/* ============================================
   MOBILE & TABLET: MAC & INTERACTIVE TERMINAL
   ============================================ */
.mac-contact-wrapper {
    display: none;
    position: relative;
    width: 100%;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.8s var(--ease-out-expo), opacity 0.7s ease;
    will-change: transform, opacity;
}

.mac-contact-wrapper.arrived {
    opacity: 1;
    transform: translateY(0);
}

.mac-figure-container {
    position: relative;
    display: inline-block;
    width: clamp(140px, 42vw, 210px);
    height: auto;
    line-height: 0;
    margin: 0 auto;
}

.mac-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.08));
    user-select: none;
    -webkit-user-drag: none;
}

/* Screen Hotspot over vintage Macintosh monitor with glowing aura */
.mac-screen-hotspot {
    position: absolute;
    left: 17.5%;
    top: 27.8%;
    width: 17.5%;
    height: 10.8%;
    border-radius: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    outline: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.85),
                0 0 24px rgba(255, 255, 255, 0.5),
                inset 0 0 8px rgba(255, 255, 255, 0.7);
    animation: macScreenGlow 2.5s ease-in-out infinite alternate;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.3s ease;
}

.mac-screen-hotspot:hover,
.mac-screen-hotspot:focus-visible {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 1),
                0 0 38px rgba(255, 255, 255, 0.8),
                0 0 55px rgba(255, 255, 255, 0.4),
                inset 0 0 12px rgba(255, 255, 255, 0.9);
}

.mac-screen-hotspot:active {
    transform: scale(0.96);
}

@keyframes macScreenGlow {
    0% {
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.65),
                    0 0 18px rgba(255, 255, 255, 0.4),
                    inset 0 0 6px rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 0 0 18px rgba(255, 255, 255, 1),
                    0 0 35px rgba(255, 255, 255, 0.7),
                    0 0 50px rgba(255, 255, 255, 0.35),
                    inset 0 0 10px rgba(255, 255, 255, 0.85);
        border-color: #ffffff;
    }
    100% {
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.65),
                    0 0 18px rgba(255, 255, 255, 0.4),
                    inset 0 0 6px rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.8);
    }
}

.hotspot-screen-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.15) 70%, transparent 100%);
    pointer-events: none;
}

.hotspot-aura,
.hotspot-glow-ring {
    position: absolute;
    inset: -7px;
    border-radius: 8px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    pointer-events: none;
    animation: auraPulse 2.5s ease-in-out infinite alternate;
}

@keyframes auraPulse {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* ============================================
   RETRO TERMINAL FULLSCREEN MODAL (SITE-COHESIVE)
   ============================================ */
.retro-terminal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    visibility: hidden;
    padding: 1.2rem;
    box-sizing: border-box;
}

.retro-terminal-modal.open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.terminal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: opacity 0.35s ease;
}

.terminal-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    height: 80vh;
    height: 80dvh;
    max-height: 580px;
    display: flex;
    align-items: stretch;
}

.terminal-window {
    width: 100%;
    height: 100%;
    background: #0e0f12;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(18px);
    transition: transform 0.4s var(--ease-out-expo);
}

.retro-terminal-modal.open .terminal-window {
    transform: scale(1) translateY(0);
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    background: #16171b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    user-select: none;
}

.terminal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.term-btn:hover {
    transform: scale(1.15);
}

.term-close {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}

.term-minimize {
    background: #f59e0b;
    opacity: 0.6;
    cursor: default;
}

.term-maximize {
    background: #10b981;
    opacity: 0.6;
    cursor: default;
}

.terminal-title-text {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.01em;
}

.term-icon {
    font-size: 0.9rem;
    color: #ffffff;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
}

.term-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Terminal Body */
.terminal-body {
    flex: 1;
    min-height: 0;
    position: relative;
    padding: 1.1rem 1.3rem 0.9rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(circle at center, #131418 0%, #0a0b0d 100%);
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Monaco, Consolas, monospace;
    color: #e4e4e7;
    cursor: text;
}

/* Subtle CRT Scanlines */
.terminal-scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 4;
    opacity: 0.35;
}

.terminal-glow-fx {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 3;
}

/* Output Stream */
.terminal-output {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 6px;
    margin-bottom: 0.6rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    z-index: 5;
}

.terminal-output::-webkit-scrollbar {
    width: 4px;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-track {
    background: transparent;
}

/* Terminal Line Elements */
.term-line {
    font-size: 0.86rem;
    line-height: 1.55;
    word-break: break-word;
}

.term-banner {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.35rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    padding-bottom: 0.5rem;
}

.term-cmd-row {
    color: #a1a1aa;
    display: flex;
    align-items: center;
    gap: 6px;
}

.term-cmd-row .term-prompt {
    color: #ffffff;
    font-weight: 700;
}

.term-cmd-row .term-user-cmd {
    color: #ffffff;
    font-weight: 600;
}

.term-system-msg {
    color: #a1a1aa;
    font-family: var(--font-body);
    font-size: 0.84rem;
}

.term-error-msg {
    color: #f87171;
    font-weight: 600;
}

.term-success-msg {
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.88rem;
}

.term-highlight {
    color: #ffffff;
    font-weight: 600;
}

.term-accent {
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* Social Card in Terminal Output (Clean Site Style) */
.term-social-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.8rem 1.1rem;
    margin: 0.35rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.term-social-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.07);
}

.term-social-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.term-social-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: -0.01em;
}

.term-social-handle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #a1a1aa;
    font-weight: 300;
}

.term-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1.15rem;
    background: var(--white);
    color: var(--black) !important;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.term-action-link:hover {
    background: #f4f4f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.term-action-link:active {
    transform: scale(0.96);
}

/* Command Quick Chips Bar (Site Cohesive) */
.terminal-quick-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    z-index: 5;
    overflow: hidden;
}

.quick-chips-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    white-space: nowrap;
}

.chips-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.chips-scroll::-webkit-scrollbar {
    display: none;
}

.term-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #f4f4f5;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.term-chip:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0a0a0a;
    transform: translateY(-1px);
}

.term-chip:active {
    transform: scale(0.95);
}

.term-chip.chip-exit {
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.term-chip.chip-exit:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

/* Prompt Line Form */
.terminal-prompt-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    z-index: 5;
}

.terminal-prompt-label {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    user-select: none;
}

.terminal-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.terminal-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0;
    margin: 0;
    caret-color: #ffffff;
}

.terminal-input::selection {
    background: #ffffff;
    color: #0a0a0a;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ── Tablet landscape / small desktop ────────── */
@media (max-width: 1000px) {
    .hero-content {
        padding: 0 2rem;
    }

    .hero-image-wrapper {
        height: 65vh;
    }

    .hero-text {
        padding-bottom: 38vh;
    }

    .skills-image-col {
        width: 340px;
    }

    .hanging-image {
        width: 320px;
    }
}

/* ── Tablet portrait / large phones ──────────── */
@media (max-width: 800px) {

    .fall-transition {
        left: 50%;
        width: min(240px, 60vw);
    }

    /* ── Hero: vertical stack with cohesive text on top and character on bottom ── */
    .hero-section {
        align-items: flex-end;
        justify-content: center;
        height: 100vh;
        height: 100dvh;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        padding: 0 1.5rem;
        height: 100%;
    }

    .hero-text {
        padding-bottom: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }

    .hero-text-left {
        text-align: center;
        margin-right: 0;
        order: 1;
        padding-top: clamp(4.5rem, 10vh, 6rem);
        margin-bottom: clamp(0.5rem, 2vh, 1.5rem);
    }

    .hero-name {
        font-size: clamp(2.5rem, 7.5vw, 3.7rem);
        line-height: 1.08;
        text-align: center;
    }

    .hero-label {
        font-size: clamp(1.35rem, 4.4vw, 1.85rem);
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--mid-gray);
        line-height: 1.2;
        text-align: center;
    }

    .hero-image-wrapper {
        order: 3;
        width: 100%;
        height: auto;
        margin-right: 0;
        max-height: 56vh;
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-image {
        height: 100%;
        width: auto;
        max-width: min(85vw, 420px);
        max-height: 100%;
        object-fit: contain;
        object-position: bottom center;
    }

    /* ── Skills ── */
    .skills-layout {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .skills-content-col {
        display: contents;
    }

    .skills-title {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }

    .skills-image-col {
        order: 2;
        width: 260px;
        display: flex;
        justify-content: center;
        margin-top: -8px;
        margin-bottom: 1.5rem;
    }

    .hanging-wrapper {
        transform-origin: 48.5% 0px;
    }

    .hanging-image {
        width: 240px;
    }

    .skills-grid {
        order: 3;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* ── Projects (Tablet) — sticky scroll + character switch ── */
    .projects-section {
        height: 150vh;
        min-height: auto;
        padding-bottom: 0;
    }

    .projects-pinned {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100dvh;
        padding: clamp(4rem, 8vh, 5rem) 1.5rem 0;
        justify-content: space-between;
        gap: 1rem;
    }

    .projects-title {
        margin-bottom: 0;
    }

    .projects-boxes {
        gap: 1rem;
        max-width: 620px;
    }

    .projects-character {
        width: 100%;
        max-width: 500px;
        height: clamp(180px, 30vh, 260px);
        flex-shrink: 0;
        min-height: 0;
        margin-top: auto;
        margin-bottom: 0;
    }

    .character-img {
        max-width: 480px;
    }

    .projects-section.social-exit .character-img {
        opacity: 0;
        transform: translateY(100%);
    }

    /* ── Contacts (Tablet) ── */
    .truck-wrapper {
        display: none !important;
    }

    .contacts-section {
        min-height: auto;
        height: auto;
        padding: 2.5rem 0 2rem;
    }

    .contacts-pinned {
        min-height: auto;
        height: auto;
        justify-content: flex-start;
        padding: 0 1.2rem;
        gap: 1.4rem;
    }

    .contacts-stage {
        min-height: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .mac-contact-wrapper {
        display: flex;
    }

    .mac-figure-container {
        width: clamp(140px, 35vw, 190px);
        max-height: none;
    }

    .contact-details-section {
        min-height: auto;
        padding: 3rem 1rem 4rem;
    }

    .badge-wrapper {
        width: min(430px, 88vw);
    }

    .site-footer {
        padding: 3rem 1.5rem 1.25rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding-bottom: 3rem;
    }

    .footer-links {
        justify-content: flex-start;
        grid-column: 1 / -1;
    }
}

/* ── Phones ──────────────────────────────────── */
@media (max-width: 600px) {

    /* ── Nav: hamburger menu ── */
    #main-nav {
        padding: 1.2rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease-out-expo);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.4rem;
        color: var(--black);
    }

    /* ── Hero: phone optimization ── */
    .hero-content {
        padding: 0 1rem;
    }

    .hero-text-left {
        padding-top: clamp(4.2rem, 9vh, 5.2rem);
        margin-bottom: 0.6rem;
    }

    .hero-name {
        font-size: clamp(2.1rem, 8.8vw, 2.8rem);
        line-height: 1.08;
    }

    .hero-label {
        font-size: clamp(1.05rem, 4vw, 1.4rem);
        letter-spacing: 0.16em;
        font-weight: 700;
    }

    .hero-image-wrapper {
        max-height: 54vh;
    }

    .hero-image {
        width: auto;
        max-width: 86vw;
        max-height: 100%;
    }

    /* ── Skills: single column, full-width cards ── */
    .skills-section {
        padding: 2.5rem 1.2rem 3rem;
    }

    .skills-title {
        text-align: center;
        margin-bottom: 0;
        font-size: clamp(2.2rem, 9vw, 2.8rem);
    }

    .skills-image-col {
        width: 210px;
        margin-top: -10px;
        margin-bottom: 1.2rem;
    }

    .hanging-image {
        width: 190px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .skill-card {
        padding: 1.4rem 1.5rem;
    }

    /* ── Projects: compact cards + visible character ── */
    .projects-section {
        height: 160vh;
    }

    .projects-pinned {
        padding: clamp(3.6rem, 7vh, 4.4rem) 1rem 0;
        justify-content: space-between;
        gap: 0.6rem;
    }

    .projects-title {
        margin-bottom: 0;
        font-size: clamp(2rem, 8.5vw, 2.7rem);
    }

    .projects-boxes {
        gap: 0.7rem;
        max-width: 100%;
    }

    .project-box {
        max-width: calc(50% - 0.35rem);
    }

    .project-preview {
        aspect-ratio: 16 / 11;
    }

    .project-info {
        padding: 0.55rem 0.75rem;
    }

    .project-name {
        font-size: 0.82rem;
    }

    .project-arrow {
        font-size: 1rem;
    }

    .projects-character {
        width: 100%;
        max-width: 380px;
        height: clamp(140px, 26vh, 210px);
        flex-shrink: 0;
        min-height: 0;
        margin-top: auto;
        margin-bottom: 0;
    }

    .character-img {
        max-width: 100%;
    }

    /* ── Contacts (Phones) ── */
    .contacts-section {
        min-height: auto;
        height: auto;
        padding: 2rem 0 1.5rem;
    }

    .contacts-pinned {
        min-height: auto;
        height: auto;
        justify-content: flex-start;
        padding: 0 1rem;
        gap: 1.1rem;
    }

    .contacts-stage {
        min-height: auto;
        height: auto;
        max-height: none;
        overflow: visible;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .mac-figure-container {
        width: clamp(160px, 55vw, 250px);
        max-height: none;
    }

    .contact-details-section {
        padding: 2.5rem 1rem 3rem;
    }

    .contact-details-content {
        gap: 1rem;
    }

    .badge-wrapper {
        width: min(360px, 92vw);
    }

    .site-footer {
        padding: 2.5rem 1rem 1.25rem;
    }

    .footer-main {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding-bottom: 2.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 0.8rem 1.25rem;
    }

    .badge-details {
        gap: 0.3rem;
    }

    /* Terminal on Mobile */
    .retro-terminal-modal {
        padding: 0.6rem;
    }

    .terminal-wrapper {
        height: 90vh;
        height: 90dvh;
        max-height: none;
    }

    .terminal-window {
        border-radius: 14px;
    }

    .terminal-header {
        padding: 0.65rem 0.9rem;
    }

    .terminal-title-text {
        font-size: 0.75rem;
    }

    .terminal-body {
        padding: 0.85rem 0.9rem 0.75rem;
        font-size: 0.82rem;
    }

    .term-social-card {
        padding: 0.65rem 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .term-action-link {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ── Small phones ────────────────────────────── */
@media (max-width: 380px) {
    .projects-pinned {
        padding: 3.2rem 0.8rem 0;
        gap: 0.4rem;
    }

    .projects-character {
        height: clamp(120px, 24vh, 170px);
    }

    .contacts-section {
        padding: 1.6rem 0 1rem;
    }

    .contacts-pinned {
        padding: 0 0.8rem;
        gap: 0.9rem;
    }

    .mac-figure-container {
        width: clamp(145px, 52vw, 215px);
    }

    .badge-wrapper {
        width: 94vw;
    }

    .terminal-wrapper {
        height: 94vh;
        height: 94dvh;
    }

    .terminal-body {
        padding: 0.7rem 0.75rem 0.65rem;
        font-size: 0.78rem;
    }

    .terminal-prompt-label {
        font-size: 0.8rem;
    }

    .term-chip {
        font-size: 0.72rem;
        padding: 0.22rem 0.55rem;
    }
}