/* ═══════════════════════════════════════════════════════════════════════════
   VideoForge — LANDING (standalone visual system)

   This stylesheet belongs to the landing page only. It never loads on the
   app, and the app's stylesheets never load here — the two share nothing
   but tokens.css, which this page keeps solely because the support widget
   (support.js) resolves its colours from those variables. Every rule here
   uses the page's own `--k-*` tokens, so the two systems cannot collide.

   The system: near-black ground, one text colour, one dimmed colour, one
   hairline. A single hue — a desaturated glacial cyan — and it may only
   appear on live machine state (a progress bar filling, the clock's live
   dot). The page must read correctly in greyscale.

   Type: three faces, three jobs.
     display  Big Shoulders   — enormous uppercase, tight leading
     body     IBM Plex Sans   — 16px/1.6, 65ch max
     mono     JetBrains Mono  — 11px caps labels, the instrument voice
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Self-hosted faces (latin subsets, variable) ────────────────────────── */
@font-face {
    font-family: 'Big Shoulders';
    src: url('/static/fonts/big-shoulders-latin-var.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('/static/fonts/ibm-plex-sans-latin-var.woff2') format('woff2');
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/static/fonts/jetbrains-mono-latin-var.woff2') format('woff2');
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --k-bg:       #0A0B0E;                     /* ground                     */
    --k-surface:  #101318;                     /* one step raised — wells    */
    --k-ink:      #E9ECF1;                     /* text                       */
    --k-dim:      #8B919B;                     /* dimmed text, mono labels   */
    --k-line:     rgba(233, 236, 241, 0.14);   /* 1px hairlines              */
    --k-live:     #70AFCD;                     /* THE hue — live state only  */
    --k-live-rgb: 112, 175, 205;

    --k-displayface: 'Big Shoulders', 'Archivo', 'Arial Narrow', sans-serif;
    --k-bodyface:    'IBM Plex Sans', 'Inter Tight', system-ui, sans-serif;
    --k-monoface:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

    --k-radius:   4px;                         /* craft-floor maximum        */
    --k-radius-panel: clamp(18px, 2.6vw, 30px); /* sliding-panel corners     */
    --k-gutter:   clamp(20px, 4vw, 64px);
    --k-air:      25svh;                       /* TUNE: space around sections */
    --k-grain-a:  0.05;                        /* TUNE: grain opacity         */

    --k-ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);   /* fast out, long settle */
    --k-ease-slide:  cubic-bezier(0.76, 0, 0.24, 1);  /* panels and modals     */
    --k-reveal-dur:  0.9s;                     /* TUNE: word reveal duration  */
}

/* ── Ground ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    background: var(--k-bg);
    color-scheme: dark;
    scroll-behavior: auto;             /* Lenis owns easing; CSS must not fight it */
    -webkit-text-size-adjust: 100%;
}
/* Lenis housekeeping (the three rules its docs require, inlined here). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background: var(--k-bg);
    color: var(--k-ink);
    font: 400 16px/1.6 var(--k-bodyface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100svh;
}

::selection { background: var(--k-ink); color: var(--k-bg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* Visible keyboard focus on every interactive element — never removed,
   only shaped. Monochrome ring; offset keeps hairlines legible under it. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--k-ink); outline-offset: 3px; border-radius: 2px; }

/* ── Type roles ─────────────────────────────────────────────────────────── */
.k-display {
    font-family: var(--k-displayface);
    font-weight: 800;
    font-size: clamp(52px, 13vw, 220px);
    line-height: 0.84;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    color: var(--k-ink);
}
.k-h {
    font-family: var(--k-displayface);
    font-weight: 700;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--k-ink);
}
.k-label {
    font-family: var(--k-monoface);
    font-weight: 500;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--k-dim);
}
.k-copy { max-width: 65ch; color: var(--k-dim); }
.k-copy strong { color: var(--k-ink); font-weight: 500; }
.k-num {
    font-family: var(--k-monoface);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--k-ink);
}

/* ── Layout rhythm ──────────────────────────────────────────────────────── */
.k-wrap { max-width: 1560px; margin-inline: auto; padding-inline: var(--k-gutter); }
/* Paint containment keeps raster invalidation inside the section that
   caused it — the queue's per-frame fills never dirty neighbouring type. */
.k-sec  { padding-block: var(--k-air); position: relative; contain: layout paint; }
.k-rule { height: 1px; background: var(--k-line); border: none; }

main { position: relative; z-index: 1; }

/* ── Intro loader ───────────────────────────────────────────────────────── */
/* Wordmark rises, the progress line fills like a render starting, the
   curtain lifts on a rounded bottom edge. Entirely CSS-driven so a script
   failure can never trap the page behind it; pointer-events stay off so it
   never swallows input. Hidden outright under reduced motion. */
.k-mask  { display: block; overflow: hidden; }
.k-maski { display: block; }
@keyframes k-up     { to { transform: translateY(0); } }
@keyframes k-fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes k-scalex { to { transform: scaleX(1); } }

.k-intro {
    position: fixed;
    inset: 0;
    z-index: 120000;   /* above the support launcher (99990) and terms modal */
    background: var(--k-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    border-radius: 0 0 var(--k-radius-panel) var(--k-radius-panel);
    animation: k-intro-lift 0.8s var(--k-ease-slide) 1.3s forwards;
}
@keyframes k-intro-lift {
    0%   { transform: none; }
    99%  { visibility: visible; }
    100% { transform: translateY(-102%); visibility: hidden; }
}
/* The content lags the curtain — moves down inside the shell as it lifts. */
.k-intro-c { text-align: center; animation: k-intro-lag 0.8s var(--k-ease-slide) 1.3s forwards; }
@keyframes k-intro-lag { to { transform: translateY(30svh); } }
.k-intro-mark { font-size: clamp(46px, 8vw, 124px); line-height: 0.9; }
.k-intro-mark .k-maski { transform: translateY(112%); animation: k-up 0.7s var(--k-ease-reveal) 0.1s forwards; }
.k-intro-bar {
    width: clamp(160px, 26vw, 320px);
    height: 2px;
    margin: 26px auto 0;
    background: rgba(233, 236, 241, 0.08);
    overflow: hidden;
}
.k-intro-bar i {
    display: block;
    height: 100%;
    background: var(--k-live);
    transform: scaleX(0);
    transform-origin: 0 50%;
    animation: k-scalex 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.28s forwards;
}

/* ── Craft floor: grain ─────────────────────────────────────────────────── */
/* Still fractal noise, tiled; sits over everything except the modal and the
   support widget. Pure texture — pointer-inert, composited once. */
.k-grain {
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    opacity: var(--k-grain-a);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ── Craft floor: fixed mono HUD ────────────────────────────────────────── */
/* Corner instrumentation. Bottom-left is left free for the support widget. */
.k-hud {
    position: fixed;
    inset: 0;
    z-index: 950;
    pointer-events: none;
}
.k-hud > * { position: absolute; pointer-events: auto; }
.k-hud-meta { bottom: 20px; right: var(--k-gutter); text-align: right; display: grid; gap: 7px; justify-items: end; }

/* ── Header bar ─────────────────────────────────────────────────────────── */
/* A real bar: blurred semi-opaque base + bottom hairline so both actions
   read over any video frame; every target is at least 44px tall. */
.k-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 960;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px var(--k-gutter);
    background: rgba(10, 11, 14, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--k-line);
}
/* The brand is a real wordmark now, not a whisper. */
.k-bar-brand {
    font-family: var(--k-displayface);
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--k-ink);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.k-bar-brand:hover { color: #FFFFFF; }
.k-bar-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 30px); }
/* Neither link nor button may ever wrap to two lines — on tight screens
   they shrink instead (media rules below). */
.k-bar-link { color: var(--k-ink); display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; position: relative; white-space: nowrap; flex-shrink: 0; }
.k-bar-link:hover { color: #FFFFFF; }
.k-bar-cta {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 24px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--k-ink);
    color: var(--k-bg);
    border-radius: var(--k-radius);
    transition: background 0.18s ease-out;
}
.k-bar-cta:hover { background: #FFFFFF; }
/* On phones the bottom corners belong to the content and the support
   launcher; the clock would sit on top of both. */
@media (max-width: 768px) { .k-hud-meta { display: none; } }
/* Phone bar: same pieces, tighter — brand, two links and the button must
   all fit a 360px viewport on one line. */
@media (max-width: 640px) {
    .k-bar { padding: 8px 14px; }
    .k-bar-brand { font-size: 19px; }
    .k-bar-nav { gap: 12px; }
    .k-bar-cta { min-height: 40px; padding: 0 13px; font-size: 11px; }
}
@media (max-width: 390px) {
    .k-bar { padding: 8px 10px; }
    .k-bar-brand { font-size: 17px; }
    .k-bar-nav { gap: 9px; }
    .k-bar-cta { padding: 0 10px; }
}

/* The one allowed dot of colour outside the queue: live state on the clock. */
.k-live-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--k-live);
    display: inline-block;
    vertical-align: 1px;
}

/* Left-wiping underline for mono links (footer + HUD). */
.k-uline::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.28s var(--k-ease-reveal);
}
.k-uline:hover::after, .k-uline:focus-visible::after { transform: scaleX(1); }

/* ── Word-stagger reveal (§3.3) ─────────────────────────────────────────── */
/* JS splits headlines into masked word spans; each inner span rises from
   y:110% rot:4deg on --k-ease-reveal. Stagger delays are set inline by JS.
   The split markup is aria-hidden; the original text lives in aria-label. */
.k-reveal .k-w  { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.k-reveal .k-wi {
    display: inline-block;
    transform: translateY(110%) rotate(4deg);
    transform-origin: 0% 100%;
    transition: transform var(--k-reveal-dur) var(--k-ease-reveal);
}
.k-reveal.k-on .k-wi { transform: none; }

/* ── 1 · Hero ───────────────────────────────────────────────────────────── */
/* Full viewport and PINNED: the hero holds at the top while the content
   stack slides over it as a rounded panel — the page's one big transition.
   Overflow hidden so the parallaxed grid never spills. */
.k-hero {
    position: sticky;
    top: 0;
    min-height: 100svh;
    overflow: hidden;
}
/* The wordmark sits dead centre of the quad so all four renders read. */
.k-hero-c {
    position: relative;
    z-index: 1;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px var(--k-gutter) 40px;
}
/* The one place type exceeds the standard display clamp: the product name
   at maximum scale, sized so ten glyphs sit inside the measure. */
.k-hero-mark {
    font-size: clamp(60px, 16.5vw, 300px);
    white-space: nowrap;
    text-shadow: 0 4px 70px rgba(0, 0, 0, 0.4);
}
.k-hero-mark .k-maski { transform: translateY(112%); animation: k-up 1.05s var(--k-ease-reveal) 1.3s forwards; }
.k-hero-tag {
    margin-top: clamp(18px, 3.4svh, 34px);
    letter-spacing: 0.3em;
    color: var(--k-ink);
    opacity: 0;
    animation: k-fadeup 0.7s ease-out 1.95s forwards;
}
/* Output grid — the parallax backdrop is the product's own output: four
   recent renders playing muted behind the wordmark. Extended ±150px so
   its faster travel (+140px) never reveals an edge; hairline seams come
   from the container colour showing through the 1px gaps. The scrim keeps
   ink legible over footage and grounds the wordmark on the page colour. */
.k-hero-bg {
    position: absolute;
    inset: -150px 0;
    z-index: 0;
    pointer-events: none;
}
.k-clipgrid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    background: var(--k-line);
}
.k-clip {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Portrait screens: a 2×2 quad turns each 16:9 render into a tall sliver —
   giant caption fragments, unreadable crops. Stack the four clips as full-
   width bands instead; each cell's crop stays close to the source frame. */
@media (orientation: portrait) {
    .k-clipgrid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
}
/* Light enough that every clip reads; the stack panel covers the bottom,
   so the scrim no longer has to fade the hero out itself. */
.k-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 11, 14, 0.58) 0%,
        rgba(10, 11, 14, 0.28) 30%,
        rgba(10, 11, 14, 0.28) 64%,
        rgba(10, 11, 14, 0.72) 100%);
}

/* ── The stack: panels that slide over what's pinned beneath ───────────── */
/* Panel one covers the hero; panel two covers the finished scene. Rounded
   top corners + hairline + a deep soft shadow give the "card riding over"
   read; each is opaque so what's behind truly disappears. */
.k-stack {
    position: relative;
    z-index: 2;
    background: var(--k-bg);
    border-top: 1px solid var(--k-line);
    border-radius: var(--k-radius-panel) var(--k-radius-panel) 0 0;
    box-shadow: 0 -30px 70px rgba(0, 0, 0, 0.55);
}
.k-stack2 {
    position: relative;
    z-index: 3;
    background: #0D1015;               /* one quiet step raised */
    border-top: 1px solid var(--k-line);
    border-radius: var(--k-radius-panel) var(--k-radius-panel) 0 0;
    box-shadow: 0 -30px 70px rgba(0, 0, 0, 0.55);
}

/* ── 2 · What it does: the deck ─────────────────────────────────────────── */
/* Copy and genre list on the left, a fast pile of real render posters on
   the right. landing.js deals a new card every ~0.4s (posters only — the
   videos stay in the filmstrips below); each lands with its own small
   throw, and the genre list relights in step. */
.k-deck-grid {
    display: grid;
    grid-template-columns: minmax(300px, 5fr) 6fr;
    gap: clamp(30px, 5vw, 90px);
    align-items: center;
}
.k-deck-copy .k-h { max-width: 15ch; margin-top: 22px; }
.k-deck-line { margin-top: clamp(18px, 3svh, 30px); font-size: 16px; max-width: 44ch; }
.k-deck-list {
    list-style: none;
    margin-top: clamp(26px, 4.5svh, 48px);
    border-top: 1px solid var(--k-line);
}
.k-deck-list li {
    padding: 11px 0;
    border-bottom: 1px solid var(--k-line);
    font-family: var(--k-displayface);
    font-weight: 700;
    font-size: clamp(19px, 1.7vw, 27px);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: rgba(233, 236, 241, 0.22);
    transition: color 0.3s ease-out;
}
.k-deck-list li.k-lit { color: var(--k-ink); }
/* No JS never runs the dealer — the whole list reads in ink. */
html:not(.k-js) .k-deck-list li { color: var(--k-ink); }
html.k-rm .k-deck-list li { color: var(--k-ink); }

.k-deck-pile {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}
.k-deck-base, .k-deck-pile .k-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--k-line);
    background: var(--k-surface);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    transform: rotate(var(--r, 0deg)) translate(var(--x, 0px), var(--y, 0px));
}
.k-deck-pile .k-card { animation: k-card-in 0.34s var(--k-ease-reveal) backwards; }
@keyframes k-card-in {
    from {
        transform: rotate(calc(var(--r, 0deg) * 2.2)) translate(var(--x, 0px), calc(var(--y, 0px) + 26px)) scale(1.06);
        opacity: 0;
    }
}
.k-deck-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 16px;
    padding-inline: 4px;
}

@media (max-width: 860px) {
    .k-deck-grid { grid-template-columns: 1fr; gap: 36px; }
    .k-deck-meta span:last-child { display: none; }
}

/* ── Rise-ins ───────────────────────────────────────────────────────────── */
/* Rows and notes surface as they arrive. The hidden start state only
   exists once JS is present (html.k-js), so no-script never loses content. */
html.k-js .k-rise {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease-out, transform 0.9s var(--k-ease-reveal);
}
html.k-js .k-rise.k-on { opacity: 1; transform: none; }

.k-sr {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ── 3 · The work: the render wall (signature) ──────────────────────────── */
/* A full-viewport wall of portrait crops of finished renders. Three rows
   (two on phones) drift horizontally forever; the cursor's height tilts
   the wall vertically on fine-pointer screens; hovering a card blooms it
   from the 9:16 crop out to the full 16:9 frame — the neighbours part to
   make room. Reduced motion / no JS: .k-ws-static poster grid. */
:root {
    --k-wsg: clamp(12px, 2svh, 22px);            /* gap between cards       */
    /* Card height: near the full viewport, but capped by width so the
       16:9 hover bloom (height × 16/9) always fits on screen. */
    --k-wsh: min(76svh, 47vw);
}
.k-ws { padding-block: var(--k-air); position: relative; contain: layout paint; overflow: hidden; }

/* The head sits between rules: label + count + link on one hairline row,
   the headline at full measure beneath — anchored, not floating. */
.k-ws-headrow {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px 28px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--k-line);
}
.k-ws-lead { display: flex; align-items: baseline; gap: 12px 22px; flex-wrap: wrap; }
.k-ws-lead > .k-label:first-child { color: var(--k-ink); }
.k-ws-h { margin: clamp(22px, 3.5svh, 40px) 0 clamp(26px, 4.5svh, 54px); }
.k-ws-all { color: var(--k-ink); position: relative; padding: 6px 0; white-space: nowrap; }
.k-ws-all::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.28s var(--k-ease-reveal);
}
.k-ws-all:hover::after, .k-ws-all:focus-visible::after { transform: scaleX(1); }

/* The stage holds one screen-filling row; soft fades at the sides say
   "there is more" without a single control. */
.k-ws-stage { position: relative; overflow: hidden; }
.k-ws-stage::before, .k-ws-stage::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: clamp(24px, 5vw, 90px);
    z-index: 2;
    pointer-events: none;
}
.k-ws-stage::before { left: 0; background: linear-gradient(90deg, var(--k-bg), transparent); }
.k-ws-stage::after { right: 0; background: linear-gradient(270deg, var(--k-bg), transparent); }

.k-ws-rows { display: grid; gap: var(--k-wsg); }
.k-ws-row { overflow: hidden; width: 100%; }
.k-ws-track { display: flex; gap: var(--k-wsg); width: max-content; will-change: transform; }

/* Each card is a 9:16 window onto a 16:9 render; the height is the fixed
   truth, the width is what hover negotiates. */
.k-ws-card {
    flex: 0 0 auto;
    position: relative;
    margin: 0;
    height: var(--k-wsh);
    width: calc(var(--k-wsh) * 9 / 16);
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--k-line);
    background: var(--k-surface);
    transition: width 0.6s var(--k-ease-reveal), border-color 0.25s ease-out;
}
.k-ws-card img, .k-ws-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.k-ws-card video { opacity: 0; transition: opacity 0.3s ease-out; }
.k-ws-card video.k-playing { opacity: 1; }

/* Caption lives inside the frame, on a grounding gradient. On pointer
   screens it surfaces with the bloom; on touch it is always present. */
.k-ws-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    padding: 34px 14px 12px;
    background: linear-gradient(0deg, rgba(10, 11, 14, 0.82), rgba(10, 11, 14, 0));
}
.k-ws-title {
    font-size: 13px;
    line-height: 1.45;
    color: var(--k-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
    .k-ws-card:hover { width: calc(var(--k-wsh) * 16 / 9); border-color: rgba(233, 236, 241, 0.35); }
    .k-ws-cap {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.3s ease-out, transform 0.5s var(--k-ease-reveal);
    }
    .k-ws-card:hover .k-ws-cap { opacity: 1; transform: none; }
    /* While the cursor is steering (stage carries .k-steer from JS), cards
       fly underneath it — the bloom stands down so nothing churns open. */
    .k-ws-stage.k-steer .k-ws-card:hover { width: calc(var(--k-wsh) * 9 / 16); border-color: var(--k-line); }
    .k-ws-stage.k-steer .k-ws-card:hover .k-ws-cap { opacity: 0; }
}

/* Phones and touch: same single row, drift only — no cursor to court,
   captions standing. No bloom, so the width cap can relax and one card
   nearly fills the screen. */
@media (max-width: 860px), (hover: none) {
    :root { --k-wsh: clamp(300px, 62svh, 560px); }
}

/* Still fallback: same cards, wrapped as a plain grid of full frames. */
.k-ws-rows.k-ws-static {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    padding-inline: var(--k-gutter);
    transform: none !important;
}
.k-ws-rows.k-ws-static .k-ws-row, .k-ws-rows.k-ws-static .k-ws-track { display: contents; }
.k-ws-rows.k-ws-static .k-ws-card { width: auto; height: auto; aspect-ratio: 16 / 9; }
.k-ws-rows.k-ws-static .k-ws-cap { opacity: 1; transform: none; }


/* ── 4 · Cost: the four quality bands ───────────────────────────────────── */
.k-cost-lede { margin-top: 18px; font-size: 16px; max-width: 62ch; }
.k-plans {
    margin-top: clamp(32px, 5svh, 56px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.6vw, 24px);
    align-items: stretch;
}
.k-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 40px);
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: 10px;
    transition: border-color 0.2s ease-out;
}
.k-plan:hover { border-color: rgba(233, 236, 241, 0.3); }
/* The recommended plan carries the brighter frame and the tag. */
.k-plan-hot { border-color: rgba(233, 236, 241, 0.34); }
.k-plan-hot:hover { border-color: rgba(233, 236, 241, 0.5); }
.k-plan-tag {
    position: absolute;
    top: -10px;
    left: clamp(24px, 3vw, 40px);
    padding: 5px 10px;
    background: var(--k-ink);
    color: var(--k-bg);
    border-radius: 3px;
    letter-spacing: 0.12em;
}
.k-plan-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px 18px;
    flex-wrap: wrap;
}
.k-plan-name {
    font-family: var(--k-displayface);
    font-weight: 700;
    font-size: clamp(22px, 1.7vw, 28px);
    line-height: 1;
    text-transform: uppercase;
}
.k-plan-price { display: grid; gap: 7px; justify-items: end; text-align: right; }
.k-plan-val {
    font-size: clamp(24px, 2vw, 32px);
    line-height: 0.9;
    letter-spacing: -0.02em;
}
.k-plan-desc { margin-top: 14px; font-size: 14.5px; color: var(--k-dim); max-width: 48ch; }
.k-plan-feats { list-style: none; margin-top: 20px; border-top: 1px solid var(--k-line); }
.k-plan-feats li {
    position: relative;
    padding: 10px 0 10px 18px;
    border-bottom: 1px solid var(--k-line);
    font-size: 14px;
    line-height: 1.5;
    color: var(--k-dim);
}
.k-plan-feats li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 1px;
    background: var(--k-dim);
}
.k-plan-ex { margin-top: auto; padding-top: 20px; font-size: 13.5px; color: var(--k-dim); }
.k-plan-ex .k-num { font-size: 14px; }
.k-plan-cta {
    display: block;
    margin-top: 14px;
    padding: 16px 20px;
    text-align: center;
    font: 500 14px/1 var(--k-bodyface);
    letter-spacing: 0.01em;
    color: var(--k-ink);
    border: 1px solid rgba(233, 236, 241, 0.3);
    border-radius: 3px;
    transition: background 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out;
}
.k-plan-cta:hover { border-color: var(--k-ink); background: rgba(233, 236, 241, 0.06); }
.k-plan-cta--fill { background: var(--k-ink); color: var(--k-bg); border-color: var(--k-ink); }
.k-plan-cta--fill:hover { background: #FFFFFF; border-color: #FFFFFF; }
.k-cost-foot { margin-top: clamp(26px, 4svh, 40px); }

@media (max-width: 1180px) {
    .k-plans { grid-template-columns: 1fr 1fr; max-width: 780px; }
}
@media (max-width: 640px) {
    .k-plans { grid-template-columns: 1fr; max-width: 560px; }
}

/* ── 5 · Start + footer ─────────────────────────────────────────────────── */
/* The first-run promise is the section's voice; the wordmark lives small
   in the footer now — the hero owns the big one. */
.k-start-lede {
    margin-top: 18px;
    font-size: clamp(20px, 2.2vw, 30px);
    color: var(--k-ink);
    max-width: 30ch;
    line-height: 1.35;
}
.k-foot-mark {
    font-family: var(--k-displayface);
    font-weight: 800;
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    /* The fixed support launcher owns the viewport's bottom-left 72px;
       shift the mark clear of it at every gutter width. */
    padding-left: clamp(20px, calc(74px - var(--k-gutter)), 54px);
}
.k-start-row {
    margin-top: clamp(28px, 5svh, 56px);
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
/* The primary action is monochrome on purpose: the page's one hue belongs
   to machine state, never to the ask. */
.k-cta {
    background: var(--k-ink);
    color: var(--k-bg);
    font: 500 15px/1 var(--k-bodyface);
    letter-spacing: 0.01em;
    padding: 20px 42px;
    border-radius: 2px;
    transition: background 0.18s ease-out;
}
.k-cta:hover { background: #FFFFFF; }
.k-cta:active { transform: translateY(1px); }
.k-start-note { max-width: 34ch; line-height: 1.7; }

.k-start { padding-bottom: 0; }   /* the footer ends the page — no trailing air */
.k-foot {
    margin-top: clamp(64px, 12svh, 140px);
    border-top: 1px solid var(--k-line);
    padding: 30px 0 44px;
}
.k-foot-grid { display: flex; justify-content: space-between; align-items: baseline; gap: 24px 40px; flex-wrap: wrap; }
.k-foot-links { display: flex; gap: 28px; }
.k-foot-links a, .k-foot-links button { color: var(--k-dim); position: relative; padding: 4px 0; transition: color 0.18s ease-out; }
/* Buttons don't inherit the label voice through the UA sheet; restate it. */
.k-foot-support { font: inherit; letter-spacing: inherit; text-transform: inherit; line-height: 1; }
.k-foot-links a:hover, .k-foot-links button:hover { color: var(--k-ink); }
.k-foot-meta { display: grid; gap: 8px; justify-items: end; text-align: right; }

/* ── Terms gate modal ───────────────────────────────────────────────────── */
[hidden] { display: none !important; }
.k-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 11, 14, 0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.24s ease-out;
}
.k-modal-backdrop.k-open { opacity: 1; }
.k-modal {
    width: min(620px, 100%);
    max-height: 86svh;
    display: flex;
    flex-direction: column;
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: var(--k-radius);
    padding: clamp(20px, 3vw, 30px);
    transform: translateY(12px);
    transition: transform 0.34s var(--k-ease-slide);
}
.k-modal-backdrop.k-open .k-modal { transform: none; }
.k-modal-title {
    font-family: var(--k-displayface);
    font-weight: 700;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1;
    text-transform: uppercase;
}
.k-modal-lede { margin-top: 10px; color: var(--k-dim); font-size: 14px; }
.k-modal-terms {
    margin-top: 18px;
    padding-block: 4px 16px;
    border-top: 1px solid var(--k-line);
    border-bottom: 1px solid var(--k-line);
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}
.k-modal-terms h4 { margin: 18px 0 9px; }
.k-modal-terms ul { list-style: none; }
.k-modal-terms li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--k-dim);
}
.k-modal-terms li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 1px;
    background: var(--k-dim);
}
.k-modal-terms strong { color: var(--k-ink); font-weight: 500; }
.k-modal-terms a, .k-modal-check a { color: var(--k-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--k-line); }
.k-modal-full { margin-top: 14px; font-size: 13.5px; color: var(--k-dim); }
.k-modal-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--k-dim);
    cursor: pointer;
}
.k-modal-check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--k-ink);
    flex-shrink: 0;
}
.k-modal-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 20px; }
.k-modal-cancel {
    padding: 14px 22px;
    border: 1px solid var(--k-line);
    border-radius: 2px;
    color: var(--k-dim);
    font-size: 14px;
    transition: color 0.18s ease-out, border-color 0.18s ease-out;
}
.k-modal-cancel:hover { color: var(--k-ink); border-color: var(--k-dim); }
.k-modal-agree { padding: 14px 26px; font-size: 14px; }
.k-modal-agree[disabled] { opacity: 0.35; cursor: default; }
.k-modal-agree[disabled]:hover { background: var(--k-ink); }

/* ── Reduced motion: everything visible, nothing moves, no scroll hijack ── */
@media (prefers-reduced-motion: reduce) {
    .k-intro { display: none; }
    .k-hero { position: relative; }
    .k-hero-mark .k-maski { animation: none; transform: none; }
    .k-hero-tag { animation: none; opacity: 1; }
    .k-reveal .k-wi { transition: none !important; transform: none !important; }
    .k-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
    .k-uline::after { transition: none; }
}
html.k-rm .k-intro { display: none; }
html.k-rm .k-hero { position: relative; }
html.k-rm .k-hero-mark .k-maski { animation: none; transform: none; }
html.k-rm .k-hero-tag { animation: none; opacity: 1; }
html.k-rm .k-reveal .k-wi { transition: none !important; transform: none !important; }
html.k-rm .k-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
html.k-rm .k-uline::after { transition: none; }

/* ── Support widget, reskinned to this page's system ────────────────────── */
/* support.js injects its own <style> after this sheet, so these overrides
   carry !important. Function is untouched — colours and radii only. */
#vf-sup-launch {
    background: var(--k-surface) !important;
    border: 1px solid var(--k-line) !important;
    border-radius: var(--k-radius) !important;
    box-shadow: none !important;
}
#vf-sup-launch svg { stroke: var(--k-dim) !important; }
#vf-sup-launch:hover svg { stroke: var(--k-ink) !important; }
#vf-sup-panel {
    background: var(--k-surface) !important;
    border: 1px solid var(--k-line) !important;
    border-radius: var(--k-radius) !important;
    font-family: var(--k-bodyface) !important;
}
#vf-sup-panel .vf-sup-m.user { background: rgba(233, 236, 241, 0.08) !important; border-color: var(--k-line) !important; }
#vf-sup-panel .vf-sup-m .who { color: var(--k-dim) !important; }
#vf-sup-text:focus { border-color: var(--k-dim) !important; }
#vf-sup-send { background: var(--k-ink) !important; color: var(--k-bg) !important; border-radius: 2px !important; }
.vf-sup-iconbtn { color: var(--k-dim) !important; border-radius: 2px !important; }
