/* =============================================================
   BYTESPARK DIGITAL - Home page theme (light theme with dark accent panels)
   Loaded only by index.php. Prefix: hp-
   ============================================================= */

.home-page,
.hp-dark {
    --hp-bg:        #FFFFFF;
    --hp-bg-2:      #E1ECFC;
    --hp-surface:   #FFFFFF;
    --hp-surface-2: #F8FAFD;
    --hp-border:    #E1E7F2;
    --hp-heading:   #0F1142;
    --hp-text:      #1E2440;
    --hp-muted:     #525B7A;
    --hp-accent:    #2F7D05;
    --hp-grad-a:    #3FA309;
    --hp-grad-b:    #0B93AD;
    --hp-tag:       #EEF2F9;
    --hp-ghost:     rgba(15, 17, 66, .06);
    --hp-media:     #F1F4FA;
    --hp-voice-bg:  rgba(15, 17, 66, .06);
    --hp-green:     #63CE18;
    --hp-green-2:   #8BEF45;
    --hp-violet:    #6F5CF0;
    --hp-magenta:   #D63A91;
    --hp-cyan:      #0B93AD;
    --hp-shadow:    none;
}
.home-page { background: var(--hp-bg); color: var(--hp-text); }

/* Darker feature panels inside the light theme */
.hp-dark {
    --hp-bg:        #0A0E33;
    --hp-bg-2:      #0F1142;
    --hp-surface:   rgba(255, 255, 255, 0.05);
    --hp-surface-2: rgba(255, 255, 255, 0.09);
    --hp-border:    rgba(255, 255, 255, 0.12);
    --hp-heading:   #FFFFFF;
    --hp-text:      #E8ECF8;
    --hp-muted:     #AEB6D6;
    --hp-accent:    #8BEF45;
    --hp-grad-a:    #8BEF45;
    --hp-grad-b:    #35D4E8;
    --hp-tag:       rgba(255, 255, 255, .08);
    --hp-ghost:     rgba(255, 255, 255, .07);
    --hp-media:     rgba(0, 0, 0, .3);
    --hp-voice-bg:  rgba(0, 0, 0, .25);
    --hp-violet:    #8B7CFF;
    --hp-magenta:   #E0449C;
    --hp-cyan:      #35D4E8;
    --hp-shadow:    none;
    background: var(--hp-bg);
    color: var(--hp-text);
}

/* ---------- Layout helpers ---------- */
.hp-section { position: relative; padding: 3rem 0; background: #EAF2FF; }
.hp-section.hp-dark { background: var(--hp-bg); }
.hp-section--alt { background: var(--hp-bg-2); }
.hp-section--tint { background: #EAF2FF; }
.hp-section--tint .hp-card:hover { background: var(--hp-surface); }
.hp-head { max-width: 46rem; margin: 0 auto 2rem; text-align: center; }
.hp-head--left { margin-left: 0; text-align: left; }
.hp-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .85rem; border-radius: 999px;
    border: 1px solid var(--hp-border); background: var(--hp-surface);
    font-size: .8rem; font-weight: 600; letter-spacing: .04em;
    color: var(--hp-accent); margin-bottom: .8rem;
}
.hp-title {
    font-family: var(--font-heading); font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15;
    color: var(--hp-heading); margin-bottom: 1rem; letter-spacing: -0.02em;
}
.hp-lead { color: var(--hp-muted); font-size: 1rem; line-height: 1.6; margin: 0; }
.hp-grad {
    background: linear-gradient(90deg, var(--hp-grad-a), var(--hp-grad-b));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.hp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 3rem; padding: .8rem 1.5rem; border-radius: 999px;
    font-weight: 700; font-size: .975rem; border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hp-btn:focus-visible { outline: 2px solid var(--hp-accent); outline-offset: 3px; }
.hp-btn--primary { background: var(--hp-green); color: #07120A; }
.hp-btn--primary:hover { transform: translateY(-2px); background: var(--hp-green-2); color: #07120A; }
.hp-btn--ghost { border-color: var(--hp-border); color: var(--hp-heading); background: var(--hp-surface); }
.hp-btn--ghost:hover { border-color: var(--hp-green); color: var(--hp-heading); background: var(--hp-surface-2); }

/* ---------- Hero ---------- */
.hp-hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; isolation: isolate; }
/* Orbit rings radiating from the agent console, no grid */
.hp-hero::before {
    content: ""; position: absolute; z-index: -2;
    width: 70rem; height: 70rem; right: -22rem; top: -14rem; border-radius: 50%;
    background: repeating-radial-gradient(circle at center, transparent 0 4.2rem, rgba(111, 92, 240, .2) 4.2rem calc(4.2rem + 1px));
    -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
    mask-image: radial-gradient(circle at center, #000 0%, transparent 68%);
}
.hp-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -3;
    background: linear-gradient(180deg, #F6FAFF 0%, #EAF2FF 100%);
}
.hp-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hp-glow--g { width: 34rem; height: 34rem; top: -12rem; left: -10rem; background: rgba(99, 206, 24, .20); }
.hp-glow--v { width: 30rem; height: 30rem; top: 2rem; right: -8rem; background: rgba(139, 124, 255, .22); }
.hp-glow--m { width: 22rem; height: 22rem; bottom: -8rem; left: 40%; background: rgba(224, 68, 156, .10); }

.hp-hero-title {
    font-family: var(--font-heading); font-weight: 800; color: var(--hp-heading);
    font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.07; letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.hp-hero-sub { color: var(--hp-muted); font-size: 1.15rem; line-height: 1.7; max-width: 36rem; margin-bottom: 2rem; }
.hp-hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.25rem; }
.hp-pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.hp-pill {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem;
    border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--hp-text);
    background: var(--hp-surface); border: 1px solid var(--hp-border);
}
.hp-pill i { color: var(--hp-accent); }
.hp-live { width: .5rem; height: .5rem; border-radius: 50%; background: var(--hp-green); box-shadow: 0 0 0 0 rgba(99, 206, 24, .6); animation: hp-pulse 2s infinite; }
@keyframes hp-pulse { 70% { box-shadow: 0 0 0 .6rem rgba(99, 206, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(99, 206, 24, 0); } }

/* Agent console */
.hp-console {
    position: relative; border-radius: 1.25rem; border: 1px solid var(--hp-border);
    background: linear-gradient(160deg, #161C58, #0A0E33);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15, 17, 66, .12); overflow: hidden;
}
.hp-console-bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--hp-border); font-size: .8rem; color: var(--hp-muted); }
.hp-console-bar .hp-live { margin-right: .15rem; }
.hp-console-tag { margin-left: auto; padding: .15rem .6rem; border-radius: 999px; background: rgba(99, 206, 24, .14); color: var(--hp-accent); font-weight: 700; font-size: .72rem; }
.hp-console-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; min-height: 22rem; }
.hp-msg { max-width: 88%; padding: .8rem 1rem; border-radius: 1rem; font-size: .92rem; line-height: 1.55; opacity: 0; animation: hp-in .6s ease forwards; }
.hp-msg--user { align-self: flex-end; background: var(--hp-violet); color: #fff; border-bottom-right-radius: .3rem; animation-delay: .4s; }
.hp-msg--agent { align-self: flex-start; background: var(--hp-surface-2); border: 1px solid var(--hp-border); border-bottom-left-radius: .3rem; animation-delay: 1.8s; }
.hp-msg--agent small { display: block; margin-top: .6rem; }
.hp-cite { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; margin: .15rem .3rem 0 0; border-radius: .5rem; font-size: .72rem; font-weight: 600; background: rgba(53, 212, 232, .12); color: var(--hp-cyan); }
.hp-check {
    align-self: flex-start; display: flex; gap: .5rem; flex-wrap: wrap;
    opacity: 0; animation: hp-in .6s ease 3.2s forwards;
}
.hp-check span { font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: .5rem; border: 1px dashed rgba(99, 206, 24, .5); color: var(--hp-accent); }
.hp-voice {
    margin-top: auto; display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem;
    border-radius: 1rem; border: 1px solid var(--hp-border); background: var(--hp-voice-bg);
    opacity: 0; animation: hp-in .6s ease 4.2s forwards;
}
.hp-voice-icon { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--hp-magenta), var(--hp-violet)); color: #fff; flex: none; }
.hp-wave { display: flex; align-items: center; gap: 3px; height: 1.6rem; flex: 1; }
.hp-wave i { display: block; width: 3px; border-radius: 2px; background: var(--hp-accent); height: 30%; animation: hp-wave 1.1s ease-in-out infinite; }
.hp-wave i:nth-child(2n) { animation-delay: .15s; background: var(--hp-cyan); }
.hp-wave i:nth-child(3n) { animation-delay: .3s; }
.hp-wave i:nth-child(5n) { animation-delay: .45s; }
@keyframes hp-wave { 50% { height: 100%; } }
@keyframes hp-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hp-voice-label { font-size: .78rem; color: var(--hp-muted); white-space: nowrap; }

/* Hero trust strip */
.hp-trust { margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--hp-border); display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; justify-content: space-between; }
.hp-trust-label { font-size: .8rem; color: var(--hp-muted); text-transform: uppercase; letter-spacing: .08em; }
.hp-certs { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hp-cert { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--hp-text); }
.hp-cert img { width: 2.4rem; height: 2.4rem; object-fit: contain; background: #fff; border-radius: .5rem; padding: .2rem; }
.hp-cert small { display: block; font-weight: 400; color: var(--hp-muted); font-size: .72rem; }

/* ---------- Capability marquee ---------- */
.hp-marquee { overflow: hidden; border-block: 1px solid var(--hp-border); background: var(--hp-bg-2); padding: .8rem 0; }
.hp-marquee-track { display: flex; gap: 3rem; width: max-content; animation: hp-scroll 38s linear infinite; }
.hp-marquee span { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--hp-muted); white-space: nowrap; }
.hp-marquee i { color: var(--hp-green); }
@keyframes hp-scroll { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.hp-card {
    box-shadow: var(--hp-shadow);
    position: relative; height: 100%; padding: 1.35rem; border-radius: 1.1rem;
    background: var(--hp-surface); border: 1px solid var(--hp-border);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.hp-card:hover { transform: translateY(-5px); border-color: rgba(99, 206, 24, .5); background: var(--hp-surface-2); }
.hp-icon {
    width: 2.7rem; height: 2.7rem; border-radius: .8rem; display: grid; place-items: center; font-size: 1.25rem; margin-bottom: .8rem;
    background: rgba(99, 206, 24, .13); color: var(--hp-accent);
}
.hp-icon--v { background: rgba(139, 124, 255, .16); color: var(--hp-violet); }
.hp-icon--m { background: rgba(224, 68, 156, .15); color: #FF7AC0; }
.hp-icon--c { background: rgba(53, 212, 232, .14); color: var(--hp-cyan); }
.hp-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--hp-heading); margin-bottom: .6rem; }
.hp-card p { color: var(--hp-muted); font-size: .95rem; line-height: 1.65; margin: 0; }
.hp-step-num { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; color: var(--hp-ghost); line-height: 1; }
.hp-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.hp-tags li { font-size: .74rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; background: var(--hp-tag); color: var(--hp-muted); }
.hp-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; font-weight: 700; font-size: .9rem; color: var(--hp-accent); }
.hp-link:hover { color: var(--hp-heading); gap: .65rem; }
.hp-link:focus-visible { outline: 2px solid var(--hp-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- RAG flow ---------- */
.hp-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; margin-top: 1.75rem; }
.hp-flow-node { position: relative; padding: 1.4rem 1.1rem; text-align: center; border-radius: 1.1rem; background: var(--hp-bg); border: 1px solid var(--hp-border); }
.hp-flow-node:not(:last-child)::after {
    content: "\F138"; font-family: "bootstrap-icons"; position: absolute; right: -1.15rem; top: 50%; transform: translateY(-50%);
    color: var(--hp-green); font-size: 1.1rem; z-index: 2; background: var(--hp-bg-2); border-radius: 50%; line-height: 1;
}
.hp-flow-node i.hp-fi { display: block; font-size: 1.7rem; color: var(--hp-accent); margin-bottom: .6rem; }
.hp-flow-node strong { display: block; color: var(--hp-heading); font-family: var(--font-heading); margin-bottom: .3rem; }
.hp-flow-node span { font-size: .85rem; color: var(--hp-muted); line-height: 1.5; display: block; }
.hp-rag-points li { display: flex; gap: .75rem; margin-bottom: .9rem; color: var(--hp-muted); line-height: 1.6; }
.hp-rag-points i { color: var(--hp-accent); margin-top: .2rem; }
.hp-rag-points strong { color: var(--hp-heading); }

/* ---------- Product showcase (agents + AI products) ---------- */
.hp-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: 1.6rem; border-radius: 1.5rem; border: 1px solid var(--hp-border); background: radial-gradient(ellipse at 100% 0%, rgba(139,124,255,.28), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(99,206,24,.14), transparent 50%), var(--hp-bg); }
.hp-feature + .hp-feature { margin-top: 1.5rem; }
.hp-feature--flip .hp-feature-media { order: -1; }
.hp-feature h3 { font-family: var(--font-heading); font-weight: 800; color: var(--hp-heading); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .8rem; }
.hp-feature p { color: var(--hp-muted); line-height: 1.7; }
.hp-bullets li { display: flex; gap: .6rem; margin-bottom: .55rem; color: var(--hp-text); font-size: .95rem; }
.hp-bullets i { color: var(--hp-accent); }
.hp-feature-media { border-radius: 1rem; background: rgba(255,255,255,.04); border: 1px solid var(--hp-border); padding: 1.25rem; min-height: 14rem; display: flex; flex-direction: column; justify-content: center; gap: .8rem; }
.hp-bubble { padding: .65rem .9rem; border-radius: .9rem; font-size: .85rem; max-width: 85%; background: rgba(255,255,255,.09); border: 1px solid var(--hp-border); color: var(--hp-text); }
.hp-bubble--r { align-self: flex-end; background: rgba(139,124,255,.25); border-color: transparent; }
.hp-bubble--g { background: rgba(99,206,24,.14); border-color: rgba(99,206,24,.35); color: var(--hp-accent); }
.hp-meter { height: .5rem; border-radius: 999px; background: var(--hp-tag); overflow: hidden; }
.hp-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hp-green), var(--hp-cyan)); }
.hp-meter-row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--hp-muted); margin-bottom: .3rem; }

/* ---------- Stats ---------- */

/* ---------- Services ---------- */
.hp-svc .hp-tags { margin-top: .9rem; }

/* ---------- Portfolio ---------- */

/* ---------- Industries ---------- */
.hp-ind { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.hp-ind li { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.15rem; border-radius: 999px; border: 1px solid var(--hp-border); background: var(--hp-surface); font-weight: 600; font-size: .92rem; }
.hp-ind i { color: var(--hp-accent); }

/* ---------- Tech ---------- */
.hp-tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .85rem; }
.hp-tech li { text-align: center; padding: 1rem .5rem; border-radius: 1rem; border: 1px solid var(--hp-border); background: var(--hp-surface); font-size: .82rem; font-weight: 600; color: var(--hp-muted); }
.hp-tech img { width: 2.4rem; height: 2.4rem; margin: 0 auto .5rem; }

/* ---------- Testimonials ---------- */

/* ---------- Final CTA ---------- */
.hp-cta { position: relative; overflow: hidden; text-align: center; padding: 2.5rem 1.5rem; border-radius: 1.5rem; border: 1px solid var(--hp-border); background: radial-gradient(ellipse at 50% 0%, rgba(99,206,24,.22), transparent 60%), radial-gradient(ellipse at 90% 100%, rgba(139,124,255,.25), transparent 55%), var(--hp-bg-2); }
.hp-cta .hp-lead { max-width: 36rem; margin: 0 auto 2rem; }
.hp-cta-list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; margin-top: 1.75rem; color: var(--hp-muted); font-size: .88rem; }
.hp-cta-list i { color: var(--hp-accent); margin-right: .35rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .hp-section { padding: 2.5rem 0; }
    .hp-flow { grid-template-columns: repeat(2, 1fr); }
    .hp-flow-node:nth-child(2)::after { display: none; }
    .hp-feature { grid-template-columns: 1fr; padding: 1.5rem; }
    .hp-feature--flip .hp-feature-media { order: 0; }
}
@media (max-width: 575.98px) {
    .hp-hero { padding: 2.5rem 0 3rem; }
    .hp-flow { grid-template-columns: 1fr; }
    .hp-flow-node::after { display: none; }
    .hp-hero-cta .hp-btn { width: 100%; }
    .hp-console-body { min-height: 0; }
    .hp-voice-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal, .hp-msg, .hp-check, .hp-voice { opacity: 1; transform: none; animation: none; transition: none; }
    .hp-marquee-track, .hp-wave i, .hp-live { animation: none; }
}

.hp-title--sm { font-size: 1.6rem; }
.hp-voice--static { opacity: 1; animation: none; }

@media (max-width: 1399.98px) and (min-width: 576px) {
    .hp-flow { grid-template-columns: repeat(2, 1fr); }
    .hp-flow-node:nth-child(2)::after { display: none; }
}

/* Certifications sit under the agent console */
.hp-trust { margin-top: 1.75rem; padding-top: 0; border-top: 0; flex-direction: column; align-items: flex-start; gap: .85rem; }

/* ---------- Google reviews ---------- */
.hp-review { margin: 0; height: 100%; padding: 1.5rem; border-radius: 1.1rem; background: var(--hp-surface); border: 1px solid var(--hp-border); display: flex; flex-direction: column; gap: 1rem; }
.hp-review-top { display: flex; align-items: center; justify-content: space-between; }
.hp-stars { color: #F5A400; display: flex; gap: .15rem; }
.hp-review blockquote { margin: 0; flex: 1; color: var(--hp-text); line-height: 1.7; font-size: .97rem; }
.hp-review blockquote p { margin: 0; }
.hp-review--featured { padding: 1.75rem 2rem; background: var(--hp-bg); }
.hp-review--featured blockquote { font-size: 1.1rem; line-height: 1.75; color: var(--hp-heading); }
.hp-who { display: flex; align-items: center; gap: .8rem; }
.hp-avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .82rem; background: linear-gradient(135deg, var(--hp-violet), var(--hp-magenta)); color: #fff; flex: none; }
.hp-who strong { display: block; color: var(--hp-heading); font-size: .95rem; }
.hp-who span span { color: var(--hp-muted); font-size: .8rem; }
.hp-review-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: center; margin-top: 1.75rem; }
.hp-review-score { display: inline-flex; align-items: center; gap: .5rem; color: var(--hp-muted); }
.hp-review-score strong { color: var(--hp-heading); font-size: 1.1rem; }
@media (max-width: 575.98px) { .hp-review--featured { padding: 1.4rem; } .hp-review-foot .hp-btn { width: 100%; } }

/* ---------- Why Bytespark (compact) ---------- */
.hp-why { padding: 2.5rem 0; }
.hp-why .hp-head { margin-bottom: 1.5rem; }
.hp-why-card { display: flex; flex-direction: column; padding: 1.1rem 1.25rem; }
.hp-why-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.hp-why-top .hp-icon { flex: none; width: 2.5rem; height: 2.5rem; margin: 0; font-size: 1.15rem; }
.hp-why-card h3 { margin: 0; font-size: 1.02rem; }
.hp-why-card p { font-size: .9rem; line-height: 1.55; }
.hp-why-tag {
    display: inline-flex; align-items: center; gap: .35rem; width: fit-content; margin-top: auto;
    padding: .25rem .65rem; border-radius: 999px; background: var(--hp-tag);
    font-size: .75rem; font-weight: 600; color: var(--hp-accent);
}
.hp-why-card p { margin-bottom: .85rem; }
.hp-why .hp-ind li { padding: .5rem .95rem; font-size: .88rem; }
@media (max-width: 767px) { .hp-why { padding: 2rem 0; } }

/* ---------- Client reviews (compact, truncated) ---------- */
.hp-testi { padding: 2.5rem 0; }
.hp-testi .hp-head { margin-bottom: 1.5rem; }
.hp-testi .hp-review { padding: 1.1rem 1.25rem; gap: .75rem; }
.hp-testi .hp-review blockquote { font-size: .9rem; line-height: 1.55; }
.hp-testi .hp-review blockquote p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.hp-testi .hp-avatar { width: 2.25rem; height: 2.25rem; font-size: .75rem; }
.hp-testi .hp-review-foot { margin-top: 1.25rem; }
@media (max-width: 767px) { .hp-testi { padding: 2rem 0; } }

/* ---------- Portfolio (bento grid) ---------- */
.hp-work-section { padding: 3rem 0; }
.hp-work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.hp-work-head .hp-eyebrow { margin-bottom: .8rem; }
.hp-work-head-side { max-width: 26rem; }
.hp-work-head-side .hp-lead { margin-bottom: .6rem; }
.hp-work-all { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--hp-green-2); text-decoration: none; }
.hp-work-all i { transition: transform .25s ease; }
.hp-work-all:hover i { transform: translateX(4px); }

.hp-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hp-work {
    display: flex; flex-direction: column; padding: .6rem; border-radius: 1.1rem; text-decoration: none;
    background: var(--hp-surface); border: 1px solid var(--hp-border);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.hp-work:hover, .hp-work:focus-visible { transform: translateY(-4px); border-color: rgba(99, 206, 24, .55); background: var(--hp-surface-2); }
.hp-work:focus-visible { outline: 2px solid var(--hp-green); outline-offset: 3px; }
.hp-work-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: .7rem; background: var(--hp-bg-2); }
.hp-work-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.hp-work:hover .hp-work-media img, .hp-work:focus-visible .hp-work-media img { transform: scale(1.04); }
.hp-work-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .4rem .25rem; }
.hp-work-info h3 { color: #fff; font-family: var(--font-heading); font-size: .98rem; font-weight: 700; margin: 0 0 .15rem; }
.hp-work-info small { display: block; color: var(--hp-green-2); font-weight: 600; font-size: .78rem; }
.hp-work-arrow {
    flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: #fff; font-size: .9rem; transition: background .25s ease, color .25s ease, transform .25s ease;
}
.hp-work:hover .hp-work-arrow, .hp-work:focus-visible .hp-work-arrow { background: var(--hp-green); color: #07120A; transform: rotate(45deg); }

@media (max-width: 991px) { .hp-work-grid { grid-template-columns: repeat(2, 1fr); } .hp-work--more { grid-column: span 2; } }
@media (max-width: 575px) {
    .hp-work-section { padding: 2.5rem 0; }
    .hp-work-grid { gap: .7rem; }
    .hp-work { padding: .4rem; border-radius: .9rem; }
    .hp-work-media { border-radius: .6rem; }
    .hp-work-foot { padding: .55rem .3rem .2rem; gap: .4rem; }
    .hp-work-info h3 { font-size: .85rem; }
    .hp-work-info small { font-size: .7rem; }
    .hp-work-arrow { display: none; }
}
@media (max-width: 359px) { .hp-work-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hp-work, .hp-work-media img, .hp-work-arrow, .hp-work-all i { transition: none; } }

/* Portfolio: closing tile */
.hp-work--more { align-items: flex-start; justify-content: center; gap: .6rem; padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 206, 24, .14), rgba(139, 124, 255, .18)), var(--hp-surface); }
.hp-work-more-ic { width: 2.75rem; height: 2.75rem; border-radius: .8rem; display: grid; place-items: center; background: rgba(99, 206, 24, .18); color: var(--hp-green-2); font-size: 1.2rem; }
.hp-work-more-t { color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.hp-work-more-s { color: var(--hp-muted); font-size: .92rem; max-width: 24rem; }
.hp-work-more-b { display: inline-flex; align-items: center; gap: .4rem; margin-top: .25rem; font-weight: 700; font-size: .9rem; color: var(--hp-green-2); }
@media (max-width: 359px) { .hp-work--more { grid-column: auto; } }

/* ---------- Performance ---------- */
/* Skip rendering work for heavy sections that sit far below the fold (no in-page anchors point here) */
#technologies, #testimonials { content-visibility: auto; contain-intrinsic-size: auto 36rem; }

@media (max-width: 767px) {
    /* No delayed entrance animation on phones: keeps text visible for LCP and saves main-thread work */
    .hp-msg, .hp-check, .hp-voice { opacity: 1; animation: none; }
    /* Large blurred glows are costly to paint on mobile GPUs */
    .hp-glow { display: none; }
}
