/*==================================================
PROJECTS PAGE — "COOLING ENGINEERING PORTFOLIO"
Prefix: pr-
==================================================*/

/*---------- HERO ----------*/

.pr-hero {

    position: relative;
    padding: clamp(160px, 20vw, 220px) 6% clamp(100px, 14vw, 150px);
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(70% 60% at 50% 0%, #0B1420 0%, #05070B 60%);

}

.pr-hero .section-particles {
    z-index: 1;
}

.pr-hero-overlay {

    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(55% 55% at 15% 20%, rgba(66, 165, 255, .14), transparent 70%),
        radial-gradient(50% 50% at 90% 90%, rgba(79, 246, 255, .08), transparent 70%);

}

.pr-hero-inner {

    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;

}

.pr-hero-inner h1 {

    margin-top: 25px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;

}

.pr-hero-inner p {

    margin: 22px auto 0;
    max-width: 700px;
    color: #9FB1C2;
    line-height: 1.9;
    font-size: clamp(16px, 1.9vw, 19px);

}

.pr-hero-tags {

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 44px;

}

.pr-hero-tag {

    padding: 12px 24px;
    border-radius: 40px;
    border: 1px solid rgba(79, 246, 255, .2);
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(20px);
    font-size: 13.5px;
    color: #C7D3DE;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: .5px;

}

.pr-hero-buttons {

    margin-top: 50px;

}

/*---------- SHARED SECTION SHELL ----------*/

.pr-section {

    padding: clamp(90px, 14vw, 160px) 6%;

}

.pr-section.alt {

    background: #070B11;

}

.pr-section-header {

    max-width: 850px;
    margin: 0 auto;
    text-align: center;

}

.pr-section-header h2 {

    margin-top: 25px;
    font-size: clamp(32px, 4.5vw, 58px);
    line-height: 1.1;

}

.pr-section-header p {

    margin-top: 26px;
    color: #9FB1C2;
    line-height: 1.9;
    font-size: clamp(15px, 1.7vw, 18px);

}

.pr-data-note {

    max-width: 700px;
    margin: 20px auto 0;
    text-align: center;
    color: #7F93A6;
    font-size: 12.5px;
    line-height: 1.7;
    font-style: italic;

}

/*---------- LIVE PROJECT COUNTER (DASHBOARD) ----------*/

.pr-dashboard {

    max-width: 1150px;
    margin: clamp(60px, 9vw, 100px) auto 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;

}

.pr-dash-card {

    padding: 28px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(79, 246, 255, .12);
    text-align: center;
    transition: .35s;

}

.pr-dash-card:hover {

    border-color: rgba(79, 246, 255, .35);
    transform: translateY(-4px);

}

.pr-dash-value {

    font-family: 'Orbitron', sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    background: linear-gradient(135deg, #42A5FF, #4FF6FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.pr-dash-label {

    display: block;
    margin-top: 10px;
    color: #8DA4B8;
    font-size: 11px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    line-height: 1.5;

}

@media(max-width:900px) {

    .pr-dashboard {
        grid-template-columns: repeat(3, 1fr);
    }

}

@media(max-width:560px) {

    .pr-dashboard {
        grid-template-columns: 1fr 1fr;
    }

}

/*---------- PROJECT FILTER ----------*/

.pr-filter-wrap {

    max-width: 1150px;
    margin: clamp(60px, 9vw, 90px) auto 0;

}

.pr-filter-group {

    margin-bottom: 22px;

}

.pr-filter-group-label {

    display: block;
    color: #7F93A6;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;

}

.pr-filter-btns {

    display: flex;
    flex-wrap: wrap;
    gap: 10px;

}

.pr-filter-btn {

    padding: 10px 22px;
    border-radius: 40px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(79, 246, 255, .15);
    color: #9FB1C2;
    font-size: 13px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: .3px;
    cursor: pointer;
    transition: .3s;

}

.pr-filter-btn:hover {

    color: white;
    border-color: rgba(79, 246, 255, .35);

}

.pr-filter-btn.active {

    color: #05070B;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(79, 246, 255, .25);

}

/*---------- FEATURED PROJECT CARDS ----------*/


.pr-project-grid {

    max-width: 1200px;
    margin: clamp(40px, 6vw, 60px) auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;

}

.pr-project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

/* .pr-project-card {
    cursor: pointer;
} */

.pr-project-card {

    position: relative;
    padding: clamp(26px, 3vw, 32px);
    border-radius: 22px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(79, 246, 255, .1);
    transition: .4s;
    display: flex;
    flex-direction: column;

}

.pr-project-card.pr-hidden {

    display: none;

}

.pr-project-card:hover {

    transform: translateY(-8px);
    border-color: rgba(79, 246, 255, .3);
    box-shadow: 0 25px 60px rgba(66, 165, 255, .12);

}

.pr-project-industry {

    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(79, 246, 255, .08);
    border: 1px solid rgba(79, 246, 255, .2);
    color: var(--cyan);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;

}

.pr-project-card h3 {

    font-size: 19px;
    margin-bottom: 6px;

}

.pr-project-location {

    color: #7F93A6;
    font-size: 12.5px;
    margin-bottom: 20px;
    display: block;

}

.pr-project-stats {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);

}

.pr-project-stats span {

    display: block;
    color: #7F93A6;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;

}

.pr-project-stats b {

    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 13.5px;

}

.pr-project-equip {

    margin-bottom: 18px;

}

.pr-project-equip-label {

    display: block;
    color: #7F93A6;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;

}

.pr-project-equip ul {

    list-style: none;
    padding: 0;

}

.pr-project-equip ul li {

    color: #C7D3DE;
    font-size: 13px;
    padding: 4px 0 4px 18px;
    position: relative;

}

.pr-project-equip ul li::before {

    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cyan);

}

.pr-project-result {

    margin-top: auto;
    padding-top: 16px;
}

.pr-project-result-label {

    display: block;
    color: #7F93A6;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;

}

.pr-project-result ul {

    list-style: none;
    padding: 0;

}

.pr-project-result ul li {

    color: #D3DEE8;
    font-size: 13px;
    padding: 3px 0 3px 20px;
    position: relative;

}

.pr-project-result ul li::before {

    content: "✔";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 11px;

}

@media(max-width:900px) {

    .pr-project-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media(max-width:600px) {

    .pr-project-grid {
        grid-template-columns: 1fr;
    }

}

/*---------- GENERIC VERTICAL STEP FLOW (Engineering Story / System Diagram) ----------*/

.pr-flow {

    max-width: 620px;
    margin: clamp(60px, 9vw, 90px) auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.pr-flow-step {

    width: 100%;
    padding: 22px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(79, 246, 255, .15);
    transition: .35s;
    display: flex;
    align-items: center;
    gap: 18px;

}

.pr-flow-step:hover {

    border-color: rgba(79, 246, 255, .4);
    box-shadow: 0 10px 30px rgba(66, 165, 255, .12);

}

.pr-flow-index {

    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(66, 165, 255, .25), rgba(79, 246, 255, .12));
    color: var(--cyan);

}

.pr-flow-text b {

    display: block;
    color: white;
    font-size: 15.5px;
    margin-bottom: 4px;

}

.pr-flow-text span {

    color: #9FB1C2;
    font-size: 14px;
    line-height: 1.7;

}

.pr-flow-arrow {

    width: 2px;
    height: 32px;
    margin: 4px auto;
    background: linear-gradient(180deg, rgba(79, 246, 255, .5), rgba(79, 246, 255, .1));
    position: relative;

}

.pr-flow-arrow::after {

    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(79, 246, 255, .6);

}

/* Animated water-flow variant used for the Cooling System Diagram */
.pr-flow-arrow.pr-flow-water {

    background: linear-gradient(180deg, rgba(79, 246, 255, .15), rgba(79, 246, 255, .15));
    overflow: hidden;

}

.pr-flow-arrow.pr-flow-water::before {

    content: "";
    position: absolute;
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 10px rgba(79, 246, 255, .8);
    animation: pr-water-flow 1.8s linear infinite;

}

@keyframes pr-water-flow {

    to {
        top: 200%;
    }

}

@media(max-width:600px) {

    .pr-flow-step {
        flex-direction: column;
        text-align: center;
    }

}

/*---------- BEFORE & AFTER ----------*/

.pr-ba-wrap {

    max-width: 900px;
    margin: clamp(60px, 9vw, 90px) auto 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(79, 246, 255, .12);
    background: rgba(255, 255, 255, .02);

}

.pr-ba-row {

    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;

}

.pr-ba-row::after {

    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, .07);

}

.pr-ba-row+.pr-ba-row {

    border-top: 1px solid rgba(255, 255, 255, .06);

}

.pr-ba-row span {

    padding: 20px 28px;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 10px;

}

.pr-ba-head {

    background: rgba(79, 246, 255, .06);

}

.pr-ba-head span {

    font-size: 11.5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 600;

}

.pr-ba-before {

    color: #8DA0B2;

}

.pr-ba-before::before {

    content: "×";
    color: #FF6B6B;
    font-weight: 700;
    flex-shrink: 0;

}

.pr-ba-after {

    color: #E7EEF4;
    font-weight: 500;

}

.pr-ba-after::before {

    content: "✓";
    color: var(--cyan);
    font-weight: 700;
    flex-shrink: 0;

}

@media(max-width:640px) {

    .pr-ba-row {
        grid-template-columns: 1fr;
    }

    .pr-ba-row::after {
        display: none;
    }

    .pr-ba-row:not(.pr-ba-head) span:first-child {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

}

/*------------------PROJECT TIMELINE-------------------------*/

.pr-timeline-scroll {
    max-width: 1200px;
    margin: clamp(70px, 8vw, 110px) auto 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 20px 16px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.pr-timeline {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    margin: 0 auto;
}

.pr-timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 136px;
    width: 136px;
    text-align: center;
}

.pr-timeline-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, .03);
    border: 2px solid rgba(79, 246, 255, .25);
    color: var(--cyan);
    transition: .35s;
}

/* small numbered badge — keeps the sequence cue a timeline needs */
.pr-timeline-icon::after {
    content: attr(data-step);
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #05070B;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-timeline-item:hover .pr-timeline-icon {
    border-color: rgba(79, 246, 255, .5);
    background: rgba(79, 246, 255, .06);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(66, 165, 255, .18);
}

.pr-timeline-item h3 {
    color: #C7D3DE;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.pr-timeline-line {
    flex: 0 0 32px;
    width: 32px;
    height: 2px;
    margin-top: 28px;
    background: linear-gradient(90deg, rgba(79, 246, 255, .5), rgba(79, 246, 255, .1));
}

@media(max-width:700px) {

    .pr-timeline-scroll {
        overflow-x: visible;
    }

    .pr-timeline {
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-width: 0;
    }

    .pr-timeline-item {
        flex: none;
        width: 100%;
        max-width: 320px;
    }

    .pr-timeline-line {
        width: 2px;
        height: 30px;
        flex: none;
        margin-top: 0;
    }

}

/*---------- GLOBAL THERMAL NETWORK (cluster map) ----------*/

.pr-map-wrap {

    position: relative;
    max-width: 1000px;
    aspect-ratio: 1000 / 600;
    margin: clamp(50px, 8vw, 80px) auto 0;
    /* no overflow/border/radius here anymore — frame handles clipping,
       wrap stays open so tooltips are never cut off */

}

.pr-map-frame {

    position: absolute;
    inset: 0;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(79, 246, 255, .15);
    background: radial-gradient(60% 60% at 76% 34%, rgba(66, 165, 255, .12), transparent 65%), #070B11;

}

.pr-map-bg {

    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;

}

.pr-map-markers {

    position: absolute;
    inset: 0;
    overflow: visible;
    /* deliberately NOT clipped — this is what lets tooltips escape the rounded frame */

}

.pr-map-line {

    stroke: rgba(79, 246, 255, .28);
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 5 7;
    animation: pr-line-flow 2.6s linear infinite;
    transition: stroke .35s ease, stroke-width .35s ease;

}

.pr-map-line.pr-line-active {

    stroke: var(--cyan);
    stroke-width: 2.2;
    filter: drop-shadow(0 0 4px rgba(79, 246, 255, .8));

}

@keyframes pr-line-flow {
    to {
        stroke-dashoffset: -24;
    }
}

/*----- marker + stacking -----*/

.pr-map-marker {

    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;

}

/* raising the active/hovered marker above every other marker
   is what stops a later-in-DOM neighbor from drawing over its tooltip */
.pr-map-marker:hover,
.pr-map-marker.active {

    z-index: 100;

}

/*----- cluster circle -----*/

.pr-map-cluster {

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--cluster-size, 16px);
    height: var(--cluster-size, 16px);
    border-radius: 50%;
    transition: transform .3s ease;

}

.pr-map-marker:hover .pr-map-cluster,
.pr-map-marker.active .pr-map-cluster {

    transform: scale(1.15);

}

.pr-map-cluster-core {

    position: relative;
    z-index: 2;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #05070B;
    line-height: 1;

}

.pr-map-cluster-glow {

    position: absolute;
    inset: -6px;
    z-index: 1;
    border-radius: 50%;
    opacity: .55;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    animation: pr-pulse 2.4s ease-in-out infinite;

}

.pr-map-marker:hover .pr-map-cluster-glow,
.pr-map-marker.active .pr-map-cluster-glow {

    opacity: .9;
    transform: scale(1.35);

}

/* tier colors */
.pr-map-cluster.pr-tier-1 {
    --cluster-size: 13px;
    background: var(--cyan);
    box-shadow: 0 0 14px rgba(79, 246, 255, .85);
}

.pr-map-cluster.pr-tier-1 .pr-map-cluster-glow {
    background: radial-gradient(circle, rgba(79, 246, 255, .55), transparent 70%);
}

.pr-map-cluster.pr-tier-1 .pr-map-cluster-core {
    font-size: 9px;
}

.pr-map-cluster.pr-tier-2 {
    --cluster-size: 26px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 0 22px rgba(66, 165, 255, .55);
}

.pr-map-cluster.pr-tier-2 .pr-map-cluster-glow {
    background: radial-gradient(circle, rgba(66, 165, 255, .5), transparent 70%);
}

.pr-map-cluster.pr-tier-2 .pr-map-cluster-core {
    font-size: 11px;
}

.pr-map-cluster.pr-tier-3 {
    --cluster-size: 34px;
    background: linear-gradient(135deg, #EAF6FF, #FFFFFF);
    box-shadow: 0 0 28px rgba(255, 255, 255, .5);
}

.pr-map-cluster.pr-tier-3 .pr-map-cluster-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 70%);
}

.pr-map-cluster.pr-tier-3 .pr-map-cluster-core {
    font-size: 13px;
}

.pr-map-cluster.pr-tier-4 {
    --cluster-size: 42px;
    background: linear-gradient(135deg, #FFD36E, #FFB23E);
    box-shadow: 0 0 34px rgba(255, 178, 62, .6);
}

.pr-map-cluster.pr-tier-4 .pr-map-cluster-glow {
    background: radial-gradient(circle, rgba(255, 178, 62, .55), transparent 70%);
}

.pr-map-cluster.pr-tier-4 .pr-map-cluster-core {
    font-size: 15px;
}

.pr-map-marker.pr-map-hub .pr-map-cluster::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .5);
    animation: ring-spin 12s linear infinite;
}

.pr-map-label {

    position: absolute;
    top: calc(50% + 18px);
    left: 50%;
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    font-size: 10.5px;
    letter-spacing: .3px;
    color: #C7D3DE;
    opacity: .85;
    pointer-events: none;
    /* transform set inline per-marker via JS labelDx/labelDy */

}

.pr-map-marker.pr-map-hub .pr-map-label {
    color: white;
    font-size: 11px;
    font-weight: 700;
}

/*----- tooltip: JS picks ONE of these 4 direction classes,
        CSS owns everything about how it looks/animates ----- */

.pr-map-tooltip {

    position: absolute;
    width: 240px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(8, 12, 18, .94);
    border: 1px solid rgba(79, 246, 255, .25);
    backdrop-filter: blur(20px);
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 6;

}

.pr-map-marker:hover .pr-map-tooltip,
.pr-map-marker.active .pr-map-tooltip {
    opacity: 1;
    pointer-events: auto;
}

/* default / top: above the marker */
.pr-map-tooltip.pr-top {
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translate(-50%, 6px);
}

.pr-map-marker:hover .pr-map-tooltip.pr-top,
.pr-map-marker.active .pr-map-tooltip.pr-top {
    transform: translate(-50%, 0);
}

/* bottom: below the marker (used near top edge) */
.pr-map-tooltip.pr-bottom {
    top: calc(100% + 16px);
    left: 50%;
    transform: translate(-50%, -6px);
}

.pr-map-marker:hover .pr-map-tooltip.pr-bottom,
.pr-map-marker.active .pr-map-tooltip.pr-bottom {
    transform: translate(-50%, 0);
}

/* right: to the right of the marker (used near left edge) */
.pr-map-tooltip.pr-right {
    left: calc(100% + 18px);
    top: 50%;
    transform: translate(-6px, -50%);
}

.pr-map-marker:hover .pr-map-tooltip.pr-right,
.pr-map-marker.active .pr-map-tooltip.pr-right {
    transform: translate(0, -50%);
}

/* left: to the left of the marker (used near right edge) */
.pr-map-tooltip.pr-left {
    right: calc(100% + 18px);
    left: auto;
    top: 50%;
    transform: translate(6px, -50%);
}

.pr-map-marker:hover .pr-map-tooltip.pr-left,
.pr-map-marker.active .pr-map-tooltip.pr-left {
    transform: translate(0, -50%);
}

.pr-map-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    backdrop-filter: blur(2px);
    z-index: 900;
}

.pr-map-wrap {
    z-index: 901;
}

.pr-map-tooltip b {
    display: block;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 13.5px;
    margin-bottom: 8px;
}

.pr-map-tooltip-role {
    display: block;
    color: var(--cyan);
    font-size: 11.5px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.pr-map-tooltip-count {
    display: block;
    color: #9FB1C2;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pr-map-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pr-map-tooltip ul li {
    color: #D3DEE8;
    font-size: 12.5px;
    line-height: 1.6;
    padding: 2px 0 2px 20px;
    position: relative;
}

.pr-map-tooltip ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-size: 10px;
}

.pr-tooltip-more {
    color: var(--cyan) !important;
    font-style: italic;
    font-size: 12px;
    padding-left: 20px !important;
    margin-top: 4px;
}

.pr-tooltip-more::before {
    content: "" !important;
}

/*----- legend -----*/

.pr-map-legend {
    max-width: 1000px;
    margin: 24px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.pr-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9FB1C2;
    font-size: 12.5px;
    letter-spacing: .3px;
}

.pr-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pr-legend-dot.pr-tier-1 {
    background: var(--cyan);
    box-shadow: 0 0 8px rgba(79, 246, 255, .7);
}

.pr-legend-dot.pr-tier-2 {
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 0 8px rgba(66, 165, 255, .6);
}

.pr-legend-dot.pr-tier-3 {
    background: #FFFFFF;
    box-shadow: 0 0 8px rgba(255, 255, 255, .6);
}

.pr-legend-dot.pr-tier-4 {
    background: linear-gradient(135deg, #FFD36E, #FFB23E);
    box-shadow: 0 0 8px rgba(255, 178, 62, .65);
}

@keyframes pr-pulse {

    0%,
    100% {
        opacity: .5;
        transform: scale(1);
    }

    50% {
        opacity: .85;
        transform: scale(1.15);
    }
}

@media (max-width: 768px) {
    .pr-map-tooltip {
        display: none;
    }

    .pr-map-label {
        display: none;
    }

    .pr-map-info-panel {
        display: block;
    }
}

@media(max-width:640px) {
    .pr-map-label {
        display: none;
    }

    .pr-map-tooltip {
        width: 190px;
        padding: 14px 16px;
    }
}

/*---------- GLOBAL PROJECT FOOTPRINT (capability cards) ----------*/

.pr-footprint-grid {

    max-width: 1000px;
    margin: clamp(60px, 9vw, 90px) auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

}

.pr-footprint-card {

    position: relative;
    padding: 30px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(79, 246, 255, .1);
    text-align: center;
    overflow: hidden;
    transition: .4s;

}

.pr-footprint-card:hover {

    border-color: rgba(79, 246, 255, .35);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(66, 165, 255, .12);

}

.pr-footprint-dot {

    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px rgba(79, 246, 255, .8);
    margin: 0 auto 16px;
    animation: pr-pulse 2.4s ease-in-out infinite;

}

@keyframes pr-pulse {

    0%,
    100% {
        opacity: .6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }

}

.pr-footprint-card h3 {

    font-size: 16px;
    margin-bottom: 12px;

}

.pr-footprint-detail {

    color: #9FB1C2;
    font-size: 13px;
    line-height: 1.7;

}

.pr-footprint-detail b {

    display: block;
    color: var(--cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    margin-top: 4px;

}

@media(max-width:800px) {

    .pr-footprint-grid {
        grid-template-columns: 1fr 1fr;
    }

}

/*---------- CUSTOMER CHALLENGES ----------*/

.pr-challenge-grid {

    max-width: 1000px;
    margin: clamp(60px, 9vw, 90px) auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;

}

.pr-challenge-card {

    padding: 26px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(79, 246, 255, .08);
    transition: .35s;

}

.pr-challenge-card:hover {

    border-color: rgba(79, 246, 255, .28);
    transform: translateY(-6px);

}

.pr-challenge-card h3 {

    font-size: 15.5px;
    color: var(--cyan);
    margin-bottom: 16px;

}

.pr-challenge-line {

    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.7;
    padding: 6px 0;

}

.pr-challenge-line.pr-bad {

    color: #9FB1C2;

}

.pr-challenge-line.pr-bad::before {

    content: "✕";
    color: #FF6B6B;
    font-weight: 700;
    flex-shrink: 0;

}

.pr-challenge-line.pr-good {

    color: #D3DEE8;

}

.pr-challenge-line.pr-good::before {

    content: "✓";
    color: var(--cyan);
    font-weight: 700;
    flex-shrink: 0;

}

@media(max-width:800px) {

    .pr-challenge-grid {
        grid-template-columns: 1fr;
    }

}

/*---------- TECHNOLOGIES USED (icon chain) ----------*/

.pr-tech-chain-scroll {

    max-width: 1000px;
    margin: clamp(60px, 9vw, 90px) auto 0;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    /* Firefox */

}

.pr-tech-chain-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.pr-tech-chain {

    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    gap: 0;

}

.pr-tech-node {

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 140px;
    width: 140px;

}

.pr-tech-icon {

    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, .03);
    border: 2px solid rgba(79, 246, 255, .25);
    color: var(--cyan);

}

.pr-tech-node span {

    color: #C7D3DE;
    font-size: 12.5px;
    text-align: center;
    line-height: 1.4;

}

.pr-tech-line {

    flex: 0 0 32px;
    width: 32px;
    height: 2px;
    margin-top: 28px;
    background: linear-gradient(90deg, rgba(79, 246, 255, .5), rgba(79, 246, 255, .1));

}

@media(max-width:700px) {

    .pr-tech-chain-scroll {
        overflow-x: visible;
    }

    .pr-tech-chain {
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-width: 0;
    }

    .pr-tech-node {
        flex: none;
        width: 100%;
    }

    .pr-tech-line {
        width: 2px;
        height: 30px;
        flex: none;
        margin-top: 0;
    }

}

/*---------- ENGINEERING CAPABILITY ----------*/

.pr-capability-grid {

    max-width: 1000px;
    margin: clamp(60px, 9vw, 90px) auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

}

.pr-capability-item {

    padding: 18px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(79, 246, 255, .08);
    color: #D3DEE8;
    font-size: 13.5px;
    text-align: center;
    transition: .3s;

}

.pr-capability-item:hover {

    border-color: rgba(79, 246, 255, .3);
    background: rgba(79, 246, 255, .03);

}

@media(max-width:800px) {

    .pr-capability-grid {
        grid-template-columns: 1fr 1fr;
    }

}

/*---------- SCROLL REVEAL ----------*/

.pr-dash-card,
.pr-project-card,
.pr-flow-step,
.pr-ba-row,
.pr-timeline-item,
.pr-footprint-card,
.pr-challenge-card,
.pr-tech-node,
.pr-capability-item {

    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;

}

.pr-dash-card.in-view,
.pr-project-card.in-view,
.pr-flow-step.in-view,
.pr-ba-row.in-view,
.pr-timeline-item.in-view,
.pr-footprint-card.in-view,
.pr-challenge-card.in-view,
.pr-tech-node.in-view,
.pr-capability-item.in-view {

    opacity: 1;
    transform: translateY(0);

}

/*---------- RESPONSIVE FIXES ----------*/

@media(max-width:480px) {

    .pr-hero,
    .pr-section {

        padding-left: 5%;
        padding-right: 5%;

    }

}