/* =========================================================
   SHUVRO SARKER — PORTFOLIO
   RESPONSIVE DESIGN SYSTEM
========================================================= */

:root {
    --bg: #f7f7f4;
    --paper: #fcfcfa;

    --text: #171817;
    --muted: #666963;
    --light: #92958f;

    --line: #dcded8;
    --line-dark: #c5c8c1;

    --accent: #b84232;

    --sans: "DM Sans", sans-serif;
    --mono: "IBM Plex Mono", monospace;

    --sidebar: 250px;

    --content-max: 1180px;

    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 35px;
    --space-xl: 55px;
    --space-xxl: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

bbody {
    background-color: #f7f7f4;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,0,0,.025) 0 1px, transparent 1.5px),
        radial-gradient(circle at 70% 60%, rgba(0,0,0,.018) 0 1px, transparent 1.5px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,.35) 0 1px, transparent 1.5px);
    background-size: 5px 5px, 7px 7px, 9px 9px;
    background-position: 0 0, 2px 3px, 4px 1px;

    color: var(--text);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

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


/* =========================================================
   01. LAYOUT
========================================================= */

.layout {
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    min-height: 100vh;
}

.main {
    grid-column: 2;
    min-width: 0;
    width: 100%;
}

.content {
    width: min(100%, var(--content-max));
    margin: 0 auto;
    padding: 0 clamp(36px, 5vw, 82px);
}


/* =========================================================
   02. SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    width: var(--sidebar);
    height: 100vh;

    padding: 40px 30px;

    display: flex;
    flex-direction: column;

    background: var(--bg);
    border-right: 1px solid var(--line);

    z-index: 100;
}


/* Identity */

.identity {
    display: block;
    margin-bottom: 58px;
}

.monogram {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    background: var(--text);
    color: white;

    font-family: var(--mono);
    font-size: 12px;

    transition:
        background .2s ease,
        transform .2s ease;
}

.identity:hover .monogram {
    background: var(--accent);
    transform: rotate(-4deg);
}

.name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.03em;
}

.role {
    margin-top: 6px;

    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.6;

    color: var(--accent);
}


/* =========================================================
   03. MOBILE MENU
========================================================= */

.mobile-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--line);
    background: transparent;

    color: var(--text);

    cursor: pointer;

    font-family: var(--mono);
    font-size: 18px;
}


/* =========================================================
   04. INDEX
========================================================= */

.index-label {
    margin-bottom: 14px;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;

    color: var(--light);
}

.index {
    display: flex;
    flex-direction: column;
}

.index a {
    position: relative;

    padding: 10px 0;

    border-bottom: 1px solid var(--line);

    font-family: var(--mono);
    font-size: 10px;

    color: var(--muted);

    transition:
        color .2s ease,
        padding-left .2s ease;
}

.index a span {
    display: inline-block;
    width: 30px;
    color: var(--light);
}

.index a:hover {
    padding-left: 7px;
    color: var(--accent);
}

.index a.active {
    color: var(--accent);
}


/* =========================================================
   05. SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
    margin-top: auto;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sidebar-links a {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--muted);

    transition: color .2s ease;
}

.sidebar-links a:hover {
    color: var(--accent);
}

.sidebar-status {
    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid var(--line);

    font-family: var(--mono);
    font-size: 8px;

    color: var(--light);
}

.status-dot {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 6px;

    border-radius: 50%;
    background: var(--accent);

    animation: pulse 2.5s infinite;
}


/* =========================================================
   06. HERO / PROFILE
========================================================= */

.hero {
    min-height: 100vh;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}


/* Cover */

.profile-cover {
    position: relative;

    width: 100%;
    height: clamp(280px, 25vw, 350px);

    overflow: hidden;

    border: 1px solid var(--line);
    background: #eeeeeb;
}

.cover-grid {
    width: 100%;
    height: 100%;
}

.cover-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   07. PROFILE HEADER
========================================================= */

.profile-header {
    position: relative;

    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 30px;

    padding: 0 0 30px;

    border-bottom: 1px solid var(--line);
}

.profile-photo-wrap {
    position: relative;

    width: 145px;
    height: 145px;

    margin-top: -72px;
    margin-left: 10px;

    z-index: 3;

    padding: 1px;

    border: 1px solid var(--line-dark);
    border-radius: 50%;

    background: var(--bg);
}

.profile-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}


/* Profile content */

.profile-main {
    padding-top: 22px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-name-row h1 {
    font-size: clamp(36px, 3.2vw, 48px);
    line-height: 1.05;

    font-weight: 600;
    letter-spacing: -.055em;
}

.profile-verified {
    width: 20px;
    height: 20px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--accent);
    color: white;

    font-size: 11px;
    font-weight: 700;
}

.profile-role {
    margin-top: 8px;

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .04em;

    color: var(--accent);
}

.profile-specialties {
    max-width: 760px;

    margin-top: 12px;

    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.65;

    color: var(--muted);
}

.profile-location {
    margin-top: 6px;

    font-family: var(--mono);
    font-size: 9px;

    color: var(--light);
}


/* =========================================================
   08. PROFILE ACTIONS
========================================================= */

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 19px;

    border: 1px solid var(--line);

    background: transparent;
    color: var(--text);

    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .08em;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.button.primary {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

.button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}


/* =========================================================
   09. PROFILE HIGHLIGHTS
========================================================= */

.profile-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-bottom: 1px solid var(--line);
}

.profile-highlight {
    min-height: 145px;
    padding: 24px 25px 25px 0;
}

.profile-highlight + .profile-highlight {
    padding-left: 25px;
    border-left: 1px solid var(--line);
}

.profile-highlight h3 {
    margin-top: 11px;

    font-size: 14px;
    line-height: 1.55;

    font-weight: 500;
    font-style: italic;

    letter-spacing: .02em;
}

.profile-highlight p {
    margin-top: 7px;

    font-size: 12px;
    line-height: 1.65;

    color: var(--muted);
}

.quote-text {
    font-family: Georgia, serif;
    font-style: italic;
}

.quote-author {
    display: inline-block;

    margin-top: 6px;

    font-family: var(--sans);
    font-size: 10px;
    font-style: normal;
    font-weight: 600;

    letter-spacing: .04em;
    text-transform: uppercase;

    color: var(--accent);
}


/* =========================================================
   10. PROFILE SKILLS
========================================================= */

.profile-about {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 30px;

    padding: 32px 0;

    border-bottom: 1px solid var(--line);
}

.profile-about-label {
    padding-top: 4px;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;

    color: var(--accent);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 10px;

    border: 1px solid var(--line-dark);
    border-radius: 999px;

    font-family: var(--mono);
    font-size: 11px;

    color: var(--text);
    font-weight: 500;

    transition:
        border-color .2s ease,
        color .2s ease;
}

.skill-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.skill-icon {
    width: 14px;
    height: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 14px;

    font-size: 7px;
}


/* =========================================================
   11. SECTION SYSTEM
========================================================= */

.section {
    padding: clamp(65px, 6vw, 90px) 0;
    border-bottom: 1px solid var(--line);
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    margin-bottom: clamp(38px, 4vw, 55px);
}

.section-number {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
}

.section-title {
    margin-left: 13px;

    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
}

.section-note {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--light);
}


------------------------------extra----------------------

/* =====================================================
   PROFILE — ORGANIZED BIOGRAPHY
===================================================== */

.about-profile {
    margin-top: 10px;
    border-top: 1px solid var(--line);
}

.profile-block {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 30px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.profile-block-label {
    padding-top: 4px;

    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .09em;

    color: var(--accent);
}

.profile-block-content {
    max-width: 780px;
}

.profile-block-content p {
    margin: 0;

    font-size: 15px;
    line-height: 1.75;

    color: var(--muted);
}

.profile-block-content p + p {
    margin-top: 8px;
}

.profile-block-content .profile-lead {
    margin-bottom: 5px;

    font-size: 21px;
    line-height: 1.35;

    color: var(--text);
    letter-spacing: -.025em;
}

.profile-block-content strong {
    color: var(--text);
    font-weight: 600;
}

----------------------------------------------------------

/* =========================================================
   12. ABOUT
========================================================= */

.about-grid {
    display: block;
    padding: 0;
}

.about-small {
    max-width: 850px;

    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.85;

    color: var(--muted);
}


/* =========================================================
   13. ENGINEERING
========================================================= */

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

    border-top: 1px solid var(--line);
}

.skill {
    padding: 30px 25px 35px 0;

    border-bottom: 1px solid var(--line);
}

.skill:nth-child(odd) {
    padding-right: 40px;
    border-right: 1px solid var(--line);
}

.skill:nth-child(even) {
    padding-left: 40px;
}

.skill-number {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--light);
}

.skill h3 {
    margin-top: 13px;
    color: #b84232;
    font-size: clamp(20px, 10vw, 23px);
    line-height: 1.15;

    font-weight: 500;
    letter-spacing: -.035em;
}

.skill p {
    max-width: 430px;

    margin-top: 10px;

    font-size: clamp(14px, 1vw, 15px);
    line-height: 1.7;

    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 17px;
}

.tag {
    padding: 6px 8px;

    border: 1px solid var(--line-dark);

    font-family: var(--text);
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}


/* =========================================================
   14. RESEARCH
========================================================= */

.research-item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);

    padding: 30px 0;

    border-top: 1px solid var(--line);
}

.research-year {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--light);
}

.research-item h3 {
    font-size: clamp(23px, 2vw, 28px);
    line-height: 1.2;

    font-weight: 500;
    letter-spacing: -.035em;
}

.research-item p {
    max-width: 700px;

    margin-top: 9px;

    font-size: clamp(14px, 1vw, 15px);
    line-height: 1.75;

    color: var(--muted);
}

.research-state {
    display: inline-block;

    margin-top: 13px;

    font-family: var(--mono);
    font-size: 8px;

    color: var(--accent);
}


/* =========================================================
   15. PROJECTS
========================================================= */

.project {
    padding: 42px 0;
    border-top: 1px solid var(--line);
}

.project-top {
    display: flex;
    justify-content: space-between;

    font-family: var(--mono);
    font-size: 9px;

    color: var(--light);
}

.project-type {
    color: var(--accent);
}

.project h3 {
    margin-top: 18px;

    font-size: clamp(32px, 3.2vw, 44px);
    line-height: 1.05;

    font-weight: 500;
    letter-spacing: -.05em;
}

.project-description {
    max-width: 700px;

    margin-top: 12px;

    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.75;

    color: var(--muted);
}


/* =========================================================
   16. PROJECT VISUAL
========================================================= */

.project-visual {
    position: relative;

    height: clamp(280px, 27vw, 360px);

    margin-top: 28px;

    overflow: hidden;

    border: 1px solid var(--line-dark);

    background-color: #eeeeeb;

    background-image:
        linear-gradient(
            90deg,
            transparent 49.7%,
            #d2d3ce 50%,
            transparent 50.3%
        ),
        linear-gradient(
            transparent 49.7%,
            #d2d3ce 50%,
            transparent 50.3%
        );

    background-size: 70px 70px;
}

.project-visual::after {
    content: "";

    position: absolute;

    top: 0;
    left: -10%;

    width: 2px;
    height: 100%;

    background: var(--accent);

    opacity: .5;

    animation: scan 6s infinite;
}


/* Project diagram */

.core {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 130px;
    height: 130px;

    transform:
        translate(-50%, -50%)
        rotate(45deg);

    border: 1px solid #777a73;

    transition: transform .4s ease;
}

.core::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 55px;
    height: 55px;

    transform: translate(-50%, -50%);

    border: 1px solid var(--accent);
}

.project-visual:hover .core {
    transform:
        translate(-50%, -50%)
        rotate(135deg);
}

.visual-label {
    position: absolute;

    font-family: var(--mono);
    font-size: 8px;

    color: #777a73;
}

.visual-label.top {
    top: 18px;
    left: 18px;
}

.visual-label.bottom {
    right: 18px;
    bottom: 18px;

    color: var(--accent);
}


/* =========================================================
   17. PROJECT FOOTER
========================================================= */

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 18px;
}

.project-stack {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--muted);
}

.project-links {
    display: flex;
    gap: 20px;

    font-family: var(--mono);
    font-size: 9px;
}

.project-links a {
    color: var(--muted);
}

.project-links a:hover {
    color: var(--accent);
}


/* =========================================================
   18. EXPERIENCE
========================================================= */

.experience {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);

    padding: 32px 0;

    border-top: 1px solid var(--line);
}

.experience-date {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--light);
}

.experience h3 {
    font-size: clamp(24px, 2vw, 29px);
    line-height: 1.2;

    font-weight: 500;
    letter-spacing: -.035em;
}

.company {
    margin-top: 4px;

    font-family: var(--mono);
    font-size: 10px;

    color: var(--accent);
}

.experience p {
    max-width: 680px;

    margin-top: 12px;

    font-size: clamp(14px, 1vw, 15px);
    line-height: 1.75;

    color: var(--muted);
}


/* =========================================================
   19. EDUCATION
========================================================= */

.education {
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.education h3 {
    font-size: clamp(25px, 2vw, 29px);
    line-height: 1.2;

    font-weight: 500;
}

.education-school {
    margin-top: 6px;

    font-family: var(--mono);
    font-size: 10px;

    color: var(--accent);
}

.education p {
    margin-top: 12px;

    font-size: 14px;
    line-height: 1.7;

    color: var(--muted);
}


/* =========================================================
   20. PUBLICATIONS
========================================================= */

.paper {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.paper-number {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--light);
}

.paper h3 {
    margin-top: 8px;

    font-size: clamp(19px, 1.5vw, 22px);
    line-height: 1.3;

    font-weight: 500;
}

.paper-meta {
    margin-top: 6px;

    font-family: var(--mono);
    font-size: 9px;

    color: var(--muted);
}

.paper a {
    display: inline-block;

    margin-top: 12px;

    font-family: var(--mono);
    font-size: 9px;

    color: var(--accent);
}

.paper a:hover {
    text-decoration: underline;
}


/* =========================================================
   21. CONTACT
========================================================= */

.contact {
    padding: 20px 0 120px;
}

.contact h2 {
    max-width: 760px;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;

    font-weight: 500;
    letter-spacing: -.06em;
}

.contact p {
    max-width: 620px;

    margin-top: 22px;

    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.7;

    color: var(--muted);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 30px;
}


/* =========================================================
   22. FOOTER
========================================================= */

.footer {
    display: flex;
    justify-content: space-between;

    padding: 32px 0;

    font-family: var(--mono);
    font-size: 8px;

    color: var(--light);
}


/* =========================================================
   23. ERROR
========================================================= */

.json-error {
    padding: 40px;

    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.7;

    color: var(--accent);
}


/* =========================================================
   24. ANIMATIONS
========================================================= */

@keyframes pulse {
    0%,
    100% {
        opacity: .3;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes scan {
    0% {
        left: -10%;
        opacity: 0;
    }

    15% {
        opacity: .5;
    }

    60% {
        left: 110%;
    }

    75%,
    100% {
        opacity: 0;
    }
}


/* =========================================================
   25. TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 1100px) {

    :root {
        --sidebar: 225px;
    }

    .sidebar {
        padding-left: 25px;
        padding-right: 25px;
    }

    .content {
        padding-left: 42px;
        padding-right: 42px;
    }

    .profile-cover {
        height: 290px;
    }

    .profile-header {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 25px;
    }

    .profile-photo-wrap {
        width: 125px;
        height: 125px;

        margin-top: -62px;
    }

    .profile-name-row h1 {
        font-size: 38px;
    }

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

    .skill:nth-child(odd) {
        padding-right: 28px;
    }

    .skill:nth-child(even) {
        padding-left: 28px;
    }
}


/* =========================================================
   26. TABLET PORTRAIT
========================================================= */

@media (max-width: 900px) {

    :root {
        --sidebar: 205px;
    }

    .sidebar {
        padding: 32px 22px;
    }

    .identity {
        margin-bottom: 45px;
    }

    .content {
        padding-left: 32px;
        padding-right: 32px;
    }

    .profile-cover {
        height: 260px;
    }

    .profile-header {
        grid-template-columns: 115px minmax(0, 1fr);
        gap: 22px;
    }

    .profile-photo-wrap {
        width: 115px;
        height: 115px;

        margin-top: -57px;
    }

    .profile-name-row h1 {
        font-size: 34px;
    }

    .profile-specialties {
        font-size: 13px;
    }

    .section {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .section-header {
        margin-bottom: 38px;
    }

    .skill h3 {
        font-size: 23px;
    }

    .project h3 {
        font-size: 32px;
    }

    .project-visual {
        height: 290px;
    }
}


/* =========================================================
   27. MOBILE
========================================================= */

@media (max-width: 700px) {

    :root {
        --sidebar: 100%;
    }

    .layout {
        display: block;
    }

    .sidebar {
        position: sticky;
        top: 0;

        width: 100%;
        height: auto;
        min-height: 72px;

        padding: 15px 20px;

        display: block;

        border-right: 0;
        border-bottom: 1px solid var(--line);

        z-index: 1000;
    }


    /* Identity */

    .identity {
        display: grid;

        grid-template-columns: 42px 1fr;

        column-gap: 12px;
        align-items: center;

        width: calc(100% - 55px);

        margin: 0;
    }

    .monogram {
        grid-row: span 2;

        width: 42px;
        height: 42px;

        margin: 0;

        font-size: 11px;
    }

    .name {
        font-size: 15px;
    }

    .role {
        margin-top: 2px;

        font-size: 7px;
        line-height: 1.4;
    }


    /* Hamburger */

    .mobile-menu-toggle {
        position: absolute;

        top: 15px;
        right: 20px;

        display: grid;
        place-items: center;

        padding: 0;

        line-height: 1;
    }


    /* Navigation */

    .index-label,
    .index,
    .sidebar-bottom {
        display: none;
    }

    .sidebar.menu-open .index-label {
        display: block;

        margin-top: 25px;
        margin-bottom: 12px;
    }

    .sidebar.menu-open .index {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        margin-bottom: 25px;
    }

    .sidebar.menu-open .sidebar-bottom {
        display: block;
        padding-bottom: 5px;
    }


    /* Main */

    .main {
        width: 100%;
        margin: 0;
    }

    .content {
        width: 100%;
        padding: 0 20px;
    }


    /* About */

    .hero {
        min-height: auto;
    }

    .profile-cover {
        height: 240px;
    }

    .profile-header {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 25px;
    }

    .profile-photo-wrap {
        width: 112px;
        height: 112px;

        margin-top: -56px;
        margin-left: 18px;
    }

    .profile-main {
        padding-top: 18px;
    }

    .profile-name-row h1 {
        font-size: 31px;
    }

    .profile-verified {
        width: 17px;
        height: 17px;
        font-size: 9px;
    }

    .profile-role {
        font-size: 8px;
    }

    .profile-specialties {
        width: 100%;
        font-size: 11px;
        line-height: 1.6;
    }

    .profile-location {
        font-size: 8px;
    }

    .profile-actions {
        gap: 7px;
    }

    .profile-actions .button {
        padding: 9px 13px;
        font-size: 8px;
    }


    /* Quotes */

    .profile-highlights {
        grid-template-columns: 1fr;
    }

    .profile-highlight {
        min-height: auto;
        padding: 20px 0;
    }

    .profile-highlight + .profile-highlight {
        padding-left: 0;

        border-left: 0;
        border-top: 1px solid var(--line);
    }


    /* Skills */

    .profile-about {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 27px 0;
    }


    /* Sections */

    .section {
        padding: 65px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-note {
        display: none;
    }


    /* About */

    .about-small {
        font-size: 14px;
        line-height: 1.8;
    }


    /* Engineering */

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

    .skill,
    .skill:nth-child(odd),
    .skill:nth-child(even) {
        padding: 28px 0;
        border-right: 0;
    }

    .skill h3 {
        font-size: 23px;
    }


    /* Research */

    .research-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .research-item h3 {
        font-size: 22px;
    }


    /* Projects */

    .project {
        padding: 35px 0;
    }

    .project h3 {
        font-size: 31px;
    }

    .project-description {
        font-size: 14px;
    }

    .project-visual {
        height: 250px;
    }

    .project-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }


    /* Experience */

    .experience {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .experience h3 {
        font-size: 23px;
    }


    /* Education */

    .education h3 {
        font-size: 24px;
    }


    /* Contact */

    .contact {
        padding-bottom: 90px;
    }

    .contact h2 {
        font-size: 42px;
    }


    /* Footer */

    .footer {
        flex-direction: column;
        gap: 10px;
        padding: 28px 0;
    }
}


/* =========================================================
   28. SHORT LAPTOP SCREENS
   Prevents the desktop design from feeling oversized
   vertically on 1366×768 / 1440×800 displays.
========================================================= */

@media (min-width: 701px) and (max-height: 820px) {

    .sidebar {
        padding-top: 30px;
        padding-bottom: 28px;
    }

    .identity {
        margin-bottom: 42px;
    }

    .index a {
        padding: 8px 0;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .section-header {
        margin-bottom: 38px;
    }

    .profile-cover {
        height: 280px;
    }

    .project-visual {
        height: 280px;
    }
}


/* =========================================================
   29. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}