/* ──────────────────────────────────────────────────────────────
   Sapience Learning — Hero · "Any Moment"
   A scrubber sweeps through a working day and the sky follows the clock.
   Every moment has a 20-minute episode ready to play.

   Themes: reads the site's [data-theme] tokens.
   • light — daylight (warm dawn → dusk gradient)
   • dark  — night sky (stars, deep indigo, glowing sun)
   ────────────────────────────────────────────────────────────── */

.hx {
    /* palette — dark is the default, [data-theme="light"] overrides below */
    --hx-bg-top: #0d0816;
    --hx-bg-mid: #090811;
    --hx-bg-bot: #070b1a;
    --hx-ink: #f3f1f7;
    --hx-ink-2: rgba(243, 241, 247, 0.78);
    --hx-ink-3: rgba(243, 241, 247, 0.62);
    --hx-line: rgba(243, 241, 247, 0.12);
    --hx-line-2: rgba(243, 241, 247, 0.2);
    --hx-paper: rgba(255, 255, 255, 0.045);
    --hx-chip: rgba(255, 255, 255, 0.06);
    --hx-tile: rgba(255, 255, 255, 0.055);
    --hx-field: rgba(255, 255, 255, 0.08);
    --hx-card: rgba(22, 17, 36, 0.82);
    --hx-shadow: rgba(0, 0, 0, 0.55);
    --hx-scrub: #f3f1f7;
    --hx-scrub-ink: #0a0912;
    --hx-sun-alpha: 0.5;
    --hx-sun-alpha-2: 0.3;
    --hx-haze-l: rgba(155, 47, 173, 0.34);
    --hx-haze-r: rgba(45, 125, 210, 0.3);
    --hx-stars: 1;
    --hx-grain: 0;

    --hx-pink: #e91e8c;
    --hx-violet: #9b2fad;
    --hx-blue: #2d7dd2;
    --hx-accent: #ff4fae;
    --hx-grad: linear-gradient(95deg, #e91e8c 0%, #9b2fad 52%, #2d7dd2 100%);
    --hx-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --hx-track-h: 152px;

    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: calc(100svh - var(--strip-h, 0px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(40px, 7vh, 84px);
    padding: 112px max(clamp(20px, 4vw, 56px), calc((100vw - 1320px) / 2)) 48px;
    overflow: hidden;
    color: var(--hx-ink);
    background: linear-gradient(180deg, var(--hx-bg-top) 0%, var(--hx-bg-mid) 52%, var(--hx-bg-bot) 100%);
    transition: background-color 0.5s, color 0.4s;
}

[data-theme="light"] .hx {
    --hx-bg-top: #fdf0f4;
    --hx-bg-mid: #f7f1fb;
    --hx-bg-bot: #e9f1fc;
    --hx-ink: #16131e;
    --hx-ink-2: rgba(22, 19, 30, 0.76);
    --hx-ink-3: rgba(22, 19, 30, 0.64);
    --hx-line: rgba(22, 19, 30, 0.1);
    --hx-line-2: rgba(22, 19, 30, 0.17);
    --hx-paper: rgba(255, 255, 255, 0.72);
    --hx-chip: rgba(255, 255, 255, 0.62);
    --hx-tile: rgba(255, 255, 255, 0.92);
    --hx-field: rgba(255, 255, 255, 0.94);
    --hx-card: rgba(255, 255, 255, 0.9);
    --hx-shadow: rgba(60, 20, 90, 0.4);
    --hx-scrub: #16131e;
    --hx-scrub-ink: #ffffff;
    --hx-sun-alpha: 0.72;
    --hx-sun-alpha-2: 0.24;
    --hx-haze-l: rgba(155, 47, 173, 0.2);
    --hx-haze-r: rgba(45, 125, 210, 0.26);
    --hx-stars: 0;
    --hx-accent: #c4146f;
}

.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx ol, .hx ul { list-style: none; margin: 0; padding: 0; }
.hx button { font: inherit; color: inherit; }
.hx a { color: inherit; text-decoration: none; }
.hx :focus-visible { outline: 2px solid var(--hx-violet); outline-offset: 3px; border-radius: 6px; }
[data-theme="dark"] .hx :focus-visible, :root:not([data-theme="light"]) .hx :focus-visible { outline-color: #ff7cc6; }
.hx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Entrance (CSS-only: the from-state is the first painted frame) ── */
.hx [data-enter] {
    animation: hx-rise 0.95s var(--hx-ease) both;
    animation-delay: calc(var(--d, 0) * 1ms);
}
@keyframes hx-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hx .hx-line__in { animation: hx-line 1.15s var(--hx-ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes hx-line { from { transform: translateY(108%); } to { transform: none; } }

/* ── Sky ───────────────────────────────────────────────────── */
.hx-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hx-sun {
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(var(--sun-a, 255, 176, 140), var(--hx-sun-alpha)) 0%,
        rgba(var(--sun-b, 233, 30, 140), var(--hx-sun-alpha-2)) 38%,
        rgba(var(--sun-b, 233, 30, 140), 0) 68%);
    transform: translate3d(-170px, -150px, 0);
    will-change: transform;
}
.hx-haze { position: absolute; border-radius: 50%; filter: blur(90px); }
.hx-haze--l { width: 38vw; height: 38vw; left: -14vw; bottom: -18vw; background: var(--hx-haze-l); }
.hx-haze--r { width: 40vw; height: 40vw; right: -14vw; bottom: -16vw; background: var(--hx-haze-r); }

/* stars: night theme only */
.hx-stars { position: absolute; inset: 0; opacity: var(--hx-stars); transition: opacity 0.6s; }
.hx-stars i {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.7;
    animation: hx-twinkle var(--t, 4s) ease-in-out infinite alternate;
    animation-delay: var(--dl, 0s);
}
@keyframes hx-twinkle { from { opacity: 0.12; transform: scale(0.8); } to { opacity: 0.9; transform: scale(1.25); } }

/* ── Intro row ─────────────────────────────────────────────── */
.hx-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: end;
}
.hx-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 26px; }
.hx-eyebrow, .hx-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--hx-line);
    border-radius: 999px;
    background: var(--hx-chip);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hx-ink-2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.hx-eyebrow__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hx-pink);
    box-shadow: 0 0 0 4px rgba(233, 30, 140, 0.2);
    animation: hx-pulse 2.4s ease-in-out infinite;
}
@keyframes hx-pulse { 50% { box-shadow: 0 0 0 7px rgba(233, 30, 140, 0); } }
.hx-pill { transition: border-color 0.3s, transform 0.35s var(--hx-ease), background 0.3s; }
.hx-pill:hover { border-color: var(--hx-line-2); transform: translateY(-1px); }
.hx-pill b { font-weight: 500; color: var(--hx-accent); }
.hx-pill svg { width: 13px; height: 13px; transition: transform 0.35s var(--hx-ease); }
.hx-pill:hover svg { transform: translateX(3px); }

.hx-display {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 6vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: -0.028em;
    color: var(--hx-ink);
}
.hx-line { display: block; overflow: hidden; padding: 0.04em 0 0.16em; margin-bottom: -0.12em; }
.hx-line__in { display: inline-block; }
.hx-display em {
    font-style: italic;
    padding-right: 0.08em;
    background: var(--hx-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hx-side { padding-bottom: 8px; }
.hx-lede {
    margin: 0 0 22px;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.6;
    color: var(--hx-ink-2);
}
.hx-lede strong { font-weight: 600; color: var(--hx-ink); }

/* ── Lead form + sample ────────────────────────────────────── */
.hx-lead {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--hx-line-2);
    border-radius: 999px;
    background: var(--hx-field);
    box-shadow: 0 22px 44px -24px var(--hx-shadow), 0 0 0 5px rgba(255, 255, 255, 0.04);
    transition: box-shadow 0.3s, border-color 0.3s;
}
.hx-lead:focus-within { border-color: var(--hx-violet); box-shadow: 0 22px 44px -24px rgba(155, 47, 173, 0.6), 0 0 0 5px rgba(155, 47, 173, 0.18); }
.hx-lead input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 8px 0 20px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: var(--hx-ink);
}
.hx-lead input::placeholder { color: var(--hx-ink-3); }
.hx-lead .hx-btn { flex: none; padding: 14px 22px; }
.hx-lead.is-nudge { animation: hx-nudge 0.55s var(--hx-ease); }
.hx-lead.is-done .hx-btn { background: #1f9d6b; box-shadow: none; pointer-events: none; }
@keyframes hx-nudge { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
.hx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.97rem;
    line-height: 1;
    color: #fff;
    background: var(--hx-grad);
    box-shadow: 0 14px 34px -12px rgba(155, 47, 173, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: transform 0.35s var(--hx-ease), box-shadow 0.35s var(--hx-ease);
}
.hx-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(155, 47, 173, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.32); }
.hx-btn:active { transform: none; }
.hx-btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.hx-btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--hx-ease); }
.hx-btn:hover svg { transform: translateX(3px); }

.hx-msg {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--hx-ink-2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--hx-ease), opacity 0.3s, margin 0.4s var(--hx-ease);
}
.hx-msg.is-on { max-height: 4.4em; opacity: 1; margin-top: 10px; }
.hx-msg.is-err { color: #ff6b8e; }
[data-theme="light"] .hx-msg.is-err { color: #c0204b; }

.hx-under { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.hx-sample {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 600;
    font-size: 0.94rem;
    cursor: pointer;
    color: var(--hx-ink);
}
.hx-sample:hover .hx-sample__dot { transform: scale(1.08); }
.hx-sample:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--hx-line-2); }
.hx-sample__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--hx-line-2);
    border-radius: 50%;
    background: var(--hx-chip);
    color: var(--hx-accent);
    transition: transform 0.35s var(--hx-ease), background 0.3s, color 0.3s;
}
.hx-sample__dot svg { position: absolute; width: 16px; height: 16px; }
.hx-sample__dot .hx-ic-play { margin-left: 1px; }
.hx-sample.is-playing .hx-sample__dot { background: var(--hx-grad); color: #fff; border-color: transparent; }

.hx-ic-pause { display: none; }
.is-playing .hx-ic-play { display: none; }
.is-playing .hx-ic-pause { display: block; }

.hx-ticks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hx-ink-3);
}
.hx-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.hx-ticks li::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--hx-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Day ribbon ────────────────────────────────────────────── */
.hx-day { position: relative; margin: 0; padding-top: 88px; }

.hx-card {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 24px 12px;
    border: 1px solid var(--hx-line);
    border-radius: 20px;
    background: var(--hx-card);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 24px 50px -22px var(--hx-shadow), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transform: translateX(var(--cx, 0px));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--hx-ease), transform 0.7s var(--hx-ease), visibility 0s 0.35s;
    white-space: nowrap;
}
.hx-card.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.hx-card.is-swap .hx-card__text, .hx-card.is-swap .hx-card__len { animation: hx-swap 0.5s var(--hx-ease) both; }
.hx-card::after {
    content: '';
    position: absolute;
    left: var(--ax, 50%);
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: inherit;
    border-right: 1px solid var(--hx-line);
    border-bottom: 1px solid var(--hx-line);
    border-radius: 0 0 4px 0;
    transform: translateX(-50%) rotate(45deg);
}
.hx-card__btn {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--hx-grad);
    color: #fff;
    cursor: pointer;
    transition: transform 0.35s var(--hx-ease);
    box-shadow: 0 10px 20px -10px rgba(155, 47, 173, 0.8);
}
.hx-card__btn:hover { transform: scale(1.06); }
.hx-card__btn .hx-ic-play { width: 20px; height: 20px; margin-left: 2px; }
.hx-card__eq { display: none; align-items: center; justify-content: center; gap: 3px; height: 100%; }
.hx-card__eq i { width: 3px; border-radius: 2px; background: #fff; animation: hx-card-bar 0.9s ease-in-out infinite alternate; }
.hx-card__eq i:nth-child(1) { height: 12px; animation-delay: -0.1s; }
.hx-card__eq i:nth-child(2) { height: 22px; animation-delay: -0.4s; }
.hx-card__eq i:nth-child(3) { height: 28px; animation-delay: -0.2s; }
.hx-card__eq i:nth-child(4) { height: 18px; animation-delay: -0.6s; }
.hx-card__eq i:nth-child(5) { height: 10px; animation-delay: -0.3s; }
.hx-card.is-playing .hx-card__btn .hx-ic-play { display: none; }
.hx-card.is-playing .hx-card__eq { display: flex; }
@keyframes hx-card-bar { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
.hx-card__bar {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 11px;
    height: 4px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--hx-line);
    opacity: 0;
    transition: opacity 0.3s;
}
.hx-card__bar i { display: block; height: 100%; background: var(--hx-grad); transform: scaleX(0); transform-origin: left; }
.hx-card.is-playing .hx-card__bar { opacity: 1; }
@keyframes hx-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hx-card__text { display: flex; flex-direction: column; line-height: 1.2; }
.hx-card__text small { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hx-ink-3); }
.hx-card__text strong { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--hx-ink); }
.hx-card__text span { font-size: 0.84rem; color: var(--hx-ink-2); }
.hx-card__len {
    margin-left: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--hx-line-2);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--hx-ink-2);
    font-variant-numeric: tabular-nums;
}

.hx-track {
    position: relative;
    display: flex;
    gap: 6px;
    height: var(--hx-track-h);
    padding: 8px;
    border: 1px solid var(--hx-line);
    border-radius: 30px;
    background: var(--hx-paper);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px -40px var(--hx-shadow);
}
.hx-seg {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    padding: 16px 16px 0;
    border: 1px solid var(--hx-line-2);
    border-radius: 22px;
    overflow: hidden;
    background: var(--hx-tile);
    color: var(--hx-ink);
    cursor: pointer;
    transition: color 0.4s, box-shadow 0.5s var(--hx-ease), transform 0.5s var(--hx-ease);
}
.hx-seg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hx-grad);
    background-size: 360% 100%;
    background-position: var(--bgp, 0%) 0;
    opacity: 0;
    transition: opacity 0.5s var(--hx-ease);
}
.hx-seg > * { position: relative; }
.hx-seg.is-live { color: #fff; border-color: transparent; box-shadow: 0 22px 44px -18px rgba(155, 47, 173, 0.65); }
.hx-seg.is-live::before { opacity: 1; }
.hx-seg:hover:not(.is-live) { transform: translateY(-2px); }

.hx-seg__time { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--hx-ink-3); transition: color 0.4s; }
.hx-seg__name {
    max-width: calc(100% - 30px);
    margin-top: 3px;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.7vw, 1.55rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}
.is-live .hx-seg__time { color: rgba(255, 255, 255, 0.85); }
.hx-seg__ep { display: none; }
.hx-seg__play {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    background: var(--hx-grad);
    box-shadow: 0 6px 14px -6px rgba(155, 47, 173, 0.7);
    transition: background-color 0.4s, color 0.4s, transform 0.4s var(--hx-ease), box-shadow 0.4s;
}
.hx-seg__play svg { position: absolute; width: 16px; height: 16px; }
.hx-seg__play .hx-ic-play { margin-left: 1px; }
.hx-seg.is-live .hx-seg__play { color: var(--hx-violet); background: #fff; box-shadow: none; }
.hx-seg:hover:not(.is-live) .hx-seg__play { transform: scale(1.12); }
.hx-seg[data-sample] .hx-seg__time::after { content: ' · sample'; color: var(--hx-accent); }
.hx-seg.is-live[data-sample] .hx-seg__time::after { color: rgba(255, 255, 255, 0.92); }

.hx-seg__hit {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: none;
    cursor: pointer;
}
.hx-seg__hit:focus-visible { outline: 2px solid var(--hx-violet); outline-offset: -3px; }
.hx-seg__bar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}
.hx-seg__bar i { display: block; height: 100%; border-radius: 3px; background: #fff; transform: scaleX(var(--prog, 0)); transform-origin: left; }
.hx-seg.is-playing .hx-seg__bar { opacity: 1; }

.hx-seg__wave { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 32px; display: flex; align-items: flex-end; gap: 3px; }
.hx-seg__wave i {
    flex: 1 1 0;
    max-width: 5px;
    height: var(--h);
    border-radius: 3px;
    background: var(--c);
    transform-origin: bottom;
    opacity: 0.55;
    transition: background-color 0.4s, opacity 0.4s;
}
.is-live .hx-seg__wave i {
    background: #fff;
    opacity: 0.95;
    animation: hx-bar var(--d, 0.9s) ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * -0.11s);
}
@keyframes hx-bar { from { transform: scaleY(0.28); } to { transform: scaleY(1); } }

/* ── Scrubber ──────────────────────────────────────────────── */
.hx-scrubber {
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 2;
    width: 0;
    height: calc(var(--hx-track-h) + 28px);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    will-change: transform;
}
.hx.is-ready .hx-scrubber { opacity: 1; }
.hx-scrubber__line {
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 2px;
    background: var(--hx-scrub);
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 12px, rgba(0, 0, 0, 0.2) 16px, rgba(0, 0, 0, 0.2) calc(var(--hx-track-h) + 4px), #000 calc(var(--hx-track-h) + 12px));
    mask-image: linear-gradient(to bottom, #000 0, #000 12px, rgba(0, 0, 0, 0.2) 16px, rgba(0, 0, 0, 0.2) calc(var(--hx-track-h) + 4px), #000 calc(var(--hx-track-h) + 12px));
}
.hx-scrubber__line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--hx-scrub-ink);
    border: 2px solid var(--hx-scrub);
    transform: translateX(-50%);
}
.hx-scrubber__clock {
    position: absolute;
    left: 0;
    top: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 12px;
    background: var(--hx-scrub);
    color: var(--hx-scrub-ink);
    transform: translateX(-50%);
    line-height: 1.15;
    white-space: nowrap;
}
.hx-scrubber__clock b { font-family: var(--font-mono); font-weight: 500; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.hx-scrubber__clock small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }

/* ── Plug in. Press play. ──────────────────────────────────── */
.hx-plug {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 52px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--hx-line);
}
.hx-plug__title { flex: none; margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.01em; white-space: nowrap; color: var(--hx-ink); }
.hx-plug__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 44px); flex: 1 1 auto; max-width: 940px; }
.hx-plug__steps li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; line-height: 1.3; color: var(--hx-ink-2); }
.hx-plug__steps b { display: block; font-weight: 600; font-size: 0.98rem; color: var(--hx-ink); }
.hx-plug__n {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--hx-line-2);
    border-radius: 50%;
    background: var(--hx-chip);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--hx-ink);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1020px) {
    .hx-intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .hx-display { font-size: clamp(2.7rem, 8.6vw, 5rem); }
    .hx-side { max-width: 560px; }
    .hx-seg__name { font-size: 1.05rem; }
    .hx-plug { flex-direction: column; align-items: flex-start; gap: 16px; }
    .hx-plug__steps { width: 100%; max-width: none; }
}
@media (min-width: 761px) and (max-width: 1240px) {
    .hx-seg[data-sample] .hx-seg__time::after { content: none; }
}
@media (max-width: 760px) {
    .hx { --hx-track-h: auto; justify-content: flex-start; gap: 36px; padding-top: 96px; }
    .hx-display { font-size: clamp(2.5rem, 11.4vw, 3.6rem); }
    .hx-lead { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 26px; }
    .hx-lead input { padding: 14px 14px 10px; }
    .hx-lead .hx-btn { width: 100%; }
    .hx-sun { width: 520px; height: 520px; }
    .hx-day { padding-top: 0; }
    .hx-card, .hx-scrubber { display: none; }
    .hx-track { flex-direction: column; gap: 8px; padding: 8px; border-radius: 26px; height: auto; }
    .hx-seg { flex: none; min-height: 118px; padding: 14px 16px 52px; justify-content: flex-start; }
    .hx-seg--m-hide { display: none; }
    .hx-seg__name { font-size: 1.4rem; }
    .hx-seg__ep { display: block; margin-top: 6px; font-size: 0.86rem; line-height: 1.3; opacity: 0.9; }
    .hx-seg__ep b { display: block; font-weight: 600; font-size: 0.95rem; }
    .hx-seg__wave { height: 26px; bottom: 14px; }
    .hx-seg__play { top: 16px; }
    .hx-plug { margin-top: 28px; }
    .hx-plug__steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .hx [data-enter], .hx .hx-line__in { animation: none; }
    .hx-stars i, .hx-eyebrow__dot { animation: none; }
}

/* ── Seeking ───────────────────────────────────────────────── */
.hx-seek {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    z-index: 4;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    touch-action: none;
}
.hx-card.is-playing .hx-card__seek, .hx-seg.is-playing .hx-seg__seek { opacity: 1; pointer-events: auto; }
.hx-card__seek { left: 11px; width: calc(100% - 22px); bottom: 2px; height: 24px; }
.hx-seg__seek { left: 7px; width: calc(100% - 14px); bottom: 0; height: 28px; }
.hx-seek::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.hx-seek::-moz-range-track { height: 100%; background: transparent; }
.hx-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: 5px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    transition: transform 0.2s var(--hx-ease), background 0.2s;
}
.hx-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: transparent; }
.hx-card__seek::-webkit-slider-thumb { margin-top: 5px; }
.hx-seg__seek::-webkit-slider-thumb { margin-top: 7px; }
.hx-card:hover .hx-seek::-webkit-slider-thumb,
.hx-seg.is-playing:hover .hx-seek::-webkit-slider-thumb,
.hx-seek:focus-visible::-webkit-slider-thumb,
.hx-seek:active::-webkit-slider-thumb {
    background: #fff;
    box-shadow: 0 0 0 2.5px #c4146f, 0 3px 8px rgba(0, 0, 0, 0.45);
    transform: scale(1.1);
}
.hx-card:hover .hx-seek::-moz-range-thumb, .hx-seek:focus-visible::-moz-range-thumb { background: #fff; box-shadow: 0 0 0 2.5px #c4146f; }
.hx-seek:focus-visible { outline: none; }
.hx-seg.is-playing .hx-seg__bar { height: 4px; }
@media (hover: none) {
    /* touch: keep the thumb visible so there is something to grab */
    .hx-seg.is-playing .hx-seek::-webkit-slider-thumb { background: #fff; box-shadow: 0 0 0 2.5px #c4146f, 0 3px 8px rgba(0, 0, 0, 0.4); }
}

.hx-card__skip { display: none; gap: 6px; margin-left: 2px; }
.hx-card.is-playing .hx-card__skip { display: inline-flex; }
.hx-card__skip button {
    min-width: 40px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid var(--hx-line-2);
    border-radius: 999px;
    background: transparent;
    color: var(--hx-ink-2);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--hx-ease);
}
.hx-card__skip button:hover { background: var(--hx-chip); color: var(--hx-ink); border-color: var(--hx-accent); transform: translateY(-1px); }

/* The pill already shows the focus ring (:focus-within). The input must not draw a second box inside it. */
.hx-lead input:focus, .hx-lead input:focus-visible { outline: none; box-shadow: none; border-radius: 0; }
/* browser autofill paints its own tinted box over the field — keep it transparent and readable */
.hx-lead input:-webkit-autofill, .hx-lead input:-webkit-autofill:hover, .hx-lead input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--hx-ink);
    caret-color: var(--hx-ink);
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-out 0s;
}
.hx-lead input { -webkit-appearance: none; appearance: none; }
