/* ###########################################################################
   BODY
########################################################################### */

body {
    padding-top: 100px;
}

/* ###########################################################################
   ANIMATIONS
   (lineReveal i revealFromLeft są już w styles.css — tu tylko slideUp,
   bo jest specyficzny dla tej podstrony)
########################################################################### */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ###########################################################################
   ABOUT HERO
########################################################################### */

.about-hero {
    max-width: 1500px;
    margin: 0 auto;
}

.about-title-wrapper {
    position: relative;
    display: inline-block;

    margin-bottom: 72px;
    margin-left: 26vh;
}

.about-title {
    font-size: 112px;
    font-weight: 700;
    line-height: 0.9;
    color: #fff;
    margin: 0;

    opacity: 0;
    transform: translateY(60px);
    animation: slideUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.about-tag-wrapper {
    position: absolute;

    left: 68%;
    top: 58%;

    transform: translate(10%, -30%) rotate(1deg);

    width: 180px;

    overflow: visible;
    pointer-events: none;
    z-index: 2;
}

.about-tag {
    display: block;
    width: 100%;
    height: auto;
}

.about-tag-mask {
    position: absolute;
    inset: 0;
    background-color: #000;

    transform: translateX(0%);

    animation: revealLogoFromLeft 2.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}

/* ###########################################################################
   ABOUT CONTENT (zdjęcie + kolumny tekstowe)
########################################################################### */

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 82px;

    margin-left: 42vh;
}

.about-photo-block {
    position: relative;
    border: 1px solid #333;

    width: 380px;
    height: 520px;
    flex-shrink: 0;

    opacity: 0;
    transform: translateY(60px);
    animation: slideUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 1.2s;
}

.portrait-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portrait-container img {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
}

.photo-caption {
    position: absolute;
    left: -75px;
    bottom: 165px;
    text-align: right;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.3;
    z-index: 2;

    opacity: 0;
    transform: translateY(60px);
    animation: slideUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 1.5s;
}

.about-text-column {
    display: flex;
    flex-direction: column;
}

.second-column {
    margin-top: 140px;
    gap: 10px;
}

.about-text-block {
    display: flex;
    flex-direction: column;
    max-width: 180px;
    margin-top: 40px;
}

.about-symbol {
    color: #fff;
    font-size: 12px;
    font-weight: 300;
    margin-bottom: 12px;

    opacity: 0;
    transform: translateY(60px);
    animation: slideUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 1.5s;
}

.about-text-block p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.45;

    opacity: 0;
    transform: translateY(60px);
    animation: slideUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.block-1 p { animation-delay: 1.5s; }
.block-2 p { animation-delay: 2.0s; }
.block-3 p { animation-delay: 2.5s; }

/* ###########################################################################
   OFFER SECTION
########################################################################### */

.offer-section {
    grid-column: 1 / -1;
    color: #fff;
}

.offer-title {
    font-size: 32px;
    margin-bottom: 40px;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.offer-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.offer-item p {
    font-size: 14px;
    line-height: 1.4;
    color: #aaa;
}

/* ###########################################################################
   STORY
########################################################################### */

.about-story {
    position: relative;
    margin-top: 320px;
    padding: 300px 0 120px;
}

.about-story-parallax-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.about-story-parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.story-content {
    position: relative;
    z-index: 2;
    transform: translateY(-220px);
}

.story-grid {
    display: grid;
    grid-template-columns: 520px 520px;
    justify-content: start;
    column-gap: 20vh;
    row-gap: 320px;
    padding-left: 50px;
}

.story-text {
    max-width: 520px;
}

.story-top-left {
    margin-top: -160px;
}

.story-text p {
    margin: 0 0 80px;
    color: #fff;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 400;
}

/* Reveal animacje */

.reveal-block {
    overflow: hidden;
}

.reveal-block p {
    opacity: 0;
    transform: translateY(120%);
    transition:
        opacity 1.5s ease,
        transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-block.active p {
    opacity: 1;
    transform: translateY(0);
}

.story-text:nth-child(1) p:nth-child(1) { transition-delay: 0.2s; }
.story-text:nth-child(1) p:nth-child(2) { transition-delay: 0.6s; }
.story-text:nth-child(2) p:nth-child(1) { transition-delay: 1.0s; }
.story-text:nth-child(2) p:nth-child(2) { transition-delay: 1.4s; }

/* ###########################################################################
   RESPONSIVE
########################################################################### */

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

    .about-title {
        font-size: 96px;
    }

    .about-photo-block {
        width: 320px;
        height: 440px;
    }

    .story-grid {
        column-gap: 12vw;
    }
}

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

    .about-title {
        font-size: 72px;
    }

    .about-content {
        gap: 40px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        row-gap: 160px;
    }

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

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

    .about-title {
        font-size: clamp(48px, 10vw, 72px);
    }

    .about-title-wrapper {
        display: block;
        width: calc(100% - 10vw);
        margin-left: 5vw;
        margin-bottom: 40px;
        overflow: visible;
    }

    .about-tag-wrapper {
        width: 150px;
        left: 58%;
        right: auto;
        top: 75%;
        transform: translate(0, -30%) rotate(1deg);
        overflow: visible;
    }

    /* Układ hero — stos pionowy */
    .about-content {
        flex-direction: column;
        margin-left: 5vw;
        gap: 40px;
    }

    .about-photo-block {
        width: min(320px, 80vw);
        height: auto;
        aspect-ratio: 3 / 4;
    }

    /* Podpis — schowaj poza blokiem (overflow hidden by wystawał) */
    .photo-caption {
        position: static;
        text-align: left;
        margin-top: 12px;
    }

    .second-column {
        margin-top: 0;
    }

    /* Story */
    .about-story {
        margin-top: 120px;
        padding: 80px 0 80px;
    }

    .story-content {
        transform: translateY(0);
    }

    .story-grid {
        grid-template-columns: 1fr;
        row-gap: 80px;
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .story-top-left {
        margin-top: 0;
    }

    .story-text p {
        font-size: clamp(20px, 5vw, 28px);
        margin-bottom: 40px;
    }

    .offer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .offer-title {
        font-size: 24px;
    }
}

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

    .about-title {
        font-size: clamp(40px, 12vw, 56px);
        margin-bottom: 10vh;
        margin-left: 10vw;
    }

    .about-tag-wrapper {
        display: block;
        width: 100px;
        left: 35%;
        right: auto;
        top: 50%;
        transform: translate(0, -30%) rotate(1deg);
        overflow: visible;
    }


    .about-content {
        margin-left: 0;
        padding: 0 20px;
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    /* Zdjęcie — wyśrodkowane, sensowna wysokość */
    .about-photo-block {
        width: 100%;
        max-width: 340px;
        height: auto;
        aspect-ratio: 3 / 4;
    }

    /* Padding między zdjęciem (Antoni Matuszczak) a pierwszym akapitem */
    .photo-caption {
        position: static;
        text-align: left;
        margin-top: 12px;
        margin-bottom: 64px;
    }

    .about-text-block:first-child {
        margin-top: 100px;
        padding-top: 0;
    }
    

    /* Kolumny tekstowe — pełna szerokość, nie przy krawędzi */
    .about-text-column {
        width: 100%;
    }

    .about-text-block {
        max-width: 100%;
    }

    .about-text-block p {
        font-size: 16px;
        line-height: 1.55;
    }

    .second-column {
        margin-top: -100px;
    }

    .story-grid {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .story-text p {
        font-size: clamp(18px, 5vw, 22px);
    }
}