/* About Us globe. The ball, land and arcs are drawn by assets/js/about-globe.js
   on the canvas; only the place labels are HTML, so they stay real text in
   every language. The script positions each .globe-label every frame, so its
   own transform is never transitioned -- the entrance lives on the card. */

/* Two-column hero: headline left, globe right. Same tracks and stacking point
   as the home page's .hero-split, so the two heroes line up. */
.about-hero {
    display: grid;
    grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.about-hero > * {
    min-width: 0;
}

/* Undo the page's centred .hero inside the split. */
.about-hero .hero {
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    container-type: inline-size;
}

/* Sized from the column, not the viewport, so the longer translations keep
   the same shape beside the globe. */
.about-hero .hero h1 {
    margin-bottom: 0;
    font-size: clamp(34px, 3.4vw, 50px);
    text-wrap: balance;
}

@supports (container-type: inline-size) {
    .about-hero .hero h1 {
        font-size: clamp(34px, 9.6cqi, 50px);
    }
}

.about-globe {
    position: relative;
    height: clamp(520px, 44vw, 640px);
    margin: 0;
}

@media (max-width: 1079px) {
    .about-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .about-hero .hero {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
        container-type: normal;
    }
    .about-hero .hero h1 {
        font-size: clamp(34px, 5.2vw, 48px);
    }
    .about-globe {
        height: clamp(440px, 56vw, 600px);
    }
}

/* Nothing to draw without script. */
html:not(.js-enabled) .about-globe {
    display: none;
}

.about-globe-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    /* Vertical swipes still scroll the page; horizontal ones turn the globe. */
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.about-globe.is-dragging .about-globe-canvas {
    cursor: grabbing;
}

.about-globe-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.globe-label {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.globe-label-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 7px;
    background-color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(11, 38, 24, 0.08);
    border-radius: 999px;
    box-shadow:
        0 14px 30px -16px rgba(11, 38, 24, 0.34),
        0 2px 6px rgba(11, 38, 24, 0.05);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    transition:
        opacity 0.5s ease,
        transform 0.6s var(--ease-out-quint, cubic-bezier(0.22, 1, 0.36, 1));
}

.globe-label.is-visible .globe-label-card {
    opacity: 1;
    transform: none;
}

.globe-label-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #EEF1EE;
}

.globe-label-icon::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #1A5C3A;
    box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.16);
}

.globe-label[data-place="london"] .globe-label-icon::after {
    background-color: var(--color-deep-forest-green, #0B2618);
}

.globe-label-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.globe-label-city {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-obsidian, #191919);
}

.globe-label-role {
    font-size: 12px;
    font-weight: 500;
    color: #5F6B63;
}

@media (max-width: 768px) {
    .about-globe {
        height: clamp(360px, 100vw, 480px);
    }
    .globe-label-card {
        gap: 7px;
        padding: 5px 11px 5px 5px;
    }
    .globe-label-icon {
        width: 22px;
        height: 22px;
    }
    .globe-label-icon::after {
        width: 6px;
        height: 6px;
    }
    .globe-label-city {
        font-size: 12px;
    }
    .globe-label-role {
        font-size: 11px;
    }
}

/* Reduced motion: the script draws one still frame and does not bind drag. */
@media (prefers-reduced-motion: reduce) {
    .about-globe-canvas {
        cursor: default;
    }
    .globe-label-card {
        transition: none;
    }
}
