/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #bfbdbb;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #302e2c;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container */
.rtc-container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #bfbdbb;
    overflow: hidden;
    /* Keep hidden to maintain the specific cropping if needed, but allow scroll if content overflows height */
}

/* Header */
.header {
    position: relative;
    /* Changed from absolute to relative to sit naturally */
    width: 100%;
    height: 241px;
    background-color: #111c76;
    color: #b6b8b9;
    overflow: hidden;
}

/* "Portfolio" text */
.portfolio-title {
    position: absolute;
    top: 50%;
    right: 508px;
    transform: translate(100%, -50%);
    /* Right aligned and vertically centered */
    margin-top: 0;
    font-family: 'Rubik 80s Fade', display;
    font-size: clamp(48px, 8vw, 96px);
    /* Fluid typography */
    line-height: 1;
    font-weight: 400;
    white-space: nowrap;
    opacity: 1;
}

/* Brand Section: "respectthecraft. studio" */
.brand {
    position: absolute;
    top: 50%;
    /* Vertically centered */
    left: 40px;
    transform: translateY(-50%);
    /* Vertically centered */
    max-width: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(48px, 8vw, 96px);
    /* Fluid typography */
    line-height: 1;
    letter-spacing: -0.96px;
    color: #b6b8b9;
    width: 100%;
}

.brand-studio {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(16px, 2.5vw, 32px);
    /* Fluid typography */
    letter-spacing: 0.64px;
    color: #b6b8b9;
    width: 100%;
    margin-top: 0;
}

/* Content / Main List */
.content {
    position: relative;
    /* Changed to relative */
    margin-top: 40px;
    /* Gap from header */
    padding-left: 40px;
    /* Left alignment */
    display: flex;
    flex-direction: column;
    gap: 56px;
    width: 100%;
    max-width: 1360px;
    /* Match underline width/design */
}

.list-item,
.footer-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

/* Portfolio Links */
.portfolio-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #302e2c;
    width: 100%;
    max-width: 1312px;
}

.portfolio-link.empty {
    height: 48px;
}

.link-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 5vw, 48px);
    /* Fluid typography */
    letter-spacing: -0.48px;
    flex-grow: 1;
}

.icon {
    width: 48px;
    height: 48px;
    display: block;
    flex-shrink: 0;
}

/* Underline */
.underline {
    position: relative;
    width: 100%;
    max-width: 1360px;
    height: 0;
}

.underline-img {
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: auto;
    display: block;
}

/* Footer Specifics */
/* Footer Specifics */
.footer-text-container {
    display: flex;
    align-items: baseline;
    width: 100%;
    margin-bottom: 8px;
    /* space before underline */
    min-width: 0;
    /* Allow flex shrinking */
}

.footer-dots {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 4vw, 48px);
    /* Fluid typography */
    letter-spacing: -0.48px;
    color: #898079;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 1;
    /* Allow dots to shrink */
    direction: rtl;
    /* Truncate from the left side */
    text-align: right;
    min-width: 0;
}

.footer-msg {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 4vw, 48px);
    /* Fluid typography */
    letter-spacing: -0.48px;
    color: #898079;
    white-space: nowrap;
    flex-shrink: 0;
    /* Do not shrink the message */
    padding-left: 0;
}

.crafts {
    color: #302e2c;
}

/* Media Queries for better responsiveness on small screens */
@media (max-width: 1024px) {
    .brand-name {
        font-size: 64px;
    }

    .brand-studio {
        font-size: 24px;
        letter-spacing: 20px;
    }

    .header {
        height: auto;
        min-height: 241px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 24px 0;
    }

    .brand-name {
        font-size: clamp(48px, 8vw, 64px);
    }

    .brand-studio {
        font-size: clamp(16px, 3vw, 24px);
    }

    .portfolio-title {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-top: 16px;
        align-self: flex-start;
        /* Left align */
        padding-left: 40px;
        /* Match brand padding */
        padding-right: 0;
        text-align: left;
        /* Left align */
        width: 100%;
        order: 1;
        /* Move below brand */
    }

    .brand {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: 100%;
        padding-left: 40px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .portfolio-link {
        gap: 12px;
    }

    .icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .header {
        position: relative;
        padding: 40px 0 40px;
        display: block !important;
        /* Force block to disable flex */
    }

    .brand {
        padding-left: 20px;
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        display: block;
    }

    .brand-name {
        font-size: 48px;
        margin-bottom: 4px;
    }

    .brand-studio {
        font-size: 16px;
        letter-spacing: 0.64px;
        margin-left: 4px;
    }

    .portfolio-title {
        position: absolute !important;
        width: auto !important;
        right: 20px !important;
        bottom: 40px !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0;
        padding: 0;
        font-size: 20px !important;
        /* Force small label size */
        text-align: right !important;
        opacity: 0.8;
        align-self: auto !important;
    }

    .content {
        margin-top: 16px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 32px;
    }

    .link-text {
        font-size: 24px;
    }
}