/* ═══════════════════════════════════════════════════════════════════════════
   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-bg2:      #0D1015;                     /* panel two's ground         */
    --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);
    transition: background 0.3s ease-out;
}
/* Once the page has moved at all the bar firms up (landing.js). */
.k-bar.k-scrolled { background: rgba(10, 11, 14, 0.82); }
/* 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;
}
/* The wordmark catches a light every few seconds: a bright band sweeps the
   glyphs on a pseudo-element that repeats the text (data-text) with the
   sheen clipped to it — the ink layer beneath keeps its shadow. */
.k-hero-mark .k-maski { position: relative; }
.k-hero-mark .k-maski::after {
    content: attr(data-text);
    position: absolute;
    left: 0; top: 0;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: none;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* A specular glint: a white core with faint dark shoulders, so the
       pass reads on ink that is already near-white. */
    background: linear-gradient(105deg, transparent 0 36%, rgba(0, 0, 0, 0.22) 44%, #FFFFFF 50%, rgba(0, 0, 0, 0.22) 56%, transparent 64% 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    animation: k-sheen 8s linear 3.4s infinite;
}
@keyframes k-sheen {
    0%, 68% { background-position: 100% 0; }
    100%    { background-position: 0% 0; }
}
/* Scroll cue: a label and a hairline the light runs down. It lives inside
   the hero content, so it fades with it on exit; it enters after the tag. */
.k-hero-cue {
    position: absolute;
    left: 50%;
    bottom: clamp(22px, 4svh, 40px);
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 12px;
    letter-spacing: 0.24em;
    color: var(--k-ink);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);   /* legible over any frame */
    opacity: 0;
    animation: k-fadein 0.8s ease-out 2.5s forwards;
}
@keyframes k-fadein { to { opacity: 1; } }
.k-hero-cue i {
    position: relative;
    display: block;
    width: 1px; height: 46px;
    background: rgba(233, 236, 241, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}
.k-hero-cue i::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--k-ink);
    transform: translateY(-100%);
    animation: k-cue 2.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes k-cue { to { transform: translateY(100%); } }
/* 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);
    /* A slow breathe so the quad is never a still, even between loops. */
    transform-origin: 50% 50%;
    animation: k-breathe 30s ease-in-out infinite alternate;
}
@keyframes k-breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
.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: var(--k-bg2);          /* 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;
    /* Fine pointers: the pile leans a few degrees toward the cursor
       (--tx/--ty from landing.js) and eases back on leave. */
    transform: perspective(1100px) rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg));
    transition: transform 0.55s var(--k-ease-reveal);
}
.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 · How it works: the engine ───────────────────────────────────────── */
/* The pipeline as an instrument. One panel: a status bar, the five stages
   on a rail (pip, connecting segment, live value, one line of what the
   stage does), and the job log beneath. landing.js runs one simulated job
   through it on a loop. The hue marks the stage the engine is on now —
   done stages settle to ink, pending ones wait as hairlines. */
.k-eng-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px clamp(30px, 5vw, 80px);
    flex-wrap: wrap;
}
.k-eng-head .k-h { max-width: 16ch; margin-top: 22px; }
.k-eng-lede { max-width: 40ch; font-size: 16px; }

.k-panel {
    margin-top: clamp(30px, 5svh, 56px);
    background: var(--k-surface);
    border: 1px solid var(--k-line);
    border-radius: 12px;
    overflow: hidden;
}
.k-panel-bar {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 26px);
    padding: 16px clamp(16px, 2.2vw, 28px);
    border-bottom: 1px solid var(--k-line);
}
.k-panel-name { color: var(--k-ink); }
.k-eng-state { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; color: var(--k-ink); }
.k-eng-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--k-live);
    animation: k-pulse 1.6s ease-out infinite;
}
.k-eng-state.k-done .k-eng-dot { background: var(--k-ink); animation: none; }
@keyframes k-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--k-live-rgb), 0.55); }
    100% { box-shadow: 0 0 0 10px rgba(var(--k-live-rgb), 0); }
}
.k-eng-clock { color: var(--k-ink); min-width: 5ch; text-align: right; }

.k-rail {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: clamp(22px, 3vw, 34px) clamp(16px, 2.2vw, 28px) clamp(24px, 3vw, 36px);
}
.k-stage {
    position: relative;
    display: grid;
    grid-template-columns: 10px 1fr auto;
    grid-template-rows: 10px auto auto;
    column-gap: 10px;
    align-items: center;
    align-content: start;      /* a shorter description must not float the rows */
    padding-right: clamp(18px, 2.4vw, 36px);
}
.k-pip {
    grid-column: 1; grid-row: 1;
    display: block;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 1px solid var(--k-dim);
    background: transparent;
    transition: background 0.3s ease-out, border-color 0.3s ease-out;
}
/* The segment runs from this pip toward the next; its fill is --p (0–1),
   set per frame by landing.js while the stage is live. */
.k-seg {
    grid-column: 2 / -1; grid-row: 1;
    position: relative;
    display: block;
    height: 1px;
    margin-right: calc(8px - clamp(18px, 2.4vw, 36px));
    background: var(--k-line);
    overflow: hidden;
}
.k-seg span {
    position: absolute;
    inset: 0;
    background: var(--k-live);
    transform: scaleX(var(--p, 0));
    transform-origin: 0 50%;
}
.k-stage:last-child .k-seg { display: none; }
.k-stage-name {
    grid-column: 1 / 3; grid-row: 2;
    margin-top: 18px;
    font-family: var(--k-displayface);
    font-weight: 700;
    font-size: clamp(19px, 1.5vw, 24px);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: rgba(233, 236, 241, 0.32);
    transition: color 0.3s ease-out;
}
.k-stage-val {
    grid-column: 3; grid-row: 2;
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: rgba(233, 236, 241, 0.32);
    white-space: nowrap;
    transition: color 0.3s ease-out;
}
.k-stage-desc {
    grid-column: 1 / -1; grid-row: 3;
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(139, 145, 155, 0.55);
    max-width: 26ch;
    transition: color 0.3s ease-out;
}
/* States. Done: ink pip, ink segment, ink name. Active: the hue on the pip
   (pulsing) and on the live value; the segment fills toward the next. */
.k-stage.k-done .k-pip { background: var(--k-ink); border-color: var(--k-ink); }
.k-stage.k-done .k-seg span { background: var(--k-ink); }
.k-stage.k-done .k-stage-name, .k-stage.k-done .k-stage-val { color: var(--k-ink); }
.k-stage.k-done .k-stage-desc { color: var(--k-dim); }
.k-stage.k-active .k-pip { background: var(--k-live); border-color: var(--k-live); animation: k-pulse 1.6s ease-out infinite; }
.k-stage.k-active .k-stage-name { color: var(--k-ink); }
.k-stage.k-active .k-stage-val { color: var(--k-live); }
.k-stage.k-active .k-stage-desc { color: var(--k-ink); }

.k-log {
    --k-logline: 22px;
    border-top: 1px solid var(--k-line);
    padding: 14px clamp(16px, 2.2vw, 28px) 16px;
    height: calc(var(--k-logline) * 5 + 30px);
    font: 500 12.5px/var(--k-logline) var(--k-monoface);
    letter-spacing: 0.01em;
    color: var(--k-dim);
    overflow: hidden;
}
.k-log p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-log b { font-weight: 500; color: var(--k-ink); }
.k-log p:nth-last-child(n+4) { opacity: 0.5; }
.k-log p:nth-last-child(n+5) { opacity: 0.3; }
.k-log p.k-new { animation: k-login 0.4s var(--k-ease-reveal) backwards; }
@keyframes k-login { from { opacity: 0; transform: translateY(10px); } }
.k-eng-note { margin-top: 16px; }

@media (max-width: 860px) {
    /* The rail turns vertical — the instrument-card read. Each segment
       hangs from its pip to the next; the fill runs top-down. */
    .k-rail { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 6px; }
    .k-stage {
        grid-template-columns: 10px 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 14px;
        padding: 0 0 22px;
    }
    .k-pip { grid-row: 1; align-self: center; }
    .k-seg {
        position: absolute;
        left: 4.5px; top: 20px; bottom: 2px;
        width: 1px; height: auto;
        margin: 0;
    }
    .k-seg span { transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
    .k-stage-name { grid-column: 2; grid-row: 1; margin-top: 0; }
    .k-stage-val { grid-column: 3; grid-row: 1; margin-top: 0; }
    .k-stage-desc { grid-column: 2 / -1; grid-row: 2; margin-top: 8px; max-width: none; }
    .k-stage:last-child { padding-bottom: 8px; }
}

/* ── 5 · Cost: the four quality bands ───────────────────────────────────── */
.k-cost-lede { font-size: 16px; max-width: 62ch; }
.k-cost-top { margin-top: 18px; }
/* Lede left, the length control right; on phones they stack. */
.k-cost-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px clamp(30px, 5vw, 80px);
    flex-wrap: wrap;
}
/* The length control: one hairline track, one ink thumb. Every card's
   example total follows it (landing.js initCost); without JS it is
   hidden and the ten-minute examples stand. */
.k-len { display: grid; gap: 14px; justify-items: start; padding-bottom: 4px; }
.k-len-row { display: flex; align-items: center; gap: 16px; }
.k-len-val { font-size: 13px; min-width: 6ch; }
.k-len-in {
    -webkit-appearance: none;
    appearance: none;
    width: clamp(180px, 22vw, 320px);
    height: 24px;
    background: transparent;
    cursor: pointer;
}
.k-len-in::-webkit-slider-runnable-track { height: 1px; background: rgba(233, 236, 241, 0.28); }
.k-len-in::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    margin-top: -6.5px;
    border-radius: 50%;
    background: var(--k-ink);
    border: 3px solid var(--k-bg2);
    box-shadow: 0 0 0 1px var(--k-ink);
    transition: transform 0.2s ease-out;
}
.k-len-in::-webkit-slider-thumb:hover { transform: scale(1.15); }
.k-len-in::-moz-range-track { height: 1px; background: rgba(233, 236, 241, 0.28); }
.k-len-in::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--k-ink);
    border: 3px solid var(--k-bg2);
    box-shadow: 0 0 0 1px var(--k-ink);
}
.k-len-in:focus-visible { outline: none; }
.k-len-in:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--k-ink); outline-offset: 3px; }
.k-len-in:focus-visible::-moz-range-thumb { outline: 2px solid var(--k-ink); outline-offset: 3px; }
html:not(.k-js) .k-len { display: none; }

.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;
}
/* Name and price share the first row at any card width; the per-minute
   label takes its own row beneath, right-aligned — so a narrow column can
   never push the price under the name. */
.k-plan-head {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 18px;
    row-gap: 8px;
    align-items: baseline;
}
.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: contents; }
.k-plan-price .k-label { grid-column: 1 / -1; grid-row: 2; justify-self: end; text-align: right; }
.k-plan-val {
    grid-column: 2; grid-row: 1;
    justify-self: end;
    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); }
/* Fine pointers: a card lifts under the cursor and a soft light follows it
   across the surface (--mx/--my set by landing.js). Touch keeps the flat
   card. The rise-in transition is restated here so hover can move the card
   after it has arrived. */
@media (hover: hover) and (pointer: fine) {
    .k-plan::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        border-radius: inherit;
        background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(233, 236, 241, 0.075), transparent 62%);
        opacity: 0;
        transition: opacity 0.35s ease-out;
        pointer-events: none;
    }
    .k-plan > :not(.k-plan-tag) { position: relative; z-index: 1; }
    .k-plan:hover::before { opacity: 1; }
    html.k-js .k-plan.k-on { transition: opacity 0.7s ease-out, transform 0.5s var(--k-ease-reveal), border-color 0.2s ease-out; }
    html.k-js .k-plan.k-on:hover { transform: translateY(-4px); }
}

@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; }
}

/* ── 6 · 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, transform 0.5s var(--k-ease-reveal);
}
.k-cta:hover { background: #FFFFFF; }
.k-cta:active { filter: brightness(0.9); }
.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; }
    .k-hero-mark .k-maski::after { display: none; }
    .k-hero-cue { display: none; }
    .k-clipgrid { animation: none; }
    .k-deck-pile { transform: none !important; transition: none; }
    .k-eng-dot, .k-stage.k-active .k-pip { animation: none; }
    .k-log p.k-new { animation: none; }
    .k-plan { transform: none !important; }
    .k-cta { transform: none !important; transition: background 0.18s ease-out; }
}
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; }
html.k-rm .k-hero-mark .k-maski::after { display: none; }
html.k-rm .k-hero-cue { display: none; }
html.k-rm .k-clipgrid { animation: none; }
html.k-rm .k-deck-pile { transform: none !important; transition: none; }
html.k-rm .k-eng-dot, .k-stage.k-active .k-pip { animation: none; }
html.k-rm .k-log p.k-new { animation: none; }
html.k-rm .k-plan { transform: none !important; }
html.k-rm .k-cta { transform: none !important; transition: background 0.18s ease-out; }

/* ── 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; }
