/* ==========================================================================
   Roach Solution - hero v4: white, pinned full-screen stage
   --------------------------------------------------------------------------
   section#home.hb-scroll
     .hb-track            tall scroll track (JS active)
       .hb-sticky         pinned 100vh stage
         .hb-side         logo + tagline, left ~20% (mobile: top strip)
         .hb-stage        scroll-driven breakdown animation, right ~80%
     .hb-band             headline / description / tags / CTAs / stats
   ========================================================================== */

:root {
    --hb-gold: #C9A227;
    --hb-gold-bright: #E2BC4A;
    --hb-gold-deep: #9C7A16;
    --hb-gold-pale: #F6EED3;
    --hb-ink: #1E1E22;
    --hb-ink-2: #3A3A40;
    --hb-grey: #8A8A93;
    --hb-line: rgba(30, 30, 34, 0.18);
    --hb-mono: 'JetBrains Mono', 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.hb-scroll {
    position: relative;
    padding: 0;                   /* override generic section padding */
    margin: 0 calc(50% - 50vw);   /* edge to edge past the body margin */
    background: #fff;
    color: var(--hb-ink);
    --hb-top: 90px;
    --hb-bottom: 64px;
    --hb-rx: 2%;                  /* animation region (JS sets exact px) */
    --hb-rw: 96%;
    --hb-s: 30px;
    --hb-k: 15px;
}

/* ---------- left logo column (inside the pinned stage) ---------- */
.hb-side {
    position: absolute;
    left: var(--hb-side-l, 0px);
    top: var(--hb-top);
    bottom: var(--hb-bottom);
    width: var(--hb-side-w, clamp(220px, 18vw, 320px));
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;   /* logo sits near the top, just below the nav */
    gap: 1.1rem;
    padding: clamp(1.5rem, 5vh, 3rem) clamp(16px, 1.6vw, 28px) 0;   /* fixed gutters: the old calc((100vw - 1600px)/2) left padding ate the column on wide screens */
    will-change: transform, opacity;
    box-sizing: border-box;
    text-align: center;
}

.hb-side::after {   /* hairline divider between logo column and animation */
    content: '';
    position: absolute;
    right: 0;
    top: 4%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg, transparent, #e7e2d2 20%, #e7e2d2 80%, transparent);
}

.hb-side-logo {
    display: block;
    width: min(100%, 210px);
    min-width: 150px;
    height: auto;
    margin: 0;
    filter: drop-shadow(0 10px 22px rgba(156, 122, 22, 0.16));
    user-select: none;
}

.hb-side .hb-eyebrow { margin: 0; justify-content: center; font-size: 0.72rem; letter-spacing: 0.16em; line-height: 1.6; max-width: 17em; text-wrap: balance; }
.hb-side .hb-eyebrow::before { display: none; }
.hb-side .hb-hint { display: none; }   /* scroll hint removed (v9) */

/* ---------- text band below the animation ---------- */
.hb-band {
    position: relative;
    background: #fff;
    border-top: 1px solid #eee9da;
    padding: 3.5rem max(1.5rem, calc((100vw - 1320px) / 2)) 3.75rem;
}

.hb-band-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1.1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--hb-gold-deep);
}

.hb-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--hb-gold);
}

.hb-band .hb-headline {
    font-size: clamp(2rem, 3.1vw, 3.1rem);
    line-height: 1.04;
    font-weight: 300;
    letter-spacing: -0.025em;
    margin: 0 0 1.2rem;
    color: var(--hb-ink);
    text-align: left;
}

.hb-band .hb-description {
    font-size: clamp(0.98rem, 1.15vw, 1.12rem);
    max-width: 520px;
    margin: 0;
    text-align: left;
    color: #4a4a50;
}

.hb-band .hb-tags {
    justify-content: flex-start;
    margin: 0 0 1.25rem;
    gap: 0.5rem;
}

.hb-band .service-tag {
    font-size: 0.8rem;
    padding: 0.42rem 0.95rem;
}

.hb-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
}

.hb-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--hb-ink);
    color: var(--hb-ink);
    background: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hb-cta:hover,
.hb-cta:focus-visible {
    background: var(--hb-ink);
    color: #fff;
    transform: translateY(-2px);
}

.hb-cta-primary {
    background: var(--hb-gold);
    border-color: var(--hb-gold);
    color: #111;
    box-shadow: 0 8px 22px -10px rgba(201, 162, 39, 0.8);
}

.hb-cta-primary:hover,
.hb-cta-primary:focus-visible {
    background: var(--hb-gold-bright);
    border-color: var(--hb-gold-bright);
    color: #111;
}

.hb-band .hb-stats {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    margin: 0;
    flex-direction: row;
}

.hb-band .stat-card {
    min-width: 0;
    flex: 1 1 0;
    padding: 0.85rem 0.9rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ece7d6;
    border-radius: 12px;
}

.hb-band .stat-number {
    font-size: clamp(1.6rem, 2.3vw, 2.3rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.35rem;
    color: var(--hb-gold-deep);
}

.hb-band .stat-label {
    font-size: 0.66rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
}

.hb-hint {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.6rem;
    font: 500 0.7rem/1 var(--hb-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--hb-grey);
}

.hb-hint i {
    position: relative;
    display: block;
    width: 1px;
    height: 30px;
    background: #e3e3e8;
    overflow: hidden;
}

.hb-hint i::after {
    content: '';
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: var(--hb-gold);
    animation: hb-hint 1.8s cubic-bezier(.6, 0, .4, 1) infinite;
}

@keyframes hb-hint { to { top: 100%; } }

/* ---------- track + pinned stage ---------- */
.hb-track {
    position: relative;
    height: 100vh;
    height: 100svh;
}

.hb-scroll.hb-active .hb-track {
    height: var(--hb-scroll-h, 520vh);
}

.hb-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    background-color: #fff;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(30, 30, 34, 0.09) 1px, transparent 1.4px),
        linear-gradient(180deg, #ffffff 0%, #fbfaf6 100%);
    background-size: 26px 26px, 100% 100%;
}

/* soft gold wash behind the animation side */
.hb-sticky::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--hb-rx);
    width: var(--hb-rw);
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(60% 55% at 50% 50%, rgba(226, 188, 74, 0.13) 0%, rgba(226, 188, 74, 0) 70%);
}

.hb-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* static fallback (no JS / CDN failure): the mark centred in the animation area */
.hb-static {
    position: absolute;
    left: calc(var(--hb-rx) + var(--hb-rw) / 2);
    top: calc(var(--hb-top) + (100% - var(--hb-top) - var(--hb-bottom)) / 2);
    transform: translate(-50%, -50%); /* `translate` is used by the float keyframes */
    height: min(42%, 360px);
    width: auto;
    max-width: none;
    margin: 0;
    opacity: 0.9;
    z-index: 1;
    animation: hb-float 6s ease-in-out infinite;
}

.hb-scroll.hb-active .hb-static,
.hb-scroll.hb-js .hb-static { display: none; }

.hb-glow {
    position: absolute;
    left: var(--hb-glow-x, 59%);
    top: var(--hb-glow-y, 45%);
    width: var(--hb-glow-size, 60vmin);
    height: var(--hb-glow-size, 60vmin);
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(226, 188, 74, 0.28) 0%, rgba(226, 188, 74, 0.08) 40%, transparent 68%);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

@keyframes hb-float {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

/* ---------- generated layer ---------- */
.hb-gen {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    font-size: var(--hb-k);
}

.hb-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hb-lines path {
    fill: none;
    stroke: var(--hb-gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hb-lines .hb-ring {
    stroke: rgba(30, 30, 34, 0.22);
    stroke-width: 1;
}

.hb-lines circle { fill: var(--hb-ink); }
.hb-lines circle.hb-hub { fill: var(--hb-gold); stroke: #fff; stroke-width: 3; }

.hb-pieces {
    position: absolute;
    inset: 0;
    contain: layout style;
    z-index: 2;
}

.hb-piece {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--hb-s);
    height: var(--hb-s);
    margin: calc(var(--hb-s) / -2) 0 0 calc(var(--hb-s) / -2);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.hb-face {
    position: absolute;
    inset: 0;
    border-radius: 18%;
    background: var(--hb-gold);
}

.hb-piece.t-bar   .hb-face { background: linear-gradient(180deg, #2a2a30, var(--hb-ink)); }
.hb-piece.t-gold  .hb-face { background: linear-gradient(160deg, var(--hb-gold-bright), var(--hb-gold)); }
.hb-piece.t-deep  .hb-face { background: linear-gradient(160deg, #b8921d, var(--hb-gold-deep)); }
.hb-piece.t-ink   .hb-face { background: linear-gradient(160deg, var(--hb-ink-2), var(--hb-ink)); }
.hb-piece.t-light .hb-face { background: var(--hb-gold-pale); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45); }
.hb-piece.t-side  .hb-face { background: #f1f1f4; box-shadow: inset 0 0 0 1px rgba(30, 30, 34, 0.12); }

.hb-glyph {
    position: absolute;
    inset: -20% -60%;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 calc(var(--hb-s) * 0.46)/1 var(--hb-mono);
    color: var(--hb-ink);
    white-space: nowrap;
    opacity: 0;
}

.hb-piece:nth-child(3n) .hb-glyph { color: var(--hb-gold-deep); }
.hb-piece:nth-child(7n) .hb-glyph { color: var(--hb-grey); }

.hb-scroll.hb-idle .hb-pieces { animation: hb-float 5s ease-in-out infinite; }

/* ---------- widgets (sized in em, base = --hb-k) ---------- */
.hb-w {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 3;
    will-change: transform, opacity;
}

.hb-card {
    background: #fff;
    border: 1px solid #e6e3da;
    border-radius: 0.7em;
    box-shadow: 0 1.2em 2.6em -1.4em rgba(30, 30, 34, 0.35);
}

.hb-dark {
    background: #18181c;
    border-color: #18181c;
    color: #e9e9ee;
}

.hb-bar {
    display: flex;
    align-items: center;
    gap: 0.32em;
    padding: 0.55em 0.75em;
    border-bottom: 1px solid rgba(127, 127, 140, 0.18);
    font: 500 0.62em/1 var(--hb-mono);
    color: var(--hb-grey);
}

.hb-bar b {
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: #d9d6cc;
}

.hb-dark .hb-bar b:nth-child(1) { background: #e0675b; }
.hb-dark .hb-bar b:nth-child(2) { background: var(--hb-gold-bright); }
.hb-dark .hb-bar b:nth-child(3) { background: #5f6068; }
.hb-bar span { margin-left: 0.6em; }

/* browser frame around the monolith */
.hb-browser {
    position: absolute;
    border: 1px solid #dcd8cc;
    border-radius: 0.8em;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2em 3em -2em rgba(30, 30, 34, 0.35);
    opacity: 0;
    z-index: 1;
}

.hb-browser .hb-url {
    flex: 1;
    margin-left: 0.8em;
    padding: 0.32em 0.8em;
    border-radius: 999px;
    background: #f3f2ee;
    color: #6b6b74;
    font: 500 1em/1 var(--hb-mono);
}

/* code editor */
.hb-editor { width: 22.5em; overflow: hidden; }
.hb-code { padding: 0.6em 0.9em 0.8em; font: 500 0.7em/1.65 var(--hb-mono); }
.hb-ln { position: relative; white-space: pre; }
.hb-ln em { font-style: normal; color: #5c5c66; margin-right: 1em; }
.hb-ln .k { color: var(--hb-gold-bright); }
.hb-ln .f { color: #ffffff; }
.hb-ln .s { color: #d8c486; }
.hb-ln .c { color: #6e6e78; }
.hb-ln .p { color: #a6a6b0; }
.hb-cover {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2.2em;
    right: -1em;
    background: #18181c;
    transform-origin: 100% 50%;
}

/* terminal */
.hb-term { width: 18.5em; overflow: hidden; }
.hb-term .hb-out { padding: 0.6em 0.9em 0.8em; font: 500 0.68em/1.7 var(--hb-mono); color: #cfcfd6; }
.hb-term .hb-out div { white-space: pre; opacity: 0; }
.hb-term .g { color: var(--hb-gold-bright); }
.hb-term .m { color: #7b7b85; }

/* phone frame */
.hb-phone {
    width: 6.4em;
    height: 12.4em;
    padding: 0.7em 0.45em;
    border-radius: 1.2em;
    background: #fff;
    border: 0.32em solid var(--hb-ink);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    box-shadow: 0 1.2em 2.4em -1.2em rgba(30, 30, 34, 0.45);
}
.hb-phone i { display: block; border-radius: 0.3em; background: #f0eee6; }
.hb-phone i:nth-child(1) { height: 0.35em; width: 40%; margin: 0 auto 0.25em; background: var(--hb-ink); border-radius: 999px; }
.hb-phone i:nth-child(2) { height: 2.6em; background: linear-gradient(135deg, var(--hb-gold-bright), var(--hb-gold-deep)); }
.hb-phone i:nth-child(3), .hb-phone i:nth-child(4), .hb-phone i:nth-child(5) { height: 1.1em; }
.hb-phone i:nth-child(6) { height: 1.6em; margin-top: auto; background: var(--hb-ink); }

/* module labels with icons */
.hb-label {
    position: absolute;
    translate: -50% -50%;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.42em 0.85em 0.42em 0.5em;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.75);
    background: #fff;
    color: var(--hb-ink);
    font: 700 0.78em/1 var(--hb-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0.6em 1.2em -0.7em rgba(30, 30, 34, 0.35);
    z-index: 4;
    opacity: 0;
}

.hb-label svg {
    width: 1.5em;
    height: 1.5em;
    padding: 0.25em;
    border-radius: 50%;
    background: var(--hb-ink);
    color: var(--hb-gold-bright);
    box-sizing: border-box;
}

/* API pills + packets */
.hb-pill {
    position: absolute;
    translate: -50% -50%;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.32em 0.65em 0.32em 0.32em;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dedad0;
    font: 600 0.64em/1 var(--hb-mono);
    color: var(--hb-ink-2);
    white-space: nowrap;
    box-shadow: 0 0.5em 1em -0.7em rgba(30, 30, 34, 0.4);
    opacity: 0;
    z-index: 4;
}

.hb-pill b {
    padding: 0.3em 0.5em;
    border-radius: 999px;
    background: var(--hb-gold);
    color: #111;
    font-weight: 800;
}

.hb-pill.post b, .hb-pill.put b { background: var(--hb-ink); color: #fff; }
.hb-pill.ok b { background: #e9f3ea; color: #2c6b3a; }

.hb-packet {
    position: absolute;
    left: 0;
    top: 0;
    width: 0.55em;
    height: 0.55em;
    margin: -0.275em 0 0 -0.275em;
    border-radius: 50%;
    background: var(--hb-gold);
    box-shadow: 0 0 0 0.25em rgba(201, 162, 39, 0.22);
    opacity: 0;
    z-index: 3;
}

.hb-packet:nth-child(even) { background: var(--hb-ink); box-shadow: 0 0 0 0.25em rgba(30, 30, 34, 0.12); }

/* microservice containers */
.hb-box {
    position: absolute;
    border: 1.5px dashed rgba(30, 30, 34, 0.35);
    border-radius: 0.5em;
    background: rgba(255, 255, 255, 0.55);
    opacity: 0;
    z-index: 1;
}

.hb-box span {
    position: absolute;
    left: 0.4em;
    top: -0.75em;
    padding: 0.15em 0.4em;
    border-radius: 0.3em;
    background: var(--hb-ink);
    color: #fff;
    font: 600 0.55em/1.2 var(--hb-mono);
    white-space: nowrap;
}

/* infra icons */
.hb-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
    font: 600 0.6em/1 var(--hb-mono);
    color: var(--hb-ink-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hb-icon svg { width: 4.6em; height: 4.6em; }

/* data widgets */
.hb-json { width: 13.5em; }
.hb-json pre { margin: 0; padding: 0.7em 0.9em 0.8em; font: 500 0.66em/1.6 var(--hb-mono); color: var(--hb-ink-2); }
.hb-json .k { color: var(--hb-gold-deep); }
.hb-json .s { color: #2f6f43; }
.hb-json .n { color: var(--hb-ink); font-weight: 700; }

.hb-chart { width: 13.5em; }
.hb-chart .hb-bars { display: flex; align-items: flex-end; gap: 0.45em; height: 6em; padding: 0.7em 0.9em 0.8em; }
.hb-chart .hb-bars i { flex: 1; display: block; border-radius: 0.25em 0.25em 0 0; background: var(--hb-gold); transform-origin: 50% 100%; }
.hb-chart .hb-bars i:nth-child(3n) { background: var(--hb-ink); }
.hb-chart .hb-kpi { padding: 0 0.9em; font: 700 1.25em/1 'Inter', sans-serif; color: var(--hb-ink); }
.hb-chart .hb-kpi small { font: 500 0.45em/1 var(--hb-mono); color: #2f6f43; margin-left: 0.5em; }

.hb-git { width: 13.5em; }
.hb-git svg { display: block; width: 100%; height: 6.4em; padding: 0.4em 0.6em 0.6em; box-sizing: border-box; }
.hb-git path { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.hb-git circle { stroke: #fff; stroke-width: 2; }

.hb-gears { display: flex; align-items: flex-end; gap: 0.2em; }
.hb-gear { display: block; }
.hb-gear svg { display: block; }

/* ---------- status + progress (right column) ---------- */
.hb-status {
    position: absolute;
    left: calc(var(--hb-rx) + 24px);
    right: 24px;
    bottom: 18px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font: 500 12px/1 var(--hb-mono);
    color: var(--hb-ink-2);
    pointer-events: none;
}

.hb-status-text::before { content: '$ '; color: var(--hb-gold); }
.hb-status-text::after  { content: '_'; margin-left: 2px; animation: hb-caret 1s steps(1) infinite; }
.hb-steps { display: flex; gap: 6px; }
.hb-steps i {
    display: block;
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: #e6e3da;
    transition: background-color 0.3s ease;
}
.hb-steps i.is-on { background: var(--hb-gold); }

.hb-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    z-index: 6;
    background: #f1efe8;
}

.hb-progress i {
    display: block;
    height: 100%;
    transform-origin: 0 50%;
    transform: scaleX(var(--hb-p, 0));
    background: linear-gradient(90deg, var(--hb-gold-deep), var(--hb-gold-bright));
}

@keyframes hb-caret { 50% { opacity: 0; } }

.hb-scroll:not(.hb-active):not(.hb-js) .hb-gen,
.hb-scroll:not(.hb-active) .hb-steps,
.hb-scroll:not(.hb-active) .hb-progress {
    display: none;
}

.hb-scroll:not(.hb-active) .hb-hint span::after { content: ''; }

/* ---------- band: tablet ---------- */
@media (max-width: 1180px) {
    .hb-band-inner { grid-template-columns: 1fr 1fr; }
    .hb-band .hb-stats { grid-column: 1 / -1; }
}

/* ---------- mobile: small logo strip on top, animation full width, text below ---------- */
@media (max-width: 899px) {
    .hb-scroll {
        --hb-rx: 0%;
        --hb-rw: 100%;
        --hb-bottom: 52px;
    }
    .hb-side {
        top: var(--hb-top);
        bottom: auto;
        left: 0;
        width: 100%;
        height: var(--hb-side-h, 58px);
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.9rem;
        padding: 0 1rem;
    }
    .hb-side::after { top: auto; bottom: 0; left: 15%; right: 15%; width: auto; height: 1px; background: linear-gradient(90deg, transparent, #e7e2d2 20%, #e7e2d2 80%, transparent); }
    .hb-side-logo { display: none; }   /* the nav carries the logo on mobile */
    .hb-side .hb-eyebrow { font-size: 0.66rem; text-align: center; max-width: none; line-height: 1.5; }
    .hb-side .hb-hint { display: none; }
    .hb-static { height: auto; width: min(52%, 220px); }
    .hb-band { padding: 2.5rem 1.25rem 2.75rem; text-align: center; }
    .hb-band-inner { grid-template-columns: 1fr; gap: 1.6rem; }
    .hb-band .hb-headline, .hb-band .hb-description { text-align: center; margin-left: auto; margin-right: auto; }
    .hb-band .hb-headline { font-size: clamp(2rem, 8.5vw, 2.8rem); }
    .hb-band .hb-tags, .hb-ctas { justify-content: center; }
    .hb-band .stat-card { text-align: center; }
    .hb-status { left: 14px; right: 14px; bottom: 14px; font-size: 10.5px; }
    .hb-steps i { width: 10px; }
}

@media (max-width: 480px) {
    .hb-band .hb-stats { gap: 0.45rem; }
    .hb-band .stat-card { padding: 0.7rem 0.4rem; }
    .hb-band .stat-label { font-size: 0.58rem; letter-spacing: 0.04em; }
    .hb-cta { padding: 0.7rem 1.15rem; font-size: 0.86rem; }
}

/* ---------- reduced motion: one static frame, no tall track ---------- */
@media (prefers-reduced-motion: reduce) {
    .hb-scroll .hb-track, .hb-scroll.hb-active .hb-track { height: 100vh; height: 100svh; }
    .hb-scroll .hb-steps, .hb-scroll .hb-progress, .hb-hint { display: none; }
    .hb-static, .hb-pieces, .hb-hint i::after, .hb-status-text::after { animation: none !important; }
}

/* =====================================================================
   v6: product scenes (ERP / Mobile App / Website) + statistics wall.
   Each product window is sized in em; JS sets its font-size so the
   26em x 36em design (20em wide on phones) fits its column.
   ===================================================================== */
.hb-prod {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--hb-ink);
    font-family: 'Inter', system-ui, sans-serif;
    transform-origin: 50% 50%;
}
.hb-prod small { display: block; font: 600 0.5em/1.2 var(--hb-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hb-grey); }
.hb-plabel { z-index: 4; }

/* ---- ERP dashboard ---- */
.hb-erp-body { flex: 1; display: grid; grid-template-columns: 6.4em 1fr; min-height: 0; }
.hb-erp-nav { position: relative; background: #1b1b1f; color: #c9c9d1; padding: 0.7em 0.45em; display: flex; flex-direction: column; }
.hb-erp-nav strong { font: 800 0.62em/1 'Inter', sans-serif; letter-spacing: 0.08em; color: #fff; padding: 0.2em 0.5em 1.4em; }
.hb-erp-nav strong em { font-style: normal; color: var(--hb-gold-bright); }
.hb-erp-nav span { position: relative; z-index: 1; display: block; font: 500 0.56em/3.3em 'Inter', sans-serif; padding-left: 0.9em; white-space: nowrap; }
.hb-erp-hl { position: absolute; left: 0.3em; right: 0.3em; border-radius: 0.4em; background: rgba(226, 188, 74, 0.22); box-shadow: inset 0.18em 0 0 var(--hb-gold); }
.hb-erp-main { padding: 0.8em; display: flex; flex-direction: column; gap: 0.75em; min-width: 0; background: #fbfaf6; }
.hb-erp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45em; }
.hb-erp-kpis > div { background: #fff; border: 1px solid #ebe7dc; border-radius: 0.5em; padding: 0.7em 0.7em 0.65em; }
.hb-erp-kpis b { display: block; font: 800 1.2em/1.3 'Inter', sans-serif; margin-top: 0.25em; }
.hb-erp-kpis em { font: 600 0.48em/1 var(--hb-mono); font-style: normal; color: #2f8a4c; }
.hb-erp-kpis > div:nth-child(3) em { color: #c0533f; }
.hb-erp-kpis > div:nth-child(4) em { color: var(--hb-grey); }
.hb-erp-mid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.45em; }
.hb-erp-stock, .hb-erp-inv { background: #fff; border: 1px solid #ebe7dc; border-radius: 0.5em; padding: 0.5em 0.6em; }
.hb-sl { display: grid; grid-template-columns: 2.6em 1fr; align-items: center; gap: 0.4em; margin-top: 0.62em; }
.hb-sl span { font: 500 0.5em/1 var(--hb-mono); color: var(--hb-ink-2); }
.hb-sl i { display: block; height: 0.5em; border-radius: 99px; background: #f0ece0; overflow: hidden; }
.hb-sl u { display: block; height: 100%; border-radius: 99px; background: var(--hb-gold); transform-origin: 0 50%; }
.hb-sl:nth-child(4) u { background: var(--hb-ink); }
.hb-sl:nth-child(6) u { background: #c0533f; }
.hb-erp-inv { position: relative; display: flex; flex-direction: column; gap: 0.25em; }
.hb-erp-inv b { font: 800 0.78em/1.2 var(--hb-mono); margin-top: 0.2em; }
.hb-erp-inv span { font: 500 0.5em/1.3 'Inter', sans-serif; color: var(--hb-grey); }
.hb-erp-inv strong { font: 800 1em/1.2 'Inter', sans-serif; margin-top: auto; }
.hb-erp-inv mark { position: absolute; right: 0.5em; top: 1.6em; font: 800 0.55em/1 var(--hb-mono); letter-spacing: 0.1em; color: #2f8a4c; background: none; border: 0.16em solid #2f8a4c; border-radius: 0.3em; padding: 0.3em 0.45em; rotate: -12deg; }
.hb-erp-table { background: #fff; border: 1px solid #ebe7dc; border-radius: 0.5em; overflow: hidden; }
.hb-tr { display: grid; grid-template-columns: 1fr 1.6fr 1.3fr 1fr; align-items: center; padding: 0 1.1em; height: 3.6em; border-top: 1px solid #f1eee6; font: 500 0.52em/1 'Inter', sans-serif; }
.hb-tr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-tr span:first-child { font-family: var(--hb-mono); font-weight: 700; }
.hb-tr span:last-child { text-align: right; font-weight: 700; }
.hb-th { border-top: 0; background: #f7f5ef; color: var(--hb-grey); font: 600 0.46em/1 var(--hb-mono); text-transform: uppercase; letter-spacing: 0.06em; height: 3.6em; }
.hb-tr em { font-style: normal; font-size: 0.9em; font-weight: 700; padding: 0.25em 0.6em; border-radius: 99px; }
.hb-tr em.ok { background: #e3f3e8; color: #2f8a4c; }
.hb-tr em.pk { background: #fbf1d3; color: #8a6a10; }
.hb-tr em.pd { background: #efedf6; color: #5b5a7a; }
.hb-gen.is-mobile .hb-erp-body { grid-template-columns: 1fr; }
.hb-gen.is-mobile .hb-erp-nav { display: none; }

/* ---- mobile apps (iOS + Android phones) ---- */
.hb-mob { align-items: center; justify-content: center; gap: 1em; background: transparent; overflow: visible; }
.hb-prod-head { text-align: center; }
.hb-prod-head b { display: block; font: 800 1.05em/1.3 'Inter', sans-serif; }
.hb-phones { display: flex; gap: 1.1em; align-items: flex-start; }
.hb-ph { box-sizing: border-box; flex: none; position: relative; width: 11.9em; height: 23em; border-radius: 1.9em; background: #fff; border: 0.42em solid #1b1b1f; box-shadow: 0 1.4em 2.6em -1.2em rgba(30, 30, 34, 0.45); overflow: hidden; display: flex; flex-direction: column; padding: 0 0.7em 0.6em; }
.hb-ph.ios::before { content: ''; position: absolute; top: 0.45em; left: 50%; width: 3.6em; height: 1em; margin-left: -1.8em; border-radius: 99px; background: #1b1b1f; }
.hb-ph.android { border-radius: 1.2em; }
.hb-ph.android::before { content: ''; position: absolute; top: 0.6em; left: 50%; width: 0.6em; height: 0.6em; margin-left: -0.3em; border-radius: 50%; background: #1b1b1f; }
.hb-ph-status { display: flex; justify-content: space-between; align-items: center; height: 2em; font: 700 0.5em/1 'Inter', sans-serif; padding: 0 0.4em; }
.hb-ph-ic { display: flex; gap: 0.25em; }
.hb-ph-ic i { width: 0.6em; height: 0.6em; border-radius: 0.15em; background: var(--hb-ink); }
.hb-ph-head { display: flex; justify-content: space-between; align-items: center; margin: 0.5em 0 0.55em; }
.hb-ph-head b { font: 800 0.85em/1 'Inter', sans-serif; }
.hb-ph-head i { width: 1.4em; height: 1.4em; border-radius: 50%; background: linear-gradient(135deg, var(--hb-gold-bright), var(--hb-gold-deep)); }
.hb-ph-track { background: #1b1b1f; color: #fff; border-radius: 0.8em; padding: 0.6em 0.65em 0.55em; }
.hb-ph-track small { color: #a9a9b3; font-size: 0.42em; }
.hb-ph-track b { display: block; font: 700 0.6em/1.4 'Inter', sans-serif; }
.hb-trk { position: relative; height: 0.32em; border-radius: 99px; background: #3a3a42; margin: 0.6em 0 0.35em; }
.hb-trk-fill { position: absolute; inset: 0; border-radius: 99px; background: var(--hb-gold-bright); transform-origin: 0 50%; }
.hb-trk-dot { position: absolute; left: -0.3em; top: -0.29em; width: 0.9em; height: 0.9em; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0.2em var(--hb-gold); }
.hb-trk-steps { display: flex; justify-content: space-between; font: 500 0.38em/1 var(--hb-mono); color: #a9a9b3; }
.hb-ph-card { display: flex; align-items: center; gap: 0.5em; margin-top: 0.5em; padding: 0.5em; border: 1px solid #ece9df; border-radius: 0.7em; }
.hb-ph-card i { width: 2em; height: 2em; border-radius: 0.5em; background: #f4ecd2; flex: none; }
.hb-ph-card div { flex: 1; }
.hb-ph-card b, .hb-ph-card s { display: block; height: 0.4em; border-radius: 99px; background: #2a2a30; width: 80%; }
.hb-ph-card s { margin-top: 0.35em; background: #dedad0; width: 55%; }
.hb-ph-card em { font: 800 0.55em/1 'Inter', sans-serif; font-style: normal; }
.hb-ph-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 0.55em; border-top: 1px solid #eee; }
.hb-ph-tabs i { width: 1.05em; height: 1.05em; border-radius: 0.3em; background: #d6d2c6; }
.hb-ph-tabs i.on { background: var(--hb-gold); }
.hb-toast { position: absolute; left: 0.45em; right: 0.45em; top: 1.9em; display: flex; gap: 0.45em; align-items: center; padding: 0.55em 0.6em; border-radius: 0.8em; background: rgba(255, 255, 255, 0.97); box-shadow: 0 0.6em 1.4em -0.4em rgba(30, 30, 34, 0.45); border: 1px solid #ece9df; }
.hb-toast-ic { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 0.45em; background: var(--hb-gold); color: #1b1b1f; flex: none; }
.hb-toast b { display: block; font: 800 0.5em/1.3 'Inter', sans-serif; }
.hb-toast span { display: block; font: 500 0.46em/1.3 'Inter', sans-serif; color: var(--hb-ink-2); }
.hb-otp-title { margin: 2.6em 0 1.2em; text-align: center; }
.hb-otp-title b { display: block; font: 800 0.75em/1.3 'Inter', sans-serif; }
.hb-otp-title span { font: 500 0.48em/1.3 'Inter', sans-serif; color: var(--hb-grey); }
.hb-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.3em; }
.hb-otp i { display: grid; place-items: center; height: 2em; border: 1px solid #d9d5c9; border-radius: 0.4em; background: #faf9f5; }
.hb-otp span { display: block; font: 800 0.8em/1 var(--hb-mono); }
.hb-ph-btn { margin-top: 1.1em; text-align: center; padding: 0.65em; border-radius: 0.6em; background: #1b1b1f; color: #fff; font: 700 0.6em/1 'Inter', sans-serif; }
.hb-otp-ok { margin: 1em auto 0; padding: 0.45em 0.8em; border-radius: 99px; background: #e3f3e8; color: #2f8a4c; font: 700 0.55em/1 'Inter', sans-serif; }
.hb-ph-nav { margin-top: auto; display: flex; justify-content: center; gap: 2.2em; }
.hb-ph-nav i { width: 0.8em; height: 0.8em; border: 0.14em solid #9a978e; border-radius: 0.15em; }
.hb-ph-nav i:nth-child(2) { border-radius: 50%; }
.hb-prod-foot { display: flex; gap: 0.5em; flex-wrap: wrap; justify-content: center; }
.hb-prod-foot span { font: 600 0.52em/1 var(--hb-mono); padding: 0.55em 0.8em; border-radius: 99px; background: #fff; border: 1px solid #e6e3da; }
.hb-gen.is-mobile .hb-ph.android, .hb-gen.is-mobile .hb-prod-foot .and { display: none; }

/* ---- website + responsive breakpoints + Lighthouse ---- */
.hb-web { gap: 0.9em; }
.hb-site { flex: none; height: 19em; display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e3da; border-radius: 0.7em; overflow: hidden; box-shadow: 0 1.2em 2.6em -1.4em rgba(30, 30, 34, 0.35); }
.hb-site-body { flex: 1; padding: 0.8em; display: flex; flex-direction: column; gap: 0.75em; }
.hb-wf-nav { display: flex; align-items: center; gap: 0.6em; }
.hb-wf-nav i { width: 1.3em; height: 1.3em; border-radius: 0.3em; background: var(--hb-gold); margin-right: auto; }
.hb-wf-nav s, .hb-wf-hero s, .hb-wf-cards s, .hb-wf-foot s { display: block; height: 0.42em; width: 2.4em; border-radius: 99px; background: #dcd8cc; }
.hb-wf-nav u, .hb-wf-hero u { text-decoration: none; font: 700 0.5em/1 'Inter', sans-serif; color: #fff; background: #1b1b1f; padding: 0.6em 0.9em; border-radius: 99px; }
.hb-wf-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45em; padding: 0.4em 0; }
.hb-wf-hero b { font: 800 1.2em/1.1 'Inter', sans-serif; letter-spacing: -0.02em; }
.hb-wf-hero s { width: 80%; } .hb-wf-hero s.sh { width: 55%; }
.hb-wf-hero u { background: var(--hb-gold); color: #1b1b1f; margin-top: 0.3em; }
.hb-wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5em; }
.hb-wf-cards i { display: flex; flex-direction: column; gap: 0.35em; padding: 0.55em; border: 1px solid #ece9df; border-radius: 0.5em; background: #fbfaf6; }
.hb-wf-cards em { width: 1.2em; height: 1.2em; border-radius: 0.3em; background: #f1e3b3; }
.hb-wf-cards s { width: 90%; } .hb-wf-cards s + s { width: 60%; background: #ebe7dc; }
.hb-wf-foot { margin-top: auto; display: flex; gap: 0.6em; padding-top: 0.6em; border-top: 1px solid #eee; }
.hb-wf-foot s { background: #ebe7dc; }
.hb-bps { display: flex; justify-content: center; align-items: flex-end; gap: 1.4em; height: 5.6em; }
.hb-bp { display: flex; flex-direction: column; align-items: center; gap: 0.35em; }
.hb-bp i { display: block; border: 0.18em solid var(--hb-ink); border-radius: 0.35em; background: linear-gradient(#f4ecd2 0 22%, #fff 22%); }
.hb-bp.d i { width: 6.6em; height: 4em; }
.hb-bp.t i { width: 3.2em; height: 4.3em; }
.hb-bp.p i { width: 1.9em; height: 3.7em; border-radius: 0.45em; }
.hb-bp span { font: 600 0.48em/1 var(--hb-mono); color: var(--hb-grey); }
.hb-rings { display: flex; justify-content: space-between; gap: 0.4em; padding: 0 0.2em; }
.hb-lh { position: relative; width: 4.6em; display: flex; flex-direction: column; align-items: center; gap: 0.35em; }
.hb-lh svg { width: 4.2em; height: 4.2em; overflow: visible; }
.hb-lh circle { fill: none; stroke-width: 4; }
.hb-lh .bg { stroke: #e3f1e7; fill: #f6fbf7; }
.hb-lh .fg { stroke: #1f9d55; stroke-linecap: round; }
.hb-lh b { position: absolute; top: 0; height: 4.2em; display: grid; place-items: center; font: 800 1.05em/1 var(--hb-mono); color: #1a7f45; width: 100%; }
.hb-lh b { font-size: 1.05em; height: 4em; }
.hb-lh span { font: 600 0.46em/1.2 'Inter', sans-serif; text-align: center; color: var(--hb-ink-2); white-space: nowrap; }

/* ---- statistics wall ---- */
.hb-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 0.8em; transform-origin: 50% 50%; }
.hb-tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #fff; border: 1px solid #e6e3da; border-radius: 0.8em; padding: 0.8em 0.95em; box-shadow: 0 1em 2.2em -1.4em rgba(30, 30, 34, 0.3); display: flex; flex-direction: column; color: var(--hb-ink); }
.hb-tile small { font: 600 0.58em/1.2 var(--hb-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hb-grey); }
.hb-tile.kpi b, .hb-tile.spark b { font: 800 2em/1.15 'Inter', sans-serif; letter-spacing: -0.02em; margin-top: auto; }
.hb-tile.kpi em { font: 600 0.58em/1.3 var(--hb-mono); font-style: normal; color: #2f8a4c; }
.hb-tile.kpi:nth-child(4) em, .hb-tile.kpi:nth-child(9) em { color: var(--hb-grey); }
.hb-tile.kpi:nth-child(1) { background: #1b1b1f; color: #fff; border-color: #1b1b1f; }
.hb-tile.kpi:nth-child(1) b { color: var(--hb-gold-bright); }
.hb-tile.kpi:nth-child(1) em { color: #8fd3a5; }
.hb-tile.line { grid-column: span 2; }
.hb-tile.line svg, .hb-tile.spark svg { flex: 1; width: 100%; min-height: 0; margin-top: 0.5em; overflow: visible; }
.hb-tile.line path { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hb-tile.line .cur { stroke: var(--hb-gold); }
.hb-tile.line .prev { stroke: #c9c6bd; stroke-width: 2; }
.hb-tile.line .area { fill: rgba(226, 188, 74, 0.16); stroke: none; }
.hb-legend { display: flex; gap: 1em; font: 600 0.55em/1 var(--hb-mono); margin-top: 0.5em; }
.hb-legend span::before { content: ''; display: inline-block; width: 1.4em; height: 0.3em; border-radius: 99px; margin-right: 0.45em; vertical-align: middle; background: var(--hb-gold); }
.hb-legend .prev::before { background: #c9c6bd; }
.hb-donut { flex: 1; display: flex; align-items: center; gap: 0.8em; min-height: 0; }
.hb-donut svg { height: 100%; aspect-ratio: 1; max-width: 55%; }
.hb-donut circle { fill: none; stroke-width: 7; }
.hb-donut .bg { stroke: #f1eee6; }
.hb-donut .web { stroke: var(--hb-gold); } .hb-donut .ios { stroke: #1b1b1f; } .hb-donut .and { stroke: #9a978e; }
.hb-donut ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5em; font: 600 0.6em/1 'Inter', sans-serif; }
.hb-donut li::before { content: ''; display: inline-block; width: 0.75em; height: 0.75em; border-radius: 0.2em; margin-right: 0.45em; vertical-align: -0.08em; }
.hb-donut li.web::before { background: var(--hb-gold); } .hb-donut li.ios::before { background: #1b1b1f; } .hb-donut li.and::before { background: #9a978e; }
.hb-wbars { flex: 1; display: flex; align-items: flex-end; gap: 0.45em; min-height: 0; padding: 0.6em 0 1.1em; }
.hb-wbars i { position: relative; flex: 1; border-radius: 0.3em 0.3em 0 0; background: var(--hb-gold); transform-origin: 50% 100%; }
.hb-wbars i:nth-child(5) { background: var(--hb-ink); }
.hb-wbars span { position: absolute; bottom: -1.9em; left: 50%; transform: translateX(-50%); font: 600 0.55em/1 var(--hb-mono); color: var(--hb-grey); }
.hb-tile.spark { grid-column: span 2; }
.hb-tile.spark b { margin-top: 0.15em; font-size: 1.6em; }
.hb-tile.spark path { fill: none; stroke: var(--hb-ink); stroke-width: 2.4; stroke-linejoin: round; }
.hb-gen.is-mobile .hb-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(0, 1fr); gap: 0.55em; }
.hb-gen.is-mobile .hb-tile { padding: 0.6em 0.7em; }
.hb-gen.is-mobile .hb-tile.kpi b { font-size: 1.5em; }

/* =====================================================================
   v7: DevOps — loop, CI/CD pipeline, infrastructure, monitoring.
   Scenes are 72em x 38em (24em x 46em on phones); JS sets font-size.
   ===================================================================== */
.hb-loop { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.hb-loop path { fill: none; stroke: var(--hb-gold); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.hb-loop-lb { padding: 0.42em 0.85em 0.42em 0.45em; }
.hb-loop-lb b { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--hb-ink); color: var(--hb-gold-bright); font-size: 0.9em; }
.hb-loop-title { position: absolute; translate: -50% -50%; text-align: center; opacity: 0; z-index: 4; }
.hb-loop-title small { display: block; font: 600 calc(var(--hb-k) * 0.62)/1.4 var(--hb-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--hb-grey); }
.hb-loop-title b { font: 800 calc(var(--hb-k) * 1.6)/1.1 'Inter', sans-serif; color: var(--hb-ink); letter-spacing: -0.02em; }
.hb-loop-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--hb-gold), 0 0 18px 6px rgba(226, 188, 74, 0.6); z-index: 5; opacity: 0; }

.hb-scene { color: var(--hb-ink); font-family: 'Inter', system-ui, sans-serif; transform-origin: 50% 50%; }
.hb-cicard { position: relative; min-width: 0; min-height: 0; background: #fff; border: 1px solid #e6e3da; border-radius: 0.8em; padding: 0.8em 0.95em; box-shadow: 0 1em 2.2em -1.4em rgba(30, 30, 34, 0.32); overflow: hidden; }
.hb-cicard.hb-dark { background: #18181c; border-color: #18181c; color: #e9e9ee; padding: 0; }
.hb-scene small { display: block; font: 600 0.55em/1.3 var(--hb-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hb-grey); }
.hb-scene code { font: 600 0.55em/1 var(--hb-mono); padding: 0.4em 0.6em; border-radius: 0.4em; background: #f4f1e8; color: var(--hb-ink); }
.hb-scene mark { font: 800 0.55em/1 var(--hb-mono); letter-spacing: 0.06em; padding: 0.45em 0.7em; border-radius: 99px; background: #e3f3e8; color: #2f8a4c; }

/* ---- pipeline ---- */
.hb-pipeline { display: grid; grid-template-columns: 17em 21em minmax(0, 1fr); grid-template-rows: 14.5em minmax(0, 1fr) 4.4em; gap: 1.1em; }
.hb-commit-row { display: flex; gap: 0.7em; align-items: center; margin: 0.9em 0 0.8em; }
.hb-avatar { flex: none; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: linear-gradient(135deg, var(--hb-gold-bright), var(--hb-gold-deep)); color: #1b1b1f; font: 800 0.8em/1 'Inter', sans-serif; font-style: normal; }
.hb-commit-row b { display: block; font: 800 0.8em/1.3 var(--hb-mono); }
.hb-commit-row span { font: 500 0.55em/1.4 'Inter', sans-serif; color: var(--hb-grey); }
.hb-commit-meta { display: flex; flex-wrap: wrap; gap: 0.45em; align-items: center; }
.hb-commit-meta code.br { background: #1b1b1f; color: var(--hb-gold-bright); }
.hb-commit-meta .add { font: 700 0.6em/1 var(--hb-mono); color: #2f8a4c; }
.hb-commit-meta .del { font: 700 0.6em/1 var(--hb-mono); color: #c0533f; }
.hb-commit::after { content: 'git push origin main'; position: absolute; left: 0.95em; bottom: 0.8em; font: 600 0.55em/1 var(--hb-mono); color: var(--hb-gold-deep); }
.hb-pr > b { display: block; font: 800 0.85em/1.4 'Inter', sans-serif; }
.hb-pr svg { width: 100%; height: 6.4em; margin: 0.3em 0; overflow: visible; }
.hb-pr path { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.hb-pr .main { stroke: #1b1b1f; } .hb-pr .feat, .hb-pr .merge { stroke: var(--hb-gold); }
.hb-pr circle.i { fill: #1b1b1f; } .hb-pr circle.g { fill: var(--hb-gold); }
.hb-pr circle { transform-box: fill-box; transform-origin: 50% 50%; }
.hb-pr-foot { display: flex; justify-content: space-between; align-items: center; }
.hb-checks { font: 700 0.58em/1 var(--hb-mono); color: #2f8a4c; }
.hb-pr mark { background: #1b1b1f; color: var(--hb-gold-bright); }
.hb-yaml .hb-code { font-size: 0.66em; }
.hb-pipe { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.9em; align-items: center; }
.hb-pipe-track { position: absolute; height: 0.28em; margin-top: -0.14em; border-radius: 99px; background: #e7e2d2; z-index: 0; }
.hb-pipe-fill { position: absolute; inset: 0; border-radius: 99px; background: var(--hb-gold); transform-origin: 0 50%; }
.hb-pkt { position: absolute; left: 0; top: 50%; width: 0.8em; height: 0.8em; margin: -0.4em 0 0 -0.4em; border-radius: 50%; background: #1b1b1f; box-shadow: 0 0 0 0.2em #fff, 0 0 0.8em 0.2em rgba(226, 188, 74, 0.8); }
.hb-stg { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.55em; padding: 0.9em 0.4em 0.8em; background: #fff; border: 1px solid #e6e3da; border-radius: 0.8em; box-shadow: 0 1em 2em -1.4em rgba(30, 30, 34, 0.3); }
.hb-stg-ic { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: #1b1b1f; color: var(--hb-gold-bright); }
.hb-stg-ic svg { width: 1.3em; height: 1.3em; }
.hb-stg > b { font: 700 0.62em/1.2 'Inter', sans-serif; text-align: center; white-space: nowrap; }
.hb-st { position: relative; width: 100%; height: 1.5em; }
.hb-st span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.4em; font: 700 0.55em/1 var(--hb-mono); white-space: nowrap; }
.hb-st .q { color: #a3a097; } .hb-st .r { color: var(--hb-gold-deep); opacity: 0; } .hb-st .d { color: #2f8a4c; opacity: 0; }
.hb-spin { width: 1.1em; height: 1.1em; border-radius: 50%; border: 0.22em solid #f1e3b3; border-top-color: var(--hb-gold-deep); }
.hb-stg-glow { position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--hb-gold); box-shadow: 0 0 1.4em -0.2em rgba(226, 188, 74, 0.8); opacity: 0; pointer-events: none; }
.hb-sum { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2em; padding: 0 1.1em; }
.hb-sum > b { font: 800 0.85em/1 'Inter', sans-serif; }
.hb-sum-st { font: 600 0.58em/1 var(--hb-mono); color: var(--hb-grey); }
.hb-sum-time { font: 600 0.6em/1 var(--hb-mono); color: var(--hb-grey); margin-left: auto; }
.hb-sum-time b { color: var(--hb-ink); font-size: 1.15em; }
.hb-gen.is-mobile .hb-pipeline { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 0.8em; }
.hb-gen.is-mobile .hb-pr, .hb-gen.is-mobile .hb-yaml, .hb-gen.is-mobile .hb-commit::after { display: none; }
.hb-gen.is-mobile .hb-commit-row { margin: 0.6em 0; }
.hb-gen.is-mobile .hb-pipe { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 0.45em; align-items: stretch; }
.hb-gen.is-mobile .hb-stg { flex-direction: row; padding: 0.35em 0.8em 0.35em 0.5em; gap: 0.7em; }
.hb-gen.is-mobile .hb-stg-ic { width: 2.2em; height: 2.2em; }
.hb-gen.is-mobile .hb-stg > b { font-size: 0.7em; }
.hb-gen.is-mobile .hb-st { width: 6em; margin-left: auto; }
.hb-gen.is-mobile .hb-st span { justify-content: flex-end; font-size: 0.6em; }
.hb-gen.is-mobile .hb-pipe-track { width: 0.28em; height: auto; margin: 0 0 0 -0.14em; }
.hb-gen.is-mobile .hb-pipe-fill { transform-origin: 50% 0; }
.hb-gen.is-mobile .hb-pkt { left: 50%; top: 0; }
.hb-gen.is-mobile .hb-sum { flex-wrap: wrap; gap: 0.5em 0.8em; padding: 0.7em 0.9em; }
.hb-gen.is-mobile .hb-sum-time { margin-left: 0; }

/* ---- infrastructure ---- */
.hb-infra2 { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1em; }
.hb-k8s { grid-row: 1 / 3; display: flex; flex-direction: column; }
.hb-k8s-head { display: flex; justify-content: space-between; align-items: baseline; }
.hb-k8s-head span { font: 600 0.6em/1 var(--hb-mono); }
.hb-k8s-head b { font: 800 1.5em/1 var(--hb-mono); color: var(--hb-gold-deep); }
.hb-k8s-net { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 1.2em 0 0.4em; }
.hb-lb { align-self: center; position: relative; z-index: 1; font: 700 0.62em/1 var(--hb-mono); color: #fff; background: #1b1b1f; padding: 0.8em 1.3em; border-radius: 99px; box-shadow: 0 0 0 0.3em #f4ecd2; }
.hb-k8s-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hb-k8s-lines path { fill: none; stroke: var(--hb-gold); stroke-width: 2; stroke-dasharray: none; }
.hb-nodes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8em; }
.hb-node { border: 1.5px dashed #cfc9b8; border-radius: 0.7em; padding: 0.6em; background: #fbfaf6; }
.hb-node small { font-size: 0.48em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-pods { display: grid; gap: 0.45em; margin-top: 0.6em; }
.hb-pod { display: flex; align-items: center; gap: 0.4em; height: 2.3em; padding: 0 0.6em; border-radius: 0.5em; background: #fff; border: 1px solid #e6e3da; }
.hb-pod::before { content: ''; width: 1.1em; height: 1.1em; border-radius: 0.3em; background: linear-gradient(135deg, var(--hb-gold-bright), var(--hb-gold-deep)); }
.hb-pod span { font: 700 0.55em/1 var(--hb-mono); }
.hb-pod span::after { content: ' · running'; font-weight: 500; color: #2f8a4c; }
.hb-traf { position: absolute; left: 0; top: 0; width: 0.7em; height: 0.7em; margin: -0.35em 0 0 -0.35em; border-radius: 50%; background: #1b1b1f; box-shadow: 0 0 0 0.18em #fff, 0 0 0.7em 0.2em rgba(226, 188, 74, 0.9); z-index: 2; }
.hb-k8s-foot { display: flex; justify-content: space-between; margin-top: 0.6em; font: 600 0.55em/1 var(--hb-mono); color: var(--hb-grey); }
.hb-map { display: flex; flex-direction: column; }
.hb-map-body { position: relative; flex: 1; margin-top: 0.5em; border-radius: 0.6em; background: radial-gradient(circle, #d8d2c0 1px, transparent 1.4px) 0 0 / 0.7em 0.7em, #faf8f1; }
.hb-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hb-map path { fill: none; stroke: var(--hb-gold-deep); stroke-width: 1.6; stroke-linecap: round; }
.hb-pin { position: absolute; translate: -50% -50%; display: flex; align-items: center; gap: 0.35em; font: 700 0.52em/1 var(--hb-mono); background: #fff; padding: 0.35em 0.55em 0.35em 0.4em; border-radius: 99px; border: 1px solid #e6e3da; white-space: nowrap; }
.hb-pin i { width: 0.75em; height: 0.75em; border-radius: 50%; background: var(--hb-gold); box-shadow: 0 0 0 0.25em rgba(226, 188, 74, 0.3); }
.hb-ping { position: absolute; font: 700 0.5em/1 var(--hb-mono); font-style: normal; color: var(--hb-gold-deep); }
.hb-tf .hb-code { font-size: 0.62em; }
.hb-tf .hb-ln .g { color: #8fd3a5; }
.hb-auto { display: flex; flex-direction: column; }
.hb-auto svg { flex: 1; width: 100%; min-height: 0; margin-top: 0.5em; overflow: visible; }
.hb-auto path { fill: none; stroke-width: 2.6; stroke-linejoin: round; }
.hb-auto .req { stroke: var(--hb-gold); } .hb-auto .rep { stroke: #1b1b1f; stroke-width: 2; }
.hb-auto .hb-legend .prev::before { background: #1b1b1f; }
.hb-canary, .hb-reg { grid-column: 3; }
.hb-infra2 { grid-template-rows: minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 0.62fr); }
.hb-k8s { grid-row: 1 / 4; }
.hb-map { grid-column: 2; grid-row: 1; }
.hb-tf { grid-column: 3; grid-row: 1; }
.hb-auto { grid-column: 2; grid-row: 2 / 4; }
.hb-canary { grid-row: 2; }
.hb-reg { grid-row: 3; }
.hb-can-row { display: flex; align-items: baseline; gap: 0.6em; margin-top: 0.4em; }
.hb-can-row b { font: 800 1.6em/1.1 'Inter', sans-serif; }
.hb-can-row span { font: 500 0.55em/1 'Inter', sans-serif; color: var(--hb-grey); }
.hb-can-bar { height: 0.8em; border-radius: 99px; background: #e7e2d2; overflow: hidden; margin: 0.5em 0 0.4em; }
.hb-can-bar u { display: block; height: 100%; background: linear-gradient(90deg, var(--hb-gold-bright), var(--hb-gold-deep)); transform-origin: 0 50%; }
.hb-can-lab { display: flex; justify-content: space-between; font: 600 0.5em/1 var(--hb-mono); color: var(--hb-grey); }
.hb-reg-row { display: grid; grid-template-columns: 1fr auto 4.5em; align-items: center; gap: 0.4em; margin-top: 0.4em; }
.hb-reg-row > span { font: 500 0.5em/1 var(--hb-mono); color: var(--hb-grey); text-align: right; }
.hb-gen.is-mobile .hb-infra2 { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 2.1fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0.7em; }
.hb-gen.is-mobile .hb-k8s { grid-row: 1; }
.hb-gen.is-mobile .hb-canary { grid-column: 1; grid-row: 2; }
.hb-gen.is-mobile .hb-map { grid-column: 1; grid-row: 3; }
.hb-gen.is-mobile .hb-auto { grid-column: 1; grid-row: 4; }
.hb-gen.is-mobile .hb-tf, .hb-gen.is-mobile .hb-reg { display: none; }
.hb-gen.is-mobile .hb-pod span::after { content: ''; }

/* ---- monitoring ---- */
.hb-monitor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 1em; }
.hb-graf { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; background: #18181c; color: #e9e9ee; border-radius: 0.8em; padding: 0.8em 0.95em; box-shadow: 0 1em 2.2em -1.4em rgba(30, 30, 34, 0.45); }
.hb-graf small { color: #8d8d97; }
.hb-graf > b { font: 800 1.6em/1.2 'Inter', sans-serif; color: #fff; }
.hb-graf svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.hb-graf .ln { fill: none; stroke: var(--hb-gold-bright); stroke-width: 2.4; stroke-linejoin: round; }
.hb-graf .area { fill: rgba(226, 188, 74, 0.18); }
.hb-graf:nth-child(4) .ln { stroke: #e0675b; } .hb-graf:nth-child(4) .area { fill: rgba(224, 103, 91, 0.16); }
.hb-logs { grid-column: 1 / 3; grid-row: 2 / 4; }
.hb-logs-win { flex: 1; overflow: hidden; margin-top: 0.5em; mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.hb-logs-in div { font: 500 0.56em/1.85 var(--hb-mono); white-space: nowrap; color: #c9c9d1; }
.hb-logs-in em { font-style: normal; color: #6e6e78; margin-right: 0.8em; }
.hb-logs-in b { display: inline-block; width: 4.2em; color: #8fd3a5; }
.hb-logs-in u { text-decoration: none; display: inline-block; width: 4.4em; color: var(--hb-gold-bright); }
.hb-logs-in .lv-warn b { color: var(--hb-gold-bright); } .hb-logs-in .lv-error b { color: #e0675b; }
.hb-trace { grid-column: 3 / 5; }
.hb-span { display: grid; grid-template-columns: 5.4em 1fr; align-items: center; gap: 0.5em; margin-top: 0.42em; }
.hb-span span { font: 600 0.52em/1 var(--hb-mono); color: #c9c9d1; }
.hb-span i { position: relative; height: 0.75em; border-radius: 0.2em; background: #26262c; }
.hb-span u { position: absolute; top: 0; bottom: 0; border-radius: 0.2em; background: var(--hb-gold); transform-origin: 0 50%; }
.hb-span:nth-child(odd) u { background: #d9d6cc; }
.hb-gauge { align-items: center; text-align: center; }
.hb-gauge svg { max-height: 4.6em; }
.hb-gauge path { fill: none; stroke-width: 9; stroke-linecap: round; }
.hb-gauge .bg { stroke: #2c2c33; } .hb-gauge .fg { stroke: #4fbf7a; }
.hb-gauge > b { font-size: 1.3em; margin-top: -0.9em; }
.hb-gauge > span, .hb-inc > span { font: 500 0.5em/1.5 var(--hb-mono); color: #8d8d97; }
.hb-inc > b { font-size: 2em; color: var(--hb-gold-bright); margin-top: auto; }
.hb-alert { position: absolute; right: -0.4em; top: -1.6em; z-index: 6; display: flex; align-items: center; gap: 0.7em; padding: 0.75em 1em; border-radius: 0.8em; background: #fff; border: 1px solid #e6e3da; box-shadow: 0 1em 2em -0.8em rgba(30, 30, 34, 0.45); opacity: 0; }
.hb-alert i { width: 0.9em; height: 0.9em; border-radius: 50%; background: #e0675b; box-shadow: 0 0 0 0.3em rgba(224, 103, 91, 0.25); }
.hb-alert.ok i { background: #2f8a4c; box-shadow: 0 0 0 0.3em rgba(47, 138, 76, 0.2); }
.hb-alert b { display: block; font: 800 0.68em/1.3 'Inter', sans-serif; }
.hb-alert span { font: 500 0.56em/1.3 'Inter', sans-serif; color: var(--hb-grey); }
.hb-gen.is-mobile .hb-monitor { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(0, 1fr); gap: 0.6em; }
.hb-gen.is-mobile .hb-logs { grid-column: 1 / 3; grid-row: auto / span 2; }
.hb-gen.is-mobile .hb-trace { grid-column: 1 / 3; }
.hb-gen.is-mobile .hb-graf { padding: 0.6em 0.7em; }
.hb-gen.is-mobile .hb-alert { right: 0; left: 0; top: -0.8em; }

/* v7 polish */
.hb-stg { padding: 1.5em 0.5em 1.3em; gap: 0.8em; }
.hb-stg-ic { width: 3.3em; height: 3.3em; }
.hb-stg-ic svg { width: 1.6em; height: 1.6em; }
.hb-stg > b { font-size: 0.7em; }
.hb-st span { font-size: 0.6em; }
.hb-files { display: flex; flex-direction: column; gap: 0.35em; margin-bottom: 0.8em; }
.hb-files span { font: 500 0.55em/1.2 var(--hb-mono); color: var(--hb-ink-2); }
.hb-files i { font-style: normal; font-weight: 800; margin-right: 0.6em; color: var(--hb-gold-deep); }
.hb-commit::after { display: none; }
.hb-k8s-net { justify-content: center; gap: 4em; }
.hb-pod { height: 2.8em; }
.hb-alert { right: 1.4em; top: 54%; }
.hb-gen.is-mobile .hb-alert { left: 0.6em; right: 0.6em; top: auto; bottom: 34%; }
.hb-gen.is-mobile .hb-files { display: none; }
.hb-gen.is-mobile .hb-k8s-net { gap: 1.6em; }
.hb-gen.is-mobile .hb-stg { padding: 0.35em 0.8em 0.35em 0.5em; gap: 0.7em; }
.hb-gen.is-mobile .hb-stg-ic { width: 2.2em; height: 2.2em; }
.hb-gen.is-mobile .hb-stg-ic svg { width: 1.2em; height: 1.2em; }
@media (max-width: 899px) {
    .hb-status-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
    .hb-steps { gap: 2px !important; }
    .hb-steps i { width: 5px !important; }
}

/* v10: the hero logo column was removed (the nav carries the logo) */
.hb-side { display: none !important; }

/* =====================================================================
   v15: opening frame = animated Roach Solution logo
   ===================================================================== */
.hb-static { display: none !important; }
.hb-intro {
    position: absolute; z-index: 4; pointer-events: none;
    left: calc(var(--hb-rx) + var(--hb-rw) / 2);
    top: calc(var(--hb-top) + (100% - var(--hb-top) - var(--hb-bottom)) / 2);
    transform: translate(-50%, -50%);
    --bh: clamp(150px, 34vh, 300px);              /* badge height */
}
.hb-intro-in { display: flex; flex-direction: column; align-items: center; will-change: transform, opacity; }
.hb-pre .hb-intro-in { opacity: 0; }
.hb-intro-float { display: flex; flex-direction: column; align-items: center; }
.hb-intro-ready .hb-intro-float { animation: hb-intro-float 6s ease-in-out infinite; }
@keyframes hb-intro-float { 50% { transform: translateY(-9px); } }
.hb-intro-badge { position: relative; height: var(--bh); aspect-ratio: 163 / 192; }
.hb-intro-mark { display: block; width: 100%; height: 100%; position: relative; z-index: 2; filter: drop-shadow(0 18px 34px rgba(156,122,22,.28)); }
.hb-intro-svg { position: absolute; z-index: 1; overflow: visible;
    /* badge spans x 100..300 of the 400 viewBox -> svg is 2x badge width, centred */
    width: 200%; left: -50%; top: 50%; translate: 0 -50%; height: auto; aspect-ratio: 1; }
.hb-ring { stroke: var(--hb-gold); stroke-width: 1.6; opacity: .75; }
.hb-tr { stroke: var(--hb-gold); stroke-width: 1.4; opacity: .45; stroke-linecap: round; stroke-linejoin: round; }
.hb-tr-dot { fill: #fff; stroke: var(--hb-gold); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; }
.hb-comet { stroke: var(--hb-gold-bright, #e9c85a); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 5 105; stroke-dashoffset: 110; opacity: 0; }
.hb-intro-ready .hb-comet { animation: hb-comet 4.4s cubic-bezier(.45,0,.3,1) infinite; animation-delay: var(--d, 0s); }
@keyframes hb-comet { 0% { stroke-dashoffset: 105; opacity: 0; } 8% { opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 62%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.hb-intro-ready .hb-ring { animation: hb-ring 4.4s ease-in-out infinite; }
@keyframes hb-ring { 50% { opacity: .35; } }
.hb-intro-shine {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    -webkit-mask: url('../assets/logos/roach-mark.png') center / 100% 100% no-repeat; mask: url('../assets/logos/roach-mark.png') center / 100% 100% no-repeat;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%) no-repeat;
    background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: screen; opacity: .9;
}
.hb-intro-ready .hb-intro-shine { animation: hb-shine 6s ease-in-out infinite; }
@keyframes hb-shine { 0%, 62% { background-position: 150% 0; } 85%, 100% { background-position: -60% 0; } }
.hb-intro-word { margin-top: calc(var(--bh) * 0.24); display: flex; gap: .42em; font: 600 calc(var(--bh) * 0.15)/1 'Space Grotesk', 'Inter', sans-serif; letter-spacing: .1em; white-space: nowrap; }
.hb-intro-word b { font-weight: 700; color: var(--hb-gold-deep, #9c7a1c); }
.hb-intro-word em { font-style: normal; color: #1b1b1f; }
.hb-intro-word span { display: inline-block; }
.hb-intro-tag { margin: calc(var(--bh) * 0.06) 0 0; font: 600 calc(var(--bh) * 0.045)/1.4 'Inter', sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--hb-gold-deep, #9c7a1c); }
.hb-intro-scroll { margin-top: calc(var(--bh) * 0.2); display: flex; flex-direction: column; align-items: center; gap: 9px; font: 600 11px/1 'Inter', sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #6d6a63; transition: opacity .4s ease; }
.hb-scroll.hb-active:not(.hb-idle) .hb-intro-scroll { opacity: 0; }
.hb-mouse { width: 22px; height: 34px; border: 2px solid #3a3a40; border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; box-sizing: border-box; }
.hb-mouse i { width: 3px; height: 7px; border-radius: 2px; background: var(--hb-gold); animation: hb-wheel 1.6s ease-in-out infinite; }
@keyframes hb-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
.hb-scroll:not(.hb-active) .hb-intro-scroll { display: none; }   /* no-JS / reduced motion: nothing to scroll through */
@media (max-width: 899px) {
    .hb-intro { --bh: clamp(130px, 30vh, 220px); }
    .hb-intro-word { font-size: clamp(18px, 6.2vw, 30px); }
    .hb-intro-tag { font-size: 10px; letter-spacing: .22em; }
}
@media (prefers-reduced-motion: reduce) {
    .hb-intro-float, .hb-comet, .hb-ring, .hb-intro-shine, .hb-mouse i { animation: none !important; }
}

/* =====================================================================
   v18: innovation scenes (AI/ML, real-time data, security, edge)
   ===================================================================== */
.hb-ai, .hb-data, .hb-sec, .hb-edge { display: grid; gap: 1em; }
.hb-ai > *, .hb-data > *, .hb-sec > *, .hb-edge > * { min-width: 0; min-height: 0; }
.hb-ai b, .hb-data b, .hb-sec b, .hb-edge b { font-weight: 800; }

/* ---- AI / ML ---- */
.hb-ai { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 0.85fr) 6.4em; }
.hb-nn { grid-row: 1 / 3; }
.hb-nn svg { flex: 1; width: 100%; min-height: 0; margin-top: 0.4em; }
.hb-nn .base line { stroke: #3a3a44; stroke-width: 0.8; }
.hb-nn .lit line { stroke: var(--hb-gold-bright); stroke-width: 1.4; }
.hb-nn .lit { opacity: 0; }
.hb-nn .nd { fill: #18181c; stroke: var(--hb-gold); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.hb-nn .nd[data-l="3"] { fill: var(--hb-gold); }
.hb-nn .glow { fill: var(--hb-gold-bright); opacity: 0; }
.hb-nn text { fill: #8d8d97; font: 600 9px var(--hb-mono); text-anchor: middle; letter-spacing: 0.06em; text-transform: uppercase; }
.hb-nn > svg > text { text-anchor: start; fill: #c9c9d1; text-transform: none; font-size: 9.5px; }
.hb-chat { display: flex; flex-direction: column; gap: 0.6em; }
.hb-bub { font-size: 0.74em; line-height: 1.45; padding: 0.7em 0.9em; border-radius: 0.9em; max-width: 92%; }
.hb-bub.u { align-self: flex-end; background: #18181c; color: #f2f2f5; border-bottom-right-radius: 0.25em; }
.hb-bub.a { align-self: flex-start; background: #f6f2e6; color: var(--hb-ink); border: 1px solid #ece4cc; border-bottom-left-radius: 0.25em; }
.hb-bub.a b { color: var(--hb-gold-deep); }
.hb-tk { opacity: 0; }
.hb-chat .tk { opacity: 0; }
.hb-typing { display: flex; gap: 0.3em; padding: 0.2em 0.4em; opacity: 0; }
.hb-typing i { width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--hb-gold); animation: hb-dots 0.9s ease-in-out infinite; }
.hb-typing i:nth-child(2) { animation-delay: 0.15s; } .hb-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes hb-dots { 50% { transform: translateY(-0.3em); opacity: 0.5; } }
.hb-loss-k { display: flex; gap: 1.2em; font-size: 0.66em; color: #b9b9c2; margin: 0.4em 0; }
.hb-loss-k b { color: #fff; font-size: 1.25em; }
.hb-loss svg { flex: 1; width: 100%; min-height: 0; }
.hb-loss .ln { fill: none; stroke: var(--hb-gold-bright); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.hb-loss .vl { fill: none; stroke: #6e6e78; stroke-width: 1.4; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.hb-agent { grid-column: 1 / 3; display: flex; flex-direction: column; gap: 0.45em; }
.hb-ag-row { flex: 1; display: flex; align-items: center; gap: 0.8em; }
.hb-ag { position: relative; flex: 1; display: flex; align-items: center; gap: 0.6em; padding: 0.5em 0.7em; border-radius: 0.7em; border: 1px solid #e6e3da; background: #faf9f6; overflow: hidden; }
.hb-ag .ic { width: 1.9em; height: 1.9em; border-radius: 0.5em; display: grid; place-items: center; background: #18181c; color: var(--hb-gold-bright); flex: none; position: relative; z-index: 1; }
.hb-ag .ic svg { width: 1.1em; height: 1.1em; }
.hb-ag div { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.hb-ag b { font-size: 0.74em; } .hb-ag em { font: 500 0.56em/1.3 var(--hb-mono); font-style: normal; color: var(--hb-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-ag .on { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(240, 200, 90, 0.35), rgba(240, 200, 90, 0.12)); box-shadow: inset 0 0 0 1.5px var(--hb-gold); border-radius: inherit; opacity: 0; }
.hb-ag-ar { width: 1.2em; height: 2px; background: var(--hb-gold); flex: none; position: relative; }
.hb-ag-ar::after { content: ''; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left-color: var(--hb-gold); border-right: 0; }
.hb-ag-done { flex: none; font: 700 0.62em/1 var(--hb-mono); color: #2f8a4c; background: #e3f3e8; padding: 0.7em 0.9em; border-radius: 99px; white-space: nowrap; }

/* ---- real-time data ---- */
.hb-data { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1.05fr) minmax(0, 1fr); }
.hb-stream { grid-column: 1 / 4; display: flex; flex-direction: column; }
.hb-stream-h { display: flex; justify-content: space-between; align-items: baseline; }
.hb-stream-h small b { color: var(--hb-gold-deep); }
.hb-stream-h span { font-size: 0.7em; color: var(--hb-grey); } .hb-stream-h span b { font-size: 1.5em; color: var(--hb-ink); }
.hb-stream-b { flex: 1; display: flex; align-items: stretch; gap: 1em; margin-top: 0.6em; min-height: 0; }
.hb-sx { flex: none; width: 7em; display: flex; flex-direction: column; justify-content: space-around; gap: 0.4em; }
.hb-sx span { font: 700 0.62em/1 var(--hb-mono); padding: 0.7em 0.8em; border-radius: 0.6em; background: #18181c; color: #f2f2f5; text-align: center; }
.hb-sx.c span { background: #f6f2e6; color: var(--hb-ink); border: 1px solid #ece4cc; }
.hb-lanes { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.hb-lane { position: relative; height: 2.1em; display: flex; align-items: center; gap: 0.6em; }
.hb-lane em { font: 700 0.56em/1 var(--hb-mono); font-style: normal; color: var(--hb-grey); width: 2.2em; flex: none; }
.hb-lane i { flex: 1; height: 1.7em; border-radius: 0.5em; background: repeating-linear-gradient(90deg, #f1eee6 0 1.6em, #f8f6f0 1.6em 3.2em); border: 1px solid #ebe6d8; transform-origin: 0 50%; }
.hb-ev { position: absolute; left: 3.6em; margin-top: -0.85em; height: 1.7em; display: inline-flex; align-items: center; padding: 0 0.7em; border-radius: 0.5em; background: linear-gradient(160deg, var(--hb-gold-bright), var(--hb-gold)); color: #1b1b1f; font: 700 0.58em/1 var(--hb-mono); white-space: nowrap; box-shadow: 0 0.3em 0.8em -0.3em rgba(156, 122, 22, 0.7); opacity: 0; }
.hb-ev:nth-child(3n) { background: #18181c; color: var(--hb-gold-bright); }
.hb-vec svg { flex: 1; width: 100%; min-height: 0; margin: 0.3em 0; }
.hb-vec small b { color: #fff; }
.hb-vec .pt { transform-box: fill-box; transform-origin: center; }
.hb-vec .pt.c0 { fill: var(--hb-gold-bright); } .hb-vec .pt.c1 { fill: #8fd3a5; } .hb-vec .pt.c2 { fill: #9aa5ff; }
.hb-vec .q { fill: #fff; stroke: var(--hb-gold); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; }
.hb-vec .nn { stroke: #fff; stroke-width: 1.2; stroke-dasharray: 3 2; fill: none; }
.hb-vec em { font: 500 0.56em/1.3 var(--hb-mono); font-style: normal; color: #9d9da6; }
.hb-iot { display: flex; flex-direction: column; }
.hb-iot-map { position: relative; flex: 1; margin-top: 0.4em; }
.hb-iot-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hb-iot .land { fill: #f3efe3; stroke: #e2dccb; stroke-width: 0.6; }
.hb-iot .rt { fill: none; stroke: var(--hb-gold); stroke-width: 1.2; stroke-dasharray: 2 1.5; vector-effect: non-scaling-stroke; }
.hb-sen { position: absolute; width: 0.75em; height: 0.75em; margin: -0.375em 0 0 -0.375em; border-radius: 50%; background: var(--hb-gold); box-shadow: 0 0 0 2px #fff; }
.hb-sen u { position: absolute; inset: -0.6em; border-radius: 50%; border: 2px solid var(--hb-gold); opacity: 0; animation: hb-ping2 2s ease-out infinite; }
.hb-sen:nth-child(odd) u { animation-delay: 1s; }
@keyframes hb-ping2 { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
.hb-read { justify-content: space-between; }
.hb-rd { display: flex; justify-content: space-between; align-items: baseline; padding: 0.45em 0; border-bottom: 1px solid #2a2a31; }
.hb-rd:last-child { border-bottom: 0; }
.hb-rd span { font-size: 0.68em; color: #b9b9c2; } .hb-rd b { font: 800 1em/1 'Inter', sans-serif; color: #fff; }

/* ---- security ---- */
.hb-sec { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); position: relative; }
.hb-zt { grid-row: 1 / 3; display: flex; flex-direction: column; }
.hb-lock { flex: 1; min-height: 0; display: grid; place-items: center; }
.hb-lock svg { width: 72%; max-height: 100%; overflow: visible; }
.hb-lock .ring { fill: none; stroke: var(--hb-gold); stroke-width: 2.5; stroke-dasharray: 5 4; }
.hb-lock .shk { fill: none; stroke: #18181c; stroke-width: 8; stroke-linecap: round; }
.hb-lock .body { fill: #18181c; }
.hb-lock .kh { fill: var(--hb-gold-bright); stroke: var(--hb-gold-bright); stroke-width: 3; stroke-linecap: round; }
.hb-zt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35em; }
.hb-zt li { font-size: 0.66em; display: flex; align-items: center; gap: 0.6em; }
.hb-zt li i { width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; background: #e3f3e8; color: #2f8a4c; font-style: normal; font-weight: 800; flex: none; }
.hb-enc { gap: 0.4em; }
.hb-enc-row { display: flex; flex-direction: column; gap: 0.5em; margin-top: 0.5em; }
.hb-enc-row em { font: 600 0.52em/1 var(--hb-mono); font-style: normal; text-transform: uppercase; color: #8d8d97; }
.hb-chs { display: flex; flex-wrap: wrap; gap: 0.12em; }
.hb-ch { position: relative; width: 1.25em; height: 1.85em; display: grid; place-items: center; border-radius: 0.25em; background: #222228; font: 700 0.9em/1 var(--hb-mono); }
.hb-ch i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; }
.hb-ch .p { color: #f2f2f5; } .hb-ch .c { color: var(--hb-gold-bright); opacity: 0; }
.hb-enc-k { display: flex; gap: 1em; font: 500 0.56em/1 var(--hb-mono); color: #9d9da6; margin-top: auto; }
.hb-enc-bar { height: 0.35em; border-radius: 99px; background: #2a2a31; overflow: hidden; }
.hb-enc-bar u { display: block; height: 100%; background: linear-gradient(90deg, var(--hb-gold), var(--hb-gold-bright)); transform-origin: 0 50%; }
.hb-jwt { grid-row: 1 / 3; grid-column: 3; display: flex; flex-direction: column; gap: 0.7em; }
.hb-tok { font: 600 0.62em/1.55 var(--hb-mono); word-break: break-all; background: #faf9f6; border: 1px solid #ece4cc; border-radius: 0.6em; padding: 0.7em 0.8em; color: var(--hb-grey); }
.hb-tok .h, .hb-jdec .h { color: #c0503f; } .hb-tok .pl, .hb-jdec .pl { color: #7a4fbf; } .hb-tok .sg, .hb-jdec .sg { color: #2a7fb8; }
.hb-tok span { display: inline; }
.hb-jdec { display: flex; flex-direction: column; gap: 0.45em; }
.hb-jdec div { font: 600 0.58em/1.45 var(--hb-mono); padding: 0.5em 0.7em; border-radius: 0.5em; background: #f7f6f3; border-left: 3px solid currentColor; }
.hb-jok { align-self: flex-start; }
.hb-waf { gap: 0.1em; }
.hb-wl { display: flex; gap: 0.8em; align-items: center; font: 500 0.6em/1 var(--hb-mono); padding: 0.55em 0.4em; border-bottom: 1px solid #2a2a31; color: #c9c9d1; white-space: nowrap; overflow: hidden; }
.hb-wl b { color: #8fd3a5; } .hb-wl span { overflow: hidden; text-overflow: ellipsis; }
.hb-wl.bad { background: rgba(224, 103, 91, 0.14); color: #f0a49a; border-radius: 0.4em; } .hb-wl.bad b { color: #e0675b; } .hb-wl.bad span { text-decoration: line-through; }
.hb-waf-k { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font-size: 0.66em; color: #b9b9c2; }
.hb-waf-k b { font-size: 1.6em; color: #fff; }
.hb-threat { position: absolute; right: 1em; bottom: -1.4em; z-index: 4; display: flex; align-items: center; gap: 0.8em; padding: 0.8em 1.1em; border-radius: 0.8em; background: #fff; border: 1px solid #f1c9c3; box-shadow: 0 1em 2.4em -1em rgba(30, 30, 34, 0.45); opacity: 0; }
.hb-threat > i { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: #e0675b; color: #fff; font-style: normal; font-weight: 900; flex: none; }
.hb-threat div { display: flex; flex-direction: column; gap: 0.15em; } .hb-threat b { font-size: 0.76em; } .hb-threat span { font: 500 0.6em/1.3 var(--hb-mono); color: var(--hb-grey); }

/* ---- edge / serverless ---- */
.hb-edge { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 5.2em; }
.hb-globe { grid-row: 1 / 3; display: flex; flex-direction: column; }
.hb-globe svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.hb-globe .sph { fill: url(#none); fill: #fbfaf6; stroke: #ece6d4; stroke-width: 1; }
.hb-globe .dots { fill: #6b6b75; transform-box: fill-box; transform-origin: center; }
.hb-globe .arc { fill: none; stroke: var(--hb-gold); stroke-width: 1.4; }
.hb-globe .pop { transform-box: fill-box; transform-origin: center; }
.hb-globe .pc { fill: var(--hb-gold); stroke: #fff; stroke-width: 1.4; }
.hb-globe .pr { fill: rgba(212, 175, 55, 0.22); animation: hb-pr 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.hb-globe .pop:nth-child(odd) .pr { animation-delay: 1.1s; }
@keyframes hb-pr { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.hb-fns { gap: 0.1em; }
.hb-fn { display: grid; grid-template-columns: 0.8em minmax(0, 1fr) 3em 3.6em; align-items: center; gap: 0.6em; font-size: 0.66em; padding: 0.42em 0; border-bottom: 1px solid #2a2a31; color: #d9d9e0; }
.hb-fn i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #3ad07a; box-shadow: 0 0 0 3px rgba(58, 208, 122, 0.2); }
.hb-fn em { font: 600 0.9em/1 var(--hb-mono); font-style: normal; color: #8d8d97; text-transform: uppercase; }
.hb-fn b { text-align: right; color: var(--hb-gold-bright); font-family: var(--hb-mono); }
.hb-edge-k { display: flex; align-items: center; gap: 1.4em; }
.hb-edge-k div { display: flex; flex-direction: column; gap: 0.2em; } .hb-edge-k b { font-size: 1.15em; }
.hb-edge-k code { margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---- mobile: simplified ---- */
.hb-gen.is-mobile .hb-ai, .hb-gen.is-mobile .hb-data, .hb-gen.is-mobile .hb-sec, .hb-gen.is-mobile .hb-edge { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; gap: 0.7em; align-content: center; }
.hb-gen.is-mobile .hb-nn, .hb-gen.is-mobile .hb-agent, .hb-gen.is-mobile .hb-stream, .hb-gen.is-mobile .hb-zt, .hb-gen.is-mobile .hb-jwt, .hb-gen.is-mobile .hb-globe { grid-row: auto; grid-column: auto; }
.hb-gen.is-mobile .hb-nn { height: 15em; }
.hb-gen.is-mobile .hb-loss, .hb-gen.is-mobile .hb-vec, .hb-gen.is-mobile .hb-iot, .hb-gen.is-mobile .hb-jwt, .hb-gen.is-mobile .hb-fns { display: none; }
.hb-gen.is-mobile .hb-chat { min-height: 13em; }
.hb-gen.is-mobile .hb-ag-row { flex-wrap: wrap; gap: 0.4em; } .hb-gen.is-mobile .hb-ag { flex: 1 1 45%; } .hb-gen.is-mobile .hb-ag-ar { display: none; }
.hb-gen.is-mobile .hb-ag-done { flex-basis: 100%; text-align: center; }
.hb-gen.is-mobile .hb-stream { height: 15em; }
.hb-gen.is-mobile .hb-sx { display: none; }
.hb-gen.is-mobile .hb-zt { height: 18em; }
.hb-gen.is-mobile .hb-enc { min-height: 9em; } .hb-gen.is-mobile .hb-waf { min-height: 10em; }
.hb-gen.is-mobile .hb-threat { position: relative; right: auto; bottom: auto; }
.hb-gen.is-mobile .hb-globe { height: 22em; }
.hb-gen.is-mobile .hb-edge-k { flex-wrap: wrap; gap: 0.8em 1.4em; } .hb-gen.is-mobile .hb-edge-k code { margin-left: 0; flex-basis: 100%; }
.hb-gen.is-mobile .hb-loss-k, .hb-gen.is-mobile .hb-enc-k { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .hb-typing i, .hb-sen u, .hb-globe .pr { animation: none !important; } }

/* =====================================================================
   v19: autoplay control (bottom-right, next to the step markers)
   ===================================================================== */
.hb-status-r { display: flex; align-items: center; gap: 14px; flex: none; }
.hb-apbtn {
    pointer-events: auto; display: none; align-items: center; gap: 7px; height: 26px; padding: 0 10px 0 8px;
    border-radius: 99px; border: 1px solid #e6e3da; background: rgba(255, 255, 255, 0.85); color: var(--hb-ink-2);
    font: 600 10.5px/1 var(--hb-mono); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.hb-scroll.hb-active .hb-apbtn { display: inline-flex; }
.hb-apbtn:hover, .hb-apbtn:focus-visible { border-color: var(--hb-gold); color: var(--hb-ink); outline: none; }
.hb-apbtn:focus-visible { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3); }
/* icon: pause bars while autoplay is enabled, play triangle when switched off */
.hb-apbtn i { position: relative; width: 10px; height: 10px; flex: none; }
.hb-apbtn i::before, .hb-apbtn i::after { content: ''; position: absolute; top: 0; width: 3px; height: 10px; border-radius: 1px; background: var(--hb-gold-deep, #9c7a1c); }
.hb-apbtn i::before { left: 1px; } .hb-apbtn i::after { right: 1px; }
.hb-apbtn.is-off i::after { display: none; }
.hb-apbtn.is-off i::before { left: 1px; width: 0; height: 0; border-radius: 0; background: none; border-left: 9px solid var(--hb-gold-deep, #9c7a1c); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hb-apbtn.is-playing { border-color: rgba(212, 175, 55, 0.6); }
.hb-apbtn.is-playing span::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 6px; border-radius: 50%; background: #3ad07a; vertical-align: 1px; animation: hb-live 1.4s ease-in-out infinite; }
@keyframes hb-live { 50% { opacity: 0.25; } }
@media (min-width: 900px) {
    .hb-scroll.hb-active .hb-steps { pointer-events: auto; }
    .hb-scroll.hb-active .hb-steps i { cursor: pointer; position: relative; }
    .hb-scroll.hb-active .hb-steps i::before { content: ''; position: absolute; inset: -8px -3px; }
    .hb-scroll.hb-active .hb-steps i:hover { background: var(--hb-gold-bright); }
}
@media (max-width: 899px) {
    .hb-status-r { gap: 8px; }
    .hb-apbtn { height: 24px; padding: 0 8px 0 7px; font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) { .hb-apbtn { display: none !important; } }
@media (max-width: 480px) {
    .hb-apbtn { padding: 0 8px; gap: 0; }
    .hb-apbtn span { font-size: 0; }
    .hb-apbtn.is-playing span::after { margin-left: 5px; }
}

/* =====================================================================
   v20: performance
   ===================================================================== */
/* fully transparent layers are taken out of rendering by js (no style/paint, CSS loops stop) */
.hb-scroll .hb-off { display: none !important; }
/* each scene / card is an isolated layout + style island */
.hb-scene, .hb-prod, .hb-card, .hb-wall { contain: layout style; }
/* the stage never needs to repaint the page behind it */
.hb-stage { contain: layout paint style; }
