/* About page — Figma node 213:475 */

.about-page {
    --about-pad: 24px;
    --about-topbar-top: 25px;
    --about-topbar-height: clamp(72px, 10vw, 120px);
    --about-frame: min(991px, calc(100vw - 2 * var(--about-pad)));
    --about-label: clamp(120px, 22vw, 320px);
    --about-gap: 32px;
    --about-side: max(var(--about-pad), calc((100vw - var(--about-frame)) / 2));
    --about-content-start: calc(var(--about-side) + var(--about-label) + var(--about-gap));

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: calc(var(--about-topbar-top) + var(--about-topbar-height) + 32px) var(--about-pad) 0;
    /* Horizontal bleed is clipped by .about-gallery-breakout + body overflow-x.
       overflow-x here would create a containing block that breaks ScrollTrigger pins. */
}

.about-topbar {
    position: fixed;
    top: var(--about-topbar-top);
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 0 var(--about-pad);
    pointer-events: none;
}

.about-topbar > * {
    pointer-events: auto;
}

.about-topbar .site-header__nav {
    position: relative;
    z-index: 51;
}

.about-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.about-brand h1 {
    margin: 0;
    font-family: var(--font-display, 'Reckless', Georgia, serif);
    font-size: clamp(56px, 8vw, 120px);
    line-height: 0.95;
    letter-spacing: -1.2px;
    font-weight: 500;
    color: var(--text-primary, #09090b);
}

.about-brand img,
.about-brand canvas,
.about-brand .site-header__logo {
    width: 81px;
    height: 81px;
    display: block;
    flex-shrink: 0;
}

.about-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 120px;
    width: 100%;
    max-width: none;
    margin: clamp(24px, 4vh, 48px) 0 0;
    min-height: calc(100vh - 180px);
}

.about-stack {
    display: flex;
    flex-direction: column;
    gap: 120px;
    width: 100%;
    margin: 0;
    flex: 1;
}

.about-section {
    width: var(--about-frame);
    margin-inline: auto;
    display: grid;
    grid-template-columns: var(--about-label) minmax(0, 1fr);
    gap: 16px var(--about-gap);
    align-items: start;
}

.about-section--cards {
    row-gap: 48px;
}

.about-section__label--spacer {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.about-section__content {
    min-width: 0;
}

.about-section__stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

.about-section__stack--tight {
    gap: 16px;
}

.about-intro__title {
    margin: 0;
    font-family: var(--font-display, 'Reckless', Georgia, serif);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    font-weight: 600;
    color: var(--text-primary, #09090b);
}

.about-intro__lead-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 16px;
}

.about-intro__lead {
    margin: 0;
    font-family: var(--font-body, 'Suisse Intl', system-ui, sans-serif);
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.375;
    font-weight: 500;
    color: var(--text-secondary, #52525b);
}

.about-intro__read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    height: 48px;
    padding: 8px 20px;
    border: 1.5px solid #a1a1aa;
    border-radius: 50px;
    background: transparent;
    color: #71717a;
    font-family: var(--font-body, 'Suisse Intl', system-ui, sans-serif);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.about-intro__read-more:hover {
    opacity: 0.85;
    background: rgba(113, 113, 122, 0.06);
}

body.about-story-modal-open {
    overflow: hidden;
}

.about-story-backdrop {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.34s ease, visibility 0.34s ease;
}

.about-story-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.about-story-modal {
    position: relative;
    width: min(640px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(9, 9, 11, 0.06),
        0 24px 80px rgba(9, 9, 11, 0.16);
    transform: scale(0.96) translateY(16px);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease;
}

.about-story-backdrop.is-open .about-story-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.about-story-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary, #09090b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(9, 9, 11, 0.08);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.about-story-modal__close:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

.about-story-modal__scroll {
    overflow-y: auto;
    padding: 40px 40px 48px;
    -webkit-overflow-scrolling: touch;
}

.about-story-modal__title {
    margin: 0 48px 24px 0;
    font-family: var(--font-display, 'Reckless', Georgia, serif);
    font-size: clamp(24px, 3.2vw, 32px);
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-primary, #09090b);
}

.about-story-modal__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-story-modal__body p {
    margin: 0;
    font-family: var(--font-body, 'Suisse Intl', system-ui, sans-serif);
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    color: var(--text-secondary, #52525b);
}

.about-story-modal__closing {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(9, 9, 11, 0.08);
    font-family: var(--font-display, 'Reckless', Georgia, serif);
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.35;
    font-weight: 500;
    color: var(--text-primary, #09090b);
}

@media (max-width: 480px) {
    .about-story-modal__scroll {
        padding: 32px 24px 40px;
    }
}

.about-gallery-pin {
    flex-shrink: 0;
}

.about-gallery-pin__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.about-gallery-breakout {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.about-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
    touch-action: pan-x;
    cursor: default;
    width: 100%;
}

.about-gallery.is-drag-enabled {
    cursor: grab;
}

.about-gallery::-webkit-scrollbar {
    display: none;
}

.about-gallery.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.about-gallery.is-dragging img {
    pointer-events: none;
}

.about-gallery__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 24px;
    width: max-content;
    min-width: 100%;
    padding-left: var(--about-content-start);
    padding-right: 20px;
    will-change: auto;
    transform: none !important;
    box-sizing: border-box;
}

.about-gallery__item {
    /* Prefer width over flex-basis — Safari can collapse clamp() in flex-basis. */
    position: relative;
    flex: none;
    width: clamp(320px, 42vw, 820px);
    min-width: clamp(320px, 42vw, 820px);
    height: clamp(280px, 42vw, 597px);
    border-radius: 32px;
    background: #e4e4e7;
    overflow: hidden;
}

.about-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.about-gallery-pin.is-pin-driven .about-gallery {
    overflow-x: auto;
}

/* Never keep a ScrollTrigger pin-spacer height on this page — it creates
   a multi-thousand-px “infinite” vertical scrub on tablet/mobile. */
.about-page .pin-spacer {
    height: auto !important;
    padding: 0 !important;
    display: contents;
}

.about-section__label {
    margin: 0;
    font-family: var(--font-display, 'Reckless', Georgia, serif);
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    color: var(--text-tertiary, #71717a);
}

.about-section__title {
    margin: 0;
    font-family: var(--font-display, 'Reckless', Georgia, serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--text-primary, #09090b);
}

.about-section__subtitle {
    margin: 0;
    font-family: var(--font-display, 'Reckless', Georgia, serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--text-primary, #09090b);
}

.about-section__body {
    margin: 0;
    font-family: var(--font-body, 'Suisse Intl', system-ui, sans-serif);
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.375;
    font-weight: 500;
    color: var(--text-primary, #09090b);
}

.about-cv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    height: 48px;
    padding: 8px 20px;
    border: 1.5px solid var(--brand, #393bfe);
    border-radius: 50px;
    background: transparent;
    color: var(--brand, #393bfe);
    font-family: var(--font-body, 'Suisse Intl', system-ui, sans-serif);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.about-cv-btn:hover {
    opacity: 0.85;
    background: rgba(57, 59, 254, 0.04);
}

.about-cv-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    flex-shrink: 0;
}

.about-cards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.about-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    padding: 16px 16px 20px;
    border-radius: 24px;
    background: #f8f8f7;
}

.about-card--icon .about-card__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-card__title {
    margin: 0;
    font-family: var(--font-display, 'Reckless', Georgia, serif);
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    color: var(--text-tertiary, #71717a);
}

.about-card__text {
    margin: 0;
    font-family: var(--font-body, 'Suisse Intl', system-ui, sans-serif);
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.2;
    font-weight: 400;
    color: var(--text-primary, #09090b);
}

.about-card__icon {
    display: block;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.about-footer {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    pointer-events: none;
    box-sizing: border-box;
}

.about-footer .home-logo {
    margin-left: auto;
}

.about-footer > * {
    pointer-events: auto;
}

.about-footer .pill--muted {
    color: var(--text-tertiary, #71717a);
}

.about-footer .home-logo {
    display: block;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    border-radius: 50%;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.about-footer .home-logo:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

.about-footer .home-logo canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (min-width: 1041px) {
    .about-cards {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1280px) {
    .about-gallery-pin__inner {
        gap: 72px;
    }

    .about-gallery__track {
        padding-left: var(--about-pad);
        padding-right: var(--about-pad);
        gap: 16px;
    }

    .about-gallery__item {
        width: min(78vw, 560px);
        min-width: min(78vw, 560px);
        height: min(70vw, 480px);
        border-radius: 28px;
    }
}

@media (max-width: 1040px) {
    .about-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-section--cards {
        row-gap: 32px;
    }

    .about-section__label--spacer {
        display: none;
    }

    .about-section__stack {
        gap: 24px;
    }

    .about-cards {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .about-card {
        min-height: auto;
        gap: 32px;
    }
}

@media (max-width: 660px) {
    .about-page {
        --about-pad: 16px;
        --about-topbar-top: 18px;
        --about-topbar-height: 64px;
        padding: calc(var(--about-topbar-top) + var(--about-topbar-height) + 24px) var(--about-pad) 0;
    }

    .about-panel {
        min-height: calc(100vh - 140px);
    }

    .about-brand h1 {
        font-size: 40px;
        line-height: 46px;
        font-weight: 600;
        letter-spacing: 0;
    }

    .about-brand img,
    .about-brand canvas,
    .about-brand .site-header__logo {
        width: 48px;
        height: 48px;
    }

    #header-nav-pills .pill {
        display: none;
    }

    .site-header__nav-pills {
        height: 32px;
        padding: 0;
    }

    .nav-dot-btn {
        width: 32px;
        height: 32px;
    }

    .site-header__nav.is-menu-open .nav-dot-btn {
        top: 16px;
        right: 16px;
        width: 28px;
        height: 28px;
    }

    .nav-dot-btn .nav-menu-icon {
        width: 12px;
        height: 8px;
    }

    .about-stack {
        gap: 72px;
    }

    .about-gallery-pin__inner {
        gap: 72px;
    }

    .about-gallery {
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        cursor: default;
    }

    .about-gallery.is-drag-enabled {
        cursor: grab;
    }

    .about-gallery.is-dragging {
        cursor: grabbing;
        user-select: none;
    }

    .about-gallery.is-dragging img {
        pointer-events: none;
    }

    .about-gallery__track {
        gap: 12px;
        padding-left: var(--about-pad);
        /* JS sets an exact end pad from gallery.clientWidth; this is the CSS fallback. */
        padding-right: var(--about-pad);
        scroll-padding-inline: var(--about-pad);
        will-change: auto;
        transform: none !important;
    }

    .about-gallery-pin.is-pin-driven .about-gallery {
        overflow-x: auto;
    }

    .about-gallery__item {
        border-radius: 24px;
        width: min(82vw, 520px);
        min-width: min(82vw, 520px);
        height: clamp(220px, 56vw, 400px);
    }

    .about-footer {
        left: 16px;
        right: 16px;
        bottom: 16px;
        gap: 12px;
    }
}
