/* Bonds Code — marketing homepage (scoped to body.home) */

body.home {
    --home-ink: #07111f;
    --home-ink-soft: #142033;
    --home-sand: #e8eef6;
    --home-foam: #f4f7fb;
    --home-accent: #1f9d8f;
    --home-accent-deep: #147a6f;
    --home-warm: #e8a54b;
    --home-line: rgba(15, 30, 50, 0.12);
    --home-text: #132033;
    --home-muted: #5b6b7c;
    --home-radius: 18px;
    --home-font: "Manrope", system-ui, sans-serif;
    --home-display: "Unbounded", "Manrope", system-ui, sans-serif;
    --home-nav-h: 4.2rem;
    margin: 0;
    padding: 0;
    font-family: var(--home-font);
    color: var(--home-text);
    background: var(--home-foam);
    /* clip keeps sticky sections working; hidden breaks them */
    overflow-x: clip;
}

html:has(body.home) {
    height: 100%;
    overflow-x: clip;
}

html[data-theme="light"] body.home {
    --home-ink: #101832;
    --home-ink-soft: #1a2450;
    --home-sand: #eef2ff;
    --home-foam: #f6f8ff;
    --home-accent: #3b6ef5;
    --home-accent-deep: #2a4fd4;
    --home-warm: #6c5ce7;
    --home-line: rgba(30, 50, 100, 0.12);
    --home-text: #152044;
    --home-muted: #5a6a8a;
    background: var(--home-foam);
    color: var(--home-text);
}

html[data-theme="dark"] body.home {
    --home-sand: #101826;
    --home-foam: #0a1018;
    --home-line: rgba(232, 238, 246, 0.12);
    --home-text: #e8eef6;
    --home-muted: #9aabbd;
    background: var(--home-foam);
    color: var(--home-text);
}

body.home .home-skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--home-ink);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 100;
}

body.home .home-skip:focus {
    left: 1rem;
    top: 1rem;
}

body.home .home-wrap {
    width: min(1120px, calc(100% - 2.4rem));
    margin: 0 auto;
}

/* —— Nav (over full-screen hero) —— */
body.home .home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(4, 10, 18, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] body.home .home-nav {
    background: rgba(4, 10, 18, 0.72);
}

body.home .home-nav__links a {
    color: rgba(243, 247, 251, 0.86);
}

body.home .home-nav__links a:hover {
    color: #fff;
}

body.home .home-login,
body.home .home-theme {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

body.home .home-login:hover,
body.home .home-theme:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* Logo asset is light (for dark surfaces). Invert only on light surfaces. */
html[data-theme="light"] body.home .home-nav:not(.is-solid) .home-brand__logo,
html[data-theme="light"] body.home .home-hero__logo,
html[data-theme="dark"] body.home .home-brand__logo,
body.home .home-brand--footer .home-brand__logo {
    filter: none;
}

html[data-theme="light"] body.home .home-nav.is-solid .home-brand__logo {
    filter: invert(1);
}

body.home .home-nav__inner {
    width: min(1120px, calc(100% - 1.6rem));
    margin: 0 auto;
    min-height: var(--home-nav-h);
    height: var(--home-nav-h);
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.home .home-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
}

body.home .home-brand__logo {
    height: 40px;
    width: auto;
    max-width: min(200px, 46vw);
    object-fit: contain;
    display: block;
}

body.home .home-nav__links {
    display: none;
    gap: 1.25rem;
    margin-left: 0.5rem;
}

body.home .home-nav__links a {
    color: var(--home-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

body.home .home-nav__links a:hover {
    color: var(--home-accent-deep);
}

body.home .home-nav__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

body.home .home-lang {
    display: inline-flex;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

body.home .home-lang a,
body.home .home-lang span {
    padding: 0.35rem 0.55rem;
    color: var(--home-muted);
    text-decoration: none;
}

body.home .home-lang .is-active {
    background: var(--home-ink);
    color: #fff;
}

html[data-theme="dark"] body.home .home-lang .is-active {
    background: var(--home-accent);
    color: #04120f;
}

body.home .home-theme,
body.home .home-login {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
}

body.home .home-cta-nav {
    display: none;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

@media (min-width: 720px) {
    body.home .home-nav__links { display: flex; }
    body.home .home-cta-nav { display: inline-flex; }
}

@media (max-width: 520px) {
    body.home .home-login { display: none; }
}

/* —— Hero (full viewport) —— */
body.home .home-hero--photo,
body.home .home-hero--canvas {
    /* Exact visible viewport; nav overlays, does not add height */
    --home-hero-h: 100vh;
    --home-hero-h: 100svh;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: var(--home-hero-h);
    min-height: var(--home-hero-h);
    max-height: var(--home-hero-h);
    display: flex;
    align-items: center;
    color: #f3f7fb;
    overflow: hidden;
    isolation: isolate;
    padding: 0;
    margin: 0;
    background: #07111f;
}

body.home .home-hero__frame {
    position: relative;
    z-index: 3;
    width: min(1120px, calc(100% - 2.4rem));
    margin: 0 auto;
    padding: calc(var(--home-nav-h) + 0.5rem) 0 3.5rem;
    max-height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

body.home .home-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    transform: translate3d(0, calc(var(--hero-y, 0) * 1px), 0) scale(var(--hero-scale, 1));
    transform-origin: center center;
    will-change: transform;
    overflow: hidden;
}

/* Branded canvas instead of stock photo */
body.home .home-hero--canvas .home-hero__glow {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 55% 45% at 18% 30%, rgba(31, 157, 143, 0.38), transparent 60%),
        radial-gradient(ellipse 50% 40% at 82% 22%, rgba(232, 165, 75, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 50% at 70% 85%, rgba(91, 141, 239, 0.18), transparent 60%),
        radial-gradient(ellipse 80% 70% at 40% 100%, rgba(4, 10, 18, 0.9), transparent 50%),
        linear-gradient(160deg, #061018 0%, #0b1a28 45%, #0a1520 100%);
}

body.home .home-hero--canvas .home-hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(232, 238, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 238, 246, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 75%);
}

body.home .home-hero--canvas .home-hero__grid::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%237fd9ce' stroke-opacity='0.35' stroke-width='1'%3E%3Cpath d='M24 40h28v20H24zM64 40h18v8H64zM90 52h28v8H90zM24 78h40v10H24zM72 78h20v10H72zM24 106h16v10H24zM48 106h36v10H48z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 160px;
}

body.home .home-hero--canvas .home-hero__blocks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body.home .home-hero--canvas .home-hero__blocks span {
    position: absolute;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    animation: homeBlockDrift 12s ease-in-out infinite alternate;
}

body.home .home-hero--canvas .home-hero__blocks span:nth-child(1) {
    width: min(22vw, 180px);
    height: min(14vw, 110px);
    left: 58%;
    top: 18%;
    background: linear-gradient(145deg, rgba(31, 157, 143, 0.35), rgba(31, 157, 143, 0.08));
    animation-delay: 0s;
}

body.home .home-hero--canvas .home-hero__blocks span:nth-child(2) {
    width: min(16vw, 130px);
    height: min(10vw, 80px);
    left: 78%;
    top: 42%;
    background: linear-gradient(145deg, rgba(232, 165, 75, 0.3), rgba(232, 165, 75, 0.06));
    animation-delay: 1.2s;
}

body.home .home-hero--canvas .home-hero__blocks span:nth-child(3) {
    width: min(18vw, 150px);
    height: min(11vw, 90px);
    left: 66%;
    top: 64%;
    background: linear-gradient(145deg, rgba(91, 141, 239, 0.28), rgba(91, 141, 239, 0.06));
    animation-delay: 0.6s;
}

@keyframes homeBlockDrift {
    from { transform: translate3d(0, 0, 0) rotate(-2deg); }
    to { transform: translate3d(12px, -18px, 0) rotate(3deg); }
}

body.home .home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(4, 10, 18, 0.55) 0%, rgba(4, 10, 18, 0.2) 48%, rgba(4, 10, 18, 0.08) 100%),
        linear-gradient(to top, rgba(4, 10, 18, 0.88) 0%, rgba(4, 10, 18, 0.25) 42%, rgba(4, 10, 18, 0.15) 100%);
    pointer-events: none;
}

@media (max-width: 719px) {
    body.home .home-hero--canvas .home-hero__blocks {
        opacity: 0.55;
    }

    body.home .home-hero__shade {
        background:
            linear-gradient(to top,
                rgba(4, 10, 18, 0.92) 0%,
                rgba(4, 10, 18, 0.4) 45%,
                rgba(4, 10, 18, 0.2) 100%);
    }
}

body.home .home-hero__copy {
    max-width: 34rem;
    width: 100%;
    opacity: var(--hero-fade, 1);
    transform: translate3d(0, calc(var(--hero-copy-y, 0) * 1px), 0);
    filter: blur(calc(var(--hero-blur, 0) * 1px));
    will-change: opacity, transform, filter;
}

body.home .home-hero__title {
    display: block;
}

body.home .home-hero__word {
    display: inline;
    animation: homeWordIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(0.08s + var(--i, 0) * 0.07s);
}

@keyframes homeWordIn {
    from {
        opacity: 0;
        transform: translateY(0.55em);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

body.home .home-hero__cue {
    position: absolute;
    left: 50%;
    bottom: 1.15rem;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: rgba(243, 247, 251, 0.72);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

body.home .home-hero__cue span {
    width: 1.35rem;
    height: 1.35rem;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    display: grid;
    place-items: center;
    animation: homeCue 1.6s ease-in-out infinite;
}

body.home .home-hero__cue i {
    font-size: 0.65rem;
}

body.home .home-hero__logo {
    height: clamp(36px, 5.5vw, 52px);
    width: auto;
    margin: 0 0 0.7rem;
    display: block;
    filter: none;
}

body.home .home-hero__place {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(243, 247, 251, 0.72);
}

body.home .home-hero h1 {
    margin: 0 0 0.65rem;
    font-family: var(--home-display);
    font-weight: 800;
    font-size: clamp(1.55rem, 4.6vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
}

body.home .home-hero__lead {
    margin: 0 0 1.1rem;
    max-width: 36ch;
    font-size: clamp(0.92rem, 2vw, 1.12rem);
    line-height: 1.45;
    color: rgba(243, 247, 251, 0.88);
}

@media (max-width: 640px) {
    body.home .home-hero__frame {
        padding: calc(var(--home-nav-h) + 0.35rem) 0 2.75rem;
        align-items: center;
    }

    body.home .home-hero h1 {
        font-size: clamp(1.45rem, 7.2vw, 1.85rem);
    }

    body.home .home-hero__lead {
        font-size: 0.92rem;
        margin-bottom: 0.95rem;
    }

    body.home .home-hero__actions {
        gap: 0.5rem;
    }

    body.home .home-hero__actions .btn-large {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    body.home .home-hero__cue {
        bottom: 0.65rem;
    }
}

body.home .home-theme.theme-toggle--icon,
body.home .theme-toggle--icon {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
}

body.home .home-theme.theme-toggle--icon i {
    margin: 0;
    font-size: 0.95rem;
}

body.home .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-start;
}

body.home .home-hero__actions .btn-accent {
    background: var(--home-accent);
    border-color: var(--home-accent);
    color: #04120f;
    font-weight: 700;
}

body.home .home-hero__actions .btn-accent:hover {
    background: #27b5a5;
    border-color: #27b5a5;
}

body.home .home-hero__secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

body.home .home-hero__secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

@keyframes homeKen {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

/* —— Sections —— */
body.home .home-section {
    padding: clamp(3.5rem, 9vw, 5.5rem) 0;
}

body.home .home-eyebrow {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-accent-deep);
}

html[data-theme="dark"] body.home .home-eyebrow {
    color: #5fd0c3;
}

body.home .home-section h2 {
    margin: 0 0 0.75rem;
    font-family: var(--home-display);
    font-weight: 700;
    font-size: clamp(1.55rem, 3.8vw, 2.25rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

body.home .home-section__lead {
    margin: 0 0 2rem;
    max-width: 48ch;
    color: var(--home-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

/* —— Info strip —— */
body.home .home-strip {
    padding: 1.35rem 0;
    background: color-mix(in srgb, var(--home-ink) 88%, var(--home-accent));
    color: #eef6f4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.home .home-strip__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    transform: translate3d(calc(var(--strip-x, 0) * 1px), 0, 0);
    will-change: transform;
}

body.home .home-strip__grid div {
    display: grid;
    gap: 0.15rem;
}

body.home .home-strip__grid strong {
    font-family: var(--home-display);
    font-size: 0.98rem;
}

body.home .home-strip__grid span {
    font-size: 0.84rem;
    opacity: 0.72;
}

@media (min-width: 800px) {
    body.home .home-strip__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

body.home .home-programs {
    background: var(--home-sand);
}

body.home .home-programs__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 760px) {
    body.home .home-programs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

body.home .home-program {
    display: grid;
    gap: 0.65rem;
    padding: 1.25rem 1.3rem 1.35rem;
    border-radius: 18px;
    border: 1px solid var(--home-line);
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--home-foam) 88%, transparent), var(--home-foam));
    box-shadow: 0 12px 36px rgba(7, 17, 31, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.35s ease;
    transform: perspective(900px) rotateX(calc(var(--card-tilt, 0) * 1deg));
    transform-style: preserve-3d;
    animation: homeRiseSoft 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.home .home-program:nth-child(1) { animation-delay: 0.02s; }
body.home .home-program:nth-child(2) { animation-delay: 0.08s; }
body.home .home-program:nth-child(3) { animation-delay: 0.14s; }
body.home .home-program:nth-child(4) { animation-delay: 0.2s; }

body.home .home-program:hover {
    box-shadow: 0 22px 50px rgba(7, 17, 31, 0.14);
    border-color: color-mix(in srgb, var(--home-accent) 40%, var(--home-line));
}

body.home .home-program__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

body.home .home-program__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: color-mix(in srgb, var(--home-accent) 16%, transparent);
    color: var(--home-accent-deep);
}

body.home .home-program.is-scratch .home-program__icon { background: rgba(247, 148, 30, 0.16); color: #c56a08; }
body.home .home-program.is-python .home-program__icon { background: rgba(55, 118, 171, 0.16); color: #2f6ea3; }
body.home .home-program.is-csharp .home-program__icon { background: rgba(104, 33, 122, 0.14); color: #7b3a96; }
body.home .home-program.is-unity .home-program__icon { background: rgba(34, 34, 34, 0.1); color: #333; }

html[data-theme="dark"] body.home .home-program.is-unity .home-program__icon {
    background: rgba(255, 255, 255, 0.08);
    color: #ddd;
}

body.home .home-program__age {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--home-muted);
}

body.home .home-program h3 {
    margin: 0;
    font-family: var(--home-display);
    font-size: 1.45rem;
    font-weight: 750;
}

body.home .home-program p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.5;
}

body.home .home-program ul {
    margin: 0.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

body.home .home-program li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
    color: var(--home-text);
}

body.home .home-program li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--home-accent);
}

/* —— Learning path (sticky story) —— */
body.home .home-path--story {
    position: relative;
    padding: 0;
    min-height: 240vh;
    background:
        radial-gradient(ellipse 70% 50% at 50% 30%, color-mix(in srgb, var(--home-accent) 12%, transparent), transparent 70%),
        var(--home-foam);
}

body.home .home-path__sticky {
    position: sticky;
    top: var(--home-nav-h);
    min-height: calc(100svh - var(--home-nav-h));
    display: flex;
    align-items: center;
    padding: 2rem 0 2.5rem;
    box-sizing: border-box;
}

body.home .home-path__rail {
    height: 4px;
    margin: 0 0 1.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--home-line) 80%, transparent);
    overflow: hidden;
}

body.home .home-path__fill {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--home-accent), var(--home-warm));
    will-change: transform;
}

body.home .home-path__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
    counter-reset: path;
}

body.home .home-path__steps li {
    counter-increment: path;
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.1rem 1rem 3.4rem;
    position: relative;
    border-radius: 14px;
    border: 1px solid var(--home-line);
    background: color-mix(in srgb, var(--home-foam) 70%, var(--home-sand));
    opacity: 0.38;
    filter: grayscale(0.35);
    transform: scale(0.96) translateY(8px);
    transition:
        opacity 0.45s ease,
        filter 0.45s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

body.home .home-path__steps li.is-on {
    opacity: 0.72;
    filter: none;
    transform: scale(0.98) translateY(0);
}

body.home .home-path__steps li.is-live {
    opacity: 1;
    border-color: color-mix(in srgb, var(--home-accent) 55%, var(--home-line));
    background: color-mix(in srgb, var(--home-accent) 12%, var(--home-foam));
    box-shadow: 0 18px 44px rgba(31, 157, 143, 0.18);
    transform: scale(1.03) translateY(-4px);
}

body.home .home-path__steps li::before {
    content: counter(path);
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--home-ink);
    color: #fff;
    transition: background 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

html[data-theme="dark"] body.home .home-path__steps li::before {
    background: #1c2a3d;
    color: #e8eef6;
}

body.home .home-path__steps li.is-live::before {
    background: var(--home-accent);
    color: #04120f;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--home-accent) 25%, transparent);
}

body.home .home-path__steps strong {
    font-family: var(--home-display);
    font-size: 1.1rem;
}

body.home .home-path__steps span {
    color: var(--home-muted);
    font-size: 0.94rem;
}

@media (min-width: 860px) {
    body.home .home-path__steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.home .home-path__steps li {
        padding: 1.2rem 1rem 1.2rem 1rem;
        padding-top: 3.2rem;
    }

    body.home .home-path__steps li::before {
        top: 1rem;
        left: 1rem;
        transform: none;
    }

    body.home .home-path__steps li.is-live::before {
        transform: scale(1.08);
    }
}

@media (max-width: 700px) {
    body.home .home-path--story {
        min-height: 200vh;
        padding: 0;
    }

    body.home .home-path__sticky {
        position: sticky;
        top: var(--home-nav-h);
        min-height: calc(100svh - var(--home-nav-h));
        padding: 1.25rem 0 1.75rem;
    }
}

/* —— How it works —— */
body.home .home-how {
    background: var(--home-sand);
    position: relative;
    overflow: hidden;
}

body.home .home-how__track {
    position: relative;
}

body.home .home-how__line {
    display: none;
}

@media (min-width: 800px) {
    body.home .home-how__line {
        display: block;
        position: absolute;
        top: 2.1rem;
        left: 8%;
        right: 8%;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--home-accent), var(--home-warm));
        z-index: 0;
        transform-origin: left center;
        transform: scaleX(0);
        will-change: transform;
    }

    body.home .home-how__grid {
        position: relative;
        z-index: 1;
    }
}

body.home .home-how__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 800px) {
    body.home .home-how__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

body.home .home-how__grid article {
    padding: 1.35rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--home-line);
    background: var(--home-foam);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

body.home .home-how__grid article.is-live {
    border-color: color-mix(in srgb, var(--home-accent) 40%, var(--home-line));
    box-shadow: 0 16px 40px rgba(31, 157, 143, 0.12);
    transform: translateY(-6px);
}

body.home .home-how__num {
    display: block;
    margin-bottom: 0.7rem;
    font-family: var(--home-display);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--home-accent-deep);
}

body.home .home-how__grid h3 {
    margin: 0 0 0.4rem;
    font-family: var(--home-display);
    font-size: 1.2rem;
}

body.home .home-how__grid p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.5;
}

body.home .home-who__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    body.home .home-who__grid {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
        gap: 2.5rem;
    }
}

body.home .home-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.35rem;
}

body.home .home-points li {
    display: grid;
    gap: 0.25rem;
    padding-left: 1rem;
    border-left: 3px solid var(--home-accent);
}

body.home .home-points strong {
    font-family: var(--home-display);
    font-size: 1.15rem;
}

body.home .home-points span {
    color: var(--home-muted);
    line-height: 1.5;
}

body.home .home-aside {
    padding: 1.25rem 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--home-line);
    background: var(--home-sand);
}

body.home .home-aside h3 {
    margin: 0 0 0.85rem;
    font-family: var(--home-display);
    font-size: 1.15rem;
}

body.home .home-aside details {
    border-top: 1px solid var(--home-line);
    padding: 0.75rem 0;
}

body.home .home-aside details:first-of-type {
    border-top: 0;
    padding-top: 0;
}

body.home .home-aside summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

body.home .home-aside summary::-webkit-details-marker {
    display: none;
}

body.home .home-aside summary::after {
    content: '+';
    float: right;
    color: var(--home-muted);
    font-weight: 500;
}

body.home .home-aside details[open] summary::after {
    content: '–';
}

body.home .home-aside p {
    margin: 0.55rem 0 0;
    color: var(--home-muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

body.home .home-contact {
    background: var(--home-sand);
    transform: scale(var(--contact-scale, 1));
    transform-origin: center bottom;
    will-change: transform;
    position: relative;
}

body.home .home-contact::before {
    content: '';
    position: absolute;
    inset: 10% 15%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--home-accent) 28%, transparent), transparent 70%);
    opacity: var(--contact-glow, 0);
    pointer-events: none;
    filter: blur(20px);
    z-index: 0;
}

body.home .home-contact .home-wrap {
    position: relative;
    z-index: 1;
}

body.home .home-contact__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 860px) {
    body.home .home-contact__grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: end;
        gap: 3rem;
    }
}

body.home .home-contact__meta {
    margin: 1.5rem 0 0;
    display: grid;
    gap: 1rem;
}

body.home .home-contact__meta div {
    display: grid;
    gap: 0.15rem;
}

body.home .home-contact__meta dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--home-muted);
}

body.home .home-contact__meta dd {
    margin: 0;
    font-size: 1.05rem;
}

body.home .home-contact__meta a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

body.home .home-contact__meta a:hover {
    color: var(--home-accent-deep);
}

body.home .home-contact__links {
    display: grid;
    gap: 0.65rem;
}

body.home .home-contact__btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    border: 1px solid transparent;
    transition: transform 0.15s ease, filter 0.15s ease;
}

body.home .home-contact__btn:hover {
    transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 2px), 0);
    filter: brightness(1.05);
}

body.home .home-contact__btn.is-wa { background: #1f9d55; }
body.home .home-contact__btn.is-ig {
    background: linear-gradient(120deg, #d6249f, #fd5949 50%, #fccc63);
}
body.home .home-contact__btn.is-mail {
    background: var(--home-ink);
    color: #fff;
}

html[data-theme="dark"] body.home .home-contact__btn.is-mail {
    background: #1c2a3d;
}

/* —— Footer —— */
body.home .home-footer {
    padding: 2.5rem 0 2.75rem;
    background: #061018;
    color: rgba(243, 247, 251, 0.78);
    text-align: center;
}

body.home .home-footer__inner {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
}

body.home .home-footer p {
    margin: 0;
    max-width: 42ch;
    line-height: 1.5;
}

body.home .home-footer__brands {
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: rgba(243, 247, 251, 0.55);
}

body.home .home-footer__copy {
    font-size: 0.88rem;
    color: rgba(243, 247, 251, 0.5);
}

body.home .home-footer a {
    color: #7fd9ce;
    text-decoration: none;
}

body.home .home-footer a:hover {
    text-decoration: underline;
}

@keyframes homeRise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes homeLogoIn {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes homeGlow {
    from { opacity: 0.55; transform: translateY(0); }
    to { opacity: 1; transform: translateY(-12px); }
}

@keyframes homeGrid {
    from { background-position: 0 0, 0 0; }
    to { background-position: 56px 56px, 56px 56px; }
}

/* —— Floating code chips on hero —— */
body.home .home-hero__float {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 1;
}

body.home .home-chip {
    position: absolute;
    left: calc(var(--fx) * 1%);
    top: calc(var(--fy) * 1%);
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
    font-size: clamp(0.7rem, 1.5vw, 0.86rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(243, 247, 251, 0.42);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    opacity: 0.55;
    mix-blend-mode: soft-light;
    transform:
        translate3d(calc(var(--px, 0) * 0.6px), calc(var(--py, 0) * 0.5px + var(--float-p, 0) * -28px), 0)
        rotate(calc(var(--tilt, 0) * 1deg));
    animation: homeChipFloat 7s ease-in-out infinite alternate;
    text-shadow: 0 0 24px rgba(127, 217, 206, 0.15);
}

body.home .home-chip.is-a { --tilt: -4; animation-delay: 0s; left: 52%; top: 16%; }
body.home .home-chip.is-b { --tilt: 3; animation-delay: 0.5s; left: 74%; top: 28%; }
body.home .home-chip.is-c { --tilt: -2; animation-delay: 1s; left: 60%; top: 52%; }
body.home .home-chip.is-d { --tilt: 4; animation-delay: 1.4s; left: 82%; top: 68%; }
body.home .home-chip.is-e { --tilt: -3; animation-delay: 0.3s; left: 48%; top: 72%; }

@media (max-width: 700px) {
    body.home .home-chip.is-b,
    body.home .home-chip.is-d,
    body.home .home-chip.is-e { display: none; }
    body.home .home-chip {
        opacity: 0.4;
        font-size: 0.72rem;
    }
    body.home .home-chip.is-a { left: auto; right: 6%; top: 18%; }
    body.home .home-chip.is-c { left: auto; right: 8%; top: 58%; }
}

@keyframes homeChipFloat {
    from { opacity: 0.35; }
    to { opacity: 0.65; }
}

/* —— Ticker —— */
body.home .home-ticker {
    overflow: hidden;
    padding: 0.85rem 0;
    border-block: 1px solid var(--home-line);
    background: color-mix(in srgb, var(--home-sand) 70%, var(--home-foam));
}

body.home .home-ticker__track {
    display: flex;
    gap: 2.2rem;
    width: max-content;
    transform: translate3d(calc(var(--tick, 0) * 1vw), 0, 0);
    will-change: transform;
    font-family: var(--home-display);
    font-weight: 750;
    font-size: clamp(1.1rem, 3vw, 1.55rem);
    letter-spacing: -0.02em;
    color: color-mix(in srgb, var(--home-text) 55%, transparent);
    animation: homeTicker 28s linear infinite;
}

body.home .home-ticker__track span::after {
    content: '·';
    margin-left: 2.2rem;
    color: var(--home-accent);
    opacity: 0.7;
}

@keyframes homeTicker {
    from { translate: 0 0; }
    to { translate: -50% 0; }
}

/* —— Statement sticky —— */
body.home .home-statement--story {
    position: relative;
    min-height: 180vh;
    padding: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, color-mix(in srgb, var(--home-accent) 16%, transparent), transparent 70%),
        var(--home-foam);
}

body.home .home-statement__sticky {
    position: sticky;
    top: var(--home-nav-h);
    min-height: calc(100svh - var(--home-nav-h));
    display: grid;
    place-content: center;
    text-align: center;
    padding: 1.5rem 1.2rem 2rem;
    box-sizing: border-box;
}

body.home .home-statement__kicker {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--home-accent-deep);
}

html[data-theme="dark"] body.home .home-statement__kicker {
    color: #5fd0c3;
}

body.home .home-statement__line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.2em 0.45em;
    font-family: var(--home-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 9vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

body.home .home-statement__line span {
    color: color-mix(in srgb, var(--home-text) 28%, transparent);
    transform: scale(0.94);
    filter: blur(1px);
    transition: color 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease, text-shadow 0.45s ease;
}

body.home .home-statement__line span.is-on {
    color: color-mix(in srgb, var(--home-text) 70%, transparent);
    filter: blur(0);
    transform: scale(0.98);
}

body.home .home-statement__line span.is-live {
    color: var(--home-text);
    transform: scale(1.04);
    text-shadow: 0 12px 40px color-mix(in srgb, var(--home-accent) 35%, transparent);
    filter: blur(0);
}

body.home .home-statement__sub {
    margin: 1.25rem auto 0;
    max-width: 34ch;
    color: var(--home-muted);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.5;
    opacity: calc(0.35 + var(--st-p, 0) * 0.9);
    transform: translateY(calc((1 - var(--st-p, 0)) * 18px));
}

@media (max-width: 700px) {
    body.home .home-statement--story {
        min-height: 160vh;
        padding: 0;
    }
    body.home .home-statement__sticky {
        position: sticky;
        top: var(--home-nav-h);
        min-height: calc(100svh - var(--home-nav-h));
        padding: 1.25rem 1.2rem 1.75rem;
    }
    body.home .home-statement__line {
        font-size: clamp(1.85rem, 10vw, 2.6rem);
    }
}

/* —— Pulse stats —— */
body.home .home-pulse {
    padding: 2.75rem 0;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--home-ink) 92%, var(--home-accent)), var(--home-ink));
    color: #eef6f4;
    border-block: 1px solid rgba(255, 255, 255, 0.06);
}

body.home .home-pulse__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
}

@media (min-width: 800px) {
    body.home .home-pulse__row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }

    body.home .home-pulse__item {
        padding: 0 1.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.home .home-pulse__item:first-child {
        padding-left: 0;
    }

    body.home .home-pulse__item:last-child {
        padding-right: 0;
        border-right: 0;
    }
}

body.home .home-pulse__item {
    display: grid;
    gap: 0.35rem;
    text-align: left;
}

body.home .home-pulse__label {
    margin: 0;
    font-family: var(--home-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--home-accent) 55%, #fff);
}

body.home .home-pulse__value {
    margin: 0;
    font-family: var(--home-display);
    font-size: clamp(1.85rem, 4.5vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
}

body.home .home-pulse__value--text {
    font-size: clamp(1.45rem, 3.5vw, 1.9rem);
    letter-spacing: -0.02em;
}

body.home .home-pulse__hint {
    margin: 0;
    font-family: var(--home-font);
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(238, 246, 244, 0.62);
    line-height: 1.35;
}

/* —— Side chapters —— */
body.home .home-chapters {
    display: none;
}

@media (min-width: 1100px) {
    body.home .home-chapters {
        position: fixed;
        right: 1.1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 45;
        display: grid;
        gap: 0.65rem;
    }

    body.home .home-chapters a {
        width: 11px;
        height: 11px;
        border-radius: 999px;
        border: 1.5px solid color-mix(in srgb, var(--home-text) 35%, transparent);
        background: transparent;
        display: grid;
        place-items: center;
        text-decoration: none;
        transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    }

    body.home .home-chapters a i {
        display: none;
    }

    body.home .home-chapters a.is-active {
        background: var(--home-accent);
        border-color: var(--home-accent);
        transform: scale(1.35);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--home-accent) 22%, transparent);
    }
}

/* —— Magnet buttons —— */
body.home .home-magnet {
    transform: translate3d(var(--mx, 0), var(--my, 0), 0);
    transition: transform 0.18s ease, filter 0.15s ease;
}

body.home .home-program {
    box-shadow:
        0 12px 36px rgba(7, 17, 31, 0.05),
        0 0 0 1px color-mix(in srgb, var(--home-accent) calc(var(--card-glow, 0.55) * 18%), transparent);
}

body.home .home-orbs span {
    transform: translate3d(
        calc(var(--orb-x, 0) * 1px + var(--px, 0) * 1px),
        calc(var(--orb-y, 0) * 1vh + var(--py, 0) * 1px),
        0
    );
}

body.home .home-orbs span:nth-child(2) {
    transform: translate3d(
        calc(var(--orb-x, 0) * -1.4px + var(--px, 0) * -0.6px),
        calc(var(--orb-y, 0) * -0.7vh + var(--py, 0) * -0.5px),
        0
    );
}

/* —— Scroll storytelling —— */
body.home .home-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

body.home .home-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.35;
    transform: translate3d(calc(var(--orb-x, 0) * 1px), calc(var(--orb-y, 0) * 1vh), 0);
    will-change: transform;
}

body.home .home-orbs span:nth-child(1) {
    width: min(42vw, 320px);
    height: min(42vw, 320px);
    top: 18%;
    left: -8%;
    background: color-mix(in srgb, var(--home-accent) 55%, transparent);
}

body.home .home-orbs span:nth-child(2) {
    width: min(36vw, 280px);
    height: min(36vw, 280px);
    top: 55%;
    right: -10%;
    background: color-mix(in srgb, var(--home-warm) 50%, transparent);
    transform: translate3d(calc(var(--orb-x, 0) * -1.4px), calc(var(--orb-y, 0) * -0.7vh), 0);
}

body.home .home-orbs span:nth-child(3) {
    width: min(28vw, 220px);
    height: min(28vw, 220px);
    bottom: 8%;
    left: 35%;
    background: color-mix(in srgb, #5b8def 40%, transparent);
    opacity: 0.22;
}

body.home main,
body.home .home-footer {
    position: relative;
    z-index: 1;
}

body.home .home-nav {
    position: fixed;
    z-index: 40;
}

body.home .home-progress {
    position: fixed;
    z-index: 60;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    pointer-events: none;
    background: transparent;
}

body.home .home-progress__bar {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--home-accent), var(--home-warm));
    will-change: transform;
    box-shadow: 0 0 12px color-mix(in srgb, var(--home-accent) 60%, transparent);
}

body.home .home-nav {
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body.home .home-nav.is-solid {
    background: color-mix(in srgb, var(--home-foam) 86%, transparent);
    border-bottom-color: var(--home-line);
    box-shadow: 0 8px 28px rgba(7, 17, 31, 0.08);
    backdrop-filter: blur(16px);
}

html[data-theme="light"] body.home .home-nav.is-solid {
    background: rgba(244, 247, 251, 0.9);
}

html[data-theme="dark"] body.home .home-nav.is-solid {
    background: rgba(10, 16, 24, 0.9);
}

body.home .home-nav.is-solid .home-nav__links a {
    color: var(--home-muted);
}

body.home .home-nav.is-solid .home-nav__links a:hover {
    color: var(--home-accent-deep);
}

body.home .home-nav.is-solid .home-login,
body.home .home-nav.is-solid .home-theme {
    color: var(--home-text);
    border-color: var(--home-line);
    background: transparent;
}

body.home .home-nav.is-solid .home-login:hover,
body.home .home-nav.is-solid .home-theme:hover {
    background: color-mix(in srgb, var(--home-accent) 12%, transparent);
    color: var(--home-text);
}

html[data-theme="light"] body.home .home-nav.is-solid .home-brand__logo {
    filter: invert(1);
}

html[data-theme="dark"] body.home .home-nav.is-solid .home-brand__logo {
    filter: none;
}

body.home .home-nav.is-solid .home-lang {
    border-color: var(--home-line);
}

/* Soft enter — opacity only so layout transforms stay usable */
body.home .home-how__grid article,
body.home .home-points li,
body.home .home-aside,
body.home .home-contact__links a {
    animation: homeRiseSoft 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.home .home-how__grid article:nth-child(2) { animation-delay: 0.08s; }
body.home .home-how__grid article:nth-child(3) { animation-delay: 0.16s; }

@keyframes homeRiseSoft {
    from { opacity: 0.25; }
    to { opacity: 1; }
}

@keyframes homeCue {
    0%, 100% { transform: translateY(0); opacity: 0.65; }
    50% { transform: translateY(5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body.home .home-hero__media,
    body.home .home-hero__media img,
    body.home .home-hero__copy,
    body.home .home-hero__cue span,
    body.home .home-hero__word,
    body.home .home-chip,
    body.home .home-program,
    body.home .home-reveal,
    body.home .home-orbs span,
    body.home .home-strip__grid,
    body.home .home-ticker__track,
    body.home .home-contact,
    body.home .home-magnet,
    body.home .home-statement__line span {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    body.home .home-progress__bar,
    body.home .home-path__fill,
    body.home .home-how__line {
        transition: none;
    }

    body.home .home-orbs,
    body.home .home-hero__float,
    body.home .home-hero__blocks {
        display: none;
    }
}
