/* ==============================
   About Section
============================== */

.delvor-about-section {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 100svh;

    overflow: hidden;

    background: #121212;

    --about-bg: #121212;
    --about-accent: var(--accent-color, #c5a15c);

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

/* ==============================
   Background Photo
============================== */

.delvor-about-visual {
    position: absolute;
    inset: 0;

    z-index: 0;
    overflow: hidden;
}

.delvor-about-photo {
    position: absolute;
    top: 0;
    left: 0;

    display: block;

    width: 68%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* Smooth Gradient */

.delvor-about-visual::after {
    content: '';

    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        transparent 15%,
        rgba(18, 18, 18, .05) 30%,
        rgba(18, 18, 18, .35) 42%,
        rgba(18, 18, 18, .85) 56%,
        var(--about-bg) 68%
    );

    pointer-events: none;
}

/* ==============================
   Backgrounder
============================== */

.delvor-about-atmosphere {
    position: absolute;
    inset: 0 0 0 auto;

    width: 60%;

    z-index: 1;

    overflow: hidden;
    pointer-events: none;

    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 35%
    );

    mask-image: linear-gradient(
        to right,
        transparent,
        #000 35%
    );
}

/* ==============================
   Content Layout
============================== */

.delvor-about-container {
    position: relative;

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

    box-sizing: border-box;

    z-index: 2;

    padding-top: calc(var(--navbar-height, 90px) + 50px);
    padding-bottom: 70px;
}

.delvor-about-copy {
    position: relative;

    width: 49%;
    max-width: 620px;
    min-width: 0;
}

/* ==============================
   Typography
============================== */

.delvor-about-label {
    color: var(--about-accent);

    font-size: .72rem;
    font-weight: 500;
    line-height: 1.6;

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

    margin-bottom: 24px;
}

.delvor-about-title {
    font-family: var(--font-title, Georgia, serif);

    font-size: clamp(3rem, 4.8vw, 5rem);
    font-weight: 400;
    line-height: 1.08;

    color: #ffffff;

    margin-bottom: 32px;

    text-wrap: balance;
}

.delvor-about-intro {
    color: #dedede;

    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.85;

    margin-bottom: 22px;
}

.delvor-about-description {
    color: #b8b8b8;

    font-size: .92rem;
    line-height: 1.85;

    margin-bottom: 36px;
}

/* ==============================
   Actions
============================== */

.delvor-about-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 24px;
}

/* Primary Button */

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

    gap: 20px;

    padding: 15px 26px;

    background: var(--about-accent);
    border: 1px solid var(--about-accent);
    border-radius: 50px;

    color: #181818;

    font-family: inherit;
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.5;

    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;

    transition:
        background .3s ease,
        color .3s ease,
        box-shadow .3s ease;
}

.delvor-about-main-button:hover {
    background: transparent;
    color: var(--about-accent);
}

.delvor-about-main-button svg {
    flex-shrink: 0;

    transition: transform .3s ease;
}

.delvor-about-main-button:hover svg {
    transform: translate(2px, -2px);
}

/* Secondary Button */

.delvor-about-contact {
    padding: 10px 0;

    background: transparent;
    border: none;

    color: #dedede;

    font-family: inherit;
    font-size: .85rem;

    cursor: pointer;

    transition: color .3s ease;
}

.delvor-about-contact:hover {
    color: var(--about-accent);
}

/* Focus */

.delvor-about-main-button:focus-visible,
.delvor-about-contact:focus-visible {
    outline: 2px solid var(--about-accent);
    outline-offset: 5px;
}

/* ==============================
   Tablet
============================== */

@media (max-width: 1100px) {

    .delvor-about-copy {
        width: 52%;
    }

    .delvor-about-title {
        font-size: clamp(2.8rem, 5vw, 4rem);
    }

    .delvor-about-intro {
        font-size: .95rem;
    }

    .delvor-about-description {
        font-size: .88rem;
    }

    .delvor-about-actions {
        gap: 18px;
    }
}

/* ==============================
   Mobile
============================== */

@media (max-width: 800px) {

    .delvor-about-section {
        flex-direction: column;

        min-height: auto;
    }

    .delvor-about-visual {
        position: relative;
        inset: auto;

        width: 100%;
        height: 45vh;
        height: 45svh;

        margin-top: var(--navbar-height, 65px);
    }

    .delvor-about-photo {
        width: 100%;
        height: 100%;

        object-position: center;
    }

    .delvor-about-visual::after {
        background: linear-gradient(
            to bottom,
            transparent 40%,
            rgba(18, 18, 18, .35) 70%,
            var(--about-bg) 100%
        );
    }

    .delvor-about-atmosphere {
        width: 100%;

        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 25%,
            #000 60%
        );

        mask-image: linear-gradient(
            to bottom,
            transparent 25%,
            #000 60%
        );
    }

    .delvor-about-container {
        justify-content: center;

        margin-top: -30px;

        padding-top: 0;
        padding-bottom: 60px;
    }

    .delvor-about-copy {
        width: 100%;
        max-width: 600px;
    }

    .delvor-about-title {
        font-size: clamp(2.8rem, 8vw, 4rem);

        margin-bottom: 24px;
    }

    .delvor-about-label {
        margin-bottom: 20px;
    }

    .delvor-about-intro {
        margin-bottom: 20px;
    }

    .delvor-about-description {
        margin-bottom: 28px;
    }
}

/* ==============================
   Small Mobile
============================== */

@media (max-width: 480px) {

    .delvor-about-visual {
        height: 38vh;
        height: 38svh;
    }

    .delvor-about-title {
        font-size: 2.8rem;
    }

    .delvor-about-main-button {
        padding: 14px 20px;

        font-size: .68rem;
    }

    .delvor-about-actions {
        flex-direction: column;
        align-items: flex-start;

        gap: 14px;
    }
}

/* ==============================
   Reduced Motion
============================== */

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

    .delvor-about-main-button,
    .delvor-about-main-button svg,
    .delvor-about-contact {
        transition: none;
    }

    .delvor-about-main-button:hover svg {
        transform: none;
    }
}
/* About entrance: a quiet brand signature while the photograph decodes. */
.delvor-about-loading {
    display: none;
    position: absolute;
    left: 28%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    text-align: center;
    color: var(--about-accent);
    transition: opacity .5s ease, visibility .5s ease;
}
.delvor-about-loading span { display: block; font-family: var(--font-title); font-size: clamp(2.1rem, 4vw, 3.5rem); text-transform: uppercase; letter-spacing: .18em; }
.delvor-about-loading i { display: block; position: relative; overflow: hidden; width: 90px; height: 1px; margin: 18px auto 0; background: color-mix(in srgb, var(--about-accent) 18%, transparent); }
.delvor-about-loading i::after { content: ''; position: absolute; inset: 0; background: var(--about-accent); transform: translateX(-100%); }
.about-is-loading .delvor-about-loading, .about-has-entered .delvor-about-loading { display: block; }
.about-is-loading .delvor-about-loading i::after { animation: about-loading-line 1.3s ease-in-out infinite; }
.about-has-entered .delvor-about-loading { opacity: 0; visibility: hidden; }
.about-is-loading .delvor-about-visual { background: radial-gradient(ellipse at 30% 50%, color-mix(in srgb, var(--about-accent) 9%, transparent), transparent 65%); }
.about-is-loading .delvor-about-photo, .about-has-entered .delvor-about-photo { opacity: 0; transform: scale(1.045); transition: opacity 1.3s ease, transform 1.8s cubic-bezier(.16,1,.3,1); }
.about-has-entered.about-photo-ready .delvor-about-photo { opacity: 1; transform: scale(1); }
.about-photo-error .delvor-about-photo { visibility: hidden; }
.about-is-loading [data-about-reveal] { opacity: 0; transform: translateY(20px); }
.about-has-entered [data-about-reveal] { animation: about-copy-in .85s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--about-reveal-delay, 0ms); }
.delvor-about-title { --about-reveal-delay: 100ms; }
.delvor-about-intro { --about-reveal-delay: 220ms; }
.delvor-about-description { --about-reveal-delay: 330ms; }
.delvor-about-actions { --about-reveal-delay: 440ms; }
.about-is-loading .delvor-about-atmosphere { opacity: 0; }
.about-has-entered .delvor-about-atmosphere { animation: about-atmosphere-in 1.8s ease both; }
.delvor-about-copy:focus-within [data-about-reveal] { animation: none; opacity: 1; transform: none; }
@keyframes about-loading-line { to { transform: translateX(100%); } }
@keyframes about-copy-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes about-atmosphere-in { from { opacity: 0; } to { opacity: 1; } }
@media(max-width: 800px) {
    .delvor-about-loading { left: 50%; top: calc(var(--navbar-height, 65px) + 20svh); }
}
@media(prefers-reduced-motion: reduce) {
    .delvor-about-loading { display: none !important; }
    .delvor-about-section [data-about-reveal], .delvor-about-section .delvor-about-atmosphere { animation: none; opacity: 1; transform: none; }
    .delvor-about-section .delvor-about-photo { transition: none; transform: none; }
}
