/* =========================================================
   EduOrk Academy — About page styles (about.html)
   Moved here from css/pages/home.css when the About section
   was taken off the home page. Loaded only by about.html.
   ========================================================= */

#about {
    border-top: 0
}

#about {
    background-color: #ffffff !important;
}

#about {
    background-image: radial-gradient(rgba(103, 0, 1, .07) 1px, transparent 1px) !important;
    background-size: 22px 22px !important;
}

#about {
    background: #670001 !important;
    border-color: #670001 !important;
}

/* navbar height: the About section fills the rest of the first screen on desktop */
:root {
    --hx-header: 6.25rem;
}

/* ===== About section (#about) ===== */

.ab-section {
    color: #fff;
    isolation: isolate;
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .ab-section {
        padding: 5.5rem 0;
    }
}

#about {
    background: #670001 !important;
}

.ab-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
}

.ab-blob {
    position: absolute;
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 15%, transparent 100%);
    animation: abDrift 12s ease-in-out infinite;
}

.ab-b1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -100px;
    background: rgba(220, 38, 38, .45);
}

.ab-b2 {
    width: 380px;
    height: 380px;
    bottom: -140px;
    right: -80px;
    background: rgba(251, 191, 36, .22);
    animation-delay: -5s;
}

.ab-ring {
    position: absolute;
    width: 480px;
    height: 480px;
    right: -160px;
    top: 4%;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, .14);
    animation: abSpin 50s linear infinite;
}

.ab-wrap {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 640px) {
    .ab-wrap {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .ab-wrap {
        padding: 0 2rem;
        grid-template-columns: .9fr 1.1fr;
        gap: 4rem;
    }
}

.ab-left {
    display: flex;
    justify-content: center;
}

.ab-collage {
    position: relative;
    width: min(100%, 26rem);
    height: 30rem;
    margin: 0 1rem;
}

@media (min-width: 640px) {
    .ab-collage {
        height: 34rem;
    }
}

.ab-halo {
    position: absolute;
    z-index: -1;
    inset: -1.2rem;
    border-radius: 999px 999px 2rem 2rem;
    border: 2px dashed rgba(251, 191, 36, .4);
    animation: abBreath 5s ease-in-out infinite;
}

.ab-dots {
    position: absolute;
    z-index: -1;
    right: -2rem;
    bottom: -1.4rem;
    width: 9rem;
    height: 9rem;
    background-image: radial-gradient(#fbbf24 2.2px, transparent 2.2px);
    background-size: 16px 16px;
    opacity: .5;
    animation: abBob 6s ease-in-out infinite;
}

.ab-pic {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 5px;
    border-radius: 999px 999px 1.6rem 1.6rem;
    background: linear-gradient(135deg, #fde68a, #f59e0b, #fff, #fbbf24, #fde68a);
    background-size: 300% 300%;
    box-shadow: 0 30px 55px -20px rgba(0, 0, 0, .7), 0 0 40px -6px rgba(251, 191, 36, .35);
    animation: abGrad 7s ease-in-out infinite, abFloat 7s ease-in-out infinite;
}

.ab-pic::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, .38);
    transform: translate(12px, 12px);
    transition: transform .4s ease;
}

.ab-pic:hover::before {
    transform: translate(18px, 18px);
}

.ab-in {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: #f1f5f9;
}

.ab-in img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}

.ab-pic:hover .ab-in img {
    transform: scale(1.07);
}

.ab-in::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, .2), transparent 40%, rgba(103, 0, 1, .28) 100%);
}

.ab-chip {
    position: absolute;
    z-index: 6;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #670001;
    font-size: 1.1rem;
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .55);
    animation: abChip 5s ease-in-out infinite;
}

.ab-c1 {
    top: 8%;
    left: -1.5rem;
}

.ab-c2 {
    top: 46%;
    right: -1.5rem;
    background: #670001;
    color: #fde68a;
    border: 2px solid #fbbf24;
    animation-delay: -2s;
}

.ab-c3 {
    bottom: 8%;
    left: -1.2rem;
    border-radius: 50%;
    color: #f59e0b;
    animation-delay: -3.5s;
}

@media (max-width: 480px) {
    .ab-chip {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1rem;
    }

    .ab-c1,
    .ab-c3 {
        left: -.7rem;
    }

    .ab-c2 {
        right: -.7rem;
    }
}

#about .ab-title {
    margin: 0;
    color: #fff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
}

.ab-bar {
    display: block;
    width: 5rem;
    height: 5px;
    margin: .9rem 0 1.4rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #fff, #dc2626, #fbbf24);
    background-size: 250% 100%;
    animation: abShine 4s linear infinite;
}

#about .ab-intro {
    margin: 0 0 1.8rem;
    max-width: 42rem;
    font-size: 1.05rem;
    line-height: 1.85;
    font-weight: 500;
    color: rgba(255, 255, 255, .93) !important;
}

.ab-intro strong,
.ab-msg-text strong {
    color: #fff;
    font-weight: 800;
}

.ab-message {
    position: relative;
    overflow: hidden;
    max-width: 44rem;
    padding: 1.8rem 1.6rem 1.6rem 1.8rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .16);
    border-left: 4px solid #fbbf24;
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
}

.ab-quote {
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    font-size: 3rem;
    color: rgba(251, 191, 36, .18);
}

#about .ab-msg-title {
    margin: 0;
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 800;
}

.ab-msg-bar {
    display: block;
    width: 4.5rem;
    height: 4px;
    margin: .6rem 0 1.1rem;
    border-radius: 999px;
    background: #ef4444;
}

#about .ab-msg-text {
    margin: 0 0 1.4rem;
    font-size: .98rem;
    line-height: 1.85;
    font-weight: 500;
    color: rgba(255, 255, 255, .9) !important;
}

.ab-sign {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(255, 255, 255, .22);
}

.ab-sign-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    color: #670001;
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, .22);
}

#about .ab-name {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff !important;
}

#about .ab-role {
    margin: .1rem 0 0;
    font-size: .9rem;
    font-weight: 600;
    color: #fcd34d !important;
}

.ab-right {
    display: block;
}

.ab-section {
    padding: 2.5rem 0 3rem;
}

@media (min-width: 1024px) {
    .ab-section {
        display: flex;
        align-items: center;
        padding: 1.25rem 0;
        min-height: calc(100vh - var(--hx-header));
        min-height: calc(100svh - var(--hx-header));
    }

    .ab-wrap {
        width: 100%;
        grid-template-columns: .78fr 1.22fr;
        gap: 1.3rem 3rem;
        align-items: center;
    }
}

.ab-collage {
    width: min(100%, 20rem);
    height: 24rem;
}

@media (min-width: 1024px) {
    .ab-collage {
        height: clamp(18rem, calc(100vh - var(--hx-header) - 13rem), 27rem);
        height: clamp(18rem, calc(100svh - var(--hx-header) - 13rem), 27rem);
    }
}

.ab-chip {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1rem;
    border-radius: .85rem;
}

.about-img-1 {
    object-position: center top;
}

.ab-c3 {
    border-radius: 50%;
}

#about .ab-title {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.ab-bar {
    margin: .6rem 0 1rem;
    height: 4px;
}

#about .ab-intro {
    font-size: .98rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.ab-message {
    padding: 1.2rem 1.4rem 1.1rem 1.5rem;
    max-width: none;
}

.ab-quote {
    font-size: 2.4rem;
    top: .7rem;
}

#about .ab-msg-title {
    font-size: 1.25rem;
}

.ab-msg-bar {
    margin: .45rem 0 .8rem;
}

#about .ab-msg-text {
    font-size: .93rem;
    line-height: 1.7;
    margin-bottom: .9rem;
}

.ab-sign {
    padding-top: .8rem;
}

.ab-sign-icon {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
}

#about .ab-name {
    font-size: 1rem;
}

#about .ab-role {
    font-size: .85rem;
}

@media (min-width: 1024px) and (max-height: 800px) {
    #about .ab-intro {
        font-size: .92rem;
        line-height: 1.6;
        margin-bottom: .8rem;
    }

    #about .ab-msg-text {
        font-size: .88rem;
        line-height: 1.6;
        margin-bottom: .7rem;
    }

    .ab-message {
        padding: 1rem 1.2rem .9rem 1.3rem;
    }

    .ab-collage {
        height: clamp(16rem, calc(100svh - var(--hx-header) - 12rem), 22rem);
    }
}

@media (min-width: 1024px) {
    .ab-wrap {
        grid-template-columns: .85fr 1.15fr;
        gap: 1.5rem 3.5rem;
    }

    .ab-collage {
        width: min(100%, 25rem);
        height: clamp(21rem, calc(100vh - var(--hx-header) - 6rem), 37rem);
        height: clamp(21rem, calc(100svh - var(--hx-header) - 6rem), 37rem);
    }
}

.ab-collage {
    width: min(100%, 22rem);
    height: 28rem;
}

.ab-pic {
    border-radius: 9rem 9rem 1.6rem 1.6rem;
}

.ab-halo {
    border-radius: 10rem 10rem 2.2rem 2.2rem;
}

.ab-chip {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
}

.about-img-1 {
    object-position: center top;
}

#about .ab-title {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.ab-bar {
    width: 5rem;
    height: 5px;
    margin: .75rem 0 1.2rem;
}

#about .ab-intro {
    font-size: 1.06rem;
    line-height: 1.8;
    margin-bottom: 1.4rem;
    max-width: none;
}

.ab-message {
    padding: 1.5rem 1.7rem 1.3rem 1.8rem;
}

.ab-quote {
    font-size: 3rem;
    top: .9rem;
}

#about .ab-msg-title {
    font-size: 1.45rem;
}

.ab-msg-bar {
    margin: .55rem 0 1rem;
}

#about .ab-msg-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.ab-sign {
    padding-top: 1rem;
}

.ab-sign-icon {
    width: 2.8rem;
    height: 2.8rem;
    font-size: 1.1rem;
}

#about .ab-name {
    font-size: 1.1rem;
}

#about .ab-role {
    font-size: .92rem;
}

@media (min-width: 1024px) and (max-height: 800px) {
    #about .ab-title {
        font-size: 2.3rem;
    }

    #about .ab-intro {
        font-size: .96rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    #about .ab-msg-text {
        font-size: .92rem;
        line-height: 1.7;
        margin-bottom: .8rem;
    }

    .ab-message {
        padding: 1.1rem 1.3rem 1rem 1.4rem;
    }

    .ab-collage {
        height: clamp(19rem, calc(100svh - var(--hx-header) - 5rem), 28rem);
    }
}

@media (prefers-reduced-motion: reduce) {

    #about *,
    #about *::before,
    #about *::after {
        animation: none !important;
    }
}

/* ----- About animations ----- */
@keyframes abDrift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(24px, -28px) scale(1.1);
    }
}

@keyframes abSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes abGrad {

    0%,
    100% {
        background-position: 50% 50%;
    }
}

@keyframes abFloat {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -10px;
    }
}

@keyframes abBob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes abBreath {

    0%,
    100% {
        opacity: .55;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

@keyframes abSweep {

    0%,
    55% {
        left: -70%;
    }

    100% {
        left: 170%;
    }
}

@keyframes abChip {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-12px) rotate(4deg);
    }
}

@keyframes abPulse {
    0% {
        box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5), 0 0 0 0 rgba(255, 255, 255, .5);
    }

    80%,
    100% {
        box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5), 0 0 0 14px rgba(255, 255, 255, 0);
    }
}


/* =========================================================
   Below About Us — colour rhythm:  About (maroon) -> What We Offer (white)
   -> Partnerships (maroon) -> footer (white)

   Motion = one calm entrance per element when it scrolls into view,
   a light scroll-parallax on the collage, and hover effects.
   Nothing loops forever. Switched off for "reduce motion".
   ========================================================= */

/* ---------- WHAT WE OFFER (white) ---------- */
.wo-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 5rem 0 5.5rem;
    background-color: #fff;
    background-image: radial-gradient(rgba(103, 0, 1, .07) 1px, transparent 1px);
    background-size: 22px 22px;
}

.wo-wrap {
    position: relative;
    z-index: 2;
    max-width: 78rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.wo-head {
    text-align: center;
    margin-bottom: 3.75rem;
}

.wo-title {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.1;
    color: #670001;
}

.wo-bar,
.pc-bar {
    display: block;
    width: 4.5rem;
    height: 4px;
    margin: 1.1rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #670001, #f59e0b);
}

.wo-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .wo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.wo-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.wo-card:hover {
    transform: translateY(-6px);
}

/* very soft, static colour wash behind each item */
.wo-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: -1rem;
    width: 17rem;
    height: 17rem;
    margin-left: -8.5rem;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .5;
    transition: opacity .5s ease;
}

.wo-card:hover::before {
    opacity: .85;
}

.wo-c1::before {
    background: rgba(249, 115, 22, .22);
}

.wo-c2::before {
    background: rgba(79, 91, 213, .20);
}

.wo-c3::before {
    background: rgba(255, 164, 27, .24);
}

.wo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.25rem;
    height: 6.25rem;
    border-radius: 50%;
    color: #fff;
    font-size: 2.1rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .4);
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease;
}

.wo-c1 .wo-icon {
    background: linear-gradient(145deg, #fb8a1c, #f26a0a);
}

.wo-c2 .wo-icon {
    background: linear-gradient(145deg, #6270e6, #4a55d0);
}

.wo-c3 .wo-icon {
    background: linear-gradient(145deg, #ffb02e, #ff9a0f);
}

.wo-icon i {
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.wo-card:hover .wo-icon {
    transform: scale(1.09);
    box-shadow: 0 24px 34px -14px rgba(0, 0, 0, .45);
}

.wo-card:hover .wo-icon i {
    transform: rotate(-10deg) scale(1.1);
}

.wo-card h3 {
    margin: 0 0 .9rem;
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    line-height: 1.35;
    color: #1f1b3a;
    transition: color .3s ease;
}

.wo-card:hover h3 {
    color: #670001;
}

.wo-card p {
    margin: 0 auto;
    max-width: 24rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #6b6580;
}

/* curved arrows (desktop only) */
.wo-arrow {
    display: none;
    position: absolute;
    z-index: 2;
    width: 11.5%;
    max-width: 10rem;
    height: auto;
    overflow: visible;
    fill: none;
    stroke: #b4aee8;
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

@media (min-width: 900px) {
    .wo-arrow {
        display: block;
    }

    .wo-arrow-1 {
        left: 27.6%;
        top: 1.4rem;
    }

    .wo-arrow-2 {
        left: 60.9%;
        top: 1.4rem;
    }
}

.wo-zig {
    position: absolute;
    z-index: 1;
    left: clamp(.75rem, 7vw, 8.5rem);
    top: 1.6rem;
    width: 9rem;
    height: auto;
    fill: none;
    stroke: #f6cdbd;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* ---------- PARTNERSHIPS (maroon) ---------- */
.pc-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 5rem 0 5.5rem;
    background: #670001;
    color: #fff;
}

.pc-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
}

.pc-section::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -8rem;
    bottom: -9rem;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, .22), transparent 68%);
    pointer-events: none;
}

.pc-wrap {
    position: relative;
    z-index: 2;
    max-width: 88rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.pc-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1560 / 480;
    margin: 0 auto 4rem;
}

.pc-photo {
    position: absolute;
    margin: 0;
    border-radius: .75rem;
    translate: 0 var(--py, 0px);
}

.pc-in {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    background: linear-gradient(135deg, #8a1a1c, #4d0001);
    box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .65);
    transition: box-shadow .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
}

.pc-photo:hover .pc-in {
    transform: translateY(-6px);
    box-shadow: 0 28px 44px -16px rgba(0, 0, 0, .75);
}

.pc-in img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}

.pc-photo:hover .pc-in img {
    transform: scale(1.07);
}

/* single soft shine on hover */
.pc-in::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .35) 50%, transparent 62%);
    transform: translateX(-120%);
    pointer-events: none;
}

.pc-photo:hover .pc-in::after {
    transform: translateX(120%);
    transition: transform .9s ease;
}

/* photo not added yet -> soft placeholder, not a broken-image icon */
.pc-in.pc-missing img {
    visibility: hidden;
}

.pc-in.pc-missing::before {
    content: "\f030";
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, .3);
}

/* positions (% of the stage -> scales smoothly): FIVE PHOTOS OF THE SAME SIZE,
   alternating low / high so the row reads like a wave */
.pc-p1,
.pc-p2,
.pc-p3,
.pc-p4,
.pc-p5 {
    width: 18%;
    aspect-ratio: 4 / 3;
}

.pc-p1 {
    left: 0;
    top: 31%;
}

.pc-p2 {
    left: 20.5%;
    top: 7%;
    z-index: 2;
}

.pc-p3 {
    left: 41%;
    top: 31%;
}

.pc-p4 {
    left: 61.5%;
    top: 7%;
    z-index: 2;
}

.pc-p5 {
    left: 82%;
    top: 31%;
}

/* decorations (they only drift a little with scroll) */
.pc-block {
    position: absolute;
    left: 16.5%;
    top: 46%;
    width: 8%;
    height: 40%;
    border-radius: .5rem;
    background: linear-gradient(145deg, #ffcf86, #f5a524);
    translate: 0 var(--py, 0px);
}

.pc-circle {
    position: absolute;
    right: .5%;
    top: 3%;
    width: 6%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9d82, #f2653f);
    translate: 0 var(--py, 0px);
}

.pc-dots {
    position: absolute;
    left: 62%;
    top: 62%;
    width: 8%;
    height: 26%;
    background-image: radial-gradient(rgba(251, 191, 36, .75) 2px, transparent 2.2px);
    background-size: 14px 14px;
    translate: 0 var(--py, 0px);
}

.pc-text {
    position: relative;
    max-width: 62rem;
    margin: 0 auto;
    text-align: center;
}

.pc-text h2 {
    margin: 0;
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    line-height: 1.25;
    color: #fff;
}

.pc-bar {
    margin-bottom: 1.6rem;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.pc-text p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.95;
    color: rgba(255, 240, 230, .86);
}

/* tablet + phone: tidy 2-column grid instead of a floating collage */
@media (max-width: 899px) {
    .pc-stage {
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: .9rem;
        margin-bottom: 2.75rem;
    }

    .pc-photo,
    .pc-p1,
    .pc-p2,
    .pc-p3,
    .pc-p4,
    .pc-p5 {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        aspect-ratio: 4 / 3;
        translate: none;
    }

    .pc-p1 {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 10;
    }

    .pc-block,
    .pc-dots {
        display: none;
    }

    .pc-circle {
        width: 4.5rem;
        top: -1.4rem;
        right: -1rem;
        translate: none;
        z-index: 0;
    }
}

/* =========================================================
   ENTRANCE MOTION  (class "ab-js" + "is-in" are added by a tiny script)
   Hidden states exist ONLY when that script runs, so the content is
   never invisible if JavaScript is blocked.
   ========================================================= */
.ab-js .wo-section:not(.is-in) .wo-head>*,
.ab-js .wo-section:not(.is-in) .wo-card,
.ab-js .pc-section:not(.is-in) .pc-text>*,
.ab-js .pc-section:not(.is-in) .pc-photo,
.ab-js .pc-section:not(.is-in) .pc-block,
.ab-js .pc-section:not(.is-in) .pc-circle,
.ab-js .pc-section:not(.is-in) .pc-dots {
    opacity: 0;
}

.ab-js .wo-section:not(.is-in) .wo-icon {
    transform: scale(.55);
    opacity: 0;
}

.ab-js .wo-section:not(.is-in) .wo-bar {
    transform: scaleX(0);
}

.wo-arrow-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

.wo-arrow-head {
    opacity: 0;
}

.is-in .wo-head>* {
    animation: abUp .9s cubic-bezier(.16, 1, .3, 1) backwards;
}

.is-in .wo-head>.wo-bar {
    animation: abBar .8s .35s cubic-bezier(.16, 1, .3, 1) backwards;
    transform-origin: center;
}

.is-in .wo-card {
    animation: abUp 1s cubic-bezier(.16, 1, .3, 1) backwards;
    animation-delay: calc(var(--i, 0) * .16s + .2s);
}

.is-in .wo-icon {
    animation: abPop .9s cubic-bezier(.34, 1.56, .64, 1) backwards;
    animation-delay: calc(var(--i, 0) * .16s + .45s);
}

.is-in .wo-arrow-line {
    animation: abDraw 1.1s cubic-bezier(.65, 0, .35, 1) .9s forwards;
}

.is-in .wo-arrow-head {
    animation: abFade .35s 1.85s forwards;
}

.is-in .wo-arrow-2 .wo-arrow-line {
    animation-delay: 1.35s;
}

.is-in .wo-arrow-2 .wo-arrow-head {
    animation-delay: 2.3s;
}

.is-in .pc-photo {
    animation: abPhoto 1.15s cubic-bezier(.16, 1, .3, 1) backwards;
    animation-delay: calc(var(--i, 0) * .12s);
}

.is-in .pc-block {
    animation: abSlide 1s .15s cubic-bezier(.16, 1, .3, 1) backwards;
}

.is-in .pc-circle {
    animation: abPop .9s .5s cubic-bezier(.34, 1.56, .64, 1) backwards;
}

.is-in .pc-dots {
    animation: abFade .9s .6s ease backwards;
}

.is-in .pc-text> :nth-child(1) {
    animation: abUp .9s .1s cubic-bezier(.16, 1, .3, 1) backwards;
}

.is-in .pc-text> :nth-child(2) {
    animation: abBar .8s .4s cubic-bezier(.16, 1, .3, 1) backwards;
    transform-origin: center;
}

.is-in .pc-text> :nth-child(3) {
    animation: abUp .9s .3s cubic-bezier(.16, 1, .3, 1) backwards;
}

@keyframes abUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes abPop {
    from {
        opacity: 0;
        transform: scale(.55);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes abBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: none;
    }
}

@keyframes abFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes abDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes abSlide {
    from {
        opacity: 0;
        transform: translateX(-28px) scaleX(.7);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes abPhoto {
    from {
        opacity: 0;
        transform: translateY(46px) scale(.95);
        clip-path: inset(14% 0 0 0 round .75rem);
    }

    to {
        opacity: 1;
        transform: none;
        clip-path: inset(0 round .75rem);
    }
}

@media (prefers-reduced-motion: reduce) {

    .wo-section *,
    .pc-section * {
        animation: none !important;
        transition: none !important;
    }

    .wo-arrow-line {
        stroke-dashoffset: 0;
    }

    .wo-arrow-head {
        opacity: 1;
    }

    .pc-photo,
    .pc-block,
    .pc-circle,
    .pc-dots {
        translate: none !important;
    }
}

/* =========================================================
   PHOTO COLLAGE MOTION: every photo floats up & down forever,
   neighbours in opposite directions, each with its own timing.
   (animation sits on .pc-in, so it never fights the entrance
   animation on .pc-photo or the scroll-parallax "translate")
   ========================================================= */
@keyframes pcFloatUp {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-16px)
    }
}

@keyframes pcFloatDown {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(16px)
    }
}

.pc-in {
    animation: pcFloatUp 5.5s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -1.1s);
    will-change: transform;
}

.pc-p2 .pc-in,
.pc-p4 .pc-in {
    animation-name: pcFloatDown;
    animation-duration: 6.2s;
}

/* hover: lift with "translate" and calm the float, so there is no jump */
.pc-photo:hover .pc-in {
    transform: none;
    translate: 0 -8px;
    animation-play-state: paused;
}

/* soft golden frame + glow on every photo */
.pc-in {
    outline: 3px solid rgba(251, 191, 36, .55);
    outline-offset: 0;
    box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .7), 0 0 0 6px rgba(255, 255, 255, .06);
}

@media (max-width: 899px) {
    @keyframes pcFloatUp {

        0%,
        100% {
            transform: translateY(0)
        }

        50% {
            transform: translateY(-7px)
        }
    }

    @keyframes pcFloatDown {

        0%,
        100% {
            transform: translateY(0)
        }

        50% {
            transform: translateY(7px)
        }
    }
}

@media (prefers-reduced-motion: reduce) {

    .pc-in,
    .pc-block {
        animation: none !important;
    }
}

/* =========================================================
   PHOTO COLLAGE v2 — a little sway + an automatic light sweep
   ========================================================= */
@keyframes pcFloatUp {

    0%,
    100% {
        transform: translateY(0) rotate(-.6deg)
    }

    50% {
        transform: translateY(-16px) rotate(.8deg)
    }
}

@keyframes pcFloatDown {

    0%,
    100% {
        transform: translateY(0) rotate(.6deg)
    }

    50% {
        transform: translateY(16px) rotate(-.8deg)
    }
}

@keyframes pcShine {

    0%,
    55% {
        transform: translateX(-120%)
    }

    80%,
    100% {
        transform: translateX(120%)
    }
}

.pc-in::after {
    animation: pcShine 7s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 1.3s + 1.5s);
}

@media (max-width: 899px) {
    @keyframes pcFloatUp {

        0%,
        100% {
            transform: translateY(0)
        }

        50% {
            transform: translateY(-7px)
        }
    }

    @keyframes pcFloatDown {

        0%,
        100% {
            transform: translateY(0)
        }

        50% {
            transform: translateY(7px)
        }
    }

    /* phones/tablets: five equal tiles — two per row, the last one centred */
    .pc-p1 {
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }

    .pc-p5 {
        grid-column: 1 / -1;
        width: calc(50% - .45rem);
        justify-self: center;
    }
}

/* =========================================================
   WHAT WE OFFER — extra motion
   ========================================================= */
.wo-arrow-head {
    stroke-linejoin: round;
}

/* a glowing dot travels along each arrow, forever */
.wo-dot {
    fill: #670001;
    stroke: #fff;
    stroke-width: 2;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(103, 0, 1, .55));
}

.is-in .wo-dot {
    animation: woDotIn .4s 2.4s forwards;
}

@keyframes woDotIn {
    to {
        opacity: 1
    }
}

/* pulsing halo rings around each icon */
.wo-icon {
    position: relative;
}

.wo-icon::before,
.wo-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--wo-c, #f26a0a);
    opacity: 0;
    pointer-events: none;
}

.wo-c1 {
    --wo-c: #f26a0a;
}

.wo-c2 {
    --wo-c: #4a55d0;
}

.wo-c3 {
    --wo-c: #ff9a0f;
}

.is-in .wo-icon::before {
    animation: woRing 3.2s ease-out 1.4s infinite;
}

.is-in .wo-icon::after {
    animation: woRing 3.2s ease-out 2.9s infinite;
}

@keyframes woRing {
    0% {
        transform: scale(.92);
        opacity: .65
    }

    100% {
        transform: scale(1.55);
        opacity: 0
    }
}

/* icon glyph sways (uses "rotate", so the hover rotate still works) */
.wo-icon i {
    animation: woSway 4s ease-in-out infinite;
}

.wo-c2 .wo-icon i {
    animation-delay: -1.3s;
}

.wo-c3 .wo-icon i {
    animation-delay: -2.6s;
}

@keyframes woSway {

    0%,
    100% {
        rotate: -7deg
    }

    50% {
        rotate: 7deg
    }
}

/* the three cards float gently, one after another (uses "translate") */
.is-in .wo-card {
    animation: abUp 1s cubic-bezier(.16, 1, .3, 1) backwards, woFloat 6.5s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * .16s + .2s), calc(var(--i, 0) * .45s + 1.6s);
}

@keyframes woFloat {

    0%,
    100% {
        translate: 0 0
    }

    50% {
        translate: 0 -9px
    }
}

/* the zig-zag decoration drifts sideways */
.wo-zig {
    animation: woZig 9s ease-in-out infinite;
}

@keyframes woZig {

    0%,
    100% {
        translate: 0 0
    }

    50% {
        translate: 14px 6px
    }
}

@media (prefers-reduced-motion: reduce) {

    .wo-icon::before,
    .wo-icon::after,
    .wo-icon i,
    .wo-card,
    .wo-zig,
    .pc-in::after {
        animation: none !important;
    }

    .wo-dot {
        display: none;
    }
}

/* =========================================================
   FOUNDER PHOTO — clean portrait RECTANGLE (was a round-top arch)
   ========================================================= */
#about .ab-collage {
    width: min(100%, 23rem);
}

@media (min-width: 640px) {
    #about .ab-collage {
        width: min(100%, 24rem);
    }
}

#about .ab-pic {
    border-radius: 1.5rem;
}

#about .ab-in {
    border-radius: calc(1.5rem - 5px);
}

#about .ab-halo {
    inset: -1.1rem;
    border-radius: 2.1rem;
}

#about .ab-pic::before {
    border-radius: 1.5rem;
}

/* golden corner brackets frame the photo (top-left + bottom-right) */
#about .ab-pic::after {
    content: "";
    position: absolute;
    inset: -12px;
    pointer-events: none;
    background:
        linear-gradient(#fbbf24, #fbbf24) top left / 44px 4px no-repeat,
        linear-gradient(#fbbf24, #fbbf24) top left / 4px 44px no-repeat,
        linear-gradient(#fbbf24, #fbbf24) bottom right / 44px 4px no-repeat,
        linear-gradient(#fbbf24, #fbbf24) bottom right / 4px 44px no-repeat;
    animation: abBreath 4s ease-in-out infinite;
}