/* ─── Section ─────────────────────────────────────────────── */
.about-section {
    position: relative;
    background-color: var(--dark);
    color: var(--light);
    min-height: 110dvh;
    padding: 0 5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-inner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}


/* ─── Watermark ───────────────────────────────────────────── */
.about-watermark {
    position: absolute;
    bottom: -6%;
    right: 3%;
    font-size: clamp(220px, 30vw, 380px);
    color: rgba(249, 244, 235, 0.03);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}


/* ─── Tag ─────────────────────────────────────────────────── */
.about-section .section-tag {
    background-color: transparent;
    color: rgba(249, 244, 235, 0.3);
    border: 1px solid rgba(249, 244, 235, 0.12);
    letter-spacing: 3px;
    display: inline-block;
}


/* ─── Layout ──────────────────────────────────────────────── */
.about-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4.5rem;
    align-items: center;
}


/* ─── Year column ─────────────────────────────────────────── */
.about-years {
    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.6s ease 0s, transform 0.6s ease 0s;
}

.about-years.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.about-yr {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 400;
    color: rgba(249, 244, 235, 0.88);
    line-height: 1;
    letter-spacing: -1px;
}

.about-yr-note {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(249, 244, 235, 0.444);
    text-align: center;
    margin: 0.35rem 0;
}


/* ─── Animated track ──────────────────────────────────────── */
.about-track {
    width: 1px;
    height: clamp(60px, 10vw, 110px);
    background: rgba(249, 244, 235, 0.08);
    margin: 0.5rem 0;
    position: relative;
    overflow: hidden;
}

.about-track-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(249, 244, 235, 0.5);
    animation: track-fill 2.4s ease-in-out infinite alternate;
}

@keyframes track-fill {
    0%   { height: 8%;  top: 0%; }
    50%  { height: 80%; top: 0%; }
    100% { height: 8%;  top: 88%; }
}


/* ─── Degree (anchored under graduating) ──────────────────── */
.about-degree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.6rem;

    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.about-degree.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-degree-name {
    font-size: clamp(0.65rem, 1vw, 0.78rem);
    font-weight: 400;
    color: rgba(249, 244, 235, 0.703);
    letter-spacing: 0.3px;
    text-align: center;
}

.about-degree-uni {
    font-size: clamp(0.6rem, 0.9vw, 0.7rem);
    font-weight: 300;
    color: rgba(249, 244, 235, 0.555);
    letter-spacing: 0.3px;
    text-align: center;
}


/* ─── Right column ────────────────────────────────────────── */
.about-right {
    border-left: 1px solid rgba(249, 244, 235, 0.08);
    padding-left: 4.5rem;
}


/* ─── Heading ─────────────────────────────────────────────── */
.about-statement {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 300;
    line-height: 1.45;
    color: rgba(249, 244, 235, 0.4);
    font-family: var(--font-body);

    background-image: radial-gradient(calc(200px + var(--spot-boost, 0) * 130px) circle at var(--mx, 50%) var(--my, 50%), #fff 0%, rgba(249, 244, 235, 0.35) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.about-statement.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-line {
    display: block;
    text-wrap: balance;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
}

.about-line-lead {
    max-width: 54ch;
    margin-bottom: 1.5rem;
}

.about-line-main {
    max-width: 60vw;
    margin-left: auto;
    text-align: right;
}

/* "It is my comfort zone." — own line, soft italic, lit by the same drifting spotlight */
.about-emphasis {
    display: block;
    width: fit-content;
    max-width: 55%;
    margin-top: 1.75rem;
    margin-left: auto;
    margin-right: -1.5rem;
    text-align: right;
    /* font-family: var(--font-body); */
    font-style: italic;
    font-weight: 300;
    font-size: 0.7em;
    color: rgba(249, 244, 235, 0.35);
    background-image: radial-gradient(calc(150px + var(--spot-boost, 0) * 100px) circle at var(--mx, 50%) var(--my, 50%), #fff 0%, rgba(249, 244, 235, 0.3) 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-statement.is-visible .about-emphasis {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}


/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .about-section  { padding: 0 3rem; }
    .about-layout   { gap: 3rem; }
    .about-right    { padding-left: 3rem; }
}

@media (max-width: 768px) {
    .about-section {
        padding: 5rem 1.5rem 4rem;
        min-height: 100svh;
        overflow: visible;
        justify-content: center;
    }

    .about-layout {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
        min-height: calc(100svh - 6rem);
        align-items: stretch;
    }

    .about-yr {
        font-size: clamp(2.2rem, 7vw, 2.6rem);
    }

    /* cap these so their text width doesn't stretch the auto column
       and starve the paragraph of horizontal space */
    .about-degree-name,
    .about-degree-uni {
        max-width: 90px;
    }

    /* reset years back to vertical column */
    .about-years {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        height: 100%;
        gap: 0;
    }

    .about-yr-note { margin: 0.35rem 0; }

    /* track stretches to fill the space between 2022 and 2026 */
    .about-track {
        flex: 1;
        width: 1px;
        height: auto;
        min-height: 40px;
        margin: 0.5rem 0;
    }

    /* reset back to vertical fill animation */
    .about-track-fill {
        width: 100%;
        height: 8%;
        top: 0;
        left: 0;
        animation: track-fill 2.4s ease-in-out infinite alternate;
    }

    .about-degree {
        width: auto;
        margin-top: 0.6rem;
        align-items: center;
    }

    /* statement sits beside the track, centered vertically */
    .about-right {
        border-top: none;
        border-left: 1px solid rgba(249, 244, 235, 0.08);
        padding-top: 0;
        padding-left: 1.5rem;
        display: flex;
        align-items: center;
    }

    .about-statement {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        line-height: 1.35;
    }

    /* the desktop zigzag (narrow columns, right-aligned, negative
       offset margins) needs real width to breathe — this column
       doesn't have it, so drop back to a plain stacked block */
    .about-line-lead,
    .about-line-main {
        max-width: none;
        margin-left: 0;
        text-align: left;
    }

    .about-line-lead {
        margin-bottom: 2.7rem;
    }

    .about-emphasis {
        width: auto;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 2rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .about-yr { font-size: clamp(2rem, 9vw, 2.8rem); }
}