.about-page {
    min-height: 100vh;
}

.about-main {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
}

/* Match project/pharma testimonial card glow palette (accent + theme aware). */
.about-page {
    --card-blur-y: 0.5;
    --card-blur-1a: rgba(200, 185, 230, 0.5);
    --card-blur-1b: rgba(220, 210, 245, 0.25);
    --card-blur-2a: rgba(255, 215, 190, 0.45);
    --card-blur-2b: rgba(255, 230, 210, 0.2);
}

[data-theme="light"] .about-page {
    --card-blur-1a: rgba(195, 178, 225, 0.48);
    --card-blur-1b: rgba(218, 208, 242, 0.22);
    --card-blur-2a: rgba(255, 208, 180, 0.42);
    --card-blur-2b: rgba(255, 228, 208, 0.18);
}

[data-theme="dark"] .about-page {
    --card-blur-1a: rgba(120, 95, 180, 0.4);
    --card-blur-1b: rgba(80, 65, 130, 0.2);
    --card-blur-2a: rgba(200, 130, 90, 0.35);
    --card-blur-2b: rgba(140, 95, 70, 0.18);
}

[data-accent="1"] .about-page {
    --card-blur-1a: rgba(185, 205, 240, 0.5);
    --card-blur-1b: rgba(210, 225, 250, 0.25);
    --card-blur-2a: rgba(190, 215, 255, 0.45);
    --card-blur-2b: rgba(210, 230, 255, 0.2);
}

[data-theme="light"] [data-accent="1"] .about-page {
    --card-blur-1a: rgba(180, 200, 235, 0.48);
    --card-blur-1b: rgba(208, 222, 248, 0.22);
    --card-blur-2a: rgba(185, 210, 250, 0.42);
    --card-blur-2b: rgba(208, 228, 255, 0.18);
}

[data-theme="dark"] [data-accent="1"] .about-page {
    --card-blur-1a: rgba(80, 110, 180, 0.4);
    --card-blur-1b: rgba(55, 80, 140, 0.2);
    --card-blur-2a: rgba(90, 130, 200, 0.35);
    --card-blur-2b: rgba(70, 110, 170, 0.18);
}

[data-accent="2"] .about-page {
    --card-blur-1a: rgba(235, 190, 215, 0.5);
    --card-blur-1b: rgba(245, 215, 235, 0.25);
    --card-blur-2a: rgba(240, 200, 220, 0.45);
    --card-blur-2b: rgba(250, 220, 240, 0.2);
}

[data-theme="light"] [data-accent="2"] .about-page {
    --card-blur-1a: rgba(230, 185, 210, 0.48);
    --card-blur-1b: rgba(242, 212, 232, 0.22);
    --card-blur-2a: rgba(235, 195, 218, 0.42);
    --card-blur-2b: rgba(248, 218, 238, 0.18);
}

[data-theme="dark"] [data-accent="2"] .about-page {
    --card-blur-1a: rgba(160, 75, 120, 0.4);
    --card-blur-1b: rgba(120, 50, 90, 0.2);
    --card-blur-2a: rgba(180, 95, 140, 0.35);
    --card-blur-2b: rgba(140, 70, 110, 0.18);
}

[data-accent="3"] .about-page {
    --card-blur-1a: rgba(185, 230, 200, 0.5);
    --card-blur-1b: rgba(210, 245, 220, 0.25);
    --card-blur-2a: rgba(190, 235, 210, 0.45);
    --card-blur-2b: rgba(210, 245, 225, 0.2);
}

[data-theme="light"] [data-accent="3"] .about-page {
    --card-blur-1a: rgba(180, 225, 195, 0.48);
    --card-blur-1b: rgba(208, 242, 218, 0.22);
    --card-blur-2a: rgba(185, 230, 205, 0.42);
    --card-blur-2b: rgba(208, 242, 222, 0.18);
}

[data-theme="dark"] [data-accent="3"] .about-page {
    --card-blur-1a: rgba(60, 140, 90, 0.4);
    --card-blur-1b: rgba(40, 100, 65, 0.2);
    --card-blur-2a: rgba(80, 160, 110, 0.35);
    --card-blur-2b: rgba(55, 120, 80, 0.18);
}

[data-accent="4"] .about-page {
    --card-blur-1a: rgba(220, 190, 245, 0.5);
    --card-blur-1b: rgba(236, 218, 250, 0.25);
    --card-blur-2a: rgba(210, 178, 240, 0.45);
    --card-blur-2b: rgba(228, 205, 248, 0.2);
}

[data-theme="light"] [data-accent="4"] .about-page {
    --card-blur-1a: rgba(212, 178, 238, 0.48);
    --card-blur-1b: rgba(232, 210, 246, 0.22);
    --card-blur-2a: rgba(202, 168, 232, 0.42);
    --card-blur-2b: rgba(224, 202, 242, 0.18);
}

[data-theme="dark"] [data-accent="4"] .about-page {
    --card-blur-1a: rgba(122, 74, 180, 0.4);
    --card-blur-1b: rgba(90, 54, 136, 0.2);
    --card-blur-2a: rgba(142, 92, 196, 0.35);
    --card-blur-2b: rgba(108, 68, 156, 0.18);
}

.about-page .about-main {
    opacity: 0;
    transform: translateY(10px);
    animation: aboutPageIn 720ms cubic-bezier(0.22, 1, 0.36, 1) 80ms forwards;
}

.about-page .about-title-hello,
.about-page .about-title-name {
    opacity: 0;
    transform: translateY(10px);
    animation: aboutPageIn 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-page .about-title-hello {
    animation-delay: 120ms;
}

.about-page .about-title-name {
    animation-delay: 170ms;
}

.about-page .about-gallery {
    opacity: 0;
    transform: translateY(10px);
    animation: aboutPageIn 760ms cubic-bezier(0.22, 1, 0.36, 1) 240ms forwards;
}

@keyframes aboutPageIn {
    from {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-page .about-main,
    .about-page .about-title-hello,
    .about-page .about-title-name,
    .about-page .about-gallery {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.about-intro {
    padding-top: clamp(1.25rem, 4vw, 3rem);
}

.about-eyebrow {
    letter-spacing: 0.24em;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 1.25rem;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.about-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25em 0.55em;
    margin: 0 0 clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    max-width: 100%;
}

.about-title-hello {
    font-family: var(--font-paragon);
    font-size: clamp(3.1rem, 7vw, 6.4rem);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: #C3CED5;
}

.about-title-name {
    font-family: var(--font-main);
    font-size: clamp(2.7rem, 6.2vw, 5.4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: 0.01em;
    color: var(--text-color);
    display: inline-block;
    padding-bottom: 0.08em;
}

.about-emmi-copy {
    max-width: none;
    width: 100%;
    font-size: clamp(1.05rem, 1.2vw, 1.35rem);
    line-height: 1.65;
    color: var(--secondary-text);
}

.about-story {
    margin-top: 4rem;
}

.about-section-title {
    font-size: clamp(1.5rem, 2.2vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.about-story p {
    font-size: clamp(1rem, 1.05vw, 1.2rem);
    line-height: 1.65;
    color: var(--secondary-text);
    margin-bottom: 1rem;
    max-width: 100%;
}

.about-gallery {
    margin-top: clamp(1.25rem, 3vw, 2.2rem);
}

.about-gallery-note {
    color: var(--tertiary-text);
    margin-bottom: 1rem;
}

/* React component-inspired expanding cards, adapted for vanilla */
.about-gallery-rail {
    display: flex;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    height: clamp(260px, 44vw, 460px);
}

.about-gallery-item {
    margin: 0;
    flex: 1 1 0;
    min-width: 70px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-color);
    transition: flex-grow 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s ease;
}

.about-gallery-item:hover,
.about-gallery-item:focus-within {
    flex-grow: 3.8;
    transform: translateY(-2px);
}

.about-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Cursor-follow bubble (scoped to the gallery rail). */
.about-gallery-rail[data-cursor-follow-scope] {
    cursor: none;
}

.cursor-follow-bubble {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    pointer-events: none;
    transform: translate3d(-9999px, -9999px, 0);
}

.cursor-follow-bubble__pill {
    height: 28px;
    min-width: 14px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--user-accent, var(--text-color));
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 160ms ease, transform 200ms ease, width 200ms ease;
    white-space: nowrap;
}

.cursor-follow-bubble.is-active .cursor-follow-bubble__pill {
    opacity: 1;
    transform: scale(1);
}

/* Keep face framing visible during expanding hover states. */
.about-photo-01 {
    object-position: center 22%;
}

.about-photo-02 {
    object-position: center 16%;
}

.about-footer {
    margin-top: 0.75rem;
}

/* ==========================================================================
   WORDS OF APPRECIATION — reused carousel from project/pharma pages
   ========================================================================== */
.about-reviews {
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.project-reviews-title {
    font-family: var(--font-main);
    font-size: clamp(1.75rem, 4vw + 1rem, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-color);
    text-align: left;
    margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
}

.reviews-carousel {
    position: relative;
    width: 100%;
}

.reviews-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 56px;
    scrollbar-width: none;
}

.reviews-carousel-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 300px;
    height: auto;
    padding: 0 20px 0 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    text-align: left;
    background:
        radial-gradient(
            ellipse 220% 180% at 5% calc(var(--card-blur-y, 0.5) * 100%),
            var(--card-blur-1a) 0%,
            var(--card-blur-1b) 30%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 220% 180% at 95% calc(var(--card-blur-y, 0.5) * 100%),
            var(--card-blur-2a) 0%,
            var(--card-blur-2b) 30%,
            transparent 55%
        ),
        #eef0f2;
}

[data-theme="dark"] .review-card {
    background:
        radial-gradient(
            ellipse 220% 180% at 5% calc(var(--card-blur-y, 0.5) * 100%),
            var(--card-blur-1a) 0%,
            var(--card-blur-1b) 30%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 220% 180% at 95% calc(var(--card-blur-y, 0.5) * 100%),
            var(--card-blur-2a) 0%,
            var(--card-blur-2b) 30%,
            transparent 55%
        ),
        #18181b;
}

.review-card-quote {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding-bottom: 40px;
}

.review-quote {
    font-family: var(--font-main);
    font-size: clamp(1rem, 1.5vw + 0.75rem, 1.25rem);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-color);
    margin: 0;
    position: relative;
    padding-left: 3.5rem;
}

.review-quote::before {
    content: "\201C";
    font-family: "Fraunces", serif;
    font-size: 100px;
    line-height: 1;
    color: var(--text-color);
    position: absolute;
    top: -0.5rem;
    left: 0;
}

.review-card-author {
    flex-shrink: 0;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.review-author-photo {
    width: 300px;
    height: 300px;
    border-radius: 0;
    object-fit: cover;
    object-position: bottom;
    flex-shrink: 0;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-left: 3.5rem;
}

.review-author-name {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.review-author-role {
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--secondary-text);
}

.reviews-carousel-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.reviews-paddlenav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.reviews-paddlenav .left-item,
.reviews-paddlenav .right-item {
    width: 36px;
    height: 36px;
}

.reviews-carousel-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.reviews-paddlenav .right-item .reviews-carousel-btn {
    margin-left: 8px;
}

.reviews-carousel-btn .icon-control {
    width: 20px;
    height: 20px;
}

.reviews-carousel-btn:hover:not(:disabled) {
    opacity: 0.85;
}

.reviews-carousel-btn.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.reviews-carousel-dots {
    display: none;
}

@media (max-width: 980px) {
    .about-title-hello {
        font-size: clamp(2.45rem, 10vw, 4.2rem);
    }

    .about-title-name {
        font-size: clamp(2.2rem, 8.8vw, 3.9rem);
    }

    .about-emmi-copy {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .about-main {
        padding-top: calc(var(--header-height) + 2rem);
    }

    .about-gallery-rail {
        height: clamp(220px, 62vw, 320px);
    }

    .about-gallery-item {
        min-width: 36px;
    }

    .review-card {
        min-width: 100%;
        flex: 0 0 100%;
        height: auto;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        gap: 1rem;
    }

    .review-card-quote {
        width: 100%;
        padding-bottom: 32px;
    }

    .review-card-author {
        align-self: stretch;
        margin-top: 1.25rem;
    }

    .review-author-photo {
        width: 100px;
        height: 100px;
    }

    .review-quote {
        font-size: 0.9375rem;
        line-height: 1.5;
        padding-left: 0;
    }

    .review-quote::before {
        font-size: 72px;
        position: static;
    }

    .review-author-info {
        padding-left: 0;
    }
}
