.about-page {
    min-height: 100svh;
    position: relative;
    overflow-x: clip;
    padding-bottom: 4rem;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: var(--progress-width, 0%);
    background: linear-gradient(90deg, var(--secundaria), #ffd477);
    box-shadow: 0 4px 14px rgba(var(--secundaria-rgb), 0.36);
    z-index: 1001;
    transition: width 120ms linear;
}

.scroll-progress.is-complete {
    box-shadow: 0 4px 16px rgba(var(--secundaria-rgb), 0.56);
}

.intro-mask {
    position: fixed;
    inset: 0;
    background: var(--primaria);
    z-index: 999;
    transform-origin: top;
    transition: transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-mask.is-revealed {
    transform: scaleY(0);
}

.grain-layer {
    position: fixed;
    inset: 0;
    background-color: var(--primaria);
    background-size: 28px 28px;
    
    pointer-events: none;
    z-index: 0;
}

.ring {
    position: absolute;
    width: 46vw;
    height: 46vw;
    min-width: 320px;
    min-height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(var(--secundaria-rgb), 0.24);
    filter: blur(0.4px);
    animation: orbit 12s ease-in-out infinite;
    z-index: 0;
}

.ring-top {
    top: -16vw;
    right: -10vw;
}

.ring-bottom {
    bottom: -22vw;
    left: -12vw;
    animation-delay: -4s;
}

.top-nav,
.hero,
.timeline,
.skills {
    position: relative;
    z-index: 1;
}

.top-nav {
    padding-top: clamp(1.2rem, 3vw, 2rem);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    color: var(--secundaria);
    text-decoration: none;
    letter-spacing: 0.08em;
    font-size: 0.88rem;
    text-transform: uppercase;
    font-weight: 700;
}

.back-link {
    text-decoration: none;
    color: var(--light_sec);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
}

.back-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--secundaria);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.back-link:hover::after {
    transform: scaleX(1);
}

.hero {
    padding-top: clamp(2rem, 6vw, 4.5rem);
}

.eyebrow {
    color: var(--secundaria);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.hero-copy h1 {
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--light_sec);
}

.summary {
    margin-top: 1.1rem;
    max-width: 54ch;
    color: rgba(var(--light-sec-rgb), 0.92);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.primary-action,
.secondary-action {
    text-decoration: none;
    border-radius: 999px;
    padding: 0.75rem 1.2rem;
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.primary-action {
    background: var(--secundaria);
    color: var(--dark_prim);
}

.secondary-action {
    border: 1px solid rgba(var(--light-sec-rgb), 0.34);
    color: var(--light_sec);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-2px);
}

.stats-card {
    border: 1px solid rgba(var(--light-sec-rgb), 0.2);
    border-radius: 24px;
    padding: 1.6rem;
    background: linear-gradient(135deg, rgba(var(--light-sec-rgb), 0.12), rgba(var(--dark-prim-rgb), 0.45));
    backdrop-filter: blur(6px);
}

.stats-card h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light_sec);
}

.stats-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.95rem;
}

.stats-card li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(var(--light-sec-rgb), 0.12);
    padding-bottom: 0.65rem;
    color: rgba(var(--light-sec-rgb), 0.9);
}

.stats-card li strong {
    color: var(--secundaria);
}

.timeline {
    margin-top: 4.2rem;
}

.timeline-item {
    border-left: 3px solid rgba(var(--secundaria-rgb), 0.58);
    padding: 1.2rem 1rem 1.2rem 1.2rem;
    background: rgba(var(--dark-prim-rgb), 0.62);
    border-radius: 0 16px 16px 0;
}

.year {
    margin: 0;
    font-size: 0.86rem;
    color: var(--secundaria);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.timeline-item h3 {
    margin: 0.45rem 0;
    font-size: 1.24rem;
    color: var(--light_sec);
}

.timeline-item p {
    margin: 0;
    color: rgba(var(--light-sec-rgb), 0.88);
}

.skills {
    margin-top: 4.2rem;
}

.skills-header h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    color: var(--light_sec);
}

.skill {
    border: 1px solid rgba(var(--light-sec-rgb), 0.16);
    border-radius: 18px;
    padding: 1.2rem;
    background: rgba(var(--dark-prim-rgb), 0.45);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.skill h3 {
    color: var(--light_sec);
}

.skill p {
    color: rgba(var(--light-sec-rgb), 0.86);
    margin-bottom: 0;
}

.skill:hover {
    border-color: rgba(var(--secundaria-rgb), 0.55);
    transform: translateY(-3px);
}

.reveal-item {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    filter: blur(2px);
    transition:
        opacity 620ms cubic-bezier(0.2, 0.75, 0.35, 1),
        transform 620ms cubic-bezier(0.2, 0.75, 0.35, 1),
        filter 620ms ease;
    transition-delay: 0ms;
    will-change: opacity, transform, filter;
}

.reveal-item.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: var(--reveal-delay, 0ms);
}

.projects-cta-wrap {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    perspective: 900px;
}

.projects-teaser {
    width: min(100%, 780px);
    padding: clamp(1.2rem, 2.8vw, 1.8rem);
    border-radius: 22px;
    border: 1px solid rgba(var(--light-sec-rgb), 0.2);
    background:
        radial-gradient(circle at 12% 18%, rgba(var(--secundaria-rgb), 0.24), transparent 42%),
        radial-gradient(circle at 86% 74%, rgba(var(--light-sec-rgb), 0.1), transparent 38%),
        linear-gradient(150deg, rgba(var(--dark-prim-rgb), 0.56), rgba(var(--primaria-rgb), 0.74));
    backdrop-filter: blur(8px);
    box-shadow: 0 22px 42px rgba(var(--dark-prim-rgb), 0.34);
    position: relative;
    overflow: hidden;
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 200ms ease, box-shadow 260ms ease, border-color 260ms ease;
    isolation: isolate;
}

.projects-teaser::before {
    content: "";
    position: absolute;
    width: 56%;
    height: 220%;
    left: -62%;
    top: -60%;
    background: linear-gradient(110deg, transparent, rgba(var(--light-sec-rgb), 0.16), transparent);
    transform: rotate(9deg);
    animation: teaser-sheen 4.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.projects-teaser::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(var(--secundaria-rgb), 0.2);
    pointer-events: none;
}

.projects-teaser > * {
    position: relative;
    z-index: 1;
}

.projects-teaser:hover {
    box-shadow: 0 30px 50px rgba(var(--dark-prim-rgb), 0.42);
    border-color: rgba(var(--secundaria-rgb), 0.46);
}

.teaser-kicker {
    margin: 0;
    color: var(--secundaria);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
}

.projects-teaser h3 {
    margin: 0.45rem 0 0;
    color: var(--light_sec);
    font-size: clamp(1.35rem, 2.9vw, 2rem);
    line-height: 1.1;
}

.teaser-copy {
    margin: 0.85rem 0 0;
    color: rgba(var(--light-sec-rgb), 0.9);
    max-width: 62ch;
}

.teaser-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.teaser-tags span {
    border: 1px solid rgba(var(--light-sec-rgb), 0.26);
    background: rgba(var(--dark-prim-rgb), 0.4);
    color: rgba(var(--light-sec-rgb), 0.95);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    animation: tag-float 2.9s ease-in-out infinite;
}

.teaser-tags span:nth-child(2) {
    animation-delay: 180ms;
}

.teaser-tags span:nth-child(3) {
    animation-delay: 320ms;
}

.projects-launch {
    margin-top: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border-radius: 12px;
    padding: 0.85rem 1.4rem;
    min-width: clamp(340px, 52vw, 600px);
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--dark_prim);
    background: linear-gradient(135deg, var(--secundaria), #ffe3a0);
    border: 1px solid rgba(var(--light-sec-rgb), 0.5);
    box-shadow: 0 12px 22px rgba(var(--dark-prim-rgb), 0.28);
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
    animation: launch-breathe 2.2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.projects-launch::before {
    content: "";
    position: absolute;
    width: 54%;
    height: 240%;
    left: -60%;
    top: -70%;
    background: linear-gradient(110deg, transparent, rgba(var(--light-sec-rgb), 0.5), transparent);
    transform: rotate(12deg);
    animation: launch-sheen 3.3s ease-in-out infinite;
    pointer-events: none;
}

.projects-launch .arrow {
    font-size: 1rem;
    transition: transform 220ms ease;
}

.projects-launch:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(var(--dark-prim-rgb), 0.36);
    filter: saturate(1.1);
}

.projects-launch:hover .arrow {
    transform: translateX(4px);
}

.progress-celebration {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1002;
    overflow: hidden;
}

.star-drop {
    position: absolute;
    top: -24px;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: linear-gradient(145deg, #fff4cc, var(--secundaria));
    box-shadow: 0 0 12px rgba(var(--secundaria-rgb), 0.66);
    transform: rotate(45deg);
    animation: star-fall var(--fall-time, 1600ms) linear forwards;
}

.star-drop::before,
.star-drop::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
}

.star-drop::before {
    transform: rotate(60deg);
}

.star-drop::after {
    transform: rotate(-60deg);
}

@keyframes teaser-sheen {
    0%,
    14% {
        transform: translateX(0) rotate(9deg);
    }

    42% {
        transform: translateX(420%) rotate(9deg);
    }

    100% {
        transform: translateX(420%) rotate(9deg);
    }
}

@keyframes launch-breathe {
    0%,
    100% {
        box-shadow: 0 12px 22px rgba(var(--dark-prim-rgb), 0.28);
    }

    50% {
        box-shadow: 0 16px 32px rgba(var(--secundaria-rgb), 0.25);
    }
}

@keyframes launch-sheen {
    0%,
    18% {
        transform: translateX(0) rotate(12deg);
    }

    52% {
        transform: translateX(420%) rotate(12deg);
    }

    100% {
        transform: translateX(420%) rotate(12deg);
    }
}

@keyframes tag-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes star-fall {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.45);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    100% {
        transform: translateY(112vh) rotate(420deg) scale(1);
        opacity: 0;
    }
}

@keyframes orbit {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@media (max-width: 575.98px) {
    .ring {
        width: 70vw;
        height: 70vw;
        min-width: 240px;
        min-height: 240px;
    }

    .projects-teaser {
        width: 100%;
    }

    .projects-launch {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

}

@media (prefers-reduced-motion: reduce) {
    .projects-teaser,
    .projects-teaser::before,
    .teaser-tags span,
    .projects-launch,
    .projects-launch::before,
    .reveal-item,
    .star-drop {
        animation: none;
        transition: none;
    }
}
