/* ========================================================
   ABOUT PAGE — Page-specific CSS
   fasterpen/assets/css/about.css
   ======================================================== */

/* Manufacturing / blueprint section background */
.blueprint-grid {
    background-color: #0a1128;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* SVG stroke draw animation (manufacturing highlight) */
.draw-stroke {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.draw-stroke.active {
    animation: fasterpen-draw-line 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

@keyframes fasterpen-draw-line {
    to { stroke-dashoffset: 0; }
}

/* Glass panel cards (manufacturing section) */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Awards / certification carousel */
.about-awards-band {
    position: relative;
    background: linear-gradient(180deg, #ffffff 50%, #19274e 50%);
    border-bottom: 1px solid rgba(25, 39, 78, 0.08);
}

.about-awards-band::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #19274e;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.about-awards-band__wash {
    display: none;
}

.about-awards-shell {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    background: #ffffff;
    border: 1px solid rgba(25, 39, 78, 0.08);
    box-shadow: 0 40px 90px rgba(25, 39, 78, 0.08);
}

.about-awards-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(25, 39, 78, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(25, 39, 78, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.8;
    pointer-events: none;
}

.about-awards-shell::after {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(25, 39, 78, 0.12), transparent);
    pointer-events: none;
}

.about-awards-shell__header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    gap: 2rem;
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 1.5rem;
    align-items: end;
}

.about-awards-shell__aside {
    display: grid;
    gap: 1.35rem;
    justify-items: end;
}

.about-awards__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    color: #0651ed;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.about-awards__eyebrow::before {
    content: "";
    display: block;
    width: 2.4rem;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.about-awards__title {
    margin: 0;
    max-width: 12ch;
    color: #19274e;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.25rem, 4.2vw, 4.2rem);
    font-weight: 700;
    line-height: 0.98;
}

.about-awards__copy {
    margin: 0;
    max-width: 33rem;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.75;
    text-align: left;
}

.about-awards-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.about-awards-nav__counter {
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #19274e;
    margin-right: 0.5rem;
    letter-spacing: 0.05em;
    user-select: none;
    min-width: 4.5rem;
    text-align: right;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.about-awards-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    border: 1px solid rgba(25, 39, 78, 0.15);
    background: rgba(25, 39, 78, 0.03);
    color: #19274e;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.about-awards-nav__button:hover,
.about-awards-nav__button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 210, 122, 0.7);
    outline: none;
}

.about-awards-nav__button[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.about-awards-nav__button svg {
    width: 1.2rem;
    height: 1.2rem;
}

.about-awards-carousel {
    position: relative;
    z-index: 1;
    padding: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.about-awards-track-container {
    position: relative;
}

.about-awards-track-container::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.02), rgba(217, 119, 6, 0.25) 15%, rgba(217, 119, 6, 0.25) 85%, rgba(217, 119, 6, 0.02));
    z-index: 1;
    pointer-events: none;
}

.about-awards-track {
    display: flex;
    gap: 1.15rem;
    overflow-x: auto;
    padding: 4.5rem clamp(1.5rem, 3vw, 2.5rem) 1.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    position: relative;
    z-index: 2;
}

.about-awards-track::-webkit-scrollbar {
    display: none;
}

.about-award-card {
    position: relative;
    flex: 0 0 min(23rem, calc(100vw - 5rem));
    isolation: isolate;
    min-height: 33rem;
    overflow: visible;
    border-radius: 1.5rem;
    scroll-snap-align: start;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.96)),
        #fff;
    border: 1px solid rgba(25, 39, 78, 0.08);
    box-shadow: none;
    transform-origin: 50% -4rem;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 220ms ease;
}

.about-award-card:hover,
.about-award-card:focus-within,
.about-award-card.is-active {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.15);
}

.about-award-card:hover,
.about-award-card:focus-within,
.about-award-card.is-active-animate {
    animation: cardDangle 1.6s ease-in-out;
}

@keyframes cardDangle {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(1deg); }
    30% { transform: rotate(-0.8deg); }
    45% { transform: rotate(0.5deg); }
    60% { transform: rotate(-0.3deg); }
    75% { transform: rotate(0.15deg); }
    90% { transform: rotate(-0.05deg); }
    100% { transform: rotate(0deg); }
}

/* Hanging Card Elements */
.card-hanger-container {
    position: absolute;
    top: -4rem;
    left: 0;
    right: 0;
    height: 4rem;
    pointer-events: none;
    z-index: 10;
}

.card-hanger-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.card-hanger-peg {
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 35% 35%, #fffbeb 0%, #f59e0b 45%, #b45309 100%);
    border: 1.5px solid #78350f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-hanger-bracket {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 48px;
    height: 38px;
    transform: translate(-50%, 50%);
    z-index: 15;
    pointer-events: none;
}

.card-hanger-ribbon-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(127, 29, 29, 0.25));
}

.about-award-card__shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.55) 28%, transparent 44%);
    transform: translateX(-120%);
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-award-card:hover .about-award-card__shine,
.about-award-card:focus-within .about-award-card__shine {
    transform: translateX(120%);
}

/* Card Footer / Image Container */
.about-award-card__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid rgba(25, 39, 78, 0.03);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-award-card__footer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) opacity(0.85) drop-shadow(0 8px 16px rgba(25, 39, 78, 0.06));
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-award-card:hover .about-award-card__footer,
.about-award-card.is-active .about-award-card__footer {
    background: #f1f5f9;
    border-color: rgba(6, 81, 237, 0.15);
}

.about-award-card:hover .about-award-card__footer img,
.about-award-card.is-active .about-award-card__footer img {
    transform: scale(1.05) !important;
    filter: grayscale(0%) opacity(1) drop-shadow(0 12px 24px rgba(6, 81, 237, 0.15)) !important;
}

.about-award-card.is-active h3 {
    color: #0651ed !important;
}

/* Tech corner brackets (manufacturing cards) */
.tech-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(255, 255, 255, 0.3);
    border-style: solid;
}

/* Global Reach — pin pulse animation */
.pin-pulse {
    animation: fasterpen-pulse-ring 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes fasterpen-pulse-ring {
    0%   { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(3);   opacity: 0; }
}

/* Global Reach — animated route paths */
.route-path {
    stroke-dasharray: 4 4;
    animation: fasterpen-dash-move 30s linear infinite;
}

.route-path-solid {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.active .route-path-solid {
    stroke-dashoffset: 0;
}

@keyframes fasterpen-dash-move {
    to { stroke-dashoffset: -1000; }
}

/* Dot background (reach map card) */
.bg-dots {
    background-image: radial-gradient(rgba(6, 81, 237, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ----------------------------------------------------------------
   Global Reach — Bird above map
   Tune all bird sizing/position here ONLY (CSS custom properties)
   ---------------------------------------------------------------- */
.about-reach-map-stage {
    --about-reach-bird-width-min:    4.5rem;
    --about-reach-bird-width-pref:   22vw;
    --about-reach-bird-width-max:    10.5rem;
    --about-reach-bird-max-width-pct: 42%;
    --about-reach-bird-overlap-min:  2rem;
    --about-reach-bird-overlap-pref: 5.5vw;
    --about-reach-bird-overlap-max:  3.75rem;
    --about-reach-bird-tilt:    10deg;
    --about-reach-bird-nudge-x: 0;
    --about-reach-bird-nudge-y: -40px;
}

.about-reach-bird {
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 30;
    width: clamp(
        var(--about-reach-bird-width-min),
        var(--about-reach-bird-width-pref),
        var(--about-reach-bird-width-max)
    );
    max-width: var(--about-reach-bird-max-width-pct);
    height: auto;
    object-fit: contain;
    pointer-events: none;
    margin-bottom: calc(-1 * clamp(
        var(--about-reach-bird-overlap-min),
        var(--about-reach-bird-overlap-pref),
        var(--about-reach-bird-overlap-max)
    ));
    transform: translate3d(
        var(--about-reach-bird-nudge-x),
        var(--about-reach-bird-nudge-y),
        0
    ) rotate(var(--about-reach-bird-tilt));
    transform-origin: 50% 100%;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.12));
}

/* Hide bird on small screens for cleaner map layout */
@media (max-width: 767px) {
    .about-reach-bird { display: none; }
}

@media (max-width: 1023px) {
    .about-awards-shell {
        border-radius: 1.6rem;
    }

    .about-awards-shell__header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-awards-shell__aside {
        justify-items: start;
    }

    .about-awards__title {
        max-width: 100%;
    }

    .about-awards-track {
        padding-right: 1.5rem;
    }

    .about-award-card {
        flex-basis: min(21rem, calc(100vw - 9.5rem));
        min-height: 30rem;
    }
}

@media (max-width: 640px) {
    .about-awards-band {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    .about-awards-shell {
        border-radius: 1.25rem;
    }

    .about-awards-shell__header {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
    }

    .about-awards-track {
        gap: 0.85rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .about-award-card {
        flex-basis: calc(100vw - 8.5rem);
        min-height: 29rem;
        border-radius: 1rem;
    }

    .about-award-card__media {
        min-height: 12rem;
        padding: 1.35rem;
    }

    .about-award-placeholder {
        width: 7rem;
        height: 7rem;
    }

    .about-award-card h4 {
        font-size: 1.5rem;
    }

    .about-awards-nav__button {
        width: 3rem;
        height: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-award-card,
    .about-award-card__shine {
        transition: none;
    }

    .about-award-card:hover,
    .about-award-card:focus-within {
        transform: none;
    }
}
