/* =====================================================================
   home-plus.css — Home page "x10" upgrade layer
   Loads AFTER styles.css. All new classes are prefixed .hp-
   Nothing here is required for the page to work: remove the <link>
   and the page falls back to the original design.
   ===================================================================== */

.home-page {
    --hp-c1: 209, 63, 63;      /* brand crimson  */
    --hp-c2: 255, 138, 91;     /* ember          */
    --hp-c3: 166, 59, 214;     /* violet accent  */
    --hp-line: rgba(255, 255, 255, 0.09);
    --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------
   0. Background — matched to the Work page
   Work sits on one flat #0c0b0e. styles.css gives the home page a lighter
   #161418 plus two fixed washes: a radial on ::before and a three-gradient
   backdrop on ::after that also runs ambientDrift forever. Switching both
   off makes the two pages read as one site, and drops a permanent
   full-viewport animated repaint at the same time.
   ------------------------------------------------------------------ */
body.home-page {
    background-color: #0c0b0e;
}

body.home-page::before,
body.home-page::after {
    content: none;
}

/* ---------------------------------------------------------------------
   1. Scroll progress rail
   ------------------------------------------------------------------ */
.hp-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 200;
    pointer-events: none;
}

.hp-progress-bar {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgb(var(--hp-c1)), rgb(var(--hp-c2)) 48%, rgb(var(--hp-c3)));
    box-shadow: 0 0 16px rgba(var(--hp-c1), 0.55);
    will-change: transform;
}

/* ---------------------------------------------------------------------
   2. Cursor aura
   (No film grain: the Work page has no texture layer, and a full-viewport
   mix-blend-mode overlay forces the whole page beneath it to be re-blended.)
   ------------------------------------------------------------------ */
.hp-aura {
    position: fixed;
    top: 0;
    left: 0;
    width: 560px;
    height: 560px;
    margin: -280px 0 0 -280px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: radial-gradient(circle, rgba(var(--hp-c1), 0.14) 0%, rgba(var(--hp-c3), 0.05) 42%, transparent 66%);
    will-change: transform;
}

.hp-aura.is-on { opacity: 1; }

/* ---------------------------------------------------------------------
   3. Hero — aurora orbs, bigger type, live meta row
   ------------------------------------------------------------------ */
.home-page .hero.hero-pro {
    padding: 5.25rem 1rem 3.25rem;
}

.home-page .hero-pro > *:not(.hero-bg):not(.hero-glow):not(.hp-orbs) {
    position: relative;
    z-index: 1;
}

/* The mask matters now that the page sits on a flat ground: overflow alone
   clips the glow off with a hard horizontal edge, which the old ambient wash
   used to hide. Fading the layer out at its own edges keeps the hero glow
   from ending in a visible seam. */
.hp-orbs {
    position: absolute;
    inset: -30% -12% -10%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    border-radius: 40%;
    -webkit-mask-image: radial-gradient(ellipse 78% 66% at 50% 42%, #000 38%, transparent 76%);
    mask-image: radial-gradient(ellipse 78% 66% at 50% 42%, #000 38%, transparent 76%);
}

.hp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    will-change: transform;
}

.hp-orb--1 {
    width: 42vw; height: 42vw; max-width: 560px; max-height: 560px;
    left: 2%; top: 2%;
    background: radial-gradient(circle, rgba(var(--hp-c1), 0.42) 0%, transparent 68%);
    animation: hpFloatA 19s ease-in-out infinite alternate;
}

.hp-orb--2 {
    width: 34vw; height: 34vw; max-width: 460px; max-height: 460px;
    right: 4%; top: 12%;
    background: radial-gradient(circle, rgba(var(--hp-c3), 0.30) 0%, transparent 68%);
    animation: hpFloatB 23s ease-in-out infinite alternate;
}

.hp-orb--3 {
    width: 28vw; height: 28vw; max-width: 380px; max-height: 380px;
    left: 38%; bottom: 0;
    background: radial-gradient(circle, rgba(var(--hp-c2), 0.24) 0%, transparent 68%);
    animation: hpFloatC 16s ease-in-out infinite alternate;
}

@keyframes hpFloatA { from { transform: translate3d(-6%, -4%, 0) scale(1); }    to { transform: translate3d(8%, 6%, 0) scale(1.14); } }
@keyframes hpFloatB { from { transform: translate3d(5%, 3%, 0) scale(1.08); }   to { transform: translate3d(-7%, -6%, 0) scale(0.94); } }
@keyframes hpFloatC { from { transform: translate3d(-4%, 5%, 0) scale(0.96); }  to { transform: translate3d(6%, -4%, 0) scale(1.16); } }

/* Hero label -> glassy chip */
.home-page .hero-label {
    background: rgba(var(--hp-c1), 0.10);
    border-color: rgba(var(--hp-c1), 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 0 4px rgba(var(--hp-c1), 0.06);
}

/* Hero title: bigger, flowing gradient, soft bloom behind */
.home-page .hero-title {
    font-size: clamp(2.5rem, 8.5vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    background: linear-gradient(100deg,
        #f8e2e2 0%, #eda6a6 16%, rgb(var(--hp-c1)) 38%,
        rgb(var(--hp-c2)) 52%, rgb(var(--hp-c1)) 66%, #eda6a6 86%, #f8e2e2 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* No infinite background-position loop here: that property is not
       compositor-driven, so on a background-clip:text element it repaints the
       whole heading every frame for as long as the tab is open. */
    animation: heroTitleIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.home-page .hero-title::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(26px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.home-page .hero-line {
    width: 96px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--hp-c1), 0.9), rgba(var(--hp-c2), 0.9), transparent);
    box-shadow: 0 0 18px rgba(var(--hp-c1), 0.5);
}

/* Live meta row under the typewriter */
.hp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.6rem;
    margin: 1.15rem auto 0.25rem;
    max-width: 44rem;
}

.hp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.775rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hp-line);
    border-radius: 2rem;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    white-space: nowrap;
    transition: border-color 0.3s var(--hp-ease), background 0.3s var(--hp-ease), transform 0.3s var(--hp-ease);
}

.hp-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--hp-c1), 0.4);
    background: rgba(var(--hp-c1), 0.09);
}

/* display:inline-flex would otherwise beat the UA's [hidden] { display: none } */
.hp-chip[hidden] { display: none; }

.hp-chip b { color: #fff; font-weight: 700; }
.hp-chip i { opacity: 0.7; font-size: 0.8em; }

.hp-chip--live { border-color: rgba(52, 211, 153, 0.35); }
.hp-chip--live b { color: #6ee7b7; }

.hp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: hpPulse 2.2s ease-out infinite;
    flex-shrink: 0;
}

@keyframes hpPulse {
    0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65); }
    70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Hero buttons: glass + sheen sweep */
.home-page .hero-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0.85rem 1.6rem;
    font-size: 0.98rem;
    border-radius: 1rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--hp-line);
    color: #f3e7e7;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
    transition: transform 0.28s var(--hp-ease), border-color 0.28s var(--hp-ease),
        box-shadow 0.28s var(--hp-ease), background 0.28s var(--hp-ease), color 0.28s var(--hp-ease);
}

.home-page .hero-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--hp-ease);
}

.home-page .hero-btn:hover {
    color: #fff;
    background: linear-gradient(160deg, rgba(var(--hp-c1), 0.28), rgba(var(--hp-c1), 0.08));
    border-color: rgba(var(--hp-c1), 0.55);
    box-shadow: 0 12px 34px rgba(var(--hp-c1), 0.28);
    transform: translateY(-3px);
}

.home-page .hero-btn:hover::after { transform: translateX(120%); }

.home-page .hero-btn--twitter:hover {
    background: linear-gradient(160deg, rgba(29, 155, 240, 0.26), rgba(29, 155, 240, 0.06));
    border-color: rgba(29, 155, 240, 0.5);
    box-shadow: 0 12px 34px rgba(29, 155, 240, 0.22);
}

.home-page .hero-btn--discord:hover {
    background: linear-gradient(160deg, rgba(88, 101, 242, 0.28), rgba(88, 101, 242, 0.06));
    border-color: rgba(88, 101, 242, 0.5);
    box-shadow: 0 12px 34px rgba(88, 101, 242, 0.24);
}

.home-page .hero-btn--email:hover {
    background: linear-gradient(160deg, rgba(var(--hp-c2), 0.26), rgba(var(--hp-c2), 0.06));
    border-color: rgba(var(--hp-c2), 0.5);
    box-shadow: 0 12px 34px rgba(var(--hp-c2), 0.22);
}

/* ---------------------------------------------------------------------
   4. Infinite keyword marquee
   ------------------------------------------------------------------ */
.hp-marquee {
    position: relative;
    margin: 0.5rem 0 2.75rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--hp-line);
    border-bottom: 1px solid var(--hp-line);
    background: linear-gradient(90deg, rgba(var(--hp-c1), 0.05), rgba(var(--hp-c3), 0.05));
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.hp-marquee-track {
    display: flex;
    width: max-content;
    gap: 2.25rem;
    animation: hpMarquee 38s linear infinite;
    will-change: transform;
}

.hp-marquee:hover .hp-marquee-track { animation-play-state: paused; }

@keyframes hpMarquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

.hp-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 2.25rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.hp-marquee-item::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(var(--hp-c1), 0.8);
    flex-shrink: 0;
}

.hp-marquee-item:hover { color: rgba(255, 255, 255, 0.9); }

/* ---------------------------------------------------------------------
   5. Section headers — numbered, gradient title, animated rule
   ------------------------------------------------------------------ */
.home-page main { counter-reset: hpsec; }

.home-page .section-header .section-pill {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--hp-c1), 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-page .section-header .section-pill::before {
    counter-increment: hpsec;
    content: counter(hpsec, decimal-leading-zero);
    color: rgb(var(--hp-c1));
    margin-right: 0.55rem;
    font-variant-numeric: tabular-nums;
    opacity: 0.9;
}

.home-page .section-header .section-title,
.home-page .why-title {
    font-size: clamp(1.85rem, 4.4vw, 2.7rem);
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.62) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-page .why-title .accent {
    background: linear-gradient(120deg, rgb(var(--hp-c1)), rgb(var(--hp-c2)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-page .section-header .section-subtitle {
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.98rem;
}

.home-page .section-header::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    margin: 1.05rem auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--hp-c1), 0.9), rgba(var(--hp-c2), 0.7), transparent);
    transition: width 1s var(--hp-ease);
}

.home-page .section-header.hp-in::after { width: 132px; }

/* ---------------------------------------------------------------------
   6. Spotlight + tilt for cards
   ------------------------------------------------------------------ */
/* Specificity note: .stats-grid .stat-item > * forces position:relative on
   every child, so this selector has to match its weight to win. */
.home-page .hp-spot > .hp-spot-layer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.35s ease;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 255, 255, 0.11) 0%, rgba(var(--hp-c1), 0.07) 32%, transparent 62%);
}

.home-page .hp-spot:hover > .hp-spot-layer,
.home-page .hp-spot:focus-within > .hp-spot-layer { opacity: 1; }

.hp-tilt { will-change: transform; }

/* The transform rules for .hp-tilt live in section 7a — they have to be
   declared after the reveal transforms to outrank them. */

/* ---------------------------------------------------------------------
   7. Staggered reveal for grid children
   ------------------------------------------------------------------ */
/* Gated on .hp-ready (set by home-plus.js). If the script never runs the
   cards are simply never hidden, so nothing can strand them at opacity 0. */
.hp-ready .stats-grid .stat-item,
.hp-ready .collaborators-grid .collab-card,
.hp-ready .active-projects-grid .project-card,
.hp-ready .languages-grid .lang-item,
.hp-ready .why-grid .why-card,
.hp-ready .pricing-grid .pricing-card,
.hp-ready .updates-preview .update-item {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition:
        opacity 0.7s var(--hp-ease) calc(var(--i, 0) * 85ms),
        transform 0.7s var(--hp-ease) calc(var(--i, 0) * 85ms),
        box-shadow 0.3s var(--ease-out),
        background 0.3s var(--ease-out),
        border-color 0.3s var(--ease-out);
}

.hp-ready .hp-stagger-in .stat-item,
.hp-ready .hp-stagger-in .collab-card,
.hp-ready .hp-stagger-in .project-card,
.hp-ready .hp-stagger-in .lang-item,
.hp-ready .hp-stagger-in .why-card,
.hp-ready .hp-stagger-in .pricing-card,
.hp-ready .hp-stagger-in .update-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ---------------------------------------------------------------------
   7a. Hover / tilt transforms
   The reveal rules above own `transform` at (0,3,0). styles.css declares the
   hover lift for these cards at only (0,2,0), so without re-stating it here
   the reveal layer would cancel it. Same reason the tilt rule sits after the
   reveal block instead of next to the rest of the tilt styles.
   ------------------------------------------------------------------ */
.hp-ready .hp-stagger-in .collab-card:hover,
.hp-ready .hp-stagger-in .project-card:hover,
.hp-ready .hp-stagger-in .why-card:hover,
.hp-ready .hp-stagger-in .pricing-card:hover {
    transform: translateY(-5px);
}

.hp-ready .home-page .hp-tilt.hp-is-tilting {
    transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.015);
    transition: transform 0.12s linear;
}

/* ---------------------------------------------------------------------
   8. Availability + stats polish
   ------------------------------------------------------------------ */
.home-page .home-availability-card {
    transition: transform 0.3s var(--hp-ease), border-color 0.3s var(--hp-ease), background 0.3s var(--hp-ease);
}

.home-page .home-availability-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--hp-c1), 0.4);
}

.home-page .stats-grid .stat-value {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff 25%, rgba(var(--stat-accent-mid), 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.home-page .stats-grid .stat-icon-wrap {
    transition: transform 0.45s var(--hp-ease);
}

.home-page .stat-item:hover .stat-icon-wrap {
    transform: translateY(-3px) rotate(-8deg) scale(1.12);
}

/* ---------------------------------------------------------------------
   9. Project / collaborator cards
   ------------------------------------------------------------------ */
.home-page .project-card,
.home-page .collab-card {
    position: relative;
}

.home-page .project-card .project-card-img,
.home-page .collab-shot img {
    transition: transform 0.7s var(--hp-ease), filter 0.5s var(--hp-ease);
}

.home-page .project-card:hover .project-card-img,
.home-page .collab-card:hover .collab-shot img {
    transform: scale(1.07);
    filter: saturate(1.15) contrast(1.05);
}

.home-page .project-card-badge {
    transition: transform 0.35s var(--hp-ease), opacity 0.35s var(--hp-ease), background 0.35s var(--hp-ease);
}

/* ---------------------------------------------------------------------
   10. Pricing — "most picked" ribbon + animated top rule
   ------------------------------------------------------------------ */
/* Centered rather than tucked in the corner: .pricing-card clips overflow and
   the tier name is centered, so a corner badge lands on top of "Advanced". */
.hp-pop {
    position: absolute;
    top: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 2rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #041e14;
    background: linear-gradient(120deg, #6ee7b7, #34d399);
    box-shadow: 0 6px 18px rgba(52, 211, 153, 0.35);
}

.home-page .pricing-card--advanced .pricing-card-head {
    padding-top: 3.1rem; /* clears the badge */
}

.home-page .pricing-card--advanced {
    border-color: rgba(52, 211, 153, 0.32);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(52, 211, 153, 0.14);
}

.home-page .pricing-card--advanced::before {
    height: 3px;
    background: linear-gradient(90deg, transparent, #34d399, #6ee7b7, #34d399, transparent);
    opacity: 1;
}

.home-page .pricing-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.28s var(--hp-ease), box-shadow 0.28s var(--hp-ease), background 0.28s var(--hp-ease);
}

.home-page .pricing-btn::after,
.home-page .contact-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.28) 50%, transparent 68%);
    transform: translateX(-130%);
    transition: transform 0.75s var(--hp-ease);
}

.home-page .pricing-btn:hover::after,
.home-page .contact-btn:hover::after { transform: translateX(130%); }

.home-page .pricing-btn:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   11. Contact form
   ------------------------------------------------------------------ */
.home-page .contact-field input,
.home-page .contact-field textarea {
    transition: border-color 0.3s var(--hp-ease), box-shadow 0.3s var(--hp-ease), background 0.3s var(--hp-ease);
}

.home-page .contact-field input:focus,
.home-page .contact-field textarea:focus {
    border-color: rgba(var(--hp-c1), 0.6);
    box-shadow: 0 0 0 4px rgba(var(--hp-c1), 0.12);
    outline: none;
}

.home-page .contact-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.28s var(--hp-ease), box-shadow 0.28s var(--hp-ease);
}

.home-page .contact-btn:hover { transform: translateY(-2px); }

/* ---------------------------------------------------------------------
   12. Nav — scroll-spy indicator
   ------------------------------------------------------------------ */
.home-page nav .nav-menu a {
    position: relative;
    transition: color 0.3s var(--hp-ease);
}

.home-page nav .nav-menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgb(var(--hp-c1)), rgb(var(--hp-c2)));
    transform: translateX(-50%);
    transition: width 0.35s var(--hp-ease);
}

.home-page nav .nav-menu a:hover::after,
.home-page nav .nav-menu a.hp-active::after { width: 100%; }

.home-page nav .nav-menu a.hp-active { color: #fff; }

/* ---------------------------------------------------------------------
   13. Back to top
   ------------------------------------------------------------------ */
.hp-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 120;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hp-line);
    border-radius: 50%;
    background: rgba(24, 20, 26, 0.62);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.35s var(--hp-ease), transform 0.35s var(--hp-ease),
        border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.hp-top.is-on {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hp-top:hover {
    color: #fff;
    border-color: rgba(var(--hp-c1), 0.55);
    background: rgba(var(--hp-c1), 0.2);
}

/* ---------------------------------------------------------------------
   14. Reveal helper for new blocks
   ------------------------------------------------------------------ */
.hp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--hp-ease), transform 0.8s var(--hp-ease);
}

.hp-reveal.hp-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------------
   15. Responsive + motion / touch guards
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .home-page .hero.hero-pro { padding: 4.25rem 1rem 2.5rem; }
    .home-page .hero-buttons { flex-direction: row; gap: 0.6rem; }
    .home-page .hero-btn { width: auto; max-width: none; padding: 0.8rem 1.25rem; font-size: 0.92rem; }
    .hp-hero-meta { gap: 0.45rem; }
    .hp-chip { font-size: 0.72rem; padding: 0.36rem 0.7rem; }
    .hp-marquee-item { font-size: 0.82rem; gap: 1.5rem; }
    .hp-marquee-track { gap: 1.5rem; animation-duration: 26s; }
    .hp-top { right: 0.9rem; bottom: 0.9rem; width: 42px; height: 42px; }
    .hp-orb { filter: blur(52px); }
}

@media (hover: none) and (pointer: coarse) {
    /* A full-viewport blended layer forces compositing of the whole page —
       not worth the cost on phones. */
    .hp-aura { display: none; }
    .hp-orb { animation-duration: 30s; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-orb,
    .hp-marquee-track,
    .hp-dot,
    .home-page .hero-title,
    .home-page .pricing-card--advanced::before {
        animation: none !important;
    }

    .home-page .hero-title { opacity: 1; }

    .hp-reveal,
    .hp-ready .stats-grid .stat-item,
    .hp-ready .collaborators-grid .collab-card,
    .hp-ready .active-projects-grid .project-card,
    .hp-ready .languages-grid .lang-item,
    .hp-ready .why-grid .why-card,
    .hp-ready .pricing-grid .pricing-card,
    .hp-ready .updates-preview .update-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
