/* Home features as a level track. Motion is transform/opacity only. */
body.v2 .lt { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.lt-copy .v2-title { margin-bottom: 12px; }

/* ── The wheel: items ride a curved line and fade towards its ends ── */
.lt-wheel-wrap { position: relative; margin-top: 26px; }
.lt-arc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.lt-arc path { fill: none; stroke: rgba(var(--aura-teal-rgb), .45); stroke-width: 1.5; }
.lt-track { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.lt-level { position: relative; padding-left: 60px; padding-right: var(--lt-bend, 0px); }   /* room for the curve */
.lt-node {
    position: absolute; z-index: 1; left: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px;
    display: grid; place-items: center; border-radius: 50%; background: #0d0b11; color: var(--aura-teal);
    border: 2px solid var(--aura-teal-600); font: 800 1rem 'Outfit', sans-serif;
    transition: border-color .3s ease, color .3s ease;
}
.lt-node b, .lt-node i { transition: transform .25s ease; }
.lt-node i {
    position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; margin-left: -9px; display: grid; place-items: center;
    border-radius: 50%; font-size: .55rem; background: #17131c; color: #8a8191; border: 1px solid rgba(var(--aura-mint-rgb), .18);
    transform: scale(0);
}
.lt-level.is-locked .lt-node { color: #6f6678; border-color: rgba(var(--aura-mint-rgb), .18); }
.lt-level.is-locked .lt-node i { transform: scale(1); }
.lt-level.is-unlocking .lt-node b { display: inline-block; animation: lt-pop .55s cubic-bezier(.175, .885, .32, 1.5); }
.lt-level-name { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aura-dim); }
.lt-items { display: grid; gap: 8px; }
.lt-item {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 320px; min-height: 50px;
    padding: 7px 14px 7px 10px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; text-align: left;
    font: 600 .98rem 'Onest', system-ui, sans-serif; color: var(--aura-ink);
    background: linear-gradient(90deg, rgba(var(--aura-mint-rgb), .08), rgba(var(--aura-mint-rgb), .015));
    transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}
.lt-item.is-locked { color: #7a7282; }
.lt-item.is-active {
    border-color: rgba(var(--aura-teal-rgb), .65);
    background: linear-gradient(90deg, rgba(var(--aura-teal-rgb), .26), rgba(var(--aura-teal-rgb), .04));
}
.lt-item.is-active::after {   /* a light sweep across the chosen row */
    content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); animation: lt-sweep 1.1s ease-out;
}
.lt-new { margin-left: auto; padding: 2px 7px; border-radius: 4px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #241a00; background: #facc15; }
.lt-item:focus-visible, .lt-arrow:focus-visible { outline: 2px solid var(--aura-teal); outline-offset: 2px; }

/* wheel mode: the list scrolls inside a window and snaps an item to the middle */
.lt.is-live .lt-wheel {
    height: 440px; overflow-y: auto; scroll-snap-type: y proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}
.lt.is-live .lt-wheel::-webkit-scrollbar { display: none; }
.lt.is-live .lt-track { padding: 195px 0; }
.lt.is-live .lt-item { scroll-snap-align: center; }
.lt:not(.is-live) .lt-arc { display: none; }

.lt-diamond {
    position: relative; flex-shrink: 0; width: 28px; height: 28px; margin: 0 3px; display: grid; place-items: center; color: #fff; font-size: .74rem;
}
.lt-diamond::before {
    content: ''; position: absolute; inset: 2px; border-radius: 6px; transform: rotate(45deg);
    background: linear-gradient(135deg, var(--aura-teal), var(--aura-teal-700)); border: 1px solid rgba(255, 255, 255, .35);
}
.lt-diamond i { position: relative; }
.is-locked .lt-diamond { color: #8a8191; }
.is-locked .lt-diamond::before { background: #1b1721; border-color: rgba(var(--aura-mint-rgb), .18); }
.lt-item.is-unlocking .lt-diamond { animation: lt-flip .6s cubic-bezier(.175, .885, .32, 1.4); }

/* ── The stage ── */
.lt-stage { position: relative; min-width: 0; touch-action: pan-y; }
body.v2 .lt-mascot { height: 390px; }
body.v2 .lt-mascot .why2-wumpus { width: min(400px, 90%); }
.lt-ring {
    position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
    border: 1px dashed rgba(var(--aura-teal-rgb), .28); animation: lt-spin 26s linear infinite;
}
.lt-ring::before, .lt-ring::after { content: ''; position: absolute; width: 10px; height: 10px; background: var(--aura-teal); transform: rotate(45deg); }
.lt-ring::before { left: 50%; top: -5px; margin-left: -5px; }
.lt-ring::after { left: 12%; bottom: 13%; width: 7px; height: 7px; opacity: .7; }
.lt-stage.is-swapping .why2-glow { animation: lt-flash .5s ease-out; }

.lt-cards { display: grid; gap: 10px; }
.lt-card {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border-radius: 16px;
    background: rgba(var(--aura-panel-rgb), .86); border: 1px solid rgba(var(--aura-teal-rgb), .22);
}
.lt-diamond--big { width: 48px; height: 48px; margin: 4px; font-size: 1.15rem; }
.lt-diamond--big::before { inset: 4px; border-radius: 10px; }
.lt-card-tag { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aura-teal); }
.lt-card h3 { margin: 4px 0 6px; font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 750; color: var(--aura-ink); }
.lt-card p { margin: 0; line-height: 1.6; color: var(--aura-muted); }

/* slider mode: the cards share one cell and swap */
.lt.is-live .lt-cards { grid-template-areas: 'card'; gap: 0; }
.lt.is-live .lt-card { grid-area: card; opacity: 0; visibility: hidden; transform: translateX(36px); transition: opacity .3s ease, transform .45s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .3s; }
.lt.is-live .lt-card.is-past { transform: translateX(-36px); }
.lt.is-live .lt-card.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lt.is-live .lt-card.is-active .lt-diamond--big { animation: lt-flip .65s cubic-bezier(.175, .885, .32, 1.4); }

.lt-controls { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.lt-controls[hidden] { display: none; }
.lt-arrow {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; cursor: pointer; color: var(--aura-ink);
    background: rgba(var(--aura-mint-rgb), .06); border: 1px solid rgba(var(--aura-mint-rgb), .16);
}
.lt-arrow:active { transform: scale(.94); }
.lt-range { flex: 1; min-width: 0; height: 28px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.lt-range::-webkit-slider-runnable-track {
    height: 6px; border-radius: 999px;
    background: linear-gradient(90deg, var(--aura-teal-600) var(--lt-fill, 0%), rgba(var(--aura-mint-rgb), .12) var(--lt-fill, 0%));
}
.lt-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 5px; transform: rotate(45deg);
    background: #fff; border: 3px solid var(--aura-teal-600);
}
.lt-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(var(--aura-mint-rgb), .12); }
.lt-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--aura-teal-600); }
.lt-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 4px; background: #fff; border: 3px solid var(--aura-teal-600); }

/* ── page-scroll mode: the section holds still while scrolling turns the wheel ── */
body.v2 .why2-section.is-pinned { padding: 0; }
body.v2 .lt.is-pinned {
    --lt-view: calc(100vh - var(--lt-top, 0px));
    position: sticky; top: var(--lt-top, 0px); height: var(--lt-view); align-content: center;
    --lt-mascot: clamp(180px, calc(var(--lt-view) - 300px), 390px);
}
@supports (height: 100svh) { body.v2 .lt.is-pinned { --lt-view: calc(100svh - var(--lt-top, 0px)); } }
.lt.is-pinned .lt-wheel { height: clamp(240px, calc(var(--lt-view) - 270px), 440px); overflow: hidden; scroll-snap-type: none; }
/* scrolling moves these every frame: their own layers, so nothing is repainted */
.lt.is-pinned .lt-track, .lt.is-pinned :is(.lt-item, .lt-node, .lt-level-name) { will-change: transform; }
body.v2 .lt.is-pinned .lt-mascot { height: var(--lt-mascot); }
body.v2 .lt.is-pinned .lt-mascot .why2-wumpus { width: min(var(--lt-mascot), 90%); }
.lt.is-pinned .lt-ring { width: calc(var(--lt-mascot) * .78); height: calc(var(--lt-mascot) * .78); margin: calc(var(--lt-mascot) * -.39) 0 0 calc(var(--lt-mascot) * -.39); }

@keyframes lt-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes lt-flip { 0% { transform: rotateY(-180deg) scale(.5); } 100% { transform: rotateY(0) scale(1); } }
@keyframes lt-sweep { from { transform: translateX(-110%); } to { transform: translateX(260%); } }
@keyframes lt-spin { to { transform: rotate(360deg); } }
@keyframes lt-flash { 0% { opacity: 1; transform: scale(1.14); } 100% { transform: scale(1); } }

@media (max-width: 960px) {
    body.v2 .lt { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .lt-copy { display: contents; }
    .lt-copy .v2-title { order: 0; margin-bottom: -16px; }
    .lt-copy .v2-sub { order: 1; }
    .lt-stage { order: 2; }
    .lt-wheel-wrap { order: 3; margin-top: 0; }
    .lt.is-live .lt-wheel { height: 340px; }
    .lt.is-live .lt-track { padding: 145px 0; }
    body.v2 .lt-mascot { height: 250px; }
    body.v2 .lt-mascot .why2-wumpus { width: min(250px, 70%); }
    .lt-ring { width: 210px; height: 210px; margin: -105px 0 0 -105px; }
    .lt-item { max-width: none; }
}
@media (max-width: 960px) {
    /* pinned on a phone: title, mascot, the chosen card and the wheel share one screen.
       The wheel stays short and the mascot takes all the room that is left. */
    body.v2 .lt.is-pinned { display: flex; flex-direction: column; gap: 8px; padding-block: 8px; }
    .lt.is-pinned .lt-copy .v2-title { margin-bottom: 0; }
    .lt.is-pinned .lt-copy .v2-sub, .lt.is-pinned .lt-controls { display: none; }
    .lt.is-pinned .lt-wheel { height: clamp(130px, calc(var(--lt-view) * .22), 200px); }
    .lt.is-pinned .lt-stage { width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; }
    body.v2 .lt.is-pinned .lt-mascot { flex: 1; height: auto; min-height: 96px; }
    body.v2 .lt.is-pinned .lt-mascot .why2-wumpus { position: absolute; top: 0; bottom: 0; left: 50%; width: min(340px, 94%); translate: -50% 0; }
    body.v2 .lt.is-pinned .lt-mascot .why2-wumpus img { width: 100%; height: 100%; object-fit: contain; }
    .lt.is-pinned .lt-ring { top: 11%; left: 50%; width: auto; height: 78%; aspect-ratio: 1; margin: 0; translate: -50% 0; }
}
@media (max-width: 480px) and (max-height: 700px) {   /* short phones: a tighter card leaves the mascot more room */
    .lt.is-pinned .lt-card { padding: 12px 14px; }
    .lt.is-pinned .lt-card p { font-size: .9rem; line-height: 1.45; }
}
@media (max-width: 960px) and (min-height: 700px) {   /* tall enough to keep the description too */
    .lt.is-pinned .lt-copy .v2-sub { display: block; font-size: .92rem; line-height: 1.45; }
}
@media (max-width: 480px) {   /* keep the wheel's labels clear of the chat button */
    .lt.is-pinned .lt-level { padding-left: 52px; padding-right: calc(var(--lt-bend, 0px) + 40px); }
    .lt.is-pinned .lt-item { gap: 10px; padding: 7px 8px 7px 6px; font-size: .9rem; }
}
/* the chat button sits over this corner whenever the content reaches the screen edge */
@media (min-width: 960.02px) and (max-width: 1320px), (min-width: 1500px) and (max-width: 1580px) and (min-height: 860px) {
    .lt.is-pinned .lt-controls { padding-right: 64px; }
}
@media (min-width: 1500px) and (min-height: 860px) {   /* large screens: let the stage grow with them */
    body.v2 .lt { max-width: 1400px; gap: 80px; }
    body.v2 .lt.is-pinned { --lt-mascot: clamp(180px, calc(var(--lt-view) - 320px), 520px); }
    body.v2 .lt.is-pinned .lt-mascot .why2-wumpus { width: min(var(--lt-mascot), 90%); }
    .lt.is-pinned .lt-wheel { height: clamp(240px, calc(var(--lt-view) - 300px), 560px); }
    body.v2 .lt .v2-title { font-size: 3.5rem; }
    .lt .v2-sub { font-size: 1.15rem; }
    .lt-item { max-width: 390px; min-height: 58px; font-size: 1.12rem; }
    .lt-card { padding: 26px; }
    .lt-card h3 { font-size: 1.55rem; }
    .lt-card p { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .lt-card { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px; }
    .lt-diamond--big { width: 38px; height: 38px; margin: 3px; font-size: .95rem; }
    .lt-card h3 { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
    .lt *, .lt *::before, .lt *::after { animation: none !important; transition: none !important; }
}
