/* ===========================================================================
   LOS — public landing page (route "/") only.

   Everything here is scoped under `.los` so it can't leak into the app or the
   other marketing pages, which keep using marketing.css. The palette follows
   the same --sl-accent* custom properties LandingLayout emits, so the page
   still respects the user's chosen accent; the rest of the surface is a fixed,
   near-black "operating system" canvas rather than the MudBlazor background.

   Motion contract: every element that animates on scroll carries
   [data-reveal] and is revealed by js/landing-fx.js adding .is-in. Without
   JavaScript (or with prefers-reduced-motion) the fallbacks at the bottom of
   this file leave the whole page visible and still.
   =========================================================================== */

.los {
    --los-bg: #07080b;
    --los-ink: #f7f8fa;
    /* Secondary text tokens. Both are tuned against --los-bg to clear WCAG AA (4.5:1) for small
       text, because everything they colour is small: eyebrow labels, panel metadata, captions.
       --los-faint was .34 (3.1:1) and read as decoration rather than information; --los-dim moved
       with it so the two tiers stay visibly apart. Anything dimmer than --los-faint should be a
       border or a glow, not type. */
    --los-dim: rgba(255, 255, 255, .66);   /* ~8.7:1 */
    --los-faint: rgba(255, 255, 255, .52); /* ~5.7:1 */
    --los-hair: rgba(255, 255, 255, .08);
    --los-hair-soft: rgba(255, 255, 255, .045);
    --los-glass: rgba(255, 255, 255, .026);
    --los-panel: #0c0e13;
    --los-panel-2: #101319;

    --los-gap: clamp(96px, 15vh, 190px);
    --los-radius: 18px;

    --ease: cubic-bezier(.16, 1, .3, 1);

    position: relative;
    z-index: 1;
    isolation: isolate;
    background: var(--los-bg);
    color: var(--los-ink);
    font-family: Geist, "Segoe UI", system-ui, sans-serif;
    font-feature-settings: "ss01" 1, "cv01" 1;
    overflow-x: clip;
}

html:has(.los) { background: #07080b; }

@media (prefers-reduced-motion: no-preference) {
    html:has(.los) { scroll-behavior: smooth; }
}

.los-wrap {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: clamp(22px, 5vw, 60px);
}

/* Content always sits above the fixed background canvas. The nav is excluded: this
   selector outranks .los-nav, so including it flattened the bar back to
   position:relative;z-index:1 — which dropped the mobile menu behind the hero and
   swallowed its taps. */
.los > *:not(.los-canvas, .los-nav) { position: relative; z-index: 1; }

.los-narrow { max-width: 820px; }

/* ---------------------------------------------------------------------------
   Ambient background: OS grid, drifting aurora, film grain, vignette.
   All fixed and pointer-transparent — the page scrolls over a still canvas.
   --------------------------------------------------------------------------- */

.los-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    contain: strict;
}

.los-canvas i {
    position: absolute;
    display: block;
}

.los-grid {
    inset: -10% -10% 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(148, 163, 184, .18) 1px, transparent 1.15px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(115% 78% at 50% 0%, #000 4%, rgba(0, 0, 0, .35) 46%, transparent 78%);
    mask-image: radial-gradient(115% 78% at 50% 0%, #000 4%, rgba(0, 0, 0, .35) 46%, transparent 78%);
    animation: los-grid-drift 42s linear infinite;
}

@keyframes los-grid-drift {
    to { transform: translate3d(0, -36px, 0); }
}

.los-aura-1,
.los-aura-2 {
    border-radius: 50%;
    filter: blur(120px);
    opacity: .5;
}

.los-aura-1 {
    top: -34vh;
    left: 50%;
    width: min(1100px, 120vw);
    height: 70vh;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(var(--sl-accent-rgb), .34), transparent 72%);
    animation: los-breathe 14s ease-in-out infinite alternate;
}

.los-aura-2 {
    right: -18vw;
    bottom: -22vh;
    width: 62vw;
    height: 56vh;
    background: radial-gradient(closest-side, rgba(90, 110, 190, .16), transparent 70%);
    animation: los-breathe 19s ease-in-out infinite alternate-reverse;
}

@keyframes los-breathe {
    from { opacity: .34; transform: translateX(-50%) scale(.94); }
    to   { opacity: .62; transform: translateX(-50%) scale(1.06); }
}

.los-aura-2 { animation-name: los-breathe-b; }

@keyframes los-breathe-b {
    from { opacity: .3; transform: scale(.95); }
    to   { opacity: .55; transform: scale(1.08); }
}

.los-grain {
    inset: 0;
    opacity: .22;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.los-vignette {
    inset: 0;
    background: radial-gradient(125% 95% at 50% 42%, transparent 42%, rgba(0, 0, 0, .62) 100%);
}

/* ---------------------------------------------------------------------------
   Shared typography + primitives
   --------------------------------------------------------------------------- */

.los-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--los-faint);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.los-label::before {
    content: "";
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--sl-accent-rgb), .9));
}

.los-label.is-centred { justify-content: center; }
.los-label.is-centred::after {
    content: "";
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--sl-accent-rgb), .9), transparent);
}

.los-display {
    margin: 26px 0 0;
    font-size: clamp(2.9rem, 7.4vw, 6.4rem);
    font-weight: 700;
    line-height: .96;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.los-h2 {
    margin: 22px 0 0;
    font-size: clamp(2rem, 4.6vw, 3.7rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.042em;
    text-wrap: balance;
}

.los-h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.03em;
}

.los-lead {
    max-width: 56ch;
    margin: 26px 0 0;
    color: var(--los-dim);
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.68;
    letter-spacing: -.005em;
}

.los-body {
    margin: 18px 0 0;
    color: var(--los-dim);
    font-size: .97rem;
    line-height: 1.72;
}

.los-accent { color: var(--sl-accent); }

/* Headline word that fades from white into the accent — used once per page. */
.los-fade {
    display: inline-block;
    padding-bottom: .14em;
    margin-bottom: -.14em;
    background: linear-gradient(96deg, #fff 12%, var(--sl-accent) 96%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--sl-accent);
}

.los-quiet {
    color: var(--los-faint);
}

.los-rule {
    height: 1px;
    border: 0;
    margin: 0;
    background: linear-gradient(90deg, transparent, var(--los-hair) 18%, var(--los-hair) 82%, transparent);
}

/* Buttons -------------------------------------------------------------- */

.los-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 40px;
}

.los-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .35s var(--ease), background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .4s ease;
}

.los-btn-primary {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)), var(--sl-accent);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset, 0 14px 40px -14px rgba(var(--sl-accent-rgb), .9);
}

.los-btn-primary:hover {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 20px 50px -14px rgba(var(--sl-accent-rgb), 1);
}

.los-btn-ghost {
    color: rgba(255, 255, 255, .78);
    border-color: var(--los-hair);
    background: rgba(255, 255, 255, .022);
    backdrop-filter: blur(12px);
}

.los-btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
}

.los-btn svg { flex: none; }

.los-note {
    margin: 0;
    color: var(--los-faint);
    font-size: .8rem;
    letter-spacing: .01em;
}

/* One visible focus ring for every interactive element on the page (links, buttons, tabs, the
   mobile menu summary), so keyboard users can always see where they are. */
.los a:focus-visible,
.los button:focus-visible,
.los summary:focus-visible {
    outline: 2px solid var(--sl-accent);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------------------------------------------------------------------------
   Navigation — a floating glass bar, condensed once the page scrolls.
   --------------------------------------------------------------------------- */

.los-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    transition: background-color .4s ease, border-color .4s ease, backdrop-filter .4s ease;
    border-bottom: 1px solid transparent;
}

.los-nav.is-stuck {
    border-bottom-color: var(--los-hair-soft);
    background: rgba(7, 8, 11, .72);
    backdrop-filter: blur(18px) saturate(140%);
}

.los-nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 68px;
}

.los-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

/* The LOS wordmark (wwwroot/logo.svg) — it already spells the name, so .los-brand
   carries no text of its own beyond the tagline. */
.los-logo {
    display: block;
    width: auto;
    height: 26px;
}

.los-brand span {
    color: var(--los-faint);
    font-size: .72rem;
    letter-spacing: .06em;
    padding-left: 11px;
    border-left: 1px solid var(--los-hair);
}

.los-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.los-nav-links a {
    padding: 8px 13px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .62);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.los-nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.los-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--los-hair);
    border-radius: 10px;
    color: #fff;
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, .03);
    transition: border-color .25s ease, background-color .25s ease;
}

.los-nav-cta:hover {
    border-color: rgba(var(--sl-accent-rgb), .55);
    background: rgba(var(--sl-accent-rgb), .12);
}

.los-menu { display: none; position: relative; }
.los-menu summary { list-style: none; cursor: pointer; padding: 8px; color: rgba(255, 255, 255, .8); line-height: 0; }
.los-menu summary::-webkit-details-marker { display: none; }

.los-menu nav {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--los-hair);
    border-radius: 13px;
    background: rgba(11, 13, 18, .96);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 50px -20px #000;
}

.los-menu nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
    text-decoration: none;
}

.los-menu nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }

@media (max-width: 780px) {
    .los-nav-links { display: none; }
    .los-nav-cta { display: none; }
    .los-menu { display: block; margin-left: auto; }
    .los-nav-inner { height: 60px; }
    .los-brand span { display: none; }
}

/* ---------------------------------------------------------------------------
   1 — Hero
   --------------------------------------------------------------------------- */

.los-hero {
    position: relative;
    padding-top: clamp(120px, 21vh, 210px);
    text-align: center;
}

.los-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.los-hero .los-lead { max-width: 46ch; margin-inline: auto; }

.los-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
    margin-top: 48px;
    color: var(--los-faint);
    font-size: .74rem;
    letter-spacing: .04em;
}

.los-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.los-hero-meta span::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(var(--sl-accent-rgb), .8);
}

/* Stage: the product window sits on a perspective plane and straightens as
   the page scrolls (--los-p is written by landing-fx.js, 0 → 1). */
.los-stage {
    position: relative;
    margin-top: clamp(56px, 8vw, 92px);
    padding-bottom: clamp(40px, 7vw, 90px);
    perspective: 2200px;
    perspective-origin: 50% 0%;
}

.los-stage-inner {
    position: relative;
    max-width: 1180px;
    margin-inline: auto;
    transform-style: preserve-3d;
    will-change: transform;
}

.los-stage-glow {
    position: absolute;
    z-index: -1;
    inset: 12% -6% -14%;
    background: radial-gradient(58% 48% at 50% 50%, rgba(var(--sl-accent-rgb), .3), transparent 72%);
    filter: blur(70px);
    opacity: .8;
    pointer-events: none;
}

/* ---------------------------------------------------------------------------
   The LOS window — a faithful, static rendering of the weekly planner.
   Reused by the hero and by the interactive showcase.
   --------------------------------------------------------------------------- */

.los-app {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: linear-gradient(180deg, #0e1117, #0a0c11);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .06) inset,
        0 60px 120px -40px rgba(0, 0, 0, .95),
        0 0 90px -30px rgba(var(--sl-accent-rgb), .28);
}

.los-app-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .015);
}

.los-dots { display: flex; gap: 6px; }
.los-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .13); }

.los-app-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: .8rem;
    font-weight: 600;
}

.los-app-title small { color: var(--los-faint); font-size: .68rem; font-weight: 500; }

.los-seg {
    display: flex;
    gap: 2px;
    margin-left: auto;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;
    background: rgba(0, 0, 0, .3);
}

.los-seg span {
    padding: 5px 11px;
    border-radius: 6px;
    color: rgba(255, 255, 255, .45);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.los-seg span.on { color: #fff; background: rgba(255, 255, 255, .09); }

.los-app-body {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    min-height: 520px;
}

/* left rail ------------------------------------------------------------- */

.los-rail {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    border-right: 1px solid rgba(255, 255, 255, .055);
    background: rgba(0, 0, 0, .22);
}

.los-rail-kick {
    padding: 0 10px;
    margin: 6px 0 12px;
    color: rgba(255, 255, 255, .3);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.los-rail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .52);
    font-size: .78rem;
    font-weight: 500;
}

.los-rail-item i {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .22);
}

.los-rail-item.on {
    color: #fff;
    background: rgba(255, 255, 255, .055);
}

.los-rail-item.on i { background: var(--sl-accent); box-shadow: 0 0 10px rgba(var(--sl-accent-rgb), .9); }

.los-rail-foot {
    margin-top: auto;
    padding: 12px 10px 4px;
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.los-rail-foot span {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, .5);
    font-size: .68rem;
}

.los-rail-foot b { color: #fff; font-weight: 600; }

.los-meter {
    display: block;
    height: 3px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, .07);
}

.los-meter i {
    display: block;
    width: var(--v, 64%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--sl-accent-rgb), .5), var(--sl-accent));
    transition: width 1.4s var(--ease);
}

/* calendar -------------------------------------------------------------- */

.los-cal { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }

.los-cal-head {
    display: grid;
    grid-template-columns: 46px repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.los-cal-head span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 11px 0;
    border-left: 1px solid rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .34);
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .14em;
}

.los-cal-head span:first-child { border-left: 0; }
.los-cal-head b { color: rgba(255, 255, 255, .8); font-size: .82rem; font-weight: 600; letter-spacing: 0; }
.los-cal-head .now b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: -3px 0;
    border-radius: 50%;
    color: #fff;
    background: var(--sl-accent);
    box-shadow: 0 0 22px -4px rgba(var(--sl-accent-rgb), 1);
}

.los-cal-grid {
    position: relative;
    display: grid;
    grid-template-columns: 46px repeat(7, minmax(0, 1fr));
    min-height: 460px;
}

.los-hours {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 8px 22px 0;
    text-align: right;
    color: rgba(255, 255, 255, .26);
    font-size: .56rem;
    font-variant-numeric: tabular-nums;
}

.los-col {
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, .04);
    background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 68px);
}

.los-col.now { background-color: rgba(var(--sl-accent-rgb), .028); }

/* Events are positioned with literal percentages so no server-side number
   formatting (and therefore no culture) is involved. */
.los-ev {
    position: absolute;
    left: 4px;
    right: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 6px 6px;
    overflow: hidden;
    border-radius: 6px;
    border-left: 2px solid var(--c, var(--sl-accent));
    background: color-mix(in srgb, var(--c, var(--sl-accent)) 16%, transparent);
    color: rgba(255, 255, 255, .97);
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    letter-spacing: -.01em;
}

.los-ev small {
    color: rgba(255, 255, 255, .5);
    font-size: .56rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Day columns get narrow fast; a title must never push past its block. */
.los-ev span { overflow-wrap: break-word; }

/* An hour-long block is too short for two stacked lines. The day columns are
   only ~60px wide, so the time gutter on the left carries the hour and the
   block gives its full width to the title — otherwise the name gets ellipsed
   down to a single letter. */
.los-ev.tight {
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
}

.los-ev.tight small { display: none; }
.los-ev.tight span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.los-ev.ghost {
    border: 1px dashed rgba(255, 255, 255, .16);
    border-left-style: dashed;
    background: rgba(255, 255, 255, .015);
    color: rgba(255, 255, 255, .4);
}

.c-work   { --c: #5b8def; }
.c-health { --c: #3fb984; }
.c-learn  { --c: #a679ef; }
.c-people { --c: #e0a13c; }
.c-goal   { --c: var(--sl-accent); }
.c-rest   { --c: #4bb3c9; }

/* Now-line sweeping the current day. */
.los-nowline {
    position: absolute;
    left: 0;
    right: 0;
    top: 46%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--sl-accent-rgb), .85));
}

.los-nowline::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -2.5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sl-accent);
    box-shadow: 0 0 12px rgba(var(--sl-accent-rgb), 1);
}

/* The window is dense; on a phone it drops the rail and the weekend columns
   rather than shrinking everything into illegibility. */
/* Below a laptop the rail goes first — seven day columns need the width more. */
@media (max-width: 900px) {
    .los-app-body { grid-template-columns: minmax(0, 1fr); min-height: 430px; }
    .los-rail { display: none; }
    .los-cal-grid { min-height: 380px; }
}

@media (max-width: 620px) {
    .los-cal-head,
    .los-cal-grid { grid-template-columns: 30px repeat(5, minmax(0, 1fr)); }
    .los-cal-head span:nth-child(n+7),
    .los-cal-grid > .los-col:nth-child(n+7) { display: none; }
    .los-app-body { min-height: 340px; }
    .los-cal-grid { min-height: 300px; }

    /* A ~60px column can't carry a time and a title, so the title wins. */
    .los-ev { font-size: .58rem; padding: 5px; }
    .los-ev small { display: none; }
    .los-ev.tight { flex-direction: column; align-items: stretch; }
    .los-ev span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

/* Scroll cue ------------------------------------------------------------ */

.los-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .46); /* ~4.7:1 — smallest type on the page, so it needs the most alpha */
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.los-cue i {
    width: 1px;
    height: 46px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .3), transparent);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
    mask-image: linear-gradient(180deg, #000, transparent);
    animation: los-cue-fall 2.4s ease-in-out infinite;
}

@keyframes los-cue-fall {
    0%, 100% { transform: scaleY(.4); opacity: .3; transform-origin: top; }
    50%      { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------------------------------------------------------------------------
   Section frame
   --------------------------------------------------------------------------- */

.los-section {
    position: relative;
    padding-block: var(--los-gap);
}

/* The nav is fixed, so an in-page jump has to stop clear of it. */
.los-section[id] { scroll-margin-top: 88px; }

.los-section-head { max-width: 780px; }
.los-section-head.is-centred { margin-inline: auto; text-align: center; }
.los-section-head.is-centred .los-lead { margin-inline: auto; }

/* ---------------------------------------------------------------------------
   2 — The problem: five lives, one calendar
   --------------------------------------------------------------------------- */

.los-converge {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: clamp(56px, 7vw, 88px);
}

.los-converge-figure {
    position: relative;
    aspect-ratio: 2.15;
    min-height: 320px;
}

.los-converge-figure svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.los-stream-path {
    fill: none;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-dasharray: var(--len, 900);
    stroke-dashoffset: var(--len, 900);
    opacity: .75;
    transition: stroke-dashoffset 1.8s var(--ease);
    transition-delay: calc(var(--i) * 140ms);
}

.is-in .los-stream-path { stroke-dashoffset: 0; }

/* Pulses ride the streams via SMIL <animateMotion> in the markup; CSS only
   fades them in once the figure has drawn itself. */
.los-stream-pulse {
    fill: #fff;
    opacity: 0;
    transition: opacity .8s ease 1.4s;
}

.is-in .los-stream-pulse { opacity: .85; }

.los-stream-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(12, 14, 19, .8);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, .8);
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i) * 120ms);
}

.is-in .los-stream-label { opacity: 1; transform: none; }

/* Sits centred on the point its stream leaves from. */
.los-stream-label { margin-top: -17px; }

.los-stream-label i {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--c);
    box-shadow: 0 0 12px var(--c);
}

.los-stream-label small { color: var(--los-faint); font-size: .64rem; font-weight: 500; }

.los-converge-target {
    position: absolute;
    top: 50%;
    right: 0;
    width: clamp(150px, 21%, 220px);
    transform: translateY(-50%);
    padding: 14px 12px;
    border: 1px solid rgba(var(--sl-accent-rgb), .3);
    border-radius: 13px;
    background: rgba(12, 14, 19, .86);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 60px -18px rgba(var(--sl-accent-rgb), .8);
}

.los-converge-target header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .82);
    font-size: .68rem;
    font-weight: 600;
}

.los-converge-target header span { color: var(--los-faint); font-weight: 500; }

.los-stack { display: grid; gap: 4px; }

.los-stack i {
    display: block;
    height: 15px;
    border-radius: 4px;
    border-left: 2px solid var(--c);
    background: color-mix(in srgb, var(--c) 18%, transparent);
    opacity: 0;
    transform: translateY(-8px) scaleX(.9);
    transform-origin: left;
    transition: opacity .5s ease, transform .6s var(--ease);
    transition-delay: calc(1.1s + var(--i) * 150ms);
}

.is-in .los-stack i { opacity: 1; transform: none; }

.los-stack i.over {
    border-color: rgba(255, 255, 255, .18);
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 5px, transparent 5px 10px);
}

.los-converge-target footer {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: var(--sl-accent);
    font-size: .66rem;
    font-weight: 600;
}

.los-converge-target footer span { color: rgba(255, 255, 255, .34); font-weight: 500; }

@media (max-width: 760px) {
    .los-converge-figure { aspect-ratio: 1.05; }
}

/* Shared-week capacity principle. The streams terminate on separate rows of the
   plan instead of collapsing into an abstract junction. */
.los-converge { margin-top: clamp(42px, 5vw, 68px); }

.los-converge-figure {
    width: min(100%, 1280px);
    aspect-ratio: 2.14;
    min-height: 390px;
}

.los-stream-label {
    gap: 11px;
    min-width: 210px;
    margin-top: -21px;
    padding: 11px 14px;
    font-size: .82rem;
}

.los-stream-label small {
    margin-left: auto;
    color: rgba(255,255,255,.48);
    font-size: .7rem;
}

.los-converge-target {
    right: 1%;
    width: clamp(330px, 35%, 420px);
    padding: 20px;
    border-color: rgba(255,255,255,.11);
    border-radius: 16px;
    background: rgba(12,14,19,.94);
    box-shadow: 0 28px 80px rgba(0,0,0,.36), 0 0 70px -38px rgba(var(--sl-accent-rgb),.7);
}

.los-converge-target header {
    align-items: baseline;
    margin-bottom: 18px;
    font-size: .78rem;
}

.los-capacity-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--los-faint);
    font-size: .6rem;
    font-weight: 650;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.los-stack { position: relative; gap: 5px; }
.los-stack i { height: 23px; }

.los-stack i span {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 9px;
    color: rgba(255,255,255,.55);
    font-size: .62rem;
    font-style: normal;
    font-weight: 600;
}

.los-stack i.over {
    border-color: var(--sl-accent);
    background: repeating-linear-gradient(135deg, rgba(var(--sl-accent-rgb),.16) 0 5px, rgba(var(--sl-accent-rgb),.05) 5px 10px);
}

.los-stack i.over span { color: rgba(255,122,122,.72); }

.los-capacity-limit {
    position: relative;
    height: 1px;
    margin: 3px 0;
    background: rgba(255,255,255,.38);
}

.los-capacity-limit::after {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    width: 1px;
    height: 9px;
    background: rgba(255,255,255,.62);
}

.los-capacity-limit span {
    position: absolute;
    right: 7px;
    bottom: 5px;
    color: rgba(255,255,255,.48);
    font-size: .59rem;
    font-weight: 600;
}

.los-converge-target footer {
    flex-direction: column;
    gap: 4px;
    font-size: .74rem;
}

.los-converge-target footer strong { color: #ff6868; font-weight: 650; }
.los-converge-target footer span { color: rgba(255,255,255,.56); font-size: .7rem; }

@media (min-width: 761px) and (max-width: 980px) {
    .los-converge-figure { aspect-ratio: 1.7; min-height: 440px; }
    .los-stream-label { min-width: 180px; }
    .los-stream-label small { display: none; }
    .los-converge-target { width: 330px; }
}

@media (max-width: 760px) {
    /* The streams don't survive a phone width, so the section stops pretending to
       converge. It becomes what it actually means: the six areas as a compact
       legend, then the shared-week plan as one solid card. No absolute
       positioning, no desktop draw choreography — nothing to fall out of place. */
    .los-converge { margin-top: 32px; }

    .los-converge-figure {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        aspect-ratio: auto;
        min-height: 0;
    }
    .los-converge-figure svg { display: none; }

    .los-stream-label {
        position: relative;
        top: auto !important;
        width: 100%;
        min-width: 0;
        margin-top: 0;
        gap: 9px;
        padding: 10px 12px;
        font-size: .78rem;
        opacity: 1;
        transform: none;
    }
    /* The per-stream detail ("Product release", …) is decorative; the card below
       carries the real numbers, so drop it to keep the legend tidy in two columns. */
    .los-stream-label small { display: none; }

    .los-converge-target {
        grid-column: 1 / -1;
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 4px;
        transform: none;
    }

    /* Render the plan solid. The reveal's staggered 1.1–2s delay + scaleX(.9) is
       tuned for the desktop side-by-side; on a stacked phone it leaves the card
       looking like an empty shell while you scroll past it. */
    .los-stack i,
    .los-stack i.over {
        opacity: 1 !important;
        transform: none !important;
        transition-delay: 0s !important;
    }
}

/* ---------------------------------------------------------------------------
   3 — Core problem: the copy that sits above the converging streams.
   One measured column, with the closing brand line lifted to carry the point.
   --------------------------------------------------------------------------- */

.los-capacity-copy {
    max-width: 46ch;
    margin-top: clamp(26px, 3vw, 38px);
    color: var(--los-dim);
    font-size: clamp(1.05rem, 1.4vw, 1.28rem);
    line-height: 1.62;
    letter-spacing: -.012em;
}

.los-capacity-copy > p { margin: 0 0 1.1rem; }
.los-capacity-copy > p:last-child { margin-bottom: 0; }

.los-capacity-brand {
    margin-top: clamp(1.4rem, 2.6vw, 2rem);
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 550;
}

/* ---------------------------------------------------------------------------
   4 — How it works: the spine
   --------------------------------------------------------------------------- */

.los-spine {
    position: relative;
    margin-top: clamp(56px, 7vw, 96px);
    padding-left: 84px;
}

.los-spine::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, .08);
}

/* Progress fill — height driven by --los-spine (0 → 1) from landing-fx.js. */
.los-spine::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 6px;
    width: 1px;
    height: calc(var(--los-spine, 0) * (100% - 12px));
    background: linear-gradient(180deg, rgba(var(--sl-accent-rgb), .1), var(--sl-accent));
    box-shadow: 0 0 14px rgba(var(--sl-accent-rgb), .75);
}

.los-node {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding-block: clamp(30px, 4.5vw, 54px);
}

.los-node::before {
    content: "";
    position: absolute;
    left: -61px;
    top: 50%;
    width: 11px;
    height: 11px;
    margin-top: -5.5px;
    border-radius: 50%;
    background: #0d0f14;
    border: 1px solid rgba(255, 255, 255, .18);
    transition: background-color .5s ease, border-color .5s ease, box-shadow .5s ease;
}

.los-node::after {
    content: "";
    position: absolute;
    left: -50px;
    top: 50%;
    width: 34px;
    height: 1px;
    background: rgba(255, 255, 255, .1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .7s var(--ease), background-color .6s ease;
}

.los-node.lit::before {
    background: var(--sl-accent);
    border-color: rgba(var(--sl-accent-rgb), .9);
    box-shadow: 0 0 0 4px rgba(var(--sl-accent-rgb), .14), 0 0 22px rgba(var(--sl-accent-rgb), .95);
}

.los-node.lit::after { transform: scaleX(1); background: rgba(var(--sl-accent-rgb), .45); }

/* The three step cards rest dim and brighten as the scroll reaches them (.lit, added by
   landing-fx.js). The resting state still has to be readable on its own: without JavaScript, and
   under prefers-reduced-motion, .lit never arrives and this is the only state a visitor ever sees.
   Every resting colour below therefore clears 4.5:1 by itself. */
.los-node-index {
    display: block;
    margin-bottom: 12px;
    color: var(--los-faint);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .2em;
    font-variant-numeric: tabular-nums;
    transition: color .5s ease;
}

.los-node.lit .los-node-index { color: var(--sl-accent); }

.los-node-copy h3 {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -.035em;
    transition: color .5s ease;
}

.los-node.lit .los-node-copy h3 { color: #fff; }

.los-node-copy p {
    margin: 12px 0 0;
    max-width: 44ch;
    color: var(--los-dim);
    font-size: .93rem;
    line-height: 1.68;
}

/* Small visual that belongs to each node. */
.los-node-vis {
    position: relative;
    padding: 18px;
    border: 1px solid var(--los-hair-soft);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .006));
    opacity: .42;
    transform: translateY(10px);
    transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .7s ease;
}

.los-node.lit .los-node-vis {
    opacity: 1;
    transform: none;
    border-color: rgba(255, 255, 255, .09);
}

.los-mini-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .78);
    font-size: .74rem;
    font-weight: 500;
}

.los-mini-row + .los-mini-row { margin-top: 6px; }
.los-mini-row i { width: 6px; height: 6px; border-radius: 2px; background: var(--c, var(--sl-accent)); }
.los-mini-row span { margin-left: auto; color: var(--los-faint); font-size: .64rem; }
.los-mini-row.dim { opacity: .45; }

.los-mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 88px; }
.los-mini-bars i {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--sl-accent), rgba(var(--sl-accent-rgb), .16));
    height: 12%;
    transition: height 1.1s var(--ease);
    transition-delay: calc(var(--i) * 60ms);
}

.los-node.lit .los-mini-bars i { height: var(--h); }

.los-mini-cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.los-mini-cells i {
    aspect-ratio: 1;
    border-radius: 3px;
    background: rgba(255, 255, 255, .05);
    transition: background-color .5s ease;
    transition-delay: calc(var(--i) * 28ms);
}
.los-node.lit .los-mini-cells i.on { background: rgba(var(--sl-accent-rgb), .85); box-shadow: 0 0 10px -2px rgba(var(--sl-accent-rgb), .9); }
.los-node.lit .los-mini-cells i.half { background: rgba(var(--sl-accent-rgb), .34); }

.los-mini-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.los-mini-week div {
    display: grid;
    gap: 3px;
    align-content: start;
    min-height: 78px;
    padding: 5px 3px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .022);
}
.los-mini-week b {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .3);
    font-size: .5rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: .08em;
}
.los-mini-week i {
    display: block;
    height: 9px;
    border-radius: 3px;
    border-left: 2px solid var(--c, var(--sl-accent));
    background: color-mix(in srgb, var(--c, var(--sl-accent)) 20%, transparent);
    transform: scaleX(.2);
    transform-origin: left;
    opacity: 0;
    transition: transform .6s var(--ease), opacity .5s ease;
    transition-delay: calc(var(--i) * 45ms);
}
.los-node.lit .los-mini-week i { transform: none; opacity: 1; }

.los-mini-decide {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 3vw, 26px);
}

.los-mini-plan-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.los-mini-plan-head b {
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
}
.los-mini-plan-head span {
    color: rgba(255, 255, 255, .3);
    font-size: .62rem;
    letter-spacing: .04em;
}

.los-mini-decide .los-mini-row {
    transform: translateX(6px);
    opacity: 0;
    transition: transform .55s var(--ease), opacity .5s ease;
    transition-delay: calc(var(--i) * 70ms);
}
.los-node.lit .los-mini-decide .los-mini-row { transform: none; opacity: 1; }

.los-mini-arc {
    position: relative;
    display: grid;
    place-items: center;
    width: 120px;
    padding: 6px 0;
}

.los-mini-arc svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.los-mini-arc circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.los-mini-arc .track { stroke: rgba(255, 255, 255, .07); }
.los-mini-arc .value {
    stroke: var(--sl-accent);
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1.5s var(--ease) .2s;
    filter: drop-shadow(0 0 6px rgba(var(--sl-accent-rgb), .7));
}
.los-node.lit .los-mini-arc .value { stroke-dashoffset: 84; }
.los-mini-arc figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
}
.los-mini-arc figcaption span {
    display: block;
    margin-top: 5px;
    color: var(--los-faint);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 860px) {
    .los-spine { padding-left: 46px; }
    .los-spine::before, .los-spine::after { left: 9px; }
    .los-node { grid-template-columns: 1fr; gap: 24px; }
    .los-node::before { left: -42px; top: 26px; }
    .los-node::after { display: none; }
}

@media (max-width: 480px) {
    .los-mini-decide { grid-template-columns: 1fr; justify-items: center; }
    .los-mini-plan { width: 100%; }
}

/* ---------------------------------------------------------------------------
   5 — Interactive showcase
   --------------------------------------------------------------------------- */

.los-showcase { margin-top: clamp(44px, 6vw, 72px); }

.los-scenes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
}

.los-scene-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 14px;
    border: 1px solid var(--los-hair-soft);
    border-radius: 11px;
    background: rgba(255, 255, 255, .018);
    color: rgba(255, 255, 255, .5);
    font-family: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}

.los-scene-btn:hover { color: rgba(255, 255, 255, .82); border-color: var(--los-hair); }

.los-scene-btn[aria-selected="true"] {
    color: #fff;
    border-color: rgba(var(--sl-accent-rgb), .4);
    background: rgba(var(--sl-accent-rgb), .1);
}

.los-scene-bar {
    position: relative;
    display: block;
    width: 22px;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, .12);
}

.los-scene-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--sl-accent);
    transform: scaleX(0);
    transform-origin: left;
}

/* The active tab's bar fills over the dwell time, so the auto-advance is legible. */
.los-scene-btn[aria-selected="true"] .los-scene-bar::after {
    animation: los-dwell 9s linear forwards;
}

.los-showcase.is-paused .los-scene-btn[aria-selected="true"] .los-scene-bar::after {
    animation-play-state: paused;
}

@keyframes los-dwell {
    to { transform: scaleX(1); }
}

.los-stagearea {
    position: relative;
    /* Holds the height of the tallest scene so switching tabs doesn't shift the page. */
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--los-radius);
    background: linear-gradient(180deg, #0d1016, #090b0f);
    box-shadow: 0 50px 100px -50px #000;
    overflow: hidden;
}

/* Inactive panels carry the [hidden] attribute (in the server markup and via JS), so only the
   active scene is in the layout and the a11y tree. The active one fades in on switch. */
.los-scene {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 268px;
    min-height: 480px;
}

.los-scene[hidden] { display: none; }

.los-scene.on { animation: los-scene-in .5s var(--ease); }

@keyframes los-scene-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.los-scene-main { position: relative; min-width: 0; padding: 20px; }

.los-scene-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px;
    border-left: 1px solid rgba(255, 255, 255, .055);
    background: rgba(0, 0, 0, .24);
}

.los-scene-side h4 {
    margin: 0;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.los-scene-side p {
    margin: 0;
    color: var(--los-dim);
    font-size: .82rem;
    line-height: 1.65;
}

.los-scene-side .los-label { font-size: .6rem; }

/* Compact calendar — the same markup as the hero window, at panel size. */
.los-cal.compact .los-cal-grid { min-height: 366px; }
.los-cal.compact .los-cal-head span { padding: 8px 0; }
.los-cal.compact .los-col { background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 56px); }

.los-scene-meter { display: grid; gap: 9px; }

.los-scene-meter > span:first-child {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, .5);
    font-size: .72rem;
}

.los-scene-meter b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

.los-scene-hint {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 11px 12px;
    border: 1px solid rgba(var(--sl-accent-rgb), .22);
    border-radius: 10px;
    background: rgba(var(--sl-accent-rgb), .07);
    color: rgba(255, 255, 255, .8);
    font-size: .74rem;
    font-weight: 500;
}

.los-scene-hint i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sl-accent);
    animation: los-blink 2s ease-in-out infinite;
}

@keyframes los-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--sl-accent-rgb), .5); }
    50%      { opacity: .5; box-shadow: 0 0 0 6px rgba(var(--sl-accent-rgb), 0); }
}

/* Keyboard/no-pointer path for the drag scene: a real button that schedules the task to the same
   slot the drag targets, so the interaction never depends on a mouse. */
.los-place {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 9px 14px;
    border: 1px solid rgba(var(--sl-accent-rgb), .4);
    border-radius: 10px;
    background: rgba(var(--sl-accent-rgb), .1);
    color: #fff;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .25s ease, background-color .25s ease;
}

.los-place:hover {
    border-color: rgba(var(--sl-accent-rgb), .7);
    background: rgba(var(--sl-accent-rgb), .16);
}

.los-place svg { flex: none; }

/* -- scene: plan the week (events settle in one after another) ------------ */

.los-scene[data-scene="week"].on .los-ev.seed {
    animation: los-settle .7s var(--ease) both;
    animation-delay: calc(var(--i) * 110ms);
}

@keyframes los-settle {
    from { opacity: 0; transform: translateY(-10px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

/* -- scene: drag (a real, pointer-driven drag) ---------------------------- */

.los-tray {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.los-tray-title {
    display: flex;
    justify-content: space-between;
    color: var(--los-faint);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.los-draggable {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-left: 2px solid var(--c, var(--sl-accent));
    border-radius: 9px;
    background: #12151c;
    color: rgba(255, 255, 255, .88);
    font-size: .78rem;
    font-weight: 600;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.los-draggable:hover { background: #161a22; box-shadow: 0 10px 26px -14px #000; }
.los-draggable small { margin-left: auto; color: var(--los-faint); font-size: .64rem; font-weight: 500; }

.los-draggable.is-dragging {
    position: fixed;
    z-index: 90;
    width: 190px;
    cursor: grabbing;
    pointer-events: none;
    box-shadow: 0 26px 60px -20px #000, 0 0 0 1px rgba(var(--sl-accent-rgb), .4);
    transform: rotate(-1.4deg) scale(1.03);
}

.los-draggable.is-placed {
    position: absolute;
    left: 4px;
    right: 4px;
    top: 3px;
    width: auto;
    cursor: default;
    animation: los-snap .5s var(--ease);
}

/* The scripted demo drag reuses the pointer path, so it needs easing. */
.los-draggable.is-auto { transition: left .85s var(--ease), top .85s var(--ease); }

@keyframes los-snap {
    0%   { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(var(--sl-accent-rgb), .18); }
    100% { transform: none; box-shadow: 0 0 0 0 rgba(var(--sl-accent-rgb), 0); }
}

.los-scene-split {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 18px;
    height: 100%;
}

.los-slotgrid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    align-content: start;
}

.los-slot-col { display: grid; gap: 6px; align-content: start; }

.los-slot-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-bottom: 8px;
    color: rgba(255, 255, 255, .3);
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.los-slot-head b { color: rgba(255, 255, 255, .78); font-size: .76rem; letter-spacing: 0; }
.los-slot-col.now .los-slot-head b { color: var(--sl-accent); }

.los-slot {
    position: relative;
    min-height: 46px;
    border-radius: 6px;
    border: 1px dashed transparent;
    transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.los-slot.free { border-color: rgba(255, 255, 255, .06); }
.los-slot .los-ev { position: static; padding: 8px 8px 7px; }

.los-slot.is-target {
    background: rgba(var(--sl-accent-rgb), .13);
    box-shadow: inset 0 0 0 1px rgba(var(--sl-accent-rgb), .5);
}

.los-drop-caption {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 8px 14px;
    border: 1px solid var(--los-hair);
    border-radius: 999px;
    background: rgba(10, 12, 17, .9);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .4s ease, transform .5s var(--ease);
}

.los-drop-caption.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* -- scene: habits -------------------------------------------------------- */

.los-habit-list { display: grid; gap: 10px; }

.los-habit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border: 1px solid var(--los-hair-soft);
    border-radius: 11px;
    background: rgba(255, 255, 255, .022);
}

.los-habit b { display: block; color: #fff; font-size: .84rem; font-weight: 600; }
.los-habit small { color: var(--los-faint); font-size: .68rem; }

.los-habit-meta { display: flex; align-items: center; gap: 18px; }

.los-habit-days { display: flex; gap: 5px; }

.los-habit-days i {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .3);
    font-size: .55rem;
    font-style: normal;
    font-weight: 700;
    transition: background-color .45s ease, color .45s ease, transform .45s var(--ease);
}

.los-scene[data-scene="habits"].on .los-habit-days i.on {
    background: rgba(var(--sl-accent-rgb), .8);
    color: #fff;
    transform: translateY(-2px);
    transition-delay: calc(var(--i) * 70ms);
}

.los-streak {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: var(--sl-accent);
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.los-streak span { color: var(--los-faint); font-size: .62rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* -- scene: statistics ---------------------------------------------------- */

.los-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }

.los-stat {
    padding: 15px 16px;
    border: 1px solid var(--los-hair-soft);
    border-radius: 11px;
    background: rgba(255, 255, 255, .022);
}

.los-stat b {
    display: block;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.los-stat span { color: var(--los-faint); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }

.los-chart {
    display: flex;
    align-items: flex-end;
    gap: clamp(4px, 1vw, 9px);
    height: 190px;
    padding: 16px;
    border: 1px solid var(--los-hair-soft);
    border-radius: 12px;
    background: rgba(255, 255, 255, .015);
}

.los-chart i {
    position: relative;
    flex: 1;
    height: 3%;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--sl-accent), rgba(var(--sl-accent-rgb), .12));
    transition: height 1.1s var(--ease);
}

.los-scene[data-scene="stats"].on .los-chart i {
    height: var(--h);
    transition-delay: calc(var(--i) * 55ms);
}

.los-chart-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: rgba(255, 255, 255, .26);
    font-size: .6rem;
    letter-spacing: .1em;
}

@media (max-width: 940px) {
    .los-scene { grid-template-columns: 1fr; }
    .los-scene-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .055); }
}

@media (max-width: 680px) {
    /* Tray above the week, and only the days either side of the drop target. */
    .los-scene-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .los-tray { flex-direction: row; }
    .los-tray .los-draggable { flex: 1; min-width: 0; }
    .los-slotgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .los-slot-col:nth-child(n+4) { display: none; }

    .los-habit { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .los-habit-meta { justify-content: space-between; gap: 12px; }
    .los-scene-btn { font-size: .76rem; padding: 9px 13px 9px 11px; }
    .los-stat b { font-size: 1.3rem; }
    .los-chart { height: 150px; }
}

/* ---------------------------------------------------------------------------
   6 — Quote sections

   Used more than once, so they carry a hierarchy: the default is the full-height
   pause between arguments, .is-mid is the shorter beat that sits between two
   dense sections without stopping the page entirely.
   --------------------------------------------------------------------------- */

.los-philosophy {
    padding-block: clamp(120px, 22vh, 260px);
    text-align: center;
}

.los-philosophy.is-mid { padding-block: clamp(90px, 15vh, 170px); }

.los-philosophy.is-mid blockquote {
    max-width: 26ch;
    font-size: clamp(1.75rem, 4.2vw, 3.2rem);
}

.los-philosophy blockquote {
    max-width: 20ch;
    margin: 0 auto;
    font-size: clamp(2rem, 5.4vw, 4.2rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.los-philosophy blockquote span { display: block; }

/* Each line lifts in on its own beat. */
.los-philosophy blockquote span {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: calc(var(--i) * 210ms);
}

.is-in.los-philosophy blockquote span { opacity: 1; transform: none; }

.los-philosophy cite {
    display: block;
    margin-top: 44px;
    color: rgba(255, 255, 255, .3);
    font-size: .78rem;
    font-style: normal;
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   7 — Capability stories
   --------------------------------------------------------------------------- */

.los-story {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
    padding-block: clamp(72px, 11vh, 150px);
    border-top: 1px solid var(--los-hair-soft);
}

.los-story.flip .los-story-copy { order: 2; }

.los-story-index {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--los-faint);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .2em;
    font-variant-numeric: tabular-nums;
}

.los-story-index::after {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(255, 255, 255, .12);
}

.los-story-copy h3 {
    margin: 18px 0 0;
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.04em;
}

.los-story-copy p {
    max-width: 46ch;
    margin: 20px 0 0;
    color: var(--los-dim);
    font-size: .98rem;
    line-height: 1.72;
}

.los-story-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.los-story-list li {
    padding: 6px 11px;
    border: 1px solid var(--los-hair);
    border-radius: 999px;
    color: rgba(255, 255, 255, .58);
    font-size: .73rem;
}

.los-panel {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--los-radius);
    background: linear-gradient(165deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .008)), #0a0c11;
    box-shadow: 0 44px 90px -50px #000;
}

.los-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(120% 60% at 50% -20%, rgba(var(--sl-accent-rgb), .1), transparent 60%);
}

.los-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .78);
    font-size: .78rem;
    font-weight: 600;
}

.los-panel-head span { color: var(--los-faint); font-size: .66rem; font-weight: 500; }

/* timeline / gantt panel */
.los-gantt { display: grid; gap: 9px; }

.los-gantt-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .66);
    font-size: .72rem;
}

.los-gantt-track {
    position: relative;
    height: 20px;
    border-radius: 5px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 14.28%);
}

.los-gantt-track b {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: var(--x);
    width: var(--w);
    border-radius: 4px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--c, var(--sl-accent)) 75%, transparent), color-mix(in srgb, var(--c, var(--sl-accent)) 30%, transparent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .9s var(--ease);
    transition-delay: calc(var(--i) * 90ms);
}

.is-in .los-gantt-track b { transform: none; }

.los-gantt-track u {
    position: absolute;
    top: -2px;
    left: var(--x);
    width: 1px;
    height: calc(100% + 4px);
    background: rgba(var(--sl-accent-rgb), .55);
    text-decoration: none;
}

/* heat map panel */
.los-heat { display: grid; grid-template-columns: repeat(26, 1fr); gap: 4px; }

.los-heat i {
    aspect-ratio: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, .045);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .4s ease, transform .5s var(--ease), background-color .5s ease;
    transition-delay: calc(var(--i) * 7ms);
}

.is-in .los-heat i { opacity: 1; transform: none; }
.los-heat i.l1 { background: rgba(var(--sl-accent-rgb), .22); }
.los-heat i.l2 { background: rgba(var(--sl-accent-rgb), .45); }
.los-heat i.l3 { background: rgba(var(--sl-accent-rgb), .72); }
.los-heat i.l4 { background: var(--sl-accent); box-shadow: 0 0 8px -2px rgba(var(--sl-accent-rgb), .9); }

.los-heat-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: rgba(255, 255, 255, .26);
    font-size: .62rem;
}

.los-heat-legend i { width: 9px; height: 9px; border-radius: 2px; }

/* module list panel */
.los-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.los-module {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid var(--los-hair-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    color: rgba(255, 255, 255, .74);
    font-size: .76rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .7s var(--ease), border-color .5s ease;
    transition-delay: calc(var(--i) * 55ms);
}

.is-in .los-module { opacity: 1; transform: none; }
.los-module-ic { color: var(--sl-accent); font-size: .9rem; line-height: 1; }
.los-module small { margin-left: auto; color: rgba(255, 255, 255, .28); font-size: .62rem; }

/* review panel */
.los-review { display: grid; gap: 12px; }

.los-review-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .66);
    font-size: .73rem;
}

.los-review-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, .06);
}

.los-review-bar i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--sl-accent-rgb), .35), var(--c, var(--sl-accent)));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease);
    transition-delay: calc(var(--i) * 90ms);
}

.is-in .los-review-bar i { transform: none; }
.los-review-row b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
    .los-story, .los-story.flip { grid-template-columns: 1fr; gap: 36px; }
    .los-story.flip .los-story-copy { order: initial; }
    .los-modules { grid-template-columns: 1fr; }
}

/* Optional modules — a compact grid closing the system section. Presented as supporting surface,
   not as the main value: the point is that everything here feeds the same shared plan. */
.los-system-modules {
    margin-top: clamp(56px, 8vw, 96px);
    padding-top: clamp(40px, 5vw, 64px);
    border-top: 1px solid var(--los-hair-soft);
}

.los-system-modules h3 {
    margin: 0;
    max-width: 24ch;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.los-system-modules p {
    max-width: 60ch;
    margin: 16px 0 0;
    color: var(--los-dim);
    font-size: .98rem;
    line-height: 1.7;
}

.los-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: clamp(24px, 3vw, 34px);
}

@media (max-width: 900px) { .los-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .los-module-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Trust & product principles
   --------------------------------------------------------------------------- */

.los-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 34px) clamp(32px, 6vw, 96px);
    margin-top: clamp(44px, 6vw, 72px);
}

.los-principle {
    padding-top: 22px;
    border-top: 1px solid var(--los-hair);
}

.los-principle h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.los-principle h3::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--sl-accent);
    box-shadow: 0 0 12px rgba(var(--sl-accent-rgb), .9);
}

.los-principle p {
    max-width: 44ch;
    margin: 12px 0 0;
    color: var(--los-dim);
    font-size: .9rem;
    line-height: 1.66;
}

.los-principles-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(34px, 5vw, 56px);
    color: rgba(255, 255, 255, .62);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.los-principles-link:hover { color: #fff; }
.los-principles-link svg { flex: none; transition: transform .25s var(--ease); }
.los-principles-link:hover svg { transform: translateX(3px); }

@media (max-width: 640px) {
    .los-principles { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   8 — Final CTA + footer
   --------------------------------------------------------------------------- */

/* The final CTA carries its own generous top padding; drop the preceding
   section's bottom padding so the two don't stack into an oversized void. */
.los-section:has(+ .los-final) { padding-bottom: 0; }

.los-final {
    position: relative;
    padding-block: clamp(110px, 20vh, 220px);
    text-align: center;
}

.los-final::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 20%;
    width: min(900px, 100%);
    height: 60%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(var(--sl-accent-rgb), .2), transparent 72%);
    filter: blur(60px);
}

.los-final h2 {
    margin: 24px 0 0;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.05em;
}

.los-final .los-lead { margin-inline: auto; }
.los-final .los-actions { justify-content: center; margin-top: 42px; }
.los-final .los-note { margin-top: 22px; }

.los-foot {
    padding-block: 46px 60px;
    border-top: 1px solid var(--los-hair-soft);
}

.los-foot-cols {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.los-foot-cols h5 {
    margin: 0 0 14px;
    color: var(--los-faint);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.los-foot-cols a {
    display: flex;
    align-items: center;
    /* 44px min height so the links are comfortably tappable; they were 29px, which on a phone
       puts three routes inside one thumb. Padding does the work, so the visual rhythm barely
       shifts on desktop. */
    min-height: 44px;
    padding: 4px 0;
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
    text-decoration: none;
    transition: color .2s ease;
}

.los-foot-cols a:hover { color: #fff; }

.los-foot-about .los-logo { height: 32px; }

.los-foot-about p {
    max-width: 30ch;
    margin: 16px 0 0;
    color: var(--los-faint);
    font-size: .8rem;
    line-height: 1.65;
}

.los-foot-bar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--los-hair-soft);
    color: var(--los-faint);
    font-size: .76rem;
}

@media (max-width: 860px) {
    .los-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .los-foot-about { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------------
   Motion primitives
   --------------------------------------------------------------------------- */

.los [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .95s var(--ease),
        transform 1.05s var(--ease),
        filter .95s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
    filter: blur(5px);
}

.los [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Elements whose children animate on .is-in shouldn't fade themselves. */
.los [data-reveal="hold"] { opacity: 1; transform: none; filter: none; }

/* ---------------------------------------------------------------------------
   Reduced motion / no-JS: everything visible, nothing moving.
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .los *,
    .los *::before,
    .los *::after {
        animation: none !important;
        transition: none !important;
    }

    .los [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
    .los .los-stream-path { stroke-dashoffset: 0; }
    .los .los-stream-label,
    .los .los-stack i,
    .los .los-heat i,
    .los .los-module,
    .los .los-philosophy blockquote span { opacity: 1; transform: none; }
    .los .los-node-vis { opacity: 1; transform: none; }

    /* .lit is applied on scroll by landing-fx.js, which stands down here — so give the step cards
       their reached state outright rather than leaving all three permanently dimmed. */
    .los .los-node-index { color: var(--sl-accent); }
    .los .los-node-copy h3 { color: #fff; }
    .los .los-gantt-track b,
    .los .los-review-bar i { transform: none; }
    .los .los-cue { display: none; }
}
