/* About page (template-company-v2.php). Builds on assets/cpd-v2 + assets/home-v2; only company-specific pieces live here. */

.comp2-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The hero title is this page's H1 (cpd-v2 left-aligns headings). */
.comp2 h1.home2-hero__title { text-align: center; }

/* Who we are: mission + vision cards, then the large world map with the company message under it */
.comp2-mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comp2 .comp2-mv__icon { width: 44px; height: 44px; display: block; }
.comp2-map { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 3vw, 40px); margin-top: clamp(8px, 2vw, 24px); }
.comp2-map__stage { position: relative; width: min(100%, 1240px); margin: 0 auto; }
.comp2 .comp2-map__svg { width: 100%; height: auto; display: block; overflow: visible; opacity: 0; transform: scale(.97); transition: opacity 1s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.comp2-map.is-inview .comp2-map__svg { opacity: 1; transform: none; }

/* Office network: lines draw in, then a light pulse keeps travelling along them */
.comp2-net path { fill: none; stroke: #FFFFFF; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.comp2-net__line { stroke-width: 1.5; stroke-opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1) calc(.6s + var(--i) * .35s); }
.comp2-map.is-inview .comp2-net__line { stroke-dashoffset: 0; }
.comp2-net__flow { stroke-width: 3; stroke-opacity: 0; stroke-dasharray: .06 .94; stroke-dashoffset: 1; }
.comp2-map.is-inview .comp2-net__flow { stroke-opacity: .95; animation: comp2-flow 3.2s linear calc(2.2s + var(--i) * .6s) infinite both; }
@keyframes comp2-flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Pulse rings on the office markers */
.comp2-pulses circle { fill: none; stroke: #FFFFFF; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.comp2-map.is-inview .comp2-pulses circle { animation: comp2-pulse 2.8s cubic-bezier(.16, 1, .3, 1) calc(1s + var(--i) * .4s) infinite; }
.comp2-map.is-inview .comp2-pulses circle.is-late { animation-delay: calc(2.4s + var(--i) * .4s); }
@keyframes comp2-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(5); } }

/* Company stats as glass cards in the map's corners (oceans) */
.comp2-map__stats { position: absolute; inset: 0; pointer-events: none; }
.comp2-map__stat { position: absolute; display: flex; flex-direction: column; gap: 4px; min-width: 190px; padding: 16px 20px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 12px 32px -16px rgba(80, 0, 10, .45); pointer-events: auto; opacity: 0; transform: translateY(14px); transition: opacity .7s ease calc(1.2s + var(--i) * .15s), transform .9s cubic-bezier(.16, 1, .3, 1) calc(1.2s + var(--i) * .15s), background-color .2s; }
.comp2-map.is-inview .comp2-map__stat { opacity: 1; transform: none; }
.comp2-map__stat:hover { background: rgba(255, 255, 255, .2); }
.comp2-map__stat strong { font-size: clamp(28px, 2.6vw, 40px); line-height: 1; font-weight: 500; letter-spacing: -.03em; color: var(--cpd-white); }
.comp2-map__stat span { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .88); }
.comp2-map__stat--1 { left: 0; top: 4%; }
.comp2-map__stat--2 { right: 0; top: 4%; }
.comp2-map__stat--3 { left: 4%; bottom: 8%; }
.comp2-map__stat--4 { right: 2%; bottom: 14%; }

.comp2-map__message { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; text-align: center; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; font-weight: 400; letter-spacing: -.02em; color: var(--cpd-white); text-wrap: balance; }
.comp2-map__message span { color: #FFEDD5; }

/* Logos-only proof panel */
.comp2-proof .home2-proof__logos { border-top: 0; background: var(--cpd-white); }

@media (prefers-reduced-motion: reduce) {
    .comp2 .comp2-map__svg, .comp2-map__stat { opacity: 1; transform: none; transition: none; }
    .comp2-net__line { stroke-dashoffset: 0; transition: none; }
    .comp2-map.is-inview .comp2-net__flow, .comp2-map.is-inview .comp2-pulses circle { animation: none; }
}

/* CEO quote */
.comp2-quote { position: relative; margin: 0; background: var(--cpd-white); border: 1px solid var(--cpd-line); border-radius: 24px; padding: clamp(32px, 5vw, 72px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; gap: 32px; overflow: hidden; }
.comp2-quote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cpd-red); }
.comp2-quote__mark { font-size: 120px; line-height: .6; height: 48px; font-weight: 500; color: var(--cpd-red); font-family: Georgia, serif; }
.comp2-quote__text { margin: 0; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.4; font-weight: 400; letter-spacing: -.02em; color: var(--cpd-ink); text-wrap: pretty; }
.comp2-quote__author { display: flex; align-items: center; gap: 14px; }
.comp2 .comp2-quote__author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.comp2-quote__author > span { display: flex; flex-direction: column; gap: 2px; }
.comp2-quote__author strong { font-size: 17px; line-height: 22px; font-weight: 500; color: var(--cpd-ink); }
.comp2-quote__author > span > span { font-size: 14px; line-height: 20px; color: var(--cpd-muted); }

/* Core values: white cards, big number + icon tile, titles held to two lines so the texts line up */
.comp2 .comp2-values { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.comp2 .comp2-value { position: relative; background: var(--cpd-white); border: 1px solid var(--cpd-line); border-radius: 16px; padding: 28px 28px 32px; gap: 14px; overflow: hidden; transition: border-color .25s, transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s; }
.comp2 .comp2-value::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cpd-red); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.comp2 .comp2-value:hover { border-color: rgba(212, 16, 40, .3); transform: translateY(-4px); box-shadow: 0 20px 40px -28px rgba(16, 24, 40, .35); }
.comp2 .comp2-value:hover::before { transform: scaleX(1); }
.comp2-value__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.comp2 .comp2-value__num { font-size: 56px; line-height: .9; font-weight: 500; letter-spacing: -.04em; color: rgba(212, 16, 40, .14); transition: color .3s; }
.comp2 .comp2-value:hover .comp2-value__num { color: var(--cpd-red); }
.comp2 .comp2-value__icon { width: 48px; height: 48px; display: block; border-radius: 12px; }
.comp2 .comp2-value .cpdv2-card__title { min-height: 56px; font-size: 22px; line-height: 28px; }
.comp2 .comp2-value > span:last-child { font-size: 15px; line-height: 23px; color: var(--cpd-muted); }

/* Team */
.comp2-team-head { margin-bottom: 40px; }
/* Flex rows so an incomplete last row stays centred (7 people = 4 + 3). */
.comp2-people { --cols: 4; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.comp2-person { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.comp2-person { background: var(--cpd-white); border: 1px solid var(--cpd-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.comp2-person:hover { border-color: rgba(212, 16, 40, .45); transform: translateY(-2px); }
.comp2-person__photo { aspect-ratio: 4 / 5; background: #E2E2E4; overflow: hidden; }
.comp2 .comp2-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.comp2-person:hover .comp2-person__photo img { transform: scale(1.03); }
.comp2-person__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 18px 20px; }
.comp2 .comp2-person__name { font-size: 19px; line-height: 25px; font-weight: 500; letter-spacing: -.02em; color: var(--cpd-ink); }
.comp2-person__role { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--cpd-muted); }
.comp2-person__links { display: flex; gap: 6px; flex: none; }
.comp2 .comp2-person__links a { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #F4F4F5; color: var(--cpd-ink-2); transition: background-color .2s, color .2s; }
.comp2 .comp2-person__links a:hover { background: var(--cpd-red); color: var(--cpd-white); }

/* 100+ IT professionals: photo mosaic */
.comp2-gallery-band { margin-top: var(--cpd-section); }
/* 4 x 3 mosaic: one 2x2 feature photo + 8 single tiles, no holes. */
.comp2-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 13vw, 200px); grid-auto-flow: dense; gap: 12px; }
.comp2-gallery__item { border-radius: 12px; overflow: hidden; background: #2A2A2A; }
.comp2 .comp2-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.35); transition: filter .4s, transform .6s cubic-bezier(.16, 1, .3, 1); }
.comp2-gallery__item:hover img { filter: none; transform: scale(1.04); }
.comp2-gallery__item--2 { grid-column: span 2; grid-row: span 2; }

@media (max-width: 1100px) {
    .comp2 .comp2-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Stats leave the map and sit in a grid under it */
    .comp2-map__stats { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
    .comp2-map__stat { position: static; min-width: 0; padding: 14px 16px; }
    .comp2-people { --cols: 3; }
}
@media (max-width: 768px) {
    .comp2-mv { grid-template-columns: 1fr; }
    .comp2 .comp2-values { grid-template-columns: 1fr; }
    .comp2 .comp2-value .cpdv2-card__title { min-height: 0; }
    .comp2-value__top { margin-bottom: 16px; }
    .comp2-map__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .comp2-map__stat strong { font-size: 26px; }
    .comp2-map__stat span { font-size: 13px; line-height: 18px; }
    .comp2-map__message { font-size: 20px; }
    /* Phones: the whole world is too small to read, so zoom the map in on the European offices */
    .comp2-map__viewport { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
    .comp2 .comp2-map__viewport .comp2-map__svg { position: absolute; width: 300%; max-width: none; left: -100%; top: -12%; }
    .comp2-quote__text { font-size: 19px; line-height: 1.45; }
    .comp2 .comp2-value__num { font-size: 40px; }
    .comp2-people { --cols: 2; --gap: 10px; }
    .comp2-person__body { flex-direction: column; align-items: flex-start; padding: 14px; }
    .comp2 .comp2-person__name { font-size: 16px; line-height: 22px; }
    .comp2-person__role { font-size: 13px; line-height: 18px; }
    .comp2-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 8px; }
    .comp2-quote__mark { font-size: 88px; height: 36px; }
}

/* Closing CTA: its title/text carry desktop line breaks that strand single words on phones */
@media (max-width: 768px) {
    .comp2-page #demo h2 br, .comp2-page #demo p br { display: none; }
}
