.pfos-guide-hud {
    --guide-accent: 56, 245, 255;
    position: fixed;
    z-index: 900;
    top: 50%;
    left: clamp(12px, 1.5vw, 24px);
    transform: translateY(-50%);
    width: 76px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(var(--guide-accent), .19);
    border-radius: 28px;
    background: linear-gradient( 145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .008) ), rgba(2, 8, 17, .36);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .24), 0 0 28px rgba(var(--guide-accent), .055), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: width .45s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

    .pfos-guide-hud::before {
        content: "";
        position: absolute;
        inset: 8px;
        z-index: -1;
        border-radius: 21px;
        pointer-events: none;
        background: radial-gradient( circle at 50% 0%, rgba(var(--guide-accent), .12), transparent 48% );
    }

    .pfos-guide-hud:hover,
    .pfos-guide-hud:focus-within,
    .pfos-guide-hud.is-expanded {
        width: 315px;
        border-color: rgba(var(--guide-accent), .42);
        background: linear-gradient( 145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .018) ), rgba(2, 8, 17, .82);
        box-shadow: 0 30px 100px rgba(0, 0, 0, .52), 0 0 55px rgba(var(--guide-accent), .13), inset 0 1px 0 rgba(255, 255, 255, .10);
        backdrop-filter: blur(22px) saturate(145%);
        -webkit-backdrop-filter: blur(22px) saturate(145%);
    }

/* ---------------------------------------------------------
   CURRENT SECTION
   --------------------------------------------------------- */

.pfos-guide-hud__current {
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 5px;
    border: 1px solid rgba(var(--guide-accent), .16);
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(var(--guide-accent), .22), rgba(var(--guide-accent), .22)) left 26px bottom 14px / calc(100% - 52px) 1px no-repeat, linear-gradient(135deg, rgba(var(--guide-accent), .10), rgba(255, 255, 255, .025));
    overflow: hidden;
}

    .pfos-guide-hud__current::after {
        content: "";
        position: absolute;
        right: auto;
        bottom: 14px;
        left: 26px;
        width: var(--pfos-guide-progress-width, 0px);
        height: 2px;
        background: rgb(var(--guide-accent));
        box-shadow: 0 0 8px rgba(var(--guide-accent), .95), 0 0 20px rgba(var(--guide-accent), .55);
        border-radius: 999px;
        transition: width .42s cubic-bezier(.16, 1, .3, 1);
    }

    .pfos-guide-hud__current::before {
        content: "";
        position: absolute;
        left: calc(26px + var(--pfos-guide-progress-width, 0px));
        bottom: 12px;
        z-index: 1;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgb(var(--guide-accent));
        box-shadow: 0 0 8px rgba(var(--guide-accent), 1), 0 0 18px rgba(var(--guide-accent), .72);
        transform: translateX(-50%);
        transition: left .42s cubic-bezier(.16, 1, .3, 1);
    }

.pfos-guide-hud__compact-stack {
    width: 48px;
    display: grid;
    justify-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.pfos-guide-hud__orb {
    position: relative;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--guide-accent), .76);
    border-radius: 50%;
    isolation: isolate;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), rgba(var(--guide-accent),.18) 60%, rgba(0,120,255,.08));
    box-shadow: 0 0 8px rgba(var(--guide-accent),.8), 0 0 17px rgba(var(--guide-accent),.38), inset 0 0 11px rgba(255,255,255,.14);
    animation: pfosGuideOrbPulse 3s ease-in-out infinite;
}

.pfos-guide-hud__orb::before {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(transparent 0deg, rgba(var(--guide-accent),.95) 15deg, transparent 40deg, transparent 130deg, rgba(255,255,255,.95) 150deg, transparent 180deg, transparent 260deg, rgba(var(--guide-accent),.9) 285deg, transparent 320deg, transparent 360deg);
    filter: blur(.5px);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
    animation: pfosGuideOrbSpin 2.8s linear infinite;
}

.pfos-guide-hud__orb::after {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.85) 0deg, rgba(255,255,255,.85) 2deg, transparent 4deg, transparent 20deg);
    opacity: .5;
    filter: blur(1.2px);
    animation: pfosGuideOrbSpinReverse 8s linear infinite;
}

.pfos-guide-hud__orb > span {
    position: relative;
    z-index: 2;
    padding-left: .08em;
    color: #fff;
    font-size: .52rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-shadow: 0 0 6px rgba(255,255,255,.9), 0 0 12px rgba(var(--guide-accent),.95);
}

.pfos-guide-hud__number {
    width: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(var(--guide-accent), .35);
    border-radius: 12px;
    color: #dffcff;
    background: radial-gradient( circle at 35% 28%, rgba(255, 255, 255, .22), rgba(var(--guide-accent), .08) 52%, rgba(2, 10, 18, .76) );
    box-shadow: 0 0 22px rgba(var(--guide-accent), .17), inset 0 0 16px rgba(255, 255, 255, .05);
    font: 900 .58rem/1.2 monospace;
    letter-spacing: .035em;
    flex: 0 0 auto;
}

.pfos-guide-hud__current-copy {
    min-width: 0;
    display: none;
}

.pfos-guide-hud:hover .pfos-guide-hud__current-copy,
.pfos-guide-hud:focus-within .pfos-guide-hud__current-copy,
.pfos-guide-hud.is-expanded .pfos-guide-hud__current-copy {
    display: block;
    text-align: left;
}

@keyframes pfosGuideOrbPulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.04); filter: brightness(1.16); }
}

@keyframes pfosGuideOrbSpin {
    to { transform: rotate(360deg); }
}

@keyframes pfosGuideOrbSpinReverse {
    to { transform: rotate(-360deg); }
}

.pfos-guide-hud__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: rgba(177, 219, 235, .52);
    font: 800 .62rem/1 monospace;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.pfos-guide-hud__title {
    display: block;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.pfos-guide-hud__description {
    display: block;
    margin-top: 6px;
    color: rgba(205, 231, 239, .58);
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.35;
}

/* ---------------------------------------------------------
   CHAPTER LIST
   --------------------------------------------------------- */

.pfos-guide-hud__chapters {
    position: relative;
    display: grid;
    gap: 5px;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height .5s cubic-bezier(.16, 1, .3, 1), opacity .2s ease, transform .4s cubic-bezier(.16, 1, .3, 1), margin-top .4s ease;
}

    .pfos-guide-hud__chapters::before {
        content: "";
        position: absolute;
        z-index: 0;
        top: 22px;
        bottom: 22px;
        left: 17.5px;
        width: 1px;
        background: linear-gradient(to bottom, rgb(var(--guide-accent)) var(--pfos-guide-progress, 0%), rgba(var(--guide-accent), .22) var(--pfos-guide-progress, 0%));
        box-shadow: 0 0 10px rgba(var(--guide-accent), .2);
    }

.pfos-guide-hud:hover .pfos-guide-hud__chapters,
.pfos-guide-hud:focus-within .pfos-guide-hud__chapters,
.pfos-guide-hud.is-expanded .pfos-guide-hud__chapters {
    max-height: 560px;
    margin-top: 9px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.pfos-guide-hud__chapter {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 16px 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: rgba(203, 228, 238, .60);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease;
}

.pfos-guide-hud__chapter-node {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    display: block;
    border: 1px solid rgba(var(--guide-accent), .55);
    border-radius: 50%;
    background: rgb(3, 12, 22);
    box-shadow: 0 0 0 3px rgb(3, 12, 22);
}

.pfos-guide-hud__chapter.is-active .pfos-guide-hud__chapter-node,
.pfos-guide-hud__chapter.is-complete .pfos-guide-hud__chapter-node {
    background: rgb(var(--guide-accent));
    box-shadow: 0 0 0 3px rgb(3, 12, 22), 0 0 15px rgba(var(--guide-accent), .8);
}

    .pfos-guide-hud__chapter:hover,
    .pfos-guide-hud__chapter:focus-visible {
        color: #fff;
        border-color: rgba(var(--guide-accent), .18);
        background: linear-gradient( 90deg, rgba(var(--guide-accent), .085), rgba(255, 255, 255, .018) );
        transform: none;
        outline: none;
    }

    .pfos-guide-hud__chapter.is-active {
        color: #fff;
        border-color: rgba(var(--guide-accent), .27);
        background: linear-gradient( 90deg, rgba(var(--guide-accent), .15), rgba(var(--guide-accent), .035) );
        box-shadow: inset 3px 0 0 rgba(var(--guide-accent), .85), 0 0 20px rgba(var(--guide-accent), .045);
    }

.pfos-guide-hud__chapter-number {
    position: relative;
    color: rgba(var(--guide-accent), .72);
    font: 800 .60rem/1 monospace;
    letter-spacing: .08em;
}

    .pfos-guide-hud__chapter-number::after {
        content: "";
        position: absolute;
        top: 50%;
        right: -5px;
        width: 10px;
        height: 1px;
        background: rgba(var(--guide-accent), .38);
        box-shadow: 0 0 7px rgba(var(--guide-accent), .25);
        transform: translateY(-50%);
        transition: width .22s ease, background .22s ease;
    }

    .pfos-guide-hud__chapter.is-active
    .pfos-guide-hud__chapter-number::after {
        width: 16px;
        background: rgb(var(--guide-accent));
    }

.pfos-guide-hud__chapter-name {
    overflow: hidden;
    font-size: .67rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .075em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   PREVIOUS / NEXT CONTROLS
   --------------------------------------------------------- */

.pfos-guide-hud__controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: auto;
    padding-top: 9px;
}

.pfos-guide-hud__control {
    min-width: 0;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid rgba(159, 207, 227, .17);
    border-radius: 14px;
    color: rgba(218, 241, 248, .76);
    background: linear-gradient( 135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018) );
    cursor: pointer;
    transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}

    .pfos-guide-hud__control:hover:not(:disabled),
    .pfos-guide-hud__control:focus-visible:not(:disabled) {
        color: #fff;
        border-color: rgba(var(--guide-accent), .50);
        background: rgba(var(--guide-accent), .11);
        box-shadow: 0 0 22px rgba(var(--guide-accent), .10);
        transform: translateY(-2px);
        outline: none;
    }

    .pfos-guide-hud__control:disabled {
        opacity: .22;
        cursor: default;
    }

    .pfos-guide-hud__control svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.pfos-guide-hud__control-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.pfos-guide-hud:hover .pfos-guide-hud__current,
.pfos-guide-hud:focus-within .pfos-guide-hud__current,
.pfos-guide-hud.is-expanded .pfos-guide-hud__current {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 18px 30px;
}

.pfos-guide-hud:hover .pfos-guide-hud__compact-stack,
.pfos-guide-hud:focus-within .pfos-guide-hud__compact-stack,
.pfos-guide-hud.is-expanded .pfos-guide-hud__compact-stack {
    width: 68px;
    gap: 6px;
}

.pfos-guide-hud:hover .pfos-guide-hud__orb,
.pfos-guide-hud:focus-within .pfos-guide-hud__orb,
.pfos-guide-hud.is-expanded .pfos-guide-hud__orb {
    width: 48px;
    height: 48px;
}

.pfos-guide-hud:hover .pfos-guide-hud__number,
.pfos-guide-hud:focus-within .pfos-guide-hud__number,
.pfos-guide-hud.is-expanded .pfos-guide-hud__number {
    width: 58px;
    height: 26px;
    min-height: 26px;
    border-radius: 9px;
    font-size: .61rem;
}

.pfos-guide-hud__control-copy {
    min-width: 0;
    display: block;
    text-align: left;
}

.pfos-guide-hud__control-copy strong,
.pfos-guide-hud__control-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pfos-guide-hud__control-copy strong {
    color: inherit;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pfos-guide-hud__control-copy small {
    margin-top: 3px;
    max-width: 95px;
    color: rgba(var(--guide-accent), .72);
    font-size: .49rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Screen-reader status */
.pfos-guide-hud__announce {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =========================================================
   MOBILE — BOTTOM CONTROL DECK
   ========================================================= */

@media (max-width: 900px) {
    .pfos-guide-hud {
        top: auto;
        right: 50%;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: auto;
        width: min(calc(100vw - 24px), 520px);
        min-height: 0;
        transform: translateX(50%);
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        align-items: center;
        gap: 8px;
        padding: 8px;
        border-radius: 22px;
        background: linear-gradient( 145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015) ), rgba(2, 8, 17, .54);
        box-shadow: 0 18px 60px rgba(0, 0, 0, .52), 0 0 35px rgba(var(--guide-accent), .10), inset 0 1px 0 rgba(255, 255, 255, .09);
        transition: border-color .25s ease, box-shadow .25s ease;
    }

        .pfos-guide-hud:hover,
        .pfos-guide-hud:focus-within,
        .pfos-guide-hud.is-expanded {
            width: min(calc(100vw - 24px), 520px);
        }

    .pfos-guide-hud__current {
        grid-column: 2;
        grid-row: 1;
        min-height: 48px;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 9px;
        padding: 6px 10px;
        border-radius: 15px;
        cursor: pointer;
    }

    .pfos-guide-hud__current::before {
        display: none;
    }

    .pfos-guide-hud__current::after {
        right: auto;
        bottom: 0;
        left: 0;
        width: var(--pfos-guide-progress, 0%);
        transform: none;
    }

    .pfos-guide-hud__compact-stack {
        width: 40px;
        display: block;
    }

    .pfos-guide-hud__orb {
        display: none;
    }

    .pfos-guide-hud__number {
        width: 40px;
        height: 34px;
        min-height: 34px;
        font-size: .52rem;
    }

    .pfos-guide-hud:hover .pfos-guide-hud__current,
    .pfos-guide-hud:focus-within .pfos-guide-hud__current,
    .pfos-guide-hud.is-expanded .pfos-guide-hud__current {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 9px;
        padding: 6px 10px;
    }

    .pfos-guide-hud:hover .pfos-guide-hud__number,
    .pfos-guide-hud:focus-within .pfos-guide-hud__number,
    .pfos-guide-hud.is-expanded .pfos-guide-hud__number {
        width: 40px;
        height: 34px;
        min-height: 34px;
        border-radius: 12px;
        font-size: .52rem;
    }

    .pfos-guide-hud:hover .pfos-guide-hud__compact-stack,
    .pfos-guide-hud:focus-within .pfos-guide-hud__compact-stack,
    .pfos-guide-hud.is-expanded .pfos-guide-hud__compact-stack {
        width: 40px;
        gap: 0;
    }

    .pfos-guide-hud__current-copy {
        display: block;
        opacity: 1;
        transform: none;
    }

    .pfos-guide-hud__eyebrow {
        margin-bottom: 3px;
        font-size: .49rem;
    }

    .pfos-guide-hud__title {
        font-size: clamp(.60rem, 2.8vw, .72rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pfos-guide-hud__description,
    .pfos-guide-hud__control-copy {
        display: none;
    }

    .pfos-guide-hud__controls {
        display: contents;
        margin: 0;
        padding: 0;
    }

    .pfos-guide-hud__control {
        width: 46px;
        height: 46px;
        border-radius: 15px;
    }

        .pfos-guide-hud__control:first-child {
            grid-column: 1;
            grid-row: 1;
        }

        .pfos-guide-hud__control:last-child {
            grid-column: 3;
            grid-row: 1;
        }

    .pfos-guide-hud__chapters {
        position: absolute;
        right: 0;
        bottom: calc(100% + 9px);
        left: 0;
        max-height: 0;
        margin: 0;
        display: grid;
        grid-template-columns: 1fr;
        padding: 0;
        border: 1px solid transparent;
        border-radius: 22px;
        background: linear-gradient( 145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .018) ), rgba(2, 8, 17, .95);
        box-shadow: 0 20px 70px rgba(0, 0, 0, .58), 0 0 32px rgba(var(--guide-accent), .08);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        opacity: 0;
        transform: translateY(14px) scale(.98);
        transform-origin: bottom center;
        overflow-y: auto;
        overscroll-behavior: auto;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__chapters {
        max-height: min(62vh, 520px);
        padding: 9px;
        border-color: rgba(var(--guide-accent), .21);
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .pfos-guide-hud__chapter {
        min-height: 46px;
        padding: 10px 12px;
        border-radius: 13px;
    }

    .pfos-guide-hud__chapter-name {
        font-size: .69rem;
    }

    .pfos-page-shell.pfos-guided-ready > .pfos-section,
    .pfos-page-shell.pfos-guided-ready > .pfos-final-cta {
        min-height: auto;
    }

    /* Keep page content clear of the fixed phone navigation. */
    .pfos-final-cta {
        padding-bottom: calc(8rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 380px) {
    .pfos-guide-hud {
        width: calc(100vw - 14px);
        bottom: max(7px, env(safe-area-inset-bottom));
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 6px;
        padding: 6px;
        border-radius: 19px;
    }

        .pfos-guide-hud:hover,
        .pfos-guide-hud:focus-within,
        .pfos-guide-hud.is-expanded {
            width: calc(100vw - 14px);
        }

    .pfos-guide-hud__control {
        width: 42px;
        height: 42px;
    }

    .pfos-guide-hud__current {
        min-height: 44px;
        padding: 5px 8px;
    }

    .pfos-guide-hud__eyebrow {
        display: none;
    }
}

/* Phone coordination: page navigation left, demo experience right. */
@media (max-width: 680px) {
    .pfos-guide-hud {
        right: auto;
        left: 12px;
        width: min(150px, calc((100vw - 36px) / 2));
        min-height: 58px;
        display: block;
        padding: 6px;
        transform: none;
        border-radius: 17px;
    }

    .pfos-guide-hud:hover,
    .pfos-guide-hud:focus-within {
        width: min(150px, calc((100vw - 36px) / 2));
    }

    .pfos-guide-hud:not(.is-expanded),
    .pfos-guide-hud:not(.is-expanded) *,
    .pfos-guide-hud:not(.is-expanded) *::before,
    .pfos-guide-hud:not(.is-expanded) *::after {
        transition: none !important;
    }

    .pfos-guide-hud.is-expanded {
        right: 12px;
        left: 12px;
        width: auto;
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        gap: 8px;
    }

    .pfos-guide-hud__current,
    .pfos-guide-hud:hover .pfos-guide-hud__current,
    .pfos-guide-hud:focus-within .pfos-guide-hud__current {
        width: 100%;
        min-height: 46px;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 7px;
        padding: 5px 7px;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__current {
        grid-column: 2;
        grid-row: 1;
    }

    .pfos-guide-hud__compact-stack,
    .pfos-guide-hud:hover .pfos-guide-hud__compact-stack,
    .pfos-guide-hud:focus-within .pfos-guide-hud__compact-stack {
        width: 36px;
    }

    .pfos-guide-hud__number,
    .pfos-guide-hud:hover .pfos-guide-hud__number,
    .pfos-guide-hud:focus-within .pfos-guide-hud__number {
        width: 36px;
        height: 34px;
        min-height: 34px;
        font-size: .48rem;
    }

    .pfos-guide-hud__eyebrow {
        display: none;
    }

    .pfos-guide-hud__title {
        font-size: clamp(.53rem, 2.45vw, .65rem);
        line-height: 1.15;
    }

    .pfos-guide-hud:not(.is-expanded):hover .pfos-guide-hud__current,
    .pfos-guide-hud:not(.is-expanded):focus-within .pfos-guide-hud__current {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 7px;
        padding: 5px 7px;
        transform: none;
    }

    .pfos-guide-hud:not(.is-expanded):hover .pfos-guide-hud__current-copy,
    .pfos-guide-hud:not(.is-expanded):focus-within .pfos-guide-hud__current-copy {
        opacity: 1;
        transform: none;
    }

    .pfos-guide-hud:not(.is-expanded):hover .pfos-guide-hud__title,
    .pfos-guide-hud:not(.is-expanded):focus-within .pfos-guide-hud__title {
        font-size: clamp(.53rem, 2.45vw, .65rem);
        line-height: 1.15;
        transform: none;
    }

    .pfos-guide-hud__controls {
        display: none;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__controls {
        display: contents;
    }

    .pfos-guide-hud__chapters {
        position: fixed;
        right: 12px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        left: 12px;
        width: auto;
        max-height: 0;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__chapters {
        max-height: min(68dvh, 560px);
    }

    .pfos-guide-hud:not(.is-expanded):hover .pfos-guide-hud__chapters,
    .pfos-guide-hud:not(.is-expanded):focus-within .pfos-guide-hud__chapters {
        max-height: 0;
        padding: 0;
        border-color: transparent;
        opacity: 0;
        transform: translateY(14px) scale(.98);
        pointer-events: none;
    }

    /* Mobile chapter identity: use the same O.S visual language as the
       Experience Guide while keeping this control dedicated to the page. */
    .pfos-guide-hud:not(.is-expanded) {
        width: min(220px, calc((100vw - 36px) / 2));
        height: 58px;
        min-height: 58px;
        max-height: 58px;
        padding: 6px;
        border-radius: 17px;
    }

    .pfos-guide-hud:not(.is-expanded):hover,
    .pfos-guide-hud:not(.is-expanded):focus-within {
        width: min(220px, calc((100vw - 36px) / 2));
    }

    .pfos-guide-hud:not(.is-expanded) .pfos-guide-hud__current,
    .pfos-guide-hud:not(.is-expanded):hover .pfos-guide-hud__current,
    .pfos-guide-hud:not(.is-expanded):focus-within .pfos-guide-hud__current {
        height: 46px;
        min-height: 46px;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 7px;
        padding: 5px 7px;
        border-radius: 13px;
    }

    .pfos-guide-hud:not(.is-expanded) .pfos-guide-hud__compact-stack,
    .pfos-guide-hud:not(.is-expanded):hover .pfos-guide-hud__compact-stack,
    .pfos-guide-hud:not(.is-expanded):focus-within .pfos-guide-hud__compact-stack {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        gap: 0;
    }

    .pfos-guide-hud:not(.is-expanded) .pfos-guide-hud__orb {
        width: 36px;
        height: 36px;
        display: grid;
    }

    .pfos-guide-hud:not(.is-expanded) .pfos-guide-hud__number {
        position: absolute;
        top: 4px;
        right: 5px;
        width: 38px;
        height: 16px;
        min-height: 16px;
        border-radius: 6px;
        font-size: .39rem;
    }

    .pfos-guide-hud:not(.is-expanded) .pfos-guide-hud__current-copy {
        padding-right: 35px;
        align-self: center;
    }

    .pfos-guide-hud:not(.is-expanded) .pfos-guide-hud__eyebrow {
        display: block;
        margin-bottom: 3px;
        font-size: clamp(.35rem, 1.55vw, .43rem);
        letter-spacing: .15em;
    }

    .pfos-guide-hud:not(.is-expanded) .pfos-guide-hud__title {
        font-size: clamp(.54rem, 2.45vw, .66rem);
        line-height: 1.1;
    }

    /* Expanded mobile guide becomes one connected sheet: identity header,
       chapter list, then navigation controls. */
    .pfos-guide-hud.is-expanded {
        top: auto;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        width: auto;
        height: min(86dvh, 720px);
        min-height: 440px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        overflow: hidden;
        border-radius: 24px;
        background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.015)), rgba(2,8,17,.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__current {
        order: 1;
        width: 100%;
        min-height: 76px;
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
        padding: 13px 14px;
        border-radius: 18px;
        flex: 0 0 auto;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__compact-stack {
        width: 58px;
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 7px;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__orb {
        width: 48px;
        height: 48px;
        display: grid;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__number {
        width: 54px;
        height: 24px;
        min-height: 24px;
        border-radius: 8px;
        font-size: .49rem;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__eyebrow {
        display: block;
        margin-bottom: 6px;
        font-size: .52rem;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__title {
        font-size: clamp(.92rem, 4.6vw, 1.16rem);
        white-space: normal;
        overflow: visible;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__description {
        display: block;
        margin-top: 6px;
        font-size: .67rem;
        line-height: 1.35;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__chapters {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        max-height: none;
        min-height: 0;
        margin: 0;
        padding: 7px;
        flex: 1 1 auto;
        overflow-y: auto;
        border-radius: 18px;
        transform: none;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__controls {
        order: 3;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        flex: 0 0 auto;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control {
        position: relative;
        width: 100%;
        height: 58px;
        display: flex;
        gap: 8px;
        padding: 7px 10px;
        border-radius: 16px;
        overflow: hidden;
        isolation: isolate;
        border-color: rgba(var(--guide-accent), .23);
        background:
            linear-gradient(135deg, rgba(var(--guide-accent), .12), rgba(255,255,255,.025) 58%, rgba(2,8,17,.2)),
            rgba(7, 18, 31, .82);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.08),
            inset 0 -1px 0 rgba(var(--guide-accent),.06),
            0 10px 24px rgba(0,0,0,.22);
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: linear-gradient(110deg, transparent 8%, rgba(255,255,255,.08) 48%, transparent 72%);
        opacity: .42;
        transform: translateX(-72%);
        transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .25s ease;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control:hover:not(:disabled)::before,
    .pfos-guide-hud.is-expanded .pfos-guide-hud__control:focus-visible:not(:disabled)::before {
        opacity: .78;
        transform: translateX(72%);
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control:last-child {
        border-color: rgba(var(--guide-accent), .36);
        background:
            linear-gradient(135deg, rgba(var(--guide-accent), .19), rgba(255,255,255,.035) 60%, rgba(2,8,17,.18)),
            rgba(7, 18, 31, .9);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.1),
            0 0 22px rgba(var(--guide-accent),.08),
            0 10px 24px rgba(0,0,0,.24);
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control-icon {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        border: 1px solid rgba(var(--guide-accent), .28);
        border-radius: 10px;
        color: rgba(222,248,255,.9);
        background: rgba(var(--guide-accent), .08);
        box-shadow: inset 0 0 12px rgba(var(--guide-accent),.05);
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control:active:not(:disabled) {
        transform: scale(.985);
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control:disabled {
        opacity: .30;
        filter: saturate(.6);
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control-copy {
        min-width: 0;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control-copy.is-changing {
        animation: pfosMobileControlCopyIn .32s cubic-bezier(.16,1,.3,1) both;
    }

    .pfos-guide-hud.is-expanded .pfos-guide-hud__control-copy {
        display: grid;
        text-align: left;
    }

    @keyframes pfosMobileControlCopyIn {
        from {
            opacity: 0;
            transform: translateY(5px);
            filter: blur(2px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .pfos-guide-hud,
    .pfos-guide-hud *,
    .pfos-guide-hud *::before,
    .pfos-guide-hud *::after {
        transition: none !important;
    }
}

/* Keep the P mark clear while the surrounding spokes rotate. */
.pfos-guide-hud__orb > img { position: relative; z-index: 2; display: block; width: 58%; height: 58%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 0 4px rgba(0,238,255,.65)); }
.pfos-guide-hud__orb::after { background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.85) 0deg 1deg, transparent 2deg 10deg); -webkit-mask: radial-gradient(circle, transparent 58%, #000 62%); mask: radial-gradient(circle, transparent 58%, #000 62%); filter: blur(.5px); }

/* Keep the original vertical guide, with the counter in a matching orb. */
.pfos-guide-hud .pfos-guide-hud__number.pfos-guide-hud__orb {
    position:relative;
    isolation:isolate;
    width:36px;
    height:36px;
    min-height:36px;
    border-radius:50%;
    display:grid;
    place-items:center;
    border:1px solid rgba(var(--guide-accent),.76);
    background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.35),rgba(var(--guide-accent),.18) 60%,rgba(0,120,255,.08));
    box-shadow:0 0 8px rgba(var(--guide-accent),.8),0 0 17px rgba(var(--guide-accent),.38),inset 0 0 11px rgba(255,255,255,.14);
}
.pfos-guide-hud .pfos-guide-hud__number>span {padding:0;font-size:.52rem;white-space:nowrap;letter-spacing:0}
.pfos-guide-hud:is(:hover,:focus-within,.is-expanded) .pfos-guide-hud__number.pfos-guide-hud__orb {width:48px;height:48px;min-height:48px}

/* Home mobile compact identity: P orb and section counter side by side. */
@media(max-width:900px){
 .pfos-guide-hud:not(.demo-guide):not(.is-expanded){width:126px;min-height:0;padding:8px;border-radius:24px;display:block}
 .pfos-guide-hud:not(.demo-guide):not(.is-expanded) .pfos-guide-hud__current{display:flex;align-items:center;justify-content:center;min-height:40px;padding:0;border:0;background:transparent;overflow:visible}
 .pfos-guide-hud:not(.demo-guide):not(.is-expanded) .pfos-guide-hud__compact-stack{display:flex;flex-direction:row;align-items:center;justify-content:center;width:auto;gap:16px}
 .pfos-guide-hud:not(.demo-guide):not(.is-expanded) .pfos-guide-hud__orb,
 .pfos-guide-hud:not(.demo-guide):not(.is-expanded) .pfos-guide-hud__number.pfos-guide-hud__orb{width:36px;height:36px;min-height:36px;flex:0 0 36px;margin:0}
 .pfos-guide-hud:not(.demo-guide):not(.is-expanded) .pfos-guide-hud__current-copy,
 .pfos-guide-hud:not(.demo-guide):not(.is-expanded) .pfos-guide-hud__controls,
 .pfos-guide-hud:not(.demo-guide):not(.is-expanded) .pfos-guide-hud__current::before,
 .pfos-guide-hud:not(.demo-guide):not(.is-expanded) .pfos-guide-hud__current::after{display:none}
}
