html,
body {
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.tonio-portfolio {
    background: #000;
    min-height: 100vh;
    width: 100%;
    max-width: none;
    overflow-x: hidden;
}

.tonio-hero {
    min-height: clamp(640px, 88vh, 900px);
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(64px, 8vw, 120px) clamp(20px, 6vw, 96px);
    position: relative;
    background:
        radial-gradient(circle at 50% 35%, rgba(139,0,0,.28), transparent 34%),
        linear-gradient(135deg, #030303 0%, #100203 48%, #000 100%);
}

.tonio-logo-wrap {
    margin-bottom: 30px;
}

.tonio-logo {
    display: block;
    width: clamp(340px, 72vw, 820px);
    max-width: 92vw;
    height: auto;
    margin: 0 auto;
}


.tonio-logo-wrap,
.tonio-actions {
    position: relative;
    z-index: 2;
}

.tonio-title {
    color: #f5f1e8;
    font-family: "Cinzel Decorative", serif;
    font-size: 96px;
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 0 20px rgba(0,0,0,.5);
}

.tonio-subtitle {
    color: #f0f0f0 !important;
    font-size: clamp(16px, 2vw, 22px) !important;
    max-width: 600px !important;
    width: min(600px, 82vw) !important;
    margin: 0 auto !important;
    text-align: center !important;
    line-height: 1.35 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.7) !important;
}

.tonio-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.tonio-portfolio .tonio-actions a.tonio-button,
.tonio-portfolio .tonio-actions a.tonio-button:link,
.tonio-portfolio .tonio-actions a.tonio-button:visited,
.tonio-portfolio .tonio-actions a.tonio-button:active,
.tonio-portfolio .tonio-actions a.tonio-button:focus {
    display: inline-block !important;
    padding: 14px 28px !important;
    background-color: #8b0000 !important;
    background-image: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border: 2px solid #8b0000 !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.tonio-portfolio .tonio-actions a.tonio-button:hover {
    background-color: #b30000 !important;
    background-image: none !important;
    border-color: #b30000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.tonio-portfolio .tonio-actions a.tonio-button-secondary,
.tonio-portfolio .tonio-actions a.tonio-button-secondary:link,
.tonio-portfolio .tonio-actions a.tonio-button-secondary:visited,
.tonio-portfolio .tonio-actions a.tonio-button-secondary:active,
.tonio-portfolio .tonio-actions a.tonio-button-secondary:focus {
    background-color: transparent !important;
    background-image: none !important;
    border: 2px solid #8b0000 !important;
    color: #ffffff !important;
}

.tonio-portfolio .tonio-actions a.tonio-button-secondary:hover {
    background-color: #8b0000 !important;
    background-image: none !important;
    border-color: #8b0000 !important;
    color: #ffffff !important;
}

.tonio-section {
    background: #050505;
    color: #ffffff;
    padding: 100px 10%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.tonio-section:nth-of-type(even) {
    background: #0b0b0b;
}

.tonio-section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.tonio-kicker {
    color: #b30000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.tonio-section-title {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    max-width: 900px;
    margin: 0 0 24px;
}

.tonio-section-copy {
    color: #d0d0d0;
    font-size: 20px;
    line-height: 1.7;
    max-width: 780px;
    margin: 0;
}

.tonio-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
    width: 100%;
    max-width: 100%;
}

.tonio-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(179, 0, 0, 0.45);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.tonio-art-card {
    display: flex;
    flex-direction: column;
}

.tonio-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid rgba(179, 0, 0, 0.35);
}

.tonio-card-body {
    padding: 28px;
}

.tonio-card-category {
    color: #b30000 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    margin: 0 0 12px !important;
    text-transform: uppercase !important;
}

.tonio-card h3 {
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 14px;
}

.tonio-card p {
    color: #c9c9c9;
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

.tonio-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.tonio-text-link,
.tonio-text-link:link,
.tonio-text-link:visited {
    color: #ff3b3b;
    display: inline-block;
    font-weight: 700;
    margin-top: 28px;
    text-decoration: none;
}

.tonio-text-link:hover {
    color: #ffffff;
}

@media (min-width: 1400px) {
    .tonio-logo {
        width: min(820px, 72vw);
    }
}

@media (max-width: 900px) {
    .tonio-title {
        font-size: 64px;
    }

    .tonio-subtitle {
        font-size: 24px;
    }

    .tonio-card-grid,
    .tonio-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tonio-hero,
    .tonio-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tonio-title {
        font-size: 48px;
    }

    .tonio-hero {
        min-height: 68vh;
        padding: 48px 16px;
    }

    .tonio-logo {
        width: min(94vw, 420px);
        max-width: 420px;
    }

    .tonio-logo-wrap {
        margin-bottom: 22px;
    }

    .tonio-subtitle {
        font-size: 14px !important;
        line-height: 1.35 !important;
        text-align: center !important;
        max-width: 78vw !important;
        width: 78vw !important;
        margin: 0 auto !important;
        letter-spacing: -0.03em !important;
    }

    .tonio-dot {
        padding: 0 3px;
    }

    .tonio-actions {
        justify-content: center;
        width: 100%;
        gap: 12px;
        margin-top: 26px;
    }

    .tonio-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        width: 100%;
        max-width: 100%;
    }

    .tonio-card-body {
        padding: 24px;
    }

    .tonio-portfolio .tonio-actions a.tonio-button,
    .tonio-portfolio .tonio-actions a.tonio-button:link,
    .tonio-portfolio .tonio-actions a.tonio-button:visited,
    .tonio-portfolio .tonio-actions a.tonio-button:active,
    .tonio-portfolio .tonio-actions a.tonio-button:focus {
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .tonio-portfolio,
    .tonio-section,
    .tonio-section-inner {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }

    .tonio-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .tonio-card-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tonio-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tonio-card-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }
}