/* ==========================================================
   About Page — editorial personal profile
   Scoped to .page-about. Loaded only on the About page
   (see bishalaryal_enqueue_about_styles in functions.php).
   Reuses the theme's CSS custom properties from style.css.
   ========================================================== */

.page-about {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 7.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    color: var(--color-text);
}

/* ----------------------------------------------------------
   Atmospheric background — two soft blurred orbs, nothing busy
   ---------------------------------------------------------- */
.about-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.about-orb--one {
    width: 440px;
    height: 440px;
    top: -140px;
    left: -140px;
    background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 70%);
}

.about-orb--two {
    width: 540px;
    height: 540px;
    right: -180px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
}

/* ----------------------------------------------------------
   Layout — asymmetric editorial grid
   12-ish feel: generous text column + slim portrait column.
   DOM order copy / stage / snapshot / action.
   ---------------------------------------------------------- */
.about-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    grid-template-areas:
        "copy  stage"
        "snap  stage"
        "action stage";
    column-gap: clamp(2rem, 6vw, 5rem);
    row-gap: 3rem;
    align-items: center;
}

.about-copy { grid-area: copy; }
.about-stage { grid-area: stage; }
.about-snapshot { grid-area: snap; }
.about-action { grid-area: action; }

/* ----------------------------------------------------------
   Typography — strong hierarchy, text is the primary focus
   ---------------------------------------------------------- */
.about-eyebrow {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.about-name {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--color-accent);
    margin: 0 0 0.75rem;
    text-wrap: balance;
}

.about-role {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-primary);
    margin: 0 0 2.25rem;
}

.about-lead {
    max-width: 60ch;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2c2c2c;
    margin: 0;
}

/* ----------------------------------------------------------
   Portrait — compact, refined; floats fill the negative space
   ---------------------------------------------------------- */
.about-stage {
    position: relative;
    min-height: clamp(360px, 44vw, 460px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: about-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.12s;
}

.about-photo {
    position: relative;
    z-index: 1;
    margin: 0;
}

.about-photo img {
    display: block;
    width: 260px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    box-shadow: 0 18px 44px rgba(13, 27, 56, 0.16);
    animation: about-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

/* Floating decorative elements */
.about-float {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.about-float svg {
    width: 18px;
    height: 18px;
}

/* thin ring behind the portrait */
.about-float--ring {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(59, 130, 246, 0.28);
    border-radius: 50%;
    z-index: 0;
    animation: about-drift 14s ease-in-out infinite;
}

/* glass icon chips */
.about-float--video,
.about-float--seo,
.about-float--chart {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(224, 231, 255, 0.9);
    box-shadow: 0 10px 24px rgba(13, 27, 56, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-float--video { top: 6%; left: 4%; animation: about-float-y 6.5s ease-in-out infinite; }
.about-float--seo   { top: 30%; right: 2%; animation: about-float-y 7.5s ease-in-out infinite; animation-delay: 0.8s; }
.about-float--chart { bottom: 12%; right: 12%; animation: about-float-y 8s ease-in-out infinite; animation-delay: 1.4s; }

/* tiny glass label */
.about-float--chip {
    bottom: 20%;
    left: 6%;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(224, 231, 255, 0.9);
    box-shadow: 0 6px 16px rgba(13, 27, 56, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: about-float-y 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* ----------------------------------------------------------
   Professional snapshot — compact editorial metadata list
   ---------------------------------------------------------- */
.about-snapshot {
    margin: 0;
}

.about-snap-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.95rem 0;
    border-top: 1px solid var(--color-border);
}

.about-snap-item dt {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-light);
    white-space: nowrap;
}

.about-snap-item dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--color-accent);
}

/* ----------------------------------------------------------
   CTA — existing secondary button with a nudging arrow
   ---------------------------------------------------------- */
.about-action {
    padding-top: 0.5rem;
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-cta:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.about-cta-arrow {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.about-cta:hover .about-cta-arrow,
.about-cta:focus-visible .about-cta-arrow {
    transform: translateX(4px);
}

/* ----------------------------------------------------------
   Motion — entrance + gentle independent float
   ---------------------------------------------------------- */
@keyframes about-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes about-float-y {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes about-drift {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -48%) rotate(4deg);
    }
}

/* Entrance stagger for the text column */
.about-copy > * {
    animation: about-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-copy > *:nth-child(1) { animation-delay: 0.05s; }
.about-copy > *:nth-child(2) { animation-delay: 0.1s; }
.about-copy > *:nth-child(3) { animation-delay: 0.15s; }
.about-copy > *:nth-child(4) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    .about-copy > *,
    .about-stage,
    .about-photo img,
    .about-float {
        animation: none !important;
        transition: none !important;
    }
}

/* ----------------------------------------------------------
   Responsive — tablet collapses to one column, portrait first
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    .about-wrap {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "stage"
            "snap"
            "action";
        row-gap: 2.5rem;
    }

    .about-stage {
        min-height: clamp(320px, 60vw, 400px);
        justify-content: center;
    }

    .about-snap-item {
        max-width: 480px;
    }
}

@media (max-width: 480px) {
    .page-about {
        padding-top: 4.5rem;
    }

    .about-photo img {
        width: 220px;
    }

    /* Decorative elements reduced — keep 1–3, away from text/face */
    .about-float--seo,
    .about-float--chart {
        display: none;
    }

    .about-float--ring {
        width: 240px;
        height: 240px;
    }

    .about-float--video { top: 4%; }
    .about-float--chip { left: 2%; }

    .about-snap-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .about-snap-item dd {
        text-align: left;
    }
}