
/* ==========================================================
   TESOS GLOBAL — PORTFOLIO REDESIGN
   TESOS-inspired design system

   Version: 1.0.0
   Scope: body.tesos-portfolio

   Migration strategy:
   - Keep existing style.css unchanged.
   - Keep existing script.js unchanged.
   - Load this file AFTER style.css.
   - Preserve all existing portfolio image paths.
========================================================== */

/* DESIGN TOKENS */

body.tesos-portfolio {
    --p-primary: #ED174C;
    --p-primary-hover: #D41143;
    --p-black: #111111;
    --p-dark: #15151E;
    --p-white: #FFFFFF;
    --p-gray: #777777;
    --p-light: #F5F5F6;
    --p-border: #EEEEEE;

    margin: 0;
    background: var(--p-white);
    color: var(--p-black);
    font-family: "Inter", sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.tesos-portfolio *,
.tesos-portfolio *::before,
.tesos-portfolio *::after {
    box-sizing: border-box;
}

.tesos-portfolio .container {
    width: min(1120px, calc(100% - 48px));
    max-width: none;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
}

.tesos-portfolio a {
    -webkit-tap-highlight-color: transparent;
}

.tesos-portfolio a:focus-visible,
.tesos-portfolio button:focus-visible {
    outline: 3px solid var(--p-primary);
    outline-offset: 4px;
}

/* ==========================================================
   HEADER
========================================================== */

.tesos-portfolio .portfolio-header {
    position: relative;
    z-index: 50;
    padding: 24px 0 0;
    background: var(--p-white);
}

.tesos-portfolio .header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    min-height: 66px;
    padding: 10px 18px;

    background: var(--p-white);
    border: 1px solid var(--p-border);
    border-radius: 12px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, .045);
}

.tesos-portfolio .logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.tesos-portfolio .logo img {
    display: block;
    width: auto;
    max-width: 160px;
    height: 50px;
    object-fit: contain;
}

.tesos-portfolio .portfolio-header-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.tesos-portfolio .header-work-link {
    color: var(--p-black);
    font-size: 18px;
    font-weight: 100;
    text-decoration: none;
    transition: color .2s ease;
}

.tesos-portfolio .header-work-link:hover {
    color: var(--p-primary);
}

.tesos-portfolio .contact-pill-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    padding: 12px 20px;

    background: var(--p-primary);
    color: var(--p-white);

    border: 0;
    border-radius: 6px;

    font-size: 20px;
    font-weight: 100;
    line-height: 1.4;
    text-decoration: none;

    box-shadow: none;
    transform: none;

    transition: background .2s ease;
}

.tesos-portfolio .contact-pill-btn:hover {
    background: var(--p-primary-hover);
    color: var(--p-white);
    opacity: 1;
    transform: none;
    box-shadow: none;
}

.tesos-portfolio .contact-pill-btn svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================
   HERO
========================================================== */

.tesos-portfolio .hero {
    text-align: left;
    padding-top: clamp(100px, 12vw, 175px);
    padding-bottom: 70px;
}

.tesos-portfolio .portfolio-eyebrow {
    display: inline-block;

    color: var(--p-primary);

    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tesos-portfolio .hero h1 {
    max-width: 1080px;
    margin: 24px 0 42px;

    color: var(--p-black);

    font-size: clamp(48px, 7.4vw, 106px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.075em;
}

.tesos-portfolio .hero h1 span {
    color: var(--p-primary);
}

.tesos-portfolio .portfolio-hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
}

.tesos-portfolio .hero p {
    max-width: 430px;
    margin: 0;

    color: var(--p-gray);

    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

.tesos-portfolio .portfolio-hero-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;

    padding: 15px 20px;

    background: var(--p-primary);
    color: var(--p-white);

    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    transition: background .2s ease;
}

.tesos-portfolio .portfolio-hero-link:hover {
    background: var(--p-primary-hover);
    color: var(--p-white);
}

.tesos-portfolio .portfolio-hero-link svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================
   FAN GALLERY
   Preserve original JavaScript and card order.
========================================================== */


.tesos-portfolio .fan-stack-section {
    display: flex;
    justify-content: center;

    padding: 20px 0 70px;
    background: var(--p-white);

    perspective: 1400px;
    overflow: visible;
}

.tesos-portfolio .fan-container {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 1400px;
    height: 420px;

    position: relative;
    isolation: isolate;
    transform-style: preserve-3d;
}

.tesos-portfolio .fan-card {
    position: relative;

    width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;

    margin-left: -130px;

    flex-shrink: 0;
    overflow: hidden;

    background: var(--p-light);
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 12px;

    box-shadow: 0 14px 35px rgba(0, 0, 0, .14);

    transition:
            transform .45s cubic-bezier(.2, .8, .2, 1),
            box-shadow .45s ease;
}

.tesos-portfolio .fan-card:first-child {
    margin-left: 0;
}


.tesos-portfolio .fan-card img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    pointer-events: none;
}

/* Keep original fan rotations and active-card
   behavior from the existing style.css. */

/* ==========================================================
   PORTFOLIO CATEGORY NAVIGATION
========================================================== */

.tesos-portfolio .portfolio-section {
    scroll-margin-top: 35px;
}

.tesos-portfolio .portfolio-controls {
    display: flex;
    justify-content: flex-start;

    width: min(1120px, calc(100% - 48px));
    max-width: none;

    padding: 0;
    margin-bottom: 28px;
}

.tesos-portfolio .toggle-pill {
    display: flex;
    align-items: center;
    gap: 8px;

    max-width: 100%;
    padding: 0;

    background: transparent;
    border-radius: 0;

    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tesos-portfolio .toggle-pill::-webkit-scrollbar {
    display: none;
}

.tesos-portfolio .toggle-pill a {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 40px;
    padding: 10px 17px;

    flex-shrink: 0;

    background: var(--p-white);
    color: var(--p-black);

    border: 1px solid #DDDDDD;
    border-radius: 30px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
    text-decoration: none;

    transition:
            color .2s ease,
            background .2s ease,
            border-color .2s ease;
}

.tesos-portfolio .toggle-pill a:hover {
    border-color: var(--p-primary);
    color: var(--p-primary);
}

.tesos-portfolio .toggle-pill a.active,
.tesos-portfolio .toggle-pill a[aria-current="page"] {
    background: var(--p-black);
    border-color: var(--p-black);
    color: var(--p-white);
}

/* ==========================================================
   FULL-WIDTH PROJECT GRID
========================================================== */

.tesos-portfolio .project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: calc(100% - 24px);
    max-width: none;

    gap: 10px;

    padding: 0;
    margin: 0 auto 130px;
}

.tesos-portfolio .project-card {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-width: 0;

    height: auto;
    aspect-ratio: 1.48 / 1;

    overflow: hidden;

    background: var(--p-light);
    border-radius: 0;

    cursor: default;
}

/* Existing stylesheet hides images until
   script.js adds .loaded.

   This override keeps images visible even
   if the image-loading script fails. */

.tesos-portfolio .project-card img,
.tesos-portfolio .project-card img.loaded {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    opacity: 1;

    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;

    transform: scale(1);

    transition: transform .6s ease;
}

.tesos-portfolio .project-card:hover img,
.tesos-portfolio .project-card:hover img.loaded {
    transform: scale(1.025);
}

/* Remove old image loading shimmer
   from redesigned portfolio cards. */

.tesos-portfolio .project-card::before {
    display: none;
}

/* Existing image protection overlay */

.tesos-portfolio .project-card::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Card overlays */

.tesos-portfolio .card-overlay-top {
    position: absolute;

    top: 20px;
    left: 20px;
    right: 20px;

    z-index: 5;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tesos-portfolio .card-overlay-top h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

/* Hide arrows because the supplied project
   cards do not contain destination links. */

.tesos-portfolio .project-card .arrow-btn {
    display: none;
}

.tesos-portfolio .card-overlay-bottom {
    position: absolute;

    left: 20px;
    bottom: 20px;

    z-index: 5;

    display: flex;
    align-items: center;
    gap: 10px;
}

.tesos-portfolio .tag {
    display: inline-flex;
    align-items: center;

    padding: 7px 13px;

    background: var(--p-black);
    color: var(--p-white);

    border-radius: 30px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;

    backdrop-filter: none;
}

/* ==========================================================
   CTA SECTION
========================================================== */

.tesos-portfolio .cta-section {
    padding: 130px 0;

    background: #000000;
    color: var(--p-white);
}

.tesos-portfolio .cta-grid {
    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    gap: 0;
}

.tesos-portfolio .cta-content {
    width: 100%;
    max-width: 800px;
}

.tesos-portfolio .cta-section .portfolio-eyebrow {
    color: var(--p-white);
}

.tesos-portfolio .cta-content h2 {
    margin: 25px 0;

    color: var(--p-white);

    font-size: clamp(48px, 6vw, 86px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.065em;
}

.tesos-portfolio .cta-content p {
    max-width: 470px;
    margin: 0 auto 32px;

    color: #D0D0D0;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}

.tesos-portfolio .btn-quote {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: var(--p-primary);
    color: var(--p-white);
    border: 0;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 100;
    line-height: 1.4;
    text-transform: none;
    text-decoration: none;

    transition: background .2s ease;
}

.tesos-portfolio .btn-quote:hover {
    background: var(--p-primary-hover);
    color: var(--p-white);
}

.tesos-portfolio .btn-quote svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================
   FOOTER
========================================================== */

.tesos-portfolio footer {
    padding: 65px 0;

    background: var(--p-white);
    border-top: 1px solid var(--p-border);
}

.tesos-portfolio .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.tesos-portfolio .portfolio-footer-brand img {
    display: block;

    width: auto;
    max-width: 150px;
    height: 36px;

    margin-bottom: 25px;

    object-fit: contain;
}

.tesos-portfolio .portfolio-footer-brand p {
    margin: 0;

    color: var(--p-gray);

    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
}

.tesos-portfolio .portfolio-footer-brand strong {
    color: var(--p-black);
    font-weight: 600;
}

.tesos-portfolio #backToTop {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    flex-shrink: 0;

    color: var(--p-black);

    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.tesos-portfolio #backToTop:hover {
    color: var(--p-primary);
}

.tesos-portfolio #backToTop svg {
    width: 15px;
    height: 15px;
}

/* ==========================================================
   TABLET — UP TO 900PX
========================================================== */

@media (max-width: 900px) {

    .tesos-portfolio .hero {
        padding-top: 100px;
    }

    .tesos-portfolio .fan-container {
        height: 320px;
    }

    .tesos-portfolio .fan-card {
        width: 200px;
        margin-left: -95px;
    }

    .tesos-portfolio .fan-card:first-child {
        margin-left: 0;
    }

    .tesos-portfolio .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tesos-portfolio .project-card {
        height: auto;
        aspect-ratio: 1.25 / 1;
    }

    .tesos-portfolio .cta-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==========================================================
   MOBILE — UP TO 600PX
========================================================== */

@media (max-width: 600px) {

    .tesos-portfolio .container {
        width: calc(100% - 36px);
    }

    /* Header */

    .tesos-portfolio .portfolio-header {
        padding-top: 14px;
    }

    .tesos-portfolio .header-flex {
        min-height: 60px;
        padding: 10px 12px;
        gap: 12px;
    }

    .tesos-portfolio .logo img {
        height: 28px;
        max-width: 125px;
    }

    .tesos-portfolio .portfolio-header-links {
        gap: 12px;
    }

    .tesos-portfolio .header-work-link {
        display: none;
    }

    .tesos-portfolio .contact-pill-btn {
        padding: 11px 13px;
        font-size: 18px;
    }

    /* Hero */

    .tesos-portfolio .hero {
        padding-top: 95px;
        padding-bottom: 40px;
    }

    .tesos-portfolio .portfolio-eyebrow {
        font-size: 10px;
    }

    .tesos-portfolio .hero h1 {
        margin: 20px 0 30px;

        font-size: clamp(40px, 10vw, 65px);
        line-height: 1.07;
        letter-spacing: -.065em;
    }

    .tesos-portfolio .portfolio-hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .tesos-portfolio .hero p {
        max-width: 100%;
        font-size: 14px;
    }

    .tesos-portfolio .portfolio-hero-link {
        padding: 13px 17px;

    }

    /* Fan */

    .tesos-portfolio .fan-stack-section {
        padding: 15px 0 40px;
    }

    .tesos-portfolio .fan-container {
        height: 200px;
    }

    .tesos-portfolio .fan-card {
        width: 110px;
        margin-left: -50px;
        border-radius: 8px;
    }

    .tesos-portfolio .fan-card:first-child {
        margin-left: 0;
    }

    /* Categories */

    .tesos-portfolio .portfolio-controls {
        width: calc(100% - 36px);
        margin-bottom: 20px;
    }

    .tesos-portfolio .toggle-pill {
        gap: 6px;
    }

    .tesos-portfolio .toggle-pill a {
        min-height: 38px;
        padding: 10px 13px;
        font-size: 10px;
    }

    /* Projects */

    .tesos-portfolio .project-grid {
        width: calc(100% - 16px);

        grid-template-columns: 1fr;
        gap: 8px;

        margin-bottom: 80px;
    }

    .tesos-portfolio .project-card {
        height: auto;
        aspect-ratio: 1.35 / 1;
    }

    .tesos-portfolio .card-overlay-bottom {
        left: 14px;
        bottom: 14px;
    }

    /* CTA */

    .tesos-portfolio .cta-section {
        padding: 100px 0;
    }

    .tesos-portfolio .cta-content h2 {
        font-size: clamp(40px, 10vw, 58px);
    }

    .tesos-portfolio .cta-content p {
        font-size: 14px;
    }

    /* Footer */

    .tesos-portfolio footer {
        padding: 45px 0;
    }

    .tesos-portfolio .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    /* WhatsApp viewport safety */

    .tesos-portfolio .wa-widget {
        right: 16px;
        bottom: 16px;
    }

    .tesos-portfolio .wa-chat {
        width: min(320px, calc(100vw - 32px));
    }
}

/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .tesos-portfolio .project-card img,
    .tesos-portfolio .fan-card,
    .tesos-portfolio .contact-pill-btn,
    .tesos-portfolio .portfolio-hero-link,
    .tesos-portfolio .btn-quote {
        transition: none;
    }
}




/* ================================================
    TESOS-STYLE MOBILE NAVIGATION
================================================ */

/* Hidden on desktop */

.tesos-portfolio .portfolio-menu-toggle,
.tesos-portfolio .portfolio-mobile-menu {
    display: none;
}

/* Prevent page scrolling while menu is open */

body.tesos-portfolio.menu-open {
    overflow: hidden;
}

/* MOBILE */

@media (max-width: 767px) {

    /* Header */

    .tesos-portfolio .portfolio-header {
        position: relative;
        z-index: 100;
        padding-top: 16px;
    }

    .tesos-portfolio .header-flex {
        min-height: 70px;
        padding: 14px 20px;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,.045);
    }

    .tesos-portfolio .logo img {
        height: 36px;
        max-width: 145px;
        width: auto;
    }

    /* Hide desktop links */

    .tesos-portfolio .portfolio-header-links {
        display: none;
    }

    /* Hamburger button */

    .tesos-portfolio .portfolio-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;

        width: 44px;
        height: 44px;

        padding: 8px;
        background: transparent;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }

    .tesos-portfolio .portfolio-menu-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: #111111;
        border-radius: 2px;
    }

    /* Full-screen menu */

    .tesos-portfolio .portfolio-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 9999;

        display: flex;
        flex-direction: column;

        width: 100%;
        height: 100vh;
        height: 100dvh;

        padding: 26px 24px 40px;

        background: #FFFFFF;

        overflow-y: auto;
        overscroll-behavior: contain;

        visibility: hidden;
        opacity: 0;
        pointer-events: none;

        transform: translateY(-10px);

        transition:
                opacity .25s ease,
                transform .25s ease,
                visibility .25s ease;
    }

    .tesos-portfolio .portfolio-mobile-menu.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Menu header */

    .tesos-portfolio .portfolio-mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;

        min-height: 50px;
        margin-bottom: 50px;
    }

    .tesos-portfolio .portfolio-mobile-logo {
        display: inline-flex;
        align-items: center;
    }

    .tesos-portfolio .portfolio-mobile-logo img {
        display: block;
        width: auto;
        height: 36px;
        max-width: 145px;
        object-fit: contain;
    }

    /* Close icon */

    .tesos-portfolio .portfolio-menu-close {
        position: relative;

        width: 44px;
        height: 44px;

        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .tesos-portfolio .portfolio-menu-close span {
        position: absolute;
        top: 21px;
        left: 10px;

        width: 24px;
        height: 2px;

        background: #111111;
        border-radius: 2px;
    }

    .tesos-portfolio .portfolio-menu-close span:first-child {
        transform: rotate(45deg);
    }

    .tesos-portfolio .portfolio-menu-close span:last-child {
        transform: rotate(-45deg);
    }

    /* Category links */

    .tesos-portfolio .portfolio-mobile-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .tesos-portfolio .portfolio-mobile-links a {
        display: flex;
        align-items: center;

        min-height: 85px;
        padding: 20px 0;

        color: #111111;
        background: transparent;

        border-bottom: 1px solid #E5E5E5;

        font-family: "Inter", sans-serif;
        font-size: clamp(24px, 6vw, 30px);
        font-weight: 400;
        line-height: 1.3;
        letter-spacing: -.035em;

        text-decoration: none;

        transition: color .2s ease;
    }

    .tesos-portfolio .portfolio-mobile-links a:hover,
    .tesos-portfolio .portfolio-mobile-links a[aria-current="page"] {
        color: #ED174C;
    }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .tesos-portfolio .portfolio-mobile-menu {
        transition: none;
    }
}



/* ==========================================================
   TESOS WORKS — DESKTOP HEADER NAVIGATION
   Matches TESOS website navigation layout
========================================================== */

@media (min-width: 901px) {

    .tesos-portfolio .header-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .tesos-portfolio .portfolio-header-links {
        display: contents;
    }

    .tesos-portfolio .portfolio-desktop-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: clamp(16px, 2.2vw, 32px);
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .tesos-portfolio .portfolio-desktop-nav a {
        display: inline-flex;
        align-items: center;
        color: #111111;
        font-family: "Inter", sans-serif;
        font-size: 20px;
        font-weight: 100;
        line-height: 1.4;
        text-decoration: none;
        white-space: nowrap;
        transition: color 0.2s ease;
    }

    .tesos-portfolio .portfolio-desktop-nav a:hover {
        color: #ED174C;
    }

    .tesos-portfolio .portfolio-header .contact-pill-btn {
        flex-shrink: 0;
    }

    .tesos-portfolio .portfolio-menu-toggle {
        display: none;
    }
}

/* ==========================================================
   MOBILE / TABLET
   Preserve the existing hamburger navigation
========================================================== */

@media (max-width: 900px) {

    .tesos-portfolio .portfolio-header-links {
        display: none;
    }

    .tesos-portfolio .portfolio-desktop-nav {
        display: none;
    }

    .tesos-portfolio .portfolio-menu-toggle {
        display: flex;
    }
}




/* ==========================================================
   UI/UX PORTFOLIO GRID — FINAL FIX
   Desktop: 2 cards per row
   Mobile: 1 card per row
   Full-width layout
   Square corners
========================================================== */

/* Desktop and tablet */
@media (min-width: 601px) {

    body.tesos-portfolio .portfolio-section
    .project-grid.square-grid {

        display: grid !important;

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        width: calc(100% - 24px);
        max-width: none;

        gap: 10px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile */
@media (max-width: 600px) {

    body.tesos-portfolio .portfolio-section
    .project-grid.square-grid {

        display: grid !important;

        grid-template-columns: minmax(0, 1fr) !important;

        width: calc(100% - 16px);
        max-width: none;

        gap: 8px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Cards */
body.tesos-portfolio .portfolio-section
.project-grid.square-grid > .project-card {

    width: 100%;
    min-width: 0;

    height: auto;
    aspect-ratio: 1.48 / 1;

    border-radius: 0 !important;
}

/* Images */
body.tesos-portfolio .portfolio-section
.project-grid.square-grid > .project-card img {

    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 0;
}





/* ==========================================================
   TESOS SOCIAL MEDIA PORTFOLIO GRID
   Desktop: 2 columns
   Mobile: 1 column
   Full width / Square corners
========================================================== */

/* Desktop and tablet */
@media (min-width: 601px) {

    body.tesos-portfolio .portfolio-section
    .project-grid.square-grid {

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        width: calc(100% - 24px);
        max-width: none;

        gap: 10px;

        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile */
@media (max-width: 600px) {

    body.tesos-portfolio .portfolio-section
    .project-grid.square-grid {

        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;

        width: calc(100% - 16px);
        max-width: none;

        gap: 8px;

        margin-left: auto;
        margin-right: auto;
    }
}

/* Project cards */
body.tesos-portfolio .portfolio-section
.project-grid.square-grid > .project-card {

    width: 100%;
    min-width: 0;

    height: auto;
    aspect-ratio: 1.48 / 1;

    border-radius: 0 !important;
}

/* Project images */
body.tesos-portfolio .portfolio-section
.project-grid.square-grid > .project-card img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 0;
}





/* ==========================================================
   SOCIAL MEDIA — FULL IMAGE LIGHTBOX
========================================================== */

.tesos-portfolio .social-media-grid .project-card {
    cursor: zoom-in;
}

.tesos-portfolio .social-lightbox[hidden] {
    display: none !important;
}

.tesos-portfolio .social-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 60px 24px 24px;

    background: rgba(0, 0, 0, 0.94);
    cursor: zoom-out;
}

.tesos-portfolio .social-lightbox-image {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
    border-radius: 0;

    cursor: default;
}

.tesos-portfolio .social-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 0;
    color: #FFFFFF;

    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

body.social-lightbox-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .tesos-portfolio .social-lightbox {
        padding: 70px 12px 20px;
    }

    .tesos-portfolio .social-lightbox-close {
        top: 12px;
        right: 12px;
    }
}





/* ==========================================
   TESOS CONTACT PAGE
   Preserve Original Contact Form Design
========================================== */

/* Contact Section */
.tesos-contact-page .contact-page {
    width: 100%;
    background: #ffffff;
    padding-top: 100px;
    padding-bottom: 120px;
}

/* Original Two-Column Layout */
.tesos-contact-page .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

/* ==========================================
   CONTACT HEADING
========================================== */

.tesos-contact-page .contact-title {
    min-width: 0;
}

.tesos-contact-page .contact-title h1 {
    font-family: "Inter", sans-serif;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.055em;
    color: #111111;
    margin: 0 0 32px;
}

.tesos-contact-page .contact-subtitle {
    max-width: 380px;
    font-size: 17px;
    line-height: 1.8;
    color: #666666;
}

/* ==========================================
   CONTACT FORM
========================================== */

.tesos-contact-page .contact-form-container {
    width: 100%;
    min-width: 0;
}

.tesos-contact-page .contact-form {
    width: 100%;
}

/* Input Groups */
.tesos-contact-page .input-group {
    margin-bottom: 24px;
}

/* Labels */
.tesos-contact-page .input-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #111111;
}

/* Full-Width Input Fields */
.tesos-contact-page .input-group input,
.tesos-contact-page .input-group textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    border: 1px solid #dddddd;
    border-radius: 6px;

    background: #ffffff;
    color: #111111;

    font-family: "Inter", sans-serif;
    font-size: 15px;

    padding: 14px 16px;
}

/* Input Height */
.tesos-contact-page .input-group input {
    min-height: 50px;
}

/* Message Textarea */
.tesos-contact-page .input-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Input Focus */
.tesos-contact-page .input-group input:focus,
.tesos-contact-page .input-group textarea:focus {
    outline: none;
    border-color: #ed174c;
    box-shadow: 0 0 0 3px rgba(237, 23, 76, 0.1);
}

/* ==========================================
   SUBMIT BUTTON
========================================== */

.tesos-contact-page .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 32px;

    border: 0;
    border-radius: 50px;

    background: #111111;
    color: #ffffff;

    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.2s ease;
}

.tesos-contact-page .submit-btn:hover {
    background: #ed174c;
}

/* ==========================================
   RESPONSIVE — TABLET
========================================== */

@media (max-width: 900px) {

    .tesos-contact-page .contact-page {
        padding-top: 80px;
        padding-bottom: 90px;
    }

    .tesos-contact-page .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

}

/* ==========================================
   RESPONSIVE — MOBILE
========================================== */

@media (max-width: 600px) {

    .tesos-contact-page .contact-page {
        padding-top: 60px;
        padding-bottom: 75px;
    }

    .tesos-contact-page .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .tesos-contact-page .contact-title h1 {
        font-size: clamp(42px, 10vw, 56px);
        margin-bottom: 20px;
    }

    .tesos-contact-page .contact-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .tesos-contact-page .contact-form-container {
        width: 100%;
    }

    .tesos-contact-page .contact-form {
        width: 100%;
    }

}


/* ==========================================
   TESOS CONTACT PAGE
   Reduce Form Field Spacing
========================================== */

.tesos-contact-page .contact-form .input-group {
    margin-bottom: 2px;
}

.tesos-contact-page .contact-form .input-group label {
    margin-bottom: 2px;
}

/* Reduce space above reCAPTCHA */
.tesos-contact-page .g-recaptcha {
    margin-top: 0;
    margin-bottom: 10px !important;
}

/* Reduce space above Submit button */
.tesos-contact-page .submit-btn {
    margin-top: 0;
}


/* ==========================================
   TESOS WORK — REMOVE LOGO UNDERLINE
========================================== */

.tesos-portfolio .portfolio-mobile-logo,
.tesos-portfolio .portfolio-mobile-logo:hover,
.tesos-portfolio .portfolio-mobile-logo:focus,
.tesos-portfolio .portfolio-mobile-logo:active,
.tesos-portfolio .portfolio-mobile-logo .tesos-wordmark {
    text-decoration: none !important;
    border-bottom: none !important;
}



/* ==========================================
   TESOS MOBILE NAVIGATION
   CONTACT BUTTON
========================================== */

@media (max-width: 767px) {

    body.tesos-portfolio
    .portfolio-mobile-links a.portfolio-mobile-contact-btn {

        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        min-height: 56px;

        margin-top: 40px;
        padding: 16px 24px;

        background: #ED174C;
        color: #FFFFFF;

        border: none;
        border-radius: 6px;

        font-family: "Inter", sans-serif;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;

        text-align: center;
        text-decoration: none;

        transition: background 0.2s ease;
    }

    body.tesos-portfolio
    .portfolio-mobile-links a.portfolio-mobile-contact-btn:hover {

        background: #D41143;
        color: #FFFFFF;
    }

}



