/* =====================================================================
   Proclee homepage hero - V5 "Data Network" (2026-11-19)
   Loaded ONLY by front/index.php. Every rule is scoped to .proclee-hero-v5
   and "phv5-" classes, so the navbar and every section below are unaffected.
   Ported from the approved V5_OUTWARD reference; uses the site's Gilroy font
   and the same side gutter as the navbar, so the text lines up with the logo.
   ===================================================================== */

.proclee-hero-v5 {
    --phv5-gutter: clamp(16px, 8vw - 20px, 150px);   /* same gutter as the navbar / sections */
    --phv5-mint: #baf0db;
    --phv5-orange: #f3a46b;
    /* Navbar -> hero blend: the navbar's own mint (#d2e6df, rgb 210 230 223) fades out over --phv5-fade,
       on top of the hero's left-to-right teal gradient, so there is no hard seam under the navbar.
       --phv5-top = original content offset + room for the fade, so text and icons start on dark teal. */
    --phv5-fade: 136px;
    --phv5-top: 112px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: var(--phv5-top) 0 26px;
    background:
        linear-gradient(180deg,
            rgba(210, 230, 223, 1) 0,
            rgba(210, 230, 223, .94) calc(var(--phv5-fade) * .12),
            rgba(210, 230, 223, .8) calc(var(--phv5-fade) * .25),
            rgba(210, 230, 223, .58) calc(var(--phv5-fade) * .4),
            rgba(210, 230, 223, .36) calc(var(--phv5-fade) * .55),
            rgba(210, 230, 223, .18) calc(var(--phv5-fade) * .7),
            rgba(210, 230, 223, .06) calc(var(--phv5-fade) * .85),
            rgba(210, 230, 223, 0) var(--phv5-fade)),
        linear-gradient(103deg, #234850 0%, #20464e 31%, #113a44 59%, #082e38 100%);
    color: #fff;
    font-family: 'Gilroy', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* faint grid texture, fading in towards the network side */
.proclee-hero-v5::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(#e5fff907 1px, transparent 1px), linear-gradient(90deg, #e5fff907 1px, transparent 1px);
    background-size: 76px 76px;
    -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 98%);
    mask-image: linear-gradient(90deg, transparent 22%, #000 98%);
}

.proclee-hero-v5 .phv5-layout {
    box-sizing: border-box;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 var(--phv5-gutter);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 32px;
}

/* ---------- Text column ---------- */
.proclee-hero-v5 .phv5-text {
    position: relative;
    z-index: 3;
    min-width: 0;
    padding: 0 0 18px;
}

.proclee-hero-v5 .phv5-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #baf0dd;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.proclee-hero-v5 .phv5-eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff9f5c;
    box-shadow: 0 0 0 5px #ff9f5c24;
}

.proclee-hero-v5 .phv5-title {
    margin: 25px 0 0;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: clamp(49px, 4.12vw, 62px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -.035em;
}

.proclee-hero-v5 .phv5-title-lead,
.proclee-hero-v5 .phv5-title-accent {
    display: block;
    position: relative;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
    text-decoration: none;
}

.proclee-hero-v5 .phv5-title-lead { color: #fff; }
.proclee-hero-v5 .phv5-title-accent { color: var(--phv5-mint); }

/* delicate orange swash under "Check With Proclee." */
.proclee-hero-v5 .phv5-title-accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 5px;
    border-bottom: 2px solid var(--phv5-orange);
    border-radius: 50%;
    transform: rotate(-1deg);
    pointer-events: none;
}

.proclee-hero-v5 .phv5-desc {
    max-width: 545px;
    margin: 26px 0 0;
    color: #c0d7d8;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
}

/* ---------- Network ---------- */
.proclee-hero-v5 .phv5-stage {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 720px;
    min-width: 0;
    aspect-ratio: 640 / 570;
    margin: 0 0 0 auto;
}

.proclee-hero-v5 .phv5-halo {
    position: absolute;
    inset: 15% 20%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, #43cbb82f, transparent 66%);
    filter: blur(20px);
}

.proclee-hero-v5 .phv5-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;   /* decorative: never intercepts clicks */
}

.proclee-hero-v5 .phv5-route {
    opacity: .65;
    transition: stroke .25s, stroke-width .25s, opacity .25s, filter .25s;
}

.proclee-hero-v5 .phv5-bead {
    fill: #baffdf;
    opacity: .93;
    filter: drop-shadow(0 0 5px #bbffe1);
}

.proclee-hero-v5 .phv5-core {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 48%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    pointer-events: none;
}

.proclee-hero-v5 .phv5-core-glow {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, #a0ffe925, transparent 67%);
    filter: blur(22px);
    animation: phv5CoreGlow 5s ease-in-out infinite;
}

.proclee-hero-v5 .phv5-core-img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 20px 28px #021b2496);
    animation: phv5CoreFloat 7.5s ease-in-out infinite;
}

@keyframes phv5CoreFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes phv5CoreGlow { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.08); } }

/* service nodes: the whole icon + label is one link */
.proclee-hero-v5 .phv5-node {
    position: absolute;
    z-index: 4;
    box-sizing: border-box;
    width: 29%;
    min-height: 24%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 7px 5px;
    border-radius: 18px;
    color: #dcf6ee;
    text-align: center;
    text-decoration: none;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .25s, box-shadow .25s, color .25s;
}

.proclee-hero-v5 .phv5-node::before {
    content: "";
    position: absolute;
    inset: 1% 20%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, #68d9be24, transparent 75%);
    opacity: .3;
    transform: scale(.9);
    transition: opacity .25s, transform .25s;
}

.proclee-hero-v5 .phv5-node img {
    display: block;
    width: clamp(70px, 7.2vw, 110px);
    height: clamp(70px, 7.2vw, 110px);
    max-width: none;
    object-fit: contain;
    transition: transform .27s cubic-bezier(.2, .75, .2, 1), filter .27s;
}

.proclee-hero-v5 .phv5-node-label {
    font-size: clamp(11px, .94vw, 13px);
    font-weight: 700;
    line-height: 1.27;
    letter-spacing: .005em;
    white-space: nowrap;
    text-shadow: 0 3px 12px #00171dd5;
}

.proclee-hero-v5 .phv5-node-arrow {
    position: absolute;
    top: 8%;
    right: 12%;
    color: #baf4db;
    font-size: 15px;
    line-height: 1;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity .25s, transform .25s;
}

.proclee-hero-v5 .phv5-node:hover,
.proclee-hero-v5 .phv5-node:focus-visible {
    color: #fff;
    text-decoration: none;
    background: #b8f7df0b;
    box-shadow: inset 0 0 0 1px #b0ffe432, 0 12px 24px #011d2b20;
}

.proclee-hero-v5 .phv5-node:hover::before,
.proclee-hero-v5 .phv5-node:focus-visible::before { opacity: 1; transform: scale(1.13); }

.proclee-hero-v5 .phv5-node:hover img,
.proclee-hero-v5 .phv5-node:focus-visible img { transform: translateY(-5px) scale(1.06); filter: drop-shadow(0 8px 12px #1affce30); }

.proclee-hero-v5 .phv5-node:hover .phv5-node-arrow,
.proclee-hero-v5 .phv5-node:focus-visible .phv5-node-arrow { opacity: 1; transform: none; }

.proclee-hero-v5 .phv5-node:focus-visible { outline: 2px solid #ffae74; outline-offset: 3px; }

.proclee-hero-v5 .phv5-node-pv { left: 18%; top: 24.5%; }
.proclee-hero-v5 .phv5-node-tncp { left: 82%; top: 24.5%; }
.proclee-hero-v5 .phv5-node-value { left: 18%; top: 76.5%; }
.proclee-hero-v5 .phv5-node-auction { left: 82%; top: 76.5%; }

/* hovered / focused service: only its own connector lights up */
.proclee-hero-v5 .phv5-stage[data-active="pv"] .phv5-route-pv,
.proclee-hero-v5 .phv5-stage[data-active="tncp"] .phv5-route-tncp,
.proclee-hero-v5 .phv5-stage[data-active="value"] .phv5-route-value,
.proclee-hero-v5 .phv5-stage[data-active="auction"] .phv5-route-auction {
    opacity: 1;
    stroke: #c2ffe2;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px #79ffda);
}

/* ---------- Laptop / small desktop ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .proclee-hero-v5 { --phv5-gutter: 32px; }   /* matches the navbar's laptop gutter */
}

@media (min-width: 851px) and (max-width: 1120px) {
    .proclee-hero-v5 { --phv5-fade: 120px; --phv5-top: 100px; padding: var(--phv5-top) 0 28px; }
    .proclee-hero-v5 .phv5-layout { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.05fr); gap: 22px; }
    .proclee-hero-v5 .phv5-text { padding-bottom: 12px; }
    .proclee-hero-v5 .phv5-eyebrow { font-size: 10px; }
    .proclee-hero-v5 .phv5-title { font-size: clamp(37px, 4.12vw, 49px); margin-top: 27px; }
    .proclee-hero-v5 .phv5-desc { font-size: 14px; max-width: 440px; }
    .proclee-hero-v5 .phv5-stage { max-width: 605px; }
    .proclee-hero-v5 .phv5-node img { width: clamp(58px, 8.2vw, 88px); height: clamp(58px, 8.2vw, 88px); }
    .proclee-hero-v5 .phv5-node-label { font-size: 11px; }
}

/* ---------- Tablet: text first, network below ---------- */
@media (max-width: 850px) {
    .proclee-hero-v5 { --phv5-fade: 100px; --phv5-top: 92px; padding: var(--phv5-top) 0 36px; }
    .proclee-hero-v5 .phv5-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .proclee-hero-v5 .phv5-text { max-width: 690px; padding: 0; }
    .proclee-hero-v5 .phv5-eyebrow { font-size: 10px; }
    .proclee-hero-v5 .phv5-title { font-size: clamp(45px, 6.7vw, 57px); margin-top: 27px; }
    .proclee-hero-v5 .phv5-desc { max-width: 610px; font-size: 16px; }
    .proclee-hero-v5 .phv5-stage { width: min(100%, 640px); max-width: 650px; margin: 18px auto 0; }
    .proclee-hero-v5 .phv5-node img { width: clamp(65px, 12vw, 105px); height: clamp(65px, 12vw, 105px); }
    .proclee-hero-v5 .phv5-node-label { font-size: clamp(11px, 1.6vw, 13px); }
}

/* ---------- Phones ---------- */
@media (max-width: 650px) {
    .proclee-hero-v5 { --phv5-fade: 64px; --phv5-top: 60px; padding: var(--phv5-top) 0 23px; }
    .proclee-hero-v5 .phv5-layout { gap: 4px; }
    .proclee-hero-v5 .phv5-eyebrow { font-size: 9px; letter-spacing: .09em; gap: 9px; }
    .proclee-hero-v5 .phv5-title { font-size: clamp(31px, 8.65vw, 43px); line-height: 1.12; margin-top: 19px; }
    .proclee-hero-v5 .phv5-title-lead,
    .proclee-hero-v5 .phv5-title-accent { width: auto; white-space: normal; }
    .proclee-hero-v5 .phv5-title-accent { width: max-content; max-width: 100%; }
    .proclee-hero-v5 .phv5-title-accent::after { bottom: -6px; height: 3px; transform: none; }
    .proclee-hero-v5 .phv5-desc { font-size: 14px; margin-top: 21px; line-height: 1.72; }
    .proclee-hero-v5 .phv5-stage { max-width: 440px; margin-top: 11px; }
    .proclee-hero-v5 .phv5-core { width: 47%; }
    .proclee-hero-v5 .phv5-node { width: 32%; min-height: 28%; padding: 3px 1px; gap: 0; }
    .proclee-hero-v5 .phv5-node img { width: clamp(58px, 17vw, 80px); height: clamp(58px, 17vw, 80px); }
    .proclee-hero-v5 .phv5-node-label { white-space: normal; font-size: clamp(10px, 2.9vw, 12px); line-height: 1.22; }
    .proclee-hero-v5 .phv5-node-arrow { font-size: 12px; right: 4%; top: 1%; }
    .proclee-hero-v5 .phv5-node-pv,
    .proclee-hero-v5 .phv5-node-tncp { top: 23.5%; }
    .proclee-hero-v5 .phv5-node-value,
    .proclee-hero-v5 .phv5-node-auction { top: 78%; }
}

/* ---------- Reduced motion: still image, no travelling beads ---------- */
@media (prefers-reduced-motion: reduce) {
    .proclee-hero-v5 .phv5-core-img,
    .proclee-hero-v5 .phv5-core-glow { animation: none !important; }
    .proclee-hero-v5 .phv5-beads { display: none; }
    .proclee-hero-v5 .phv5-route,
    .proclee-hero-v5 .phv5-node,
    .proclee-hero-v5 .phv5-node::before,
    .proclee-hero-v5 .phv5-node img,
    .proclee-hero-v5 .phv5-node-arrow { transition: none; }
}
