.netteFormsModal {
    border-radius: 10px;
    padding: 1.5rem !important;
    border: none !important;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background-color: #fff;
    font-family: sans-serif;
    max-width: 500px;
    width: 90%;
}

.netteFormsModal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.netteFormsModal button {
    background-color: #C6A35E;
    color: #251A04;
    border: none;
    padding: 0.5rem 1.5rem !important;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Landing page CTA buttons: stacked at ~75% screen width on mobile portrait,
   side-by-side at natural width from md (≥768px) up. Keeps stacked CTA pairs
   visually consistent regardless of label length. */
.btn-cta-stack {
    display: block;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .btn-cta-stack {
        display: inline-block;
        width: auto;
        margin-left: 0;
        margin-right: 0;
    }
}
/* A JS action is a button, never an <a href="#"> — this only makes it read as a link.
   Values mirror the theme's own `a` rule in pink-theme.css; do NOT reach for
   --bs-link-color here, that is Bootstrap's blue and not this theme's link colour. */
.btn-inline-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: #6c757d;
    text-decoration: none;
    cursor: pointer;
    transition: all 400ms ease-in-out;
}

/* Chrome paints a link for one frame in its previous state when its text colour fades towards a value the theme forces
   with !important (pink-theme.css `a:hover` and its menu rules): a button blinks white or gold as the pointer comes or
   goes (owner 2026-11-29; Firefox and Safari do not). Links keep fading their background, border and shadow, the text
   colour changes at once. The theme's own selectors, so these win by coming later. */
a,
.btn,
.wsmenu > .wsmenu-list > li > ul.sub-menu > li > a {
    transition-property: background-color, border-color, box-shadow, opacity, transform;
}

.btn-inline-link:hover {
    color: #353f4f;
    text-decoration: none;
}

.slug-preview-taken {
    color: #dc3545;
    font-weight: 600;
}

.slug-preview-card.is-taken {
    border-color: rgba(220, 53, 69, .4);
}

/* Signup setup page (verification + provisioning progress) */
.setup-code-field {
    display: flex;
    justify-content: center;
    gap: .5rem;
}

.setup-code-slot {
    width: 3rem;
    height: 3.75rem;
    padding: 0;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2b2b2b;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .6rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.setup-code-slot:focus {
    outline: 0;
    border-color: #C6A35E;
    box-shadow: 0 0 0 .2rem rgba(198, 163, 94, .25);
}

/* Per-box dot marks a slot still waiting; it clears the moment that box is filled. */
.setup-code-slot::placeholder {
    color: rgba(0, 0, 0, .22);
    opacity: 1;
}

@media (max-width: 420px) {
    .setup-code-field {
        gap: .35rem;
    }

    .setup-code-slot {
        width: 2.4rem;
        height: 3.2rem;
        font-size: 1.4rem;
    }
}

.setup-code-error {
    color: #dc3545;
    margin-top: .5rem;
}

/* Deliverability warning: the address's domain does not resolve — the code will bounce. */
.setup-email-warning {
    display: inline-block;
    background: #fdf6e3;
    border: 1px solid #e8d174;
    color: #8c6a15;
    border-radius: .6rem;
    padding: .5rem .9rem;
    margin-bottom: .75rem;
}

.setup-dev-hint {
    margin-top: .75rem;
    padding: .35rem .75rem;
    display: inline-block;
    border-radius: .5rem;
    background: rgba(198, 163, 94, .15);
    color: #8a6d2f;
    font-weight: 600;
}

.setup-loader {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border: 5px solid rgba(198, 163, 94, .25);
    border-top-color: #C6A35E;
    border-radius: 50%;
    animation: setup-spin 1s linear infinite;
}

@keyframes setup-spin {
    to { transform: rotate(360deg); }
}

/* CS / EN language toggle. Deliberately NOT a menu item: it sits outside
   `<ul class="wsmenu-list">` as a sibling of <nav>, so it cannot inherit the nav's
   item metrics (that mismatch is what made an earlier in-menu version sit too high).
   It must appear BEFORE <nav> in the source — right-floats stack right-to-left, so
   the first one placed is the one that lands at the far edge, past the CTA. */
.lang-toggle {
    display: flex;
    align-items: center;
}
.lang-toggle-bar {
    float: right;
    height: 70px;          /* same as .wsmenu, so it centres against the nav row */
    margin-left: 26px;
}
.lang-toggle-link {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 200ms ease-in-out, background-color 200ms ease-in-out;
}
.lang-toggle-link:hover {
    opacity: 1;
}
.lang-toggle-link.is-active {
    opacity: 1;
    font-weight: 700;
    background-color: rgba(198, 163, 94, 0.22);
}
.lang-toggle-sep {
    opacity: 0.45;
    font-size: 0.8rem;
    margin: 0 1px;
}
/* Colour mirrors how the theme colours its own nav links per header variant and
   scroll state — outside <nav> the `.h-link` rules no longer reach us. */
.navbar-light .lang-toggle-link,
.navbar-light .lang-toggle-sep { color: #fff; }
.navbar-dark .lang-toggle-link,
.navbar-dark .lang-toggle-sep { color: #353f4f; }
.tra-menu.white-scroll .scroll .lang-toggle-link,
.tra-menu.white-scroll .scroll .lang-toggle-sep { color: #353f4f; }

/* Mobile: the desktop bar is hidden by the theme, the toggle rides the mobile bar
   instead — left of the hamburger, which the theme pins to the right edge. */
.lang-toggle-mobile { display: none; }
/* The mobile bar stays `position: fixed` as the theme has it: fixed is already a containing block for the
   absolute toggle below, and switching it to relative let the logo's 22px top margin collapse through it,
   pushing the whole bar 22px down and leaving a strip of hero above it (seen on iOS, 2026-09-06). */
@media (max-width: 991px) {
    .lang-toggle-bar { display: none; }
    .lang-toggle-mobile {
        display: flex;
        position: absolute;
        top: 50%;
        right: 68px;
        transform: translateY(-50%);
    }
    .lang-toggle-mobile .lang-toggle-link,
    .lang-toggle-mobile .lang-toggle-sep { color: #353f4f; }
}

/* Contact strip above the header (_topStrip.latte) on every public page. It is not sticky: it scrolls away with the
   page, and the theme's fixed header sits below it by the part still on screen (--top-strip-offset, set by
   custom.js) until it reaches the top and sticks there as before. See-through over the dark hero; on pages with a
   light top (.top-strip--light) it keeps the page's white and turns its text grey (owner 2026-11-10: no purple band
   over a white page). Desktop only: on the phone a purple strip
   over the white header bar read as stripes (owner 2026-11-10), so there it is not shown and the drawer's last row
   carries the sign-in. */
.top-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1029;
    box-sizing: border-box;
    height: 30px;
    line-height: 29px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, .65);
}
.top-strip-in {
    display: flex;
    justify-content: space-between;
    max-width: 1340px;     /* the theme's .wsmainwp, so the strip lines up with the logo and the CTA */
    margin: 0 auto;
    padding: 0 22px 0 15px;
    white-space: nowrap;
}
.top-strip a {
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
}
/* The theme darkens every a:hover with !important; on the dark strip the links turn full white. */
.top-strip a:hover {
    color: #fff !important;
}
/* The light strip's rules come after the dark ones: equal specificity, the later wins. */
.top-strip--light {
    color: #6c757d;
    border-bottom-color: rgba(0, 0, 0, .08);
}
.top-strip--light a {
    color: #6c757d;
}
.top-strip--light a:hover {
    color: #353f4f !important;
}
.top-strip-dot {
    margin: 0 8px;
    opacity: .6;
}
/* The drawer's own sign-in row (menu*.latte) is for the phone only; the desktop has the strip. */
@media (min-width: 992px) {
    .top-strip ~ #header .header-wrapper {
        top: var(--top-strip-offset, 30px);
    }
    #header .top-strip-drawer-row { display: none; }   /* #header: outranks the theme's .wsmenu > .wsmenu-list > li */
}
@media (max-width: 991px) {
    .top-strip { display: none; }
}

/* The phone header bar's own compact „Vyzkoušet zdarma" (menu*.latte), left of the hamburger: the heroes carry no
   button, and the drawer's full-width one is a tap too deep. The bar is display:none above 991 px (theme). Pages
   with the CS / EN toggle (the legal pages) have no room for both in the bar, so the toggle keeps it and the
   sign-up stays in the drawer there. */
.wsmobileheader .header-cta-mobile {
    position: absolute;
    top: 50%;
    right: 56px;
    transform: translateY(-50%);
    margin: 0;
    padding: 8px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;   /* the menu's face, as the drawer's button */
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.wsmobileheader .lang-toggle-mobile ~ .header-cta-mobile,
.wsactive .wsmobileheader .header-cta-mobile { display: none; }   /* the open drawer shows its own */
/* At 360 px the full padding leaves no gap to the logo. */
@media (max-width: 374px) {
    .wsmobileheader .header-cta-mobile {
        right: 52px;
        padding: 8px 10px;
    }
}

/* A list down a slim gold line: a numbered ring per item, the label above its sentence. It was drawn for the
   homepage's five stages of a job, which the job paper tells since 2026-11-13; today only its plain variant below is
   on a page. Gold #C6A35E and ink #251A04 are the caption's and btn--theme's. */
.flow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: flow-step;
}
.flow-list > li {
    position: relative;
    padding-left: 52px;
    counter-increment: flow-step;
}
.flow-list > li + li {
    margin-top: 22px;
}
.flow-list > li::before {
    /* The label's first line is exactly as tall as the disc; 1 px down puts the disc's centre on the letters' centre. */
    content: counter(flow-step);
    position: absolute;
    top: 1px;
    left: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #C6A35E;
    border-radius: 50%;
    color: #251A04;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
}
.flow-list > li:not(:last-child)::after {
    /* From under this stop to the next one, across the gap between the items. */
    content: "";
    position: absolute;
    top: 31px;
    bottom: -23px;
    left: 14px;
    width: 2px;
    background: #C6A35E;
}
.flow-list-label {
    display: block;
    color: #353f4f;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 30px;
}
.flow-list-text {
    margin: 2px 0 0;
    padding-right: 0;
    color: #6c757d;
}
@media (max-width: 576px) {
    .flow-list > li {
        padding-left: 42px;
    }
    .flow-list > li + li {
        margin-top: 20px;
    }
    .flow-list > li::before {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    .flow-list > li:not(:last-child)::after {
        top: 27px;
        bottom: -21px;
        left: 12px;
    }
    .flow-list-label {
        font-size: 1.0625rem;
        line-height: 26px;
    }
}

/* The same list as proofs, not steps (homepage „Marže bez přepisování"): a small gold square per line instead of the
   numbered disc, no line between them. Its centre sits where the disc's does, on the label's letters. */
.flow-list--plain > li {
    padding-left: 32px;
}
.flow-list--plain > li::before {
    content: "";
    top: 10px;
    width: 12px;
    height: 12px;
    background: #C6A35E;
    border: 0;
    border-radius: 2px;
}
.flow-list--plain > li:not(:last-child)::after {
    content: none;
}
@media (max-width: 576px) {
    .flow-list--plain > li {
        padding-left: 26px;
    }
    .flow-list--plain > li::before {
        top: 8px;
    }
}

/* Homepage „Pro zakázkové firmy, které jezdí za zákazníkem" — the trades as one centred, wrapped row of links to their
   landings: white with a gold border, gold fill on hover; the 4 px radius is the site's buttons' (r-04). */
.industry-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.industry-chips a {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #C6A35E;
    border-radius: 4px;
    color: #251A04;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    /* No colour fade: the theme's `a:hover` colour is !important and Chrome blinks such a fade (see the `a` rule above). */
    transition: background-color 200ms ease;
}
.industry-chips a:hover,
.industry-chips a:focus-visible {
    background: #C6A35E;
    color: #251A04;
}
@media (max-width: 576px) {
    .industry-chips {
        gap: 8px;
    }
    .industry-chips a {
        padding: 9px 14px;
        font-size: 0.875rem;
    }
}

/* Homepage pricing block (_pricing.cs.latte): a dark ink panel with the gold figure of the free trial on the left, what
   a small firm pays at most on the right; stacks on a phone. No price list is shown (owner 2026-11-16). */
.price-card {
    display: flex;
    max-width: 56rem;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(198, 163, 94, .5);
    border-radius: 1.25rem;
    box-shadow: 0 30px 70px rgba(37, 26, 4, .12);
    overflow: hidden;
}
.price-card .price-tag {
    position: relative;
    flex: 0 0 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(198, 163, 94, .12), transparent 70%),
        linear-gradient(160deg, #33270F 0%, #251A04 100%);
    overflow: hidden;
}
.price-card .price-from {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.price-card .price-amount {
    display: flex;
    align-items: flex-start;
    font-size: 4.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    white-space: nowrap;
    background: linear-gradient(180deg, #F3E2B8 0%, #C6A35E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.price-card .price-period {
    margin-top: .5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .7);
}
.price-card .price-trial {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2.75rem 2.75rem;
}
.price-card .price-trial-title {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: #251A04;
}
.price-card .price-facts {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Plain points, not ticks: a tick reads as „done" (owner 2026-11-16). The mark is the gold square of the homepage's
   „Marže bez přepisování" list (.flow-list--plain), smaller to fit the card's text. */
.price-card .price-facts li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .3rem 0;
    font-size: 1.05rem;
    color: #353f4f;
}
.price-card .price-facts li::before {
    content: "";
    flex: 0 0 10px;
    height: 10px;
    margin-top: .55em;
    background: #C6A35E;
    border-radius: 2px;
}
@media (max-width: 767px) {
    .price-card { flex-direction: column; }
    .price-card .price-tag { padding: 3.25rem 1.5rem 2.5rem; }
    .price-card .price-amount { font-size: 3.75rem; }
    .price-card .price-trial { align-items: stretch; padding: 2rem 1.5rem; }
}

/* Public manual (Manual/default.latte, Manual/article.latte): the sheet is the manual's own bundle shared with the app's
   /help (assets/css/manual.bundle.css, built from app/UI/src/sass/manual.scss); the site keeps only its width and the
   call to try Worke at the end of a chapter. */
.manual-page .container {
    max-width: 1240px;
}
.manual-try {
    margin-top: 40px;
    padding: 24px 28px;
    background: #fbf8f0;
    border-radius: 10px;
}

/* Phone frame around a mobile screenshot, 780 px wide (browser shots 780×1688, store-app shots from the simulator 780×1595
   with the system status bar cut off): bezel, status strip with the camera island, home indicator, side button. */
.phone-frame {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 360px;
    padding: 12px;
    background: linear-gradient(160deg, #3a3a3a, #101010 60%);
    border-radius: 52px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 2px #262626, inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-frame::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 150px;
    width: 4px;
    height: 84px;
    border-radius: 2px;
    background: #2a2a2a;
}
.phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    background: #fff;
    padding: 36px 0 22px;
}
.phone-screen::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 96px;
    height: 26px;
    transform: translateX(-50%);
    border-radius: 14px;
    background: #101010;
}
.phone-screen::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 120px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 3px;
    background: #1d1d1d;
}
.phone-screen img {
    display: block;
    width: 100%;
    height: auto;
}

/* Slides (_slides.cs.latte, slides.js): the site's one way of showing real screens — they fade through one place, in the
   phone frame (.screen-slides--phone) or as they are (.screen-slides--wide). The first slide stays in flow and gives the track its
   height, the others lie over it; caption and dots sit under it. */
.screen-slides {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}
.screen-slides--phone {
    display: inline-flex;
    max-width: 360px;
}
.screen-slides--wide .screen-slides-track {
    width: 100%;
}
.screen-slides--wide .screen-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}
.screen-slides-track {
    position: relative;
}
.screen-slide {
    display: block;
    opacity: 0;
    transition: opacity 600ms ease;
}
.screen-slide + .screen-slide {
    position: absolute;
    inset: 0;
}
.screen-slide.is-active {
    opacity: 1;
}
/* The fading slides are stacked (absolute, inset 0): without this a click lands on the last slide in the DOM, not the visible one, and the lightbox opens the wrong screen. */
.screen-slide:not(.is-active) {
    pointer-events: none;
}
.screen-slides-caption {
    /* Two lines tall and full width whatever the caption, so nothing moves when it changes. */
    align-self: stretch;
    min-height: calc(2.6em + 16px);
    display: flex;
    align-items: center;
    margin: 0;
    padding: 8px 14px;
    background: #fffdf7;
    color: #251A04;
    border-left: 4px solid #C6A35E;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}
.screen-slides-dots {
    display: flex;
    gap: 8px;
}
.screen-slides-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d8cfbd;
    cursor: pointer;
    transition: width 250ms ease, background-color 250ms ease;
}
.screen-slides-dots button[aria-current="true"] {
    width: 28px;
    background: #C6A35E;
}
.screen-slides-dots button:focus-visible {
    outline: 2px solid #C6A35E;
    outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .screen-slide {
        transition: none;
    }
}

/* Field clips (_fieldClip.cs.latte): a row of equal cards under the problems they answer; the player is beside the lightbox. */
.field-clips {
    display: grid;
    /* as many equal columns as fit: three cards stand side by side from a laptop up (1200 px), two share a row on a tablet */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.field-clip {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 8px 18px 8px 8px;
    border: 1px solid rgba(37, 26, 4, 0.14);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field-clip:hover,
.field-clip:focus-visible {
    border-color: #C6A35E;
    box-shadow: 0 8px 20px rgba(37, 26, 4, 0.08);
}
.field-clip:focus-visible {
    outline: 2px solid #C6A35E;
    outline-offset: 3px;
}
.field-clip-thumb {
    position: relative;
    flex: none;
    width: 56px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 8px;
    background: #101010;
}
.field-clip-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* The play mark: a gold disc (::after) with a dark triangle on it (::before). */
.field-clip-thumb::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 999px;
    background: #C6A35E;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.field-clip-thumb::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -3px;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent #251A04;
}
.field-clip-text {
    display: block;
    min-width: 0;
}
.field-clip-label {
    display: block;
    color: #251A04;
    font-weight: 600;
    line-height: 1.35;
}
.field-clip-length {
    display: block;
    margin-top: 2px;
    color: #6b665a;
    font-size: 0.85rem;
}
@media (max-width: 767px) {
    .field-clips {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (prefers-reduced-motion: reduce) {
    .field-clip {
        transition: none;
    }
}

/* Scroll story (scroll-story.js): a sticky stage whose frame follows the step in view. */
.scroll-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: stretch;
    --story-stage-h: min(78vh, 780px);
}
/* The theme's overflow: hidden made these scroll containers and killed sticky below them; clip does not. */
#page,
.wsmenucontainer {
    overflow: clip;
}
/* The column is as tall as all the steps, so the stage can stick inside it. The stage pins at the
   screen centre (35 px down for the fixed header), where the steps switch, not at the top. */
.scroll-story-stage-col {
    position: relative;
}
.scroll-story-stage {
    position: sticky;
    top: calc((100vh - var(--story-stage-h)) / 2 + 35px);
    height: var(--story-stage-h);
}
.scroll-story-frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}
.scroll-story-frame.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
/* The wide frame's <picture> takes the stage height, so the image scales inside it and keeps its ratio. */
.scroll-story-frame > picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
/* The phone's height follows its width (a 780:1688 image + 82 px of chrome — the receipt story's 780:1595 frames are
   shorter and fit under the same cap), so the width is capped by the stage height too. */
.scroll-story-frame .phone-frame {
    max-width: min(360px, calc((var(--story-stage-h) - 82px) * 0.462 + 24px));
}
.scroll-story-frame img.story-wide {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}
/* The fact chip of the scroll story. */
.scroll-story-chip {
    position: absolute;
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    max-width: 92%;
    padding: 10px 16px;
    background: #fffdf7;
    color: #251A04;
    border-left: 4px solid #C6A35E;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}
.scroll-story-step {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.35;
    transition: opacity 0.35s ease;
}
/* Tall enough to hold the centred stage pinned until the last step reaches the centre, and 200 px past it, so the
   last step's text still scrolls on its own before the whole page takes the stage away (owner, 2026-10-10). The
   padding keeps the text where it was; the min-height grows by the same amount. */
.scroll-story-step:last-child {
    min-height: calc(var(--story-stage-h) + 270px);
    padding-bottom: 200px;
}
.scroll-story-step.is-active,
.scroll-story.is-static .scroll-story-step {
    opacity: 1;
}
/* Step number: a big gold numeral, with a small "Krok" label above it. */
.scroll-story-num {
    display: block;
    margin: 0 0 6px;
    font-size: 6.5rem;
    line-height: 0.85;
    font-weight: 800;
    letter-spacing: -0.05em;
    /* On the way to the screen centre the solid gold runs down the numeral until it fills it; past the centre, on the
       way up, it drains from the top the same way. scroll-story.js sets --step-progress and --step-leaving on the
       step, so the numeral must only read them (a declaration here would shadow them at 0). */
    --num-fade: calc((1 - var(--step-progress, 0)) * 92%);
    background: linear-gradient(180deg,
        rgba(198, 163, 94, 0.08) 0%,
        #C6A35E calc(var(--num-fade) * var(--step-leaving, 0)),
        #C6A35E calc(100% - var(--num-fade) * (1 - var(--step-leaving, 0))),
        rgba(198, 163, 94, 0.08) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.scroll-story-num::before {
    content: "Krok";
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8a7346;
    -webkit-text-fill-color: #8a7346;
}
.scroll-story-step h3 {
    margin-top: 4px;
}
.scroll-story-step h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 12px;
}
@media (max-width: 991px) {
    .scroll-story {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    /* One column: the stage sticks inside the whole grid, not inside a row of its own height. */
    .scroll-story-stage-col {
        display: contents;
    }
    .scroll-story-stage {
        position: sticky;
        top: 70px;
        height: 56vh;
        z-index: 2;
        background: #fff;
    }
    .scroll-story-frame .phone-frame {
        max-width: min(200px, calc((56vh - 82px) * 0.462 + 24px));
    }
    .scroll-story-step {
        min-height: 40vh;
    }
    .scroll-story-step:last-child {
        min-height: calc(50vh + 200px);
    }
    .scroll-story-num {
        font-size: 4.5rem;
    }
}
/* Phone: no sticky stage (it left a 30 % strip for the text). The story reads as a plain sequence,
   frame above its step, reordered with `order` through display: contents on both wrappers. */
@media (max-width: 767px) {
    .scroll-story {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .scroll-story-stage-col,
    .scroll-story-stage,
    .scroll-story-steps {
        display: contents;
    }
    .scroll-story-frame {
        position: relative;
        inset: auto;
        opacity: 1;
        transform: none;
        transition: none;
        pointer-events: auto;
        padding: 8px 0 20px;
    }
    .scroll-story-frame[data-frame="0"] { order: 1; }
    .scroll-story-step[data-step="0"] { order: 2; }
    .scroll-story-frame[data-frame="1"] { order: 3; }
    .scroll-story-step[data-step="1"] { order: 4; }
    .scroll-story-frame[data-frame="2"] { order: 5; }
    .scroll-story-step[data-step="2"] { order: 6; }
    .scroll-story-frame .phone-frame {
        max-width: 240px;
    }
    .scroll-story-frame > picture {
        height: auto;
    }
    .scroll-story-frame img.story-wide {
        max-height: none;
        max-width: min(100%, 360px);
        /* A width before the image loads: with width auto a lazy image is 0×0 here and never starts loading. */
        width: min(100%, 360px);
    }
    .scroll-story-chip {
        bottom: 28px;
    }
    .scroll-story-step,
    .scroll-story-step:last-child {
        min-height: 0;
        opacity: 1;
        padding: 0 0 48px;
    }
    .scroll-story-num {
        font-size: 3.5rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-story-frame,
    .scroll-story-step {
        transition: none;
    }
}
/* A story shown by a tab jumps to the reader's step without fading through the one it held while hidden (scroll-story.js). */
.scroll-story.is-instant .scroll-story-frame,
.scroll-story.is-instant .scroll-story-step {
    transition: none;
}

/* Click-to-open lightbox (lightbox.js) for <img data-lightbox>; a field clip plays in the same overlay (field-clips.js). */
img[data-lightbox] {
    cursor: zoom-in;
}
/* The overlay scrolls, so a full-page screenshot can be read to its end. */
.lightbox {
    --lightbox-gap-y: 32px;
    --lightbox-gap-x: 24px;
    position: fixed;
    inset: 0;
    z-index: 1300;
    overflow-y: auto;
    padding: var(--lightbox-gap-y) var(--lightbox-gap-x);
    background: rgba(20, 16, 8, 0.86);
    cursor: zoom-out;
}
.lightbox img {
    display: block;
    width: min(1400px, 100%);
    height: auto;
    margin: 0 auto;
}
.lightbox img,
.field-clip-player-stage {
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-open {
    overflow: hidden;
}
/* A field clip: a bar on top for the link to YouTube and the ×, so they never cover the clip's own buttons; under it a
   9:16 stage as tall as the rest of the window — on a phone the whole width, no corners. */
.field-clip-player {
    --field-clip-bar: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--field-clip-bar);
}
.field-clip-player-stage {
    position: relative;
    height: min(calc(100vh - var(--field-clip-bar) - var(--lightbox-gap-y)), calc((100vw - 2 * var(--lightbox-gap-x)) * 16 / 9));
    height: min(calc(100dvh - var(--field-clip-bar) - var(--lightbox-gap-y)), calc((100vw - 2 * var(--lightbox-gap-x)) * 16 / 9));
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #101010 center / cover no-repeat;
    cursor: auto;
}
.field-clip-player-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.field-clip-player-open,
.field-clip-player-close,
.lightbox-close,
.phone-full-close {
    position: absolute;
    top: 12px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}
.field-clip-player-open {
    left: 16px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: none;
}
/* The theme darkens every a:hover with !important; on the dark backdrop the link stays white. */
.field-clip-player-open:hover {
    color: #fff !important;
}
.field-clip-player-close,
.lightbox-close,
.phone-full-close {
    right: 16px;
    width: 44px;
    padding: 0;
}
/* The picture's overlay scrolls, so its × is pinned to the window; over a light screenshot it needs its own dark disc. */
.lightbox-close {
    position: fixed;
    z-index: 1;
    background: rgba(20, 16, 8, 0.72);
}
.field-clip-player-close::before,
.field-clip-player-close::after,
.lightbox-close::before,
.lightbox-close::after,
.phone-full-close::before,
.phone-full-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    margin: -1px 0 0 -9px;
    border-radius: 2px;
    background: #fff;
    transform: rotate(45deg);
}
.field-clip-player-close::after,
.lightbox-close::after,
.phone-full-close::after {
    transform: rotate(-45deg);
}
.field-clip-player-open:hover,
.field-clip-player-open:focus-visible,
.field-clip-player-close:hover,
.field-clip-player-close:focus-visible,
.phone-full-close:hover,
.phone-full-close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: rgba(20, 16, 8, 0.9);
}
.field-clip-player-open:focus-visible,
.field-clip-player-close:focus-visible,
.lightbox-close:focus-visible,
.phone-full-close:focus-visible {
    outline: 2px solid #C6A35E;
    outline-offset: 2px;
}
@media (max-width: 767px) {
    .field-clip-player {
        --lightbox-gap-y: 0px;
        --lightbox-gap-x: 0px;
    }
    .field-clip-player-stage {
        border-radius: 0;
        box-shadow: none;
    }
    .field-clip-player-open {
        left: 12px;
    }
    .field-clip-player-close,
    .lightbox-close {
        right: 12px;
    }
}

/* FAQ answers: a link reads by its colour alone — no underline, no bold (theme default) */
.question p a,
.accordion-panel p a {
    font-weight: inherit;
    text-decoration: none;
}
.question p a:hover,
.accordion-panel p a:hover {
    text-decoration: underline;
}

/* Story tabs: several scroll stories on one page, one at a time (_storyTabs.cs.latte, story-tabs.js). A segmented
   switch so it reads as tabs at a glance: a light track, each story a pill, the open one filled dark with the stories'
   gold. The switch sticks under the site header (80 px) while the reader scrolls through a story, so it can be
   switched mid-way (owner, 2026-10-07); the story's own sticky stage moves down by the bar's height. */
.story-tabs {
    --story-tabs-header-h: 80px;
    --story-tabs-bar-h: 78px;
    padding-top: 100px;
}
.story-tabs-hint {
    margin: 0 0 6px;
    padding: 0 16px;
    text-align: center;
    color: #8a8f99;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.story-tabs-bar {
    position: sticky;
    top: var(--story-tabs-header-h);
    z-index: 5;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.story-tabs-head {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Exactly the bar's height, so the stage offset below matches the pixels. */
    height: var(--story-tabs-bar-h);
}
.story-tabs-nav {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    background: #f4efe4;
    border: 1px solid rgba(198, 163, 94, 0.35);
    border-radius: 999px;
}
.story-tabs-tab {
    padding: 12px 26px;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #5b4a2a;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.story-tabs-label-short {
    display: none;
}
.story-tabs-tab:hover {
    background: #fffdf7;
    color: #251A04;
}
.story-tabs-tab[aria-selected="true"] {
    background: #251A04;
    color: #E2C88F;
    box-shadow: 0 6px 16px rgba(37, 26, 4, 0.25);
}
.story-tabs-tab:focus-visible {
    outline: 2px solid #C6A35E;
    outline-offset: 3px;
}
.story-tabs-panel[hidden] {
    display: none;
}
/* story-tabs.js sets the scroll position itself; the browser's scroll anchoring must not shift it on the swap. */
.story-tabs-panel {
    overflow-anchor: none;
}
.story-tabs-panel > section.py-100 {
    padding-top: 50px;
}
/* The story's stage centres in the screen below the header AND the stuck bar. */
.story-tabs .scroll-story {
    --story-stage-h: min(calc(78vh - var(--story-tabs-bar-h)), 780px);
}
.story-tabs .scroll-story-stage {
    top: calc((100vh - var(--story-stage-h) - var(--story-tabs-bar-h)) / 2 + 35px + var(--story-tabs-bar-h));
}
@media (max-width: 991px) {
    .story-tabs .scroll-story-stage {
        top: calc(var(--story-tabs-header-h) + var(--story-tabs-bar-h));
    }
}
@media (max-width: 767px) {
    .story-tabs {
        --story-tabs-bar-h: 68px;
        padding-top: 60px;
    }
    .story-tabs-nav {
        border-radius: 22px;
    }
    .story-tabs-tab {
        padding: 10px 14px;
        font-size: 1rem;
    }
    /* Three full labels need two rows on a phone and the sticky bar is one row tall: the short ones keep one. */
    .story-tabs-label-full {
        display: none;
    }
    .story-tabs-label-short {
        display: inline;
    }
    .story-tabs-panel > section.py-100 {
        padding-top: 30px;
    }
}

/* The store-app banner above every footer (_appBanner.latte, the theme's banner-12): badges 46px tall at every width
   (Apple's minimum is 40; Google's PNGs are trimmed to the badge), the shared phone frame as its device. */
/* A light warm card (owner 2026-10-15: the purple call to action sits right above it, and gold on purple does not
   read): dark text, the deep gold that carries words on light (the mobile header's --mobile-gold-text family). */
.app-banner .banner-12-wrapper {
    position: relative;
    background: linear-gradient(160deg, #fbf6ec 0%, #f3e7cf 100%);
    border: 1px solid rgba(197, 163, 93, 0.35);
}
/* The theme banners' dot fields (bg-03.jpg: bottom-left and top-right), drawn in gold on the light card. */
.app-banner .banner-12-wrapper::before,
.app-banner .banner-12-wrapper::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 70px;
    background-image: radial-gradient(circle, rgba(154, 122, 56, 0.45) 1.2px, transparent 1.6px);
    background-size: 11px 11px;
    pointer-events: none;
}
/* In the corner, below the text: higher up it ran through the link to the crew landing (owner 2026-10-15). */
.app-banner .banner-12-wrapper::before {
    left: 0;
    bottom: 0;
    height: 46px;
}
.app-banner .banner-12-wrapper::after {
    display: none;
}
@media (min-width: 768px) {
    /* Beside the device in the two-column layout; a phone's stacked card keeps only the bottom-left field. */
    .app-banner .banner-12-wrapper::after {
        display: block;
        right: 330px;
        top: 40px;
        width: 160px;
        height: 56px;
    }
}
.app-banner .banner-overlay {
    position: relative;
    z-index: 1;
}
.app-banner h2 {
    color: #1d1b26;
}
.app-banner p.p-lg {
    color: #4a4a57;
}
.app-banner-eyebrow,
.app-banner-link,
.app-banner-link:hover {
    color: #7a5f26;
}
.app-banner-accent {
    color: #8a6d2f;
}
.app-banner-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.app-banner-stores .store {
    margin: 0;
}
.app-banner-stores .store img {
    height: 46px;
    width: auto;
}
.app-banner-more {
    margin: 20px 0 0;
}
/* banner-12 pads only the left (its device overflows the card); the text needs air above and below. */
.app-banner .banner-12-txt {
    padding: 55px 0;
}
.app-banner-phone {
    max-width: 260px;
}
@media (max-width: 767.98px) {
    .app-banner .banner-12-txt {
        padding: 0;
    }
    .app-banner-stores {
        justify-content: center;
    }
    .app-banner-phone {
        max-width: 200px;
    }
}

/* The site's tappable phone (_phoneDemo.cs.latte, skill erp-phone-demo): the store app's screens live in their own page
   (PhoneDemo, phone-demo.css) and fill the whole screen of the frame, the 36 px status strip under the island included —
   so the app's launch screen covers it too. The island and the home indicator stay drawn over the page. */
.phone-frame--live .phone-screen {
    padding: 0;
    background: #1e1e2d;
}
.phone-frame--live .phone-screen::before,
.phone-frame--live .phone-screen::after {
    z-index: 1;
}
.phone-live {
    position: relative;
    padding-top: 36px;
}
.phone-live::after {
    content: "";
    display: block;
    aspect-ratio: 780 / 1595;
}
.phone-live iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* On a phone the tappable phone is no phone in a phone (owner 2026-11-16): the frame loses its bezel, island and home
   indicator and shows a still of the home, cut off with a fade; a tap on it (.phone-open, front/js/phone-full.js) opens
   the demo page over the whole screen under .phone-full-bar, whose × and the system's back both leave it. The framed
   iframe is not shown there, and a lazy frame that is never shown is never fetched. */
.phone-open { display: none; }
.phone-full {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    background: #1e1e2d;
}
.phone-full-bar {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: calc(52px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 64px 0 16px;
    color: rgba(255, 255, 255, .86);
    font-size: .95rem;
    font-weight: 500;
}
.phone-full-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.phone-full-close {
    top: calc(4px + env(safe-area-inset-top, 0px));
    right: 8px;
}
.phone-full iframe {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
    background: #fcfcfc;
}
@media (max-width: 767.98px) {
    .phone-frame--live {
        max-width: 100%;
        padding: 0;
        background: none;
        border-radius: 24px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    }
    .phone-frame--live::after,
    .phone-frame--live .phone-screen::before,
    .phone-frame--live .phone-screen::after,
    .phone-frame--live .phone-live { display: none; }
    .phone-frame--live .phone-screen { border-radius: 24px; background: #fcfcfc; }
    .phone-open {
        display: block;
        width: 100%;
        max-height: min(64svh, 520px);
        padding: 0;
        border: 0;
        overflow: hidden;
        background: none;
        cursor: pointer;
        text-decoration: none;
        -webkit-mask-image: linear-gradient(#000 72%, transparent);
        mask-image: linear-gradient(#000 72%, transparent);
    }
    .phone-open:focus-visible { outline: 3px solid #C6A35E; outline-offset: -3px; }
}

/* „Tap it" without words over the tappable phone (_phoneDemo.cs.latte, owner 2026-11-10: „nějaký prst, co na to kliká …
   co zmizí za chvíli, nebo po prvním kliku"): a gold finger in the middle of the screen's bottom third presses three times
   (1.1 s each) with a ripple under its tip, then the whole hint fades — about 5 s. phone-tap-hint.js holds it paused
   (.is-waiting) until the phone is in view and removes it at the first tap. Clicks pass through to the iframe. */
.phone-tap-hint {
    position: absolute;
    left: 50%;
    top: calc(83.333% - 28px); /* the finger's centre on the centre of the screen's bottom third (owner 2026-11-10) */
    z-index: 2;
    width: 46px;
    height: 56px;
    margin-left: -23px;
    pointer-events: none;
    opacity: 0;
    animation: phone-tap-hint-show 5s ease forwards;
}
.phone-tap-hint-finger {
    position: relative;
    display: block;
    width: 46px;
    height: 56px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
    animation: phone-tap-hint-press 1.1s ease-in-out 0.3s 3;
}
.phone-tap-hint-ripple {
    /* Centred under the fingertip at the bottom of the press. */
    position: absolute;
    left: 20px;
    top: 8px;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 3px solid #C6A35E;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: phone-tap-hint-ripple 1.1s ease-out 0.3s 3;
}
.phone-tap-hint.is-waiting,
.phone-tap-hint.is-waiting .phone-tap-hint-finger,
.phone-tap-hint.is-waiting .phone-tap-hint-ripple {
    animation-play-state: paused;
}
@keyframes phone-tap-hint-show {
    0% { opacity: 0; }
    6% { opacity: 1; }
    84% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
@keyframes phone-tap-hint-press {
    0%, 100% { transform: translateY(0); }
    35%, 55% { transform: translateY(6px) scale(0.96); }
}
@keyframes phone-tap-hint-ripple {
    0%, 30% { opacity: 0; transform: scale(0.3); }
    40% { opacity: 0.9; transform: scale(0.5); }
    100% { opacity: 0; transform: scale(1.6); }
}
@media (prefers-reduced-motion: reduce) {
    /* Still, for 3 s, then gone. */
    .phone-tap-hint {
        animation: phone-tap-hint-still 3s step-end forwards;
    }
    .phone-tap-hint-finger {
        animation: none;
    }
    .phone-tap-hint-ripple {
        animation: none;
        opacity: 0.6;
    }
}
@keyframes phone-tap-hint-still {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* The homepage hero's papers (Home/content.cs.latte, front/js/hero-papers.js, skill erp-drawn-style): three job results
   set straight on the dark hero above a few drawn papers around the Worke box; at rest each job shows only a guess. Hovering
   a paper reads it (it lifts, a gold line sweeps it, its value gets a marker and a tag). One click on the box or on the
   button under it (.is-sorted): the papers fly into its funnel, it wiggles and blinks, three slips leave its outputs for the
   jobs, every guess gives way to the real result, a gold line runs down every job and its breakdown unfolds; the box
   shrinks to the bottom and the button goes. A second click on the box puts everything back.
   --u is the stage's unit: every drawn thing is sized in it, positions across use cqw of .hero-papers. --pw is the width
   of a job's breakdown. A phone gets one job and plays by scroll: the two blocks before the reduced-motion one. */
.hero-papers {
    --bg-0: #181129;
    --gold: #DCC08A;
    --gold-strong: #F0D7A4;
    --gold-line: rgba(220, 192, 138, .36);
    --ink: #FFFFFF;
    --ink-soft: rgba(255, 255, 255, .74);
    --ink-faint: rgba(255, 255, 255, .5);
    --rule: rgba(255, 255, 255, .16);
    --loss: #FF6680;
    --gain: #4FD08A;
    --paper: #F3EAD6;
    --paper-pink: #F3D3D2;
    --paper-yellow: #F4E5A8;
    --paper-green: #DCE6D2;
    --paper-ink: #2A2038;
    --marker: #F6C546;
    --stamp: #B5483F;
    --skin-a: #EBC9A3;
    --skin-b: #D9A77C;
    --skin-c: #F0D2B2;
    --hair: #3A2A22;
    --vest: #F08A2B;
    --cap-a: #F08A2B;
    --cap-b: #F2C230;
    --cap-c: #5B8DD6;
    --cap-d: #6BBF8A;
    --box: #D8B98A;
    --box-dark: #C9A671;
    --sack: #ECE4CF;
    --wood: #A9794B;
    --display: 'Plus Jakarta Sans', sans-serif;
    --body: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --print: ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
    --spring: cubic-bezier(.2, .9, .3, 1.15);
    container-type: inline-size;
    min-width: 0;
    /* 20px more air under the lead sentence (owner 2026-11-16); the scrolled desktop layout takes them back under the scene. */
    margin-top: clamp(36px, calc(2.4vw + 20px), 52px);
    color: var(--ink);
}
@supports (transition-timing-function: linear(0, 1)) {
    .hero-papers { --spring: linear(0, .32 8%, .72 17%, .96 26%, 1.06 34%, 1.08 41%, 1.05 49%, 1.01 59%, .995 70%, 1); }
}
.hero-papers-intro {
    max-width: 1120px;
    margin-inline: auto;
    text-wrap: balance;
}
/* The theme pads .summit-txt p on the right for a left-aligned hero; this one is centred. */
.hero-papers-intro p { padding-right: 0; }
.hero-papers-stage {
    --u: clamp(5.2px, min(1cqw, .76vh), 8px);
    /* When, after the sort, the results start to appear: after a click the papers fly in first */
    --reveal: 1.6s;
    --cy: calc(var(--u) * 40.5);
    --pw: min(calc(var(--u) * 40), calc((100cqw - var(--u) * 18) / 3));
    position: relative;
    height: calc(var(--u) * 67.5);
}

/* Job results */
.hero-papers-results { position: absolute; inset: 0 0 auto; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; pointer-events: none; }
/* Two hairlines between the three breakdowns, so they read as three jobs and not as one table */
.hero-papers-results::before, .hero-papers-results::after { content: ""; position: absolute; top: calc(var(--u) * 18); width: 1px; height: calc(var(--u) * 35); background: linear-gradient(transparent, var(--rule) 12%, var(--rule) 88%, transparent); opacity: 0; transition: opacity .2s; }
.hero-papers-results::before { left: calc(25% + var(--pw) / 4); }
.hero-papers-results::after { left: calc(75% - var(--pw) / 4); }
.hero-papers-stage.is-sorted .hero-papers-results::before, .hero-papers-stage.is-sorted .hero-papers-results::after { opacity: 1; transition: opacity .4s 1.9s; }
.hero-papers-job { position: relative; display: grid; justify-items: center; align-content: start; gap: .3em; min-width: 0; text-align: center; }
.hero-papers-job--side { padding-top: clamp(12px, 4.6cqw, 46px); }
/* Sorted, the three jobs are read one after another, left to right, each --jd after the first: three scans running
   at once looked odd (owner 2026-11-13: „jak jedou všechny souběžně, vypadá to trochu divně“) */
.hero-papers-job--left { --jd: 0s; }
.hero-papers-job--main { --jd: .45s; }
.hero-papers-job--right { --jd: .9s; }
.hero-papers-job-name { font: 500 clamp(12px, 2.1cqw, 17px)/1.25 var(--body); color: var(--ink-soft); white-space: nowrap; }
.hero-papers-job-fig { display: inline-grid; justify-items: center; font: 800 clamp(18px, 3.5cqw, 30px)/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--gain); }
/* Until the papers are sorted there is only a guess: a rough figure stands where the real result will be */
.hero-papers-job-q, .hero-papers-job-n, .hero-papers-job-cap-q, .hero-papers-job-cap-n { grid-area: 1 / 1; }
.hero-papers-job-q { color: var(--ink-soft); transition: opacity .2s; }
/* „asi" is a small word before the figure, so the guess is no wider than the real result */
.hero-papers-job-q small { font-size: .42em; font-weight: 700; letter-spacing: 0; }
.hero-papers-job-n, .hero-papers-job-cap-n { opacity: 0; transition: opacity .2s; }
.hero-papers-job-cap-q { transition: opacity .2s; }
.hero-papers-stage.is-sorted .hero-papers-job-q, .hero-papers-stage.is-sorted .hero-papers-job-cap-q { opacity: 0; transition: opacity .2s calc(var(--reveal) + var(--jd)); }
.hero-papers-stage.is-sorted .hero-papers-job-n, .hero-papers-stage.is-sorted .hero-papers-job-cap-n { opacity: 1; transition: opacity .35s calc(var(--reveal) + var(--jd) + .1s); }
.hero-papers-job--loss .hero-papers-job-fig { color: var(--loss); }
.hero-papers-job-cap { display: inline-grid; justify-items: center; font: 500 clamp(10px, 1.65cqw, 13px)/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); }
.hero-papers-job--main .hero-papers-job-name { font-size: clamp(14px, 2.6cqw, 21px); color: var(--ink); }
.hero-papers-job--main .hero-papers-job-fig { font-size: clamp(30px, 6.9cqw, 66px); }
.hero-papers-stage.is-sorted .hero-papers-job-fig { animation: hero-papers-fig-glow 1.1s ease-out calc(var(--reveal) + var(--jd) + .1s); }
@keyframes hero-papers-fig-glow { 25% { text-shadow: 0 0 32px currentColor; } }

/* After the box has sorted: a gold line runs down every job and what it cost unfolds under it */
.hero-papers-job::after {
    content: ""; position: absolute; z-index: 2; top: 0; left: 50%; width: var(--pw); height: 2px; translate: -50% 0; border-radius: 2px; opacity: 0;
    background: linear-gradient(90deg, transparent, var(--gold-strong) 18%, var(--ink) 50%, var(--gold-strong) 82%, transparent);
    box-shadow: 0 0 12px 3px rgba(240, 215, 164, .65);
}
.hero-papers-job--left::after { left: 0; translate: none; }
.hero-papers-job--right::after { left: auto; right: 0; translate: none; }
.hero-papers-stage.is-sorted .hero-papers-job::after { animation: hero-papers-scan 1.15s cubic-bezier(.35, 0, .4, 1) calc(var(--reveal) + var(--jd) + .1s) both; }
@keyframes hero-papers-scan { 0% { top: 0; opacity: 0; } 8%, 92% { opacity: 1; } 100% { top: calc(100% + max(var(--u) * 34, 250px)); opacity: 0; } }

.hero-papers-scan { position: absolute; top: calc(100% + var(--u) * 1.6); left: 50%; width: var(--pw); translate: -50% 0; display: grid; gap: calc(var(--u) * 1.2); text-align: left; visibility: hidden; opacity: 0; clip-path: inset(0 0 100% 0); transition: opacity .15s, visibility 0s .15s, clip-path 0s .15s; }
.hero-papers-job--left .hero-papers-scan { left: 0; translate: none; }
.hero-papers-job--right .hero-papers-scan { left: auto; right: 0; translate: none; }
.hero-papers-stage.is-sorted .hero-papers-scan { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); transition: opacity .15s calc(var(--reveal) + var(--jd) + .15s), visibility 0s calc(var(--reveal) + var(--jd) + .15s), clip-path .9s cubic-bezier(.3, 0, .3, 1) calc(var(--reveal) + var(--jd) + .23s); }
.hero-papers-scan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: calc(var(--u) * .8) calc(var(--u) * 1.2); }
.hero-papers-scan-key { display: flex; align-items: center; gap: calc(var(--u) * 1.1); min-width: 0; font: 500 clamp(11px, 1.6cqw, 15px)/1.25 var(--body); color: var(--ink-faint); }
.hero-papers-scan-key em { font-style: normal; color: var(--gold-strong); }
.hero-papers-scan-val { font: 800 clamp(13px, 2cqw, 20px)/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.hero-papers-scan-row--flag .hero-papers-scan-val { background: var(--marker); color: var(--paper-ink); border-radius: 4px; padding: .14em .42em; }
.hero-papers-scan-people { grid-column: 1 / -1; display: flex; gap: calc(var(--u) * 1.8); }
.hero-papers-person { display: grid; justify-items: center; gap: 2px; }
.hero-papers-person b { font: 500 clamp(10px, 1.45cqw, 14px)/1.15 var(--body); color: var(--ink); }
.hero-papers-person i { font: 700 clamp(10px, 1.45cqw, 14px)/1.15 var(--display); font-style: normal; font-variant-numeric: tabular-nums; color: var(--gold-strong); }
.hero-papers-scan-sum b { font: 800 clamp(13px, 2cqw, 20px)/1.1 var(--display); }
/* The total stays under the amounts even when the line wraps */
.hero-papers-scan-sum > span:last-child { margin-left: auto; }
.hero-papers-scan-sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1em 1.2em; padding-top: calc(var(--u) * 1.1); border-top: 1px solid var(--rule); font: 500 clamp(11px, 1.6cqw, 15px)/1.3 var(--body); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-papers-scan-sum i { font-style: normal; color: var(--ink-faint); margin-right: .5em; }

/* Drawn people and material inside the breakdown */
.hero-papers-draw { display: block; flex: none; }
.hero-papers-draw svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 calc(var(--u) * .35) calc(var(--u) * .7) rgba(8, 4, 20, .5)); }
.hero-papers-draw--face { width: calc(var(--u) * 6); }
.hero-papers-draw--material { width: calc(var(--u) * 7.6); }
.hero-papers-draw--sub { width: calc(var(--u) * 3.7); }
.hero-papers-f-skin, .hero-papers-f-cap, .hero-papers-f-vest, .hero-papers-m-box, .hero-papers-m-sack, .hero-papers-m-wood { stroke: var(--paper-ink); stroke-width: 2.4; stroke-linejoin: round; }
.hero-papers-f-skin--a { fill: var(--skin-a); }
.hero-papers-f-skin--b { fill: var(--skin-b); }
.hero-papers-f-skin--c { fill: var(--skin-c); }
.hero-papers-f-cap--a { fill: var(--cap-a); }
.hero-papers-f-cap--b { fill: var(--cap-b); }
.hero-papers-f-cap--c { fill: var(--cap-c); }
.hero-papers-f-cap--d { fill: var(--cap-d); }
.hero-papers-f-vest { fill: var(--vest); }
.hero-papers-f-hair { fill: var(--hair); }
.hero-papers-f-brim { fill: none; stroke: var(--paper-ink); stroke-width: 3.2; stroke-linecap: round; }
.hero-papers-f-eye { fill: var(--paper-ink); }
.hero-papers-f-mouth { fill: none; stroke: var(--paper-ink); stroke-width: 2; stroke-linecap: round; }
.hero-papers-f-glass { fill: rgba(255, 255, 255, .4); stroke: var(--paper-ink); stroke-width: 1.8; }
.hero-papers-m-box { fill: var(--box); }
.hero-papers-m-box--b { fill: var(--box-dark); }
.hero-papers-m-sack { fill: var(--sack); }
.hero-papers-m-wood { fill: var(--wood); }
.hero-papers-m-leg { fill: none; stroke: var(--wood); stroke-width: 4.5; stroke-linecap: round; }

/* The heap and the box */
.hero-papers-heap { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-papers-heap::before { content: ""; position: absolute; left: 50%; top: var(--cy); width: 86cqw; height: calc(var(--u) * 48); translate: -50% -50%; background: radial-gradient(closest-side, rgba(236, 190, 110, .17), transparent 72%); transition: opacity .4s; }
.hero-papers-stage.is-sorted .hero-papers-heap::before { opacity: 0; }

.hero-papers-box {
    position: absolute; left: 0; top: 0; z-index: 20; width: calc(var(--u) * 30);
    margin: 0; padding: 0; background: none; border: 0; border-radius: 16px; color: inherit; font: inherit; line-height: 1;
    pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
    translate: calc(50cqw - 50%) calc(var(--u) * 39.5 - 50%);
    transition: translate .6s var(--spring), scale .6s var(--spring);
}
.hero-papers-box:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 3px; }
.hero-papers-stage { transition: height .4s ease; }
.hero-papers-stage.is-sorted { height: max(calc(var(--u) * 67.5), calc(var(--after, 0px) + var(--u) * 15)); transition: height .4s ease 1.3s; }
.hero-papers-stage.is-sorted .hero-papers-box { translate: calc(50cqw - 50%) calc(var(--after, var(--u) * 52) + var(--u) * 7.6 - 50%); scale: .37; transition: translate .6s var(--spring) 1.5s, scale .6s var(--spring) 1.5s; }
.hero-papers-box-in { display: block; position: relative; transform-origin: 50% 90%; filter: drop-shadow(0 calc(var(--u) * .7) calc(var(--u) * 1.4) rgba(8, 4, 20, .55)); transition: translate .2s ease; }
.hero-papers-box:hover .hero-papers-box-in, .hero-papers-box:focus-visible .hero-papers-box-in { translate: 0 calc(var(--u) * -.7); }
.hero-papers-stage.is-sorted .hero-papers-box-in { animation: hero-papers-munch .95s ease-in-out; }
@keyframes hero-papers-munch { 0%, 100% { rotate: 0deg; scale: 1 1; } 15% { rotate: -3deg; scale: 1.03 .97; } 35% { rotate: 3deg; scale: .98 1.03; } 55% { rotate: -2.5deg; scale: 1.03 .97; } 75% { rotate: 2deg; scale: .99 1.02; } }
.hero-papers-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-papers-box-lamp { fill: var(--marker); transition: filter .2s; }
.hero-papers-box:hover .hero-papers-box-lamp { filter: drop-shadow(0 0 6px var(--marker)); }
.hero-papers-stage.is-sorted .hero-papers-box-lamp { animation: hero-papers-lamp .95s steps(1, end); }
@keyframes hero-papers-lamp { 0%, 40%, 80% { fill: var(--ink); } 20%, 60%, 100% { fill: var(--marker); } }
.hero-papers-box-out { opacity: 0; transition: opacity .2s; }
.hero-papers-stage.is-sorted .hero-papers-box-out { opacity: 1; transition: opacity .2s .85s; }
/* The one button of the stage, a drawn key: it does what a click on the box does. Once sorted it fades and then leaves
   the tab order (visibility after the fade), so a keyboard cannot land on an invisible control. */
.hero-papers-cta {
    position: absolute; left: 0; top: 0; z-index: 22; width: calc(var(--u) * 22); translate: calc(50cqw - 50%) calc(var(--u) * 62 - 50%);
    margin: 0; padding: 0; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; line-height: 1;
    pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .2s;
}
.hero-papers-cta:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 3px; }
.hero-papers-stage.is-sorted .hero-papers-cta { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s; }
.hero-papers-cta svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 calc(var(--u) * .6) calc(var(--u) * 1.2) rgba(8, 4, 20, .5)); }
.hero-papers-cta-text { font: 800 27px var(--display); fill: var(--paper-ink); }
/* The key's top sinks into its base when pointed at and pressed */
.hero-papers-cta-press { transition: translate .09s ease; }
.hero-papers-cta:hover .hero-papers-cta-press { translate: 0 3px; }
.hero-papers-cta:active .hero-papers-cta-press { translate: 0 13px; }
.hero-papers-box-pupils { transition: translate .25s ease; }
.hero-papers-stage.is-sorted .hero-papers-box-pupils { translate: 0 -3px; transition: translate .3s ease 1.1s; }

/* Three sorted sheets leave the box's three outputs, one for each job */
.hero-papers-slip { position: absolute; left: 0; top: 0; z-index: 22; width: calc(var(--u) * 6.4); opacity: 0; pointer-events: none; translate: var(--from); }
.hero-papers-slip--l { --from: calc(50cqw - var(--u) * 6.3 - 50%) calc(var(--u) * 48 - 50%); --to: calc(var(--pw) / 2 - 50%) calc(var(--u) * 21 - 50%); }
.hero-papers-slip--c { --from: calc(50cqw - 50%) calc(var(--u) * 49 - 50%); --to: calc(50cqw - 50%) calc(var(--u) * 21 - 50%); }
.hero-papers-slip--r { --from: calc(50cqw + var(--u) * 6.3 - 50%) calc(var(--u) * 48 - 50%); --to: calc(100cqw - var(--pw) / 2 - 50%) calc(var(--u) * 21 - 50%); }
.hero-papers-stage.is-sorted .hero-papers-slip { animation: hero-papers-slip .95s cubic-bezier(.4, 0, .2, 1) both; }
.hero-papers-stage.is-sorted .hero-papers-slip--l { animation-delay: .95s; }
.hero-papers-stage.is-sorted .hero-papers-slip--c { animation-delay: 1.03s; }
.hero-papers-stage.is-sorted .hero-papers-slip--r { animation-delay: 1.11s; }
@keyframes hero-papers-slip { 0% { translate: var(--from); opacity: 0; scale: .5; } 14% { opacity: 1; scale: 1; } 78% { translate: var(--to); opacity: 1; scale: 1; } 100% { translate: var(--to); opacity: 0; scale: .8; } }

/* The finger: taps a few times, then fades for good */
.hero-papers-hint { position: absolute; left: 76%; top: 60%; width: calc(var(--u) * 6.5); pointer-events: none; animation: hero-papers-hint-life 7s ease forwards; }
.hero-papers-hint svg { display: block; width: 100%; height: auto; overflow: visible; animation: hero-papers-hint-tap 1.5s ease-in-out 4; }
.hero-papers-hint-hand { fill: var(--ink); stroke: var(--bg-0); stroke-width: 2; stroke-linejoin: round; }
.hero-papers-hint-ring { fill: none; stroke: var(--gold-strong); stroke-width: 2; transform-origin: 18px 12px; animation: hero-papers-hint-ring 1.5s ease-out 4; }
.hero-papers-stage.is-touched .hero-papers-hint { display: none; }
@keyframes hero-papers-hint-life { 0%, 84% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes hero-papers-hint-tap { 0%, 100% { translate: 0 0; } 38% { translate: -8% -10%; scale: .93; } }
@keyframes hero-papers-hint-ring { 0%, 30% { scale: .4; opacity: 0; } 42% { opacity: .9; } 100% { scale: 1.7; opacity: 0; } }

/* The papers */
.hero-papers-paper {
    position: absolute; left: 0; top: 0; display: block; width: calc(var(--u) * var(--w));
    margin: 0; padding: 0; background: none; border: 0; color: inherit; font: inherit; line-height: 1; text-align: left;
    pointer-events: auto; cursor: default; -webkit-tap-highlight-color: transparent;
    translate: calc(var(--x) * 1cqw - 50%) calc(var(--cy) + var(--y) * var(--u) - 50%);
    rotate: calc(var(--r) * 1deg);
    z-index: var(--z);
    transition: translate .6s var(--spring) calc(var(--i) * 40ms), rotate .6s var(--spring) calc(var(--i) * 40ms), scale .5s ease calc(var(--i) * 40ms), opacity .25s ease calc(var(--i) * 40ms);
}
.hero-papers-paper[data-kind="invoice"] { --w: 21; --chip-y: 76%; }
.hero-papers-paper[data-kind="receipt"] { --w: 11; --chip-y: 62%; }
.hero-papers-paper[data-kind="dnote"] { --w: 21; --chip-y: 70%; }
.hero-papers-paper[data-kind="ticket"] { --w: 17; --chip-y: 73%; }
/* Into the box's funnel, one after another */
.hero-papers-stage.is-sorted .hero-papers-paper {
    translate: calc(50cqw - 50%) calc(var(--u) * 28 - 50%); rotate: 0deg; scale: .15; opacity: 0; pointer-events: none;
    transition: translate .5s cubic-bezier(.5, 0, .75, .4) calc(var(--i) * 40ms), rotate .5s ease calc(var(--i) * 40ms), scale .5s ease-in calc(var(--i) * 40ms), opacity .15s ease calc(var(--i) * 40ms + .38s);
}
.hero-papers-paper.is-reading { z-index: 60; }
.hero-papers-paper:focus-visible { outline: none; }
.hero-papers-paper:focus-visible .hero-papers-body { outline: 2px solid var(--gold-strong); outline-offset: 3px; }
.hero-papers-body {
    --shadow: drop-shadow(0 calc(var(--u) * .5) calc(var(--u) * 1.1) rgba(8, 4, 20, .5));
    display: block; position: relative; filter: var(--shadow);
    transition: translate .22s ease, rotate .22s ease, scale .22s ease, filter .25s ease;
}
.hero-papers-paper svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-papers-heap.has-reading .hero-papers-paper:not(.is-reading) .hero-papers-body { filter: brightness(.6) saturate(.8) var(--shadow); }
.hero-papers-paper.is-reading .hero-papers-body { translate: 0 calc(var(--u) * -1.6); rotate: calc(var(--r) * -1deg); scale: 1.18; }

/* The reading line and what it leaves behind */
.hero-papers-body::after {
    content: ""; position: absolute; left: -3%; right: -3%; top: 0; height: 2px; border-radius: 2px; opacity: 0; pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--gold-strong) 18%, var(--ink) 50%, var(--gold-strong) 82%, transparent);
    box-shadow: 0 0 12px 3px rgba(240, 215, 164, .65);
}
.hero-papers-paper.is-reading .hero-papers-body::after { animation: hero-papers-sweep .8s cubic-bezier(.4, 0, .5, 1) both; }
@keyframes hero-papers-sweep { 0% { top: 2%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 97%; opacity: 0; } }

.hero-papers-chip {
    position: absolute; top: var(--chip-y); left: calc(100% + var(--u) * 2.2); translate: 0 -50%;
    display: grid; gap: 2px; padding: 6px 12px 7px; border-radius: 10px; white-space: nowrap; text-align: left;
    background: rgba(20, 13, 36, .92); border: 1px solid var(--gold-line);
    opacity: 0; pointer-events: none; transition: opacity .18s;
}
.hero-papers-chip::before { content: ""; position: absolute; top: 50%; right: 100%; width: calc(var(--u) * 2.2); height: 1.5px; background: var(--gold); }
.hero-papers-paper[data-side="l"] .hero-papers-chip { left: auto; right: calc(100% + var(--u) * 2.2); }
.hero-papers-paper[data-side="l"] .hero-papers-chip::before { right: auto; left: 100%; }
.hero-papers-chip-k { font: 500 11px/1.2 var(--body); letter-spacing: .04em; color: var(--ink-soft); }
.hero-papers-chip-v { font: 800 19px/1.1 var(--display); color: var(--gold-strong); font-variant-numeric: tabular-nums; }
.hero-papers-paper.is-reading .hero-papers-chip { opacity: 1; transition-delay: .55s; }

/* How a paper is drawn */
.hero-papers-sheet { fill: var(--paper); stroke: var(--paper-ink); stroke-width: 2.6; stroke-linejoin: round; }
.hero-papers-sheet--pink { fill: var(--paper-pink); }
.hero-papers-sheet--yellow { fill: var(--paper-yellow); }
.hero-papers-sheet--green { fill: var(--paper-green); }
.hero-papers-shade { fill: var(--paper-ink); opacity: .09; }
.hero-papers-band { fill: var(--paper-ink); opacity: .15; }
.hero-papers-line { fill: none; stroke: var(--paper-ink); stroke-opacity: .55; stroke-width: 3; stroke-linecap: round; }
.hero-papers-rule { fill: none; stroke: var(--paper-ink); stroke-opacity: .4; stroke-width: 1.6; }
.hero-papers-bar { fill: none; stroke: var(--paper-ink); stroke-opacity: .7; stroke-width: 2.2; }
.hero-papers-blob { fill: var(--paper-ink); opacity: .5; }
.hero-papers-stamp { fill: none; stroke: var(--stamp); stroke-width: 2.4; opacity: .55; }
.hero-papers-head { font: 700 17px var(--print); letter-spacing: .05em; fill: var(--paper-ink); }
.hero-papers-head--s { font-size: 13.5px; }
.hero-papers-key { font: 400 15px var(--print); fill: var(--paper-ink); }
.hero-papers-key--s { font-size: 13px; }
.hero-papers-val { font: 700 16px var(--print); fill: var(--paper-ink); }
.hero-papers-val--s { font-size: 13px; }
.hero-papers-val--l { font-size: 20px; }
.hero-papers-mark { fill: var(--marker); opacity: 0; transition: opacity .2s; }
.hero-papers-paper.is-reading .hero-papers-mark { opacity: .85; transition-delay: .45s; }

/* Phone: one job, the losing one, over the papers marked data-phone (pose --px / --py, order --pi); result, heap and box
   from the top, 90 units under the 80 px header, the breakdown unfolds where the heap lay. A tap on the box sorts. */
@media (max-width: 767.98px) {
    .hero-papers { margin-top: 28px; }
    .hero-papers-stage {
        --u: max(4.2px, min(calc(100cqw / 64), calc((100svh - 104px) / 90)));
        --cy: calc(var(--u) * 42.5);
        --fy: calc(var(--u) * 66);
        --pw: min(100cqw, calc(var(--u) * 60));
        height: calc(var(--u) * 90);
    }
    .hero-papers-stage.is-sorted { height: calc(var(--u) * 90); }

    .hero-papers-results { display: block; }
    .hero-papers-results::before, .hero-papers-results::after { content: none; }
    /* The one job a phone shows is the losing one (.hero-papers-job--phone, a side job on a desktop): a guess and a
       result a few thousand apart read as „a number, then another number“ (owner 2026-11-16) */
    .hero-papers-job:not(.hero-papers-job--phone) { display: none; }
    .hero-papers-job--phone { --jd: 0s; padding-top: 0; }
    .hero-papers-job--phone::after, .hero-papers-job--phone .hero-papers-scan { left: 50%; right: auto; translate: -50% 0; }
    .hero-papers-job--phone .hero-papers-job-name { font-size: clamp(14px, calc(var(--u) * 2.8), 19px); color: var(--ink); }
    .hero-papers-job--phone .hero-papers-job-fig { font-size: clamp(34px, calc(var(--u) * 7.6), 60px); }
    .hero-papers-job-cap { font-size: clamp(11px, calc(var(--u) * 2.1), 14px); }
    .hero-papers-scan { top: calc(100% + var(--u) * 3); gap: calc(var(--u) * 1.9); }
    .hero-papers-scan-key, .hero-papers-scan-sum { font-size: clamp(13px, calc(var(--u) * 2.6), 18px); }
    .hero-papers-scan-val, .hero-papers-scan-sum b { font-size: clamp(16px, calc(var(--u) * 3.4), 24px); }
    .hero-papers-scan-people { justify-content: space-around; gap: calc(var(--u) * 2); }
    .hero-papers-person b, .hero-papers-person i { font-size: clamp(12px, calc(var(--u) * 2.4), 16px); }
    .hero-papers-draw--face { width: calc(var(--u) * 8.5); }
    .hero-papers-draw--material { width: calc(var(--u) * 10); }
    .hero-papers-draw--sub { width: calc(var(--u) * 5); }

    .hero-papers-heap::before { width: 100cqw; height: calc(var(--u) * 50); }
    .hero-papers-box { width: calc(var(--u) * 26); translate: calc(50cqw - 50%) calc(var(--u) * 74 - 50%); }
    /* Sorted, the box stays under the breakdown: shrunk as on a desktop it stood alone in an empty half of the screen */
    .hero-papers-stage.is-sorted .hero-papers-box { translate: calc(50cqw - 50%) calc(var(--u) * 75 - 50%); scale: .8; }
    /* Its outputs are three sheets, then their three sets of lines: the phone's one job takes the centre slot, the second of each */
    .hero-papers-box-out path:not(:nth-child(3n + 2)) { display: none; }
    .hero-papers-cta, .hero-papers-slip--l, .hero-papers-slip--r { display: none; }
    .hero-papers-hint { width: calc(var(--u) * 7.5); }
    .hero-papers-slip { width: calc(var(--u) * 8); }
    .hero-papers-slip--c { --from: calc(50cqw - 50%) calc(var(--u) * 80 - 50%); --to: calc(50cqw - 50%) calc(var(--u) * 9 - 50%); }

    .hero-papers-paper:not([data-phone]) { display: none; }
    .hero-papers-paper[data-kind="invoice"], .hero-papers-paper[data-kind="dnote"] { --w: 18; }
    .hero-papers-paper[data-kind="receipt"] { --w: 9.5; }
    .hero-papers-paper[data-kind="ticket"] { --w: 14.5; }
    .hero-papers-paper {
        translate: calc(var(--px) * 1cqw - 50%) calc(var(--cy) + var(--py) * var(--u) - 50%);
        transition: translate .6s var(--spring) calc(var(--pi) * 40ms), rotate .6s var(--spring) calc(var(--pi) * 40ms), scale .5s ease calc(var(--pi) * 40ms), opacity .25s ease calc(var(--pi) * 40ms);
    }
    .hero-papers-stage.is-sorted .hero-papers-paper {
        translate: calc(50cqw - 50%) calc(var(--fy) - 50%);
        transition: translate .5s cubic-bezier(.5, 0, .75, .4) calc(var(--pi) * 40ms), rotate .5s ease calc(var(--pi) * 40ms), scale .5s ease-in calc(var(--pi) * 40ms), opacity .15s ease calc(var(--pi) * 40ms + .38s);
    }
    /* A read paper's tag sits on it under the marked value: beside it there is no room, above it stands the result */
    .hero-papers-chip, .hero-papers-paper[data-side="l"] .hero-papers-chip { top: calc(var(--chip-y) + var(--u) * 2.4); left: 50%; right: auto; translate: -50% 0; }
    .hero-papers-chip::before { content: none; }
}

/* …and the scroll does the click, unless motion is reduced or the viewport is too low for the stage: the stage sticks
   while .hero-papers scrolls past. Its first stretch of scroll (a screen on a phone) is the sorting: hero-papers.js
   writes the way gone over it as --p (0 → 1), each paper rides its own slice of it into the funnel (--t) and past the
   last one the script sets .is-sorted. After it comes the hold, --hold stretches long (the script reads it), where the stage stays pinned
   and --p runs on past 1: the result and its breakdown are read by it too (the block after the two layouts), so
   nobody scrolls past the scene before it has played (owner 2026-11-13: „pustí ho to moc rychle z view“). */
@media (max-width: 767.98px) and (min-height: 480px) and (prefers-reduced-motion: no-preference) {
    .hero-papers { --hold: 1; }
    .hero-papers::after { content: ""; display: block; height: calc(100svh * (1 + var(--hold))); }
    .hero-papers-stage { --rl: .8; --by0: calc(var(--u) * 74); --by1: calc(var(--u) * 75); --bs: .2; position: sticky; top: max(92px, calc(80px + (100svh - 80px - var(--u) * 90) / 2)); }
    .hero-papers-job--phone { --rs: .6; }
    .hero-papers-hint { display: none; }
    .hero-papers-paper, .hero-papers-stage.is-sorted .hero-papers-paper {
        --t: clamp(0, calc((var(--p, 0) - .03 - var(--pi) * .05) / .13), 1);
        --e: calc(var(--t) * var(--t));
        translate: calc((var(--px) + (50 - var(--px)) * var(--e)) * 1cqw - 50%) calc(var(--cy) + var(--py) * var(--u) + (var(--fy) - var(--cy) - var(--py) * var(--u)) * var(--e) - 50%);
        rotate: calc(var(--r) * (1 - var(--t)) * 1deg);
        scale: calc(1 - .85 * var(--e));
        opacity: clamp(0, calc((1 - var(--t)) * 5), 1);
        transition: none;
        will-change: translate, rotate, scale, opacity;
    }
    .hero-papers-box-in { --f: clamp(0, calc((var(--p, 0) - .06) / .45), 1); rotate: calc(sin(var(--f) * 25.13) * 2.6deg); will-change: rotate; }
    .hero-papers-stage.is-sorted .hero-papers-box-in, .hero-papers-stage.is-sorted .hero-papers-box-lamp { animation-duration: .6s; }
    .hero-papers-stage.is-sorted .hero-papers-box-pupils { transition-delay: .15s; }
    .hero-papers-stage.is-sorted .hero-papers-box-out { transition-delay: .3s; }
    .hero-papers-stage.is-sorted .hero-papers-slip--c { animation-duration: .75s; animation-delay: .15s; }
}
/* On a desktop the scroll sorts too (owner 2026-11-13: „místo klikání v desktopu na třídiče se to udělá taky scrolováním
   jako vše ostatní … prostě scrolování to bude samo třídit“; the click was „moc interaktivní“, and whoever did not
   click never saw a result). A track with a sorting stretch and a hold, as on a phone: all sixteen papers ride their slices of
   --p (by --i) into the funnel, the three sheets leave sooner than after a click, the key and the finger are left out
   and a click on the box takes the page where the scroll would. The stage is pinned by about the height it has once
   sorted: 78 to 85 units, most where the unit is at its floor, so the sticky top centres 84 and the box stays above the
   fold of the lowest window this runs in.
   The hold is longer than a phone's: three results are read in it one after another and the sorted scene then stands
   about a screen more before the page moves on. Its length was set three times in a day (owner 2026-11-14): a third
   of a screen was „dotřídí to a hned ho to pouští dál“, most of one still „tady se to musí zpozdit dýl“, and nearly
   two lost a visitor („teď jsem koukal na člověka a ten scrolloval, až to vzdal, tak to zase zrychlíme“). So a unit
   of --p is three quarters of a screen here, which shortens the sorting and the reading alike, and the hold is 2.5
   of them: about two and a half screens pinned in all, one of them standing.
   2026-11-16, a fourth time („zrychlil scrol animaci, strasne to nakonec trva“): a unit is .6 of a screen and the
   hold 2.2 of them — just under two screens pinned in all, about two thirds of one standing.
   Reduced motion or a viewport too low for the pinned stage keeps the click. */
@media (min-width: 768px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
    .hero-papers { --hold: 2.2; margin-bottom: -20px; }
    .hero-papers::after { content: ""; display: block; height: calc(60svh * (1 + var(--hold))); }
    .hero-papers-stage { --rl: .5; --by0: calc(var(--u) * 39.5); --by1: calc(var(--after, var(--u) * 52) + var(--u) * 7.6); --bs: .63; position: sticky; top: max(96px, calc(80px + (100svh - 80px - var(--u) * 84) / 2)); }
    .hero-papers-job--left { --rs: .62; }
    .hero-papers-job--main { --rs: 1.12; }
    .hero-papers-job--right { --rs: 1.62; }
    .hero-papers-cta, .hero-papers-hint { display: none; }
    .hero-papers-paper, .hero-papers-stage.is-sorted .hero-papers-paper {
        --t: clamp(0, calc((var(--p, 0) - .03 - var(--i) * .0233) / .13), 1);
        --e: calc(var(--t) * var(--t));
        translate: calc((var(--x) + (50 - var(--x)) * var(--e)) * 1cqw - 50%) calc(var(--cy) + var(--y) * var(--u) + (var(--u) * 28 - var(--cy) - var(--y) * var(--u)) * var(--e) - 50%);
        rotate: calc(var(--r) * (1 - var(--t)) * 1deg);
        scale: calc(1 - .85 * var(--e));
        opacity: clamp(0, calc((1 - var(--t)) * 5), 1);
        transition: none;
        will-change: translate, rotate, scale, opacity;
    }
    .hero-papers-box-in { --f: clamp(0, calc((var(--p, 0) - .06) / .45), 1); rotate: calc(sin(var(--f) * 25.13) * 2.6deg); will-change: rotate; }
    .hero-papers-stage.is-sorted { transition-delay: .45s; }
    .hero-papers-stage.is-sorted .hero-papers-box-in, .hero-papers-stage.is-sorted .hero-papers-box-lamp { animation-duration: .6s; }
    .hero-papers-stage.is-sorted .hero-papers-box-pupils { transition-delay: .15s; }
    .hero-papers-stage.is-sorted .hero-papers-box-out { transition-delay: .3s; }
    .hero-papers-stage.is-sorted .hero-papers-slip { animation-duration: .75s; }
    .hero-papers-stage.is-sorted .hero-papers-slip--l { animation-delay: .15s; }
    .hero-papers-stage.is-sorted .hero-papers-slip--c { animation-delay: .22s; }
    .hero-papers-stage.is-sorted .hero-papers-slip--r { animation-delay: .29s; }
    /* The hairline between two breakdowns comes with the second of them */
    .hero-papers-stage .hero-papers-results::before, .hero-papers-stage.is-sorted .hero-papers-results::before { opacity: clamp(0, calc((var(--p, 0) - 1.12) * 8), 1); transition: none; }
    .hero-papers-stage .hero-papers-results::after, .hero-papers-stage.is-sorted .hero-papers-results::after { opacity: clamp(0, calc((var(--p, 0) - 1.62) * 8), 1); transition: none; }
}
/* In both scrolled layouts the scroll reads the results too. After a click they appear on the clock; pinned, a clock let
   the visitor scroll away while it ran (owner 2026-11-13: „vadí mi, že ho to nechá odjet při tom roztřídění, to je ten
   problém“). So every job has its stretch of --p in the hold, from --rs over --rl (the layout's block sets them):
   --rv 0 → 1 swaps the guess for the result, then --sc carries the scan line down and unfolds the breakdown behind
   it; the box moves out of the way by --b. Once sorted it stays so: scrolled back, nothing folds up (hero-papers.js
   keeps the farthest --p from the sort on). The three sheets and the box's
   munching stay on the clock: they are over in a moment. */
@media (max-width: 767.98px) and (min-height: 480px) and (prefers-reduced-motion: no-preference), (min-width: 768px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
    .hero-papers-job {
        --rv: clamp(0, calc((var(--p, 0) - var(--rs, 99)) / var(--rl, 1)), 1);
        --sc: clamp(0, calc((var(--rv) - .15) / .85), 1);
    }
    .hero-papers-stage .hero-papers-job-q, .hero-papers-stage .hero-papers-job-cap-q,
    .hero-papers-stage.is-sorted .hero-papers-job-q, .hero-papers-stage.is-sorted .hero-papers-job-cap-q { opacity: clamp(0, calc(1 - var(--rv) * 10), 1); transition: none; }
    .hero-papers-stage .hero-papers-job-n, .hero-papers-stage .hero-papers-job-cap-n,
    .hero-papers-stage.is-sorted .hero-papers-job-n, .hero-papers-stage.is-sorted .hero-papers-job-cap-n { opacity: clamp(0, calc(var(--rv) * 10 - .5), 1); transition: none; }
    .hero-papers-stage.is-sorted .hero-papers-job-fig { animation: none; }
    .hero-papers-stage .hero-papers-job::after, .hero-papers-stage.is-sorted .hero-papers-job::after {
        top: calc(var(--sc) * (100% + max(var(--u) * 34, 250px)));
        opacity: clamp(0, min(calc(var(--sc) * 14), calc((1 - var(--sc)) * 14)), 1);
        animation: none;
    }
    .hero-papers-stage .hero-papers-scan, .hero-papers-stage.is-sorted .hero-papers-scan {
        visibility: visible;
        opacity: clamp(0, calc(var(--sc) * 30), 1);
        clip-path: inset(0 0 calc((1 - clamp(0, calc((var(--sc) - .22) / .78), 1)) * 100%) 0);
        transition: none;
    }
    .hero-papers-stage .hero-papers-box, .hero-papers-stage.is-sorted .hero-papers-box {
        --b: clamp(0, calc((var(--p, 0) - .56) / .3), 1);
        translate: calc(50cqw - 50%) calc(var(--by0) + (var(--by1) - var(--by0)) * var(--b) - 50%);
        scale: calc(1 - var(--bs) * var(--b));
        transition: none;
    }
}
/* A phone browser without container or small-viewport units keeps the hero without the scene, as before */
@supports not ((width: 1cqw) and (height: 1svh)) {
    @media (max-width: 767.98px) { .hero-papers { display: none; } }
}
/* Played to its end, the scene gives its track back (hero-papers.js .is-played): the stage stands in the flow, sorted,
   and the way back up is not a long scroll past it (owner 2026-11-16). */
.hero-papers.is-played::after { display: none; }

@media (prefers-reduced-motion: reduce) {
    .hero-papers-box, .hero-papers-stage, .hero-papers-box-in, .hero-papers-box-out, .hero-papers-box-pupils, .hero-papers-cta, .hero-papers-cta-press, .hero-papers-scan, .hero-papers-paper, .hero-papers-body, .hero-papers-chip, .hero-papers-mark, .hero-papers-heap::before, .hero-papers-results::before, .hero-papers-results::after, .hero-papers-job-q, .hero-papers-job-n, .hero-papers-job-cap-q, .hero-papers-job-cap-n { transition: none !important; }
    .hero-papers-stage.is-sorted .hero-papers-job::after, .hero-papers-stage.is-sorted .hero-papers-job-fig, .hero-papers-stage.is-sorted .hero-papers-box-in, .hero-papers-stage.is-sorted .hero-papers-box-lamp, .hero-papers-stage.is-sorted .hero-papers-slip, .hero-papers-paper.is-reading .hero-papers-body::after, .hero-papers-hint, .hero-papers-hint svg, .hero-papers-hint-ring { animation: none; }
}

/* The hero's last word (Home/content.cs.latte): one sentence on the hero's purple after the scene's pin, what the scene
   does not promise (owner 2026-11-16; it stood under the job paper until 2026-11-29). Typeset like the hero's figures,
   one phrase under the hand highlighter (marker-stroke.css), nothing moves. On a phone it stays under half a screen. */
.hero-handover {
    max-width: 860px;
    margin: clamp(56px, 7vw, 96px) auto 0;
    text-align: center;
    text-wrap: balance;
}
#summit .hero-handover h2 {
    margin-bottom: 18px;
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.75rem, 1.15rem + 1.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.hero-handover p { margin: 0; padding: 0; color: rgba(255, 255, 255, .74); font-size: 1.2rem; }
@media (max-width: 767.98px) {
    #summit:has(.hero-handover) { padding-bottom: 64px; }
    .hero-handover { margin-top: 48px; }
    .hero-handover p { font-size: 1.0625rem; }
}

/* Job paper: a job told on one long drawn paper, inquiry to result (Home/content.cs.latte, front/js/job-paper.js, skill
   erp-drawn-style). Everything on the sheet is placed in units of a 60th of its width (--u). The script writes how far
   the sheet has passed a line low in the viewport as --y, in those units, and each piece rides its own stretch of it:
   from its --at (its --top unless set) over --span units, --t 0 → 1, eased as --e. Until the script runs --y is far
   past the end, so the paper stands complete. Past a paper's end its job is .is-done and the result pops. */
.job-paper {
    --paper-ink: #2A2038;
    --marker: #F6C546;
    --stamp: #B5483F;
    --gain: #17804A;
    --display: 'Plus Jakarta Sans', sans-serif;
    --print: ui-monospace, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
    --spring: cubic-bezier(.2, .9, .3, 1.15);
    --y: 9999;
    container-type: inline-size;
    /* The pieces fly in from beyond the sides */
    overflow-x: clip;
}
@supports not (overflow-x: clip) {
    .job-paper { overflow: hidden; }
}
@supports (transition-timing-function: linear(0, 1)) {
    .job-paper { --spring: linear(0, .32 8%, .72 17%, .96 26%, 1.06 34%, 1.08 41%, 1.05 49%, 1.01 59%, .995 70%, 1); }
}
.job-paper-stage {
    --unit: min(calc(100cqw / 82), 6.5px);
    --far: min(50cqw, 560px);
}
.job-paper-title { margin-bottom: 50px; }
/* The job: its sheet and, under it, the result. The script writes --y on it */
.job-paper-job { --u: var(--unit); display: grid; justify-items: center; align-content: start; }
.job-paper-section h2 { text-wrap: balance; }
.job-paper-sheet { position: relative; width: calc(var(--u) * 60); height: calc(var(--u) * 272); }
.job-paper-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 14px rgba(42, 32, 56, .2)); }
/* No drawing reads the scroll. Its variables stop at each drawing's edge: inherited, they restyled every drawing with
   every scrolled frame and Safari drew each one's ink filter again (owner 2026-11-13: „ta účtenka se celá seká při
   scrolování“; in Safari on the iOS simulator 87 ms a frame, 17 ms with this and the sheet's unsteady hand drawn into
   its paths) */
.job-paper svg { --y: 0; --t: 0; --e: 0; }

.job-paper-print, .job-paper-fly, .job-paper-tick, .job-paper-stamp {
    --t: clamp(0, calc((var(--y) - var(--at)) / var(--span, 14)), 1);
    --e: calc(1 - (1 - var(--t)) * (1 - var(--t)));
}

/* What is printed on the paper: a row fades in and settles as it comes up */
.job-paper-print {
    --at: var(--top);
    position: absolute;
    left: calc(var(--u) * 3.2);
    right: calc(var(--u) * 3.2);
    top: calc(var(--top) * var(--u));
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: calc(var(--u) * 1.2);
    font: 400 calc(var(--u) * 2.8)/1 var(--print);
    color: var(--paper-ink);
    white-space: nowrap;
    opacity: clamp(0, calc(var(--t) * 2.5), 1);
    translate: 0 calc((1 - var(--e)) * var(--u) * 2);
}
.job-paper-print b { font-weight: 700; }
/* What the paper carries from the start: the job's name and the inquiry's heading and date. Only what gathers on it
   flies in (owner 2026-11-13: „poptávku už nechal hned napsanou, co tam přilítne, jsou ty fotky“) */
.job-paper-print--set { --at: -999; }
.job-paper-print--name { font-size: calc(var(--u) * 3); font-weight: 700; }
.job-paper-print--head { font-size: calc(var(--u) * 4.8); font-weight: 700; letter-spacing: .05em; }
.job-paper-print--small { font-size: calc(var(--u) * 2.6); }
/* The offer's figures come in from the right, the total last and largest */
.job-paper-print--offer b { display: inline-block; translate: calc((1 - var(--e)) * var(--u) * 18) 0; }
.job-paper-print--total { align-items: center; font-size: calc(var(--u) * 3); }
.job-paper-print--total b { font-size: calc(var(--u) * 4.4); padding-bottom: calc(var(--u) * .5); border-bottom: calc(var(--u) * .9) double var(--paper-ink); rotate: calc((1 - var(--e)) * 6deg); }
.job-paper-print--week { left: calc(var(--u) * 11.2); justify-content: flex-start; font-size: calc(var(--u) * 2.6); }
.job-paper-print--week i { flex: none; width: calc(var(--u) * 10.6); font-style: normal; font-size: calc(var(--u) * 2.4); opacity: .75; }
.job-paper-print--week b { margin-left: auto; }
.job-paper-print--result { font-size: calc(var(--u) * 3.8); font-weight: 700; }

/* The job's weeks: a dated rail that grows with the scroll, a stop per week */
.job-paper-rail { position: absolute; left: calc(var(--u) * 8.8); top: calc(var(--u) * 144.8); height: calc(clamp(0, calc(var(--y) - 146), 82.4) * var(--u)); border-left: 2px dashed rgba(42, 32, 56, .5); }
.job-paper-tick {
    --at: var(--top);
    --span: 6;
    position: absolute;
    left: calc(var(--u) * 7.8);
    /* A stop sits at the middle of its row's line */
    top: calc((var(--top) + 1.2) * var(--u));
    width: calc(var(--u) * 2);
    height: calc(var(--u) * 2);
    margin-top: calc(var(--u) * -1);
    box-sizing: border-box;
    border: max(1.5px, calc(var(--u) * .34)) solid var(--paper-ink);
    border-radius: 50%;
    background: #F3EAD6;
    scale: var(--e);
}
.job-paper-tick--last { background: #DCC08A; }

/* The offer is accepted: the stamp lands across its total */
.job-paper-stamp { --at: 118; --span: 10; position: absolute; left: calc(var(--u) * 1.5); top: calc(var(--u) * 113.5); width: calc(var(--u) * 26.5); rotate: -8deg; scale: calc(1 + (1 - var(--e)) * 1.2); opacity: clamp(0, calc(var(--t) * 3.4), .85); }
.job-paper-stamp svg { display: block; width: 100%; height: auto; overflow: visible; }
.job-paper-stamp text { font: 700 78px var(--print); letter-spacing: .06em; fill: var(--stamp); }

/* What lands on the paper from the sides: photos and papers of the inquiry, then what the job gathers week by week */
.job-paper-fly {
    --at: var(--top);
    --span: 26;
    position: absolute;
    left: calc(var(--x) * var(--u));
    top: calc(var(--top) * var(--u));
    width: calc(var(--w) * var(--u));
    translate: calc((1 - var(--e)) * var(--side) * var(--far)) calc((1 - var(--e)) * var(--u) * -8);
    rotate: calc((var(--r) + (1 - var(--e)) * var(--side) * 50) * 1deg);
    opacity: clamp(0, calc(var(--t) * 6), 1);
    filter: drop-shadow(0 5px 6px rgba(42, 32, 56, .2));
}
.job-paper-fly--l { --side: -1; }
.job-paper-fly--r { --side: 1; }
.job-paper-fly svg { display: block; width: 100%; height: auto; overflow: visible; }
.job-paper-fly-print { font: 700 11px var(--print); }
.job-paper.is-live .job-paper-fly { will-change: translate, rotate, opacity; }

.job-paper-marker { position: absolute; left: calc(var(--u) * 2); right: calc(var(--u) * 2); top: calc(var(--u) * 254); height: calc(var(--u) * 7.6); border-radius: 3px; background: var(--marker); opacity: .9; transform-origin: 0 50%; }

/* The result under the paper's torn end: typeset, in the colour of a profit, with a few drawn rays around it */
.job-paper-result { position: relative; display: grid; justify-items: center; gap: 6px; width: min(100cqw, calc(var(--u) * 78)); padding: calc(var(--u) * 13) 0 calc(var(--u) * 9); }
.job-paper-burst { position: absolute; inset: 0; width: 100%; height: 100%; }
.job-paper-result-fig { position: relative; font: 800 calc(var(--u) * 10)/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--gain); }
.job-paper-result-cap { position: relative; font: 500 max(11px, calc(var(--u) * 2.5))/1.3 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #5B6472; }

/* Driven by the scroll, the result waits for the paper's end and then pops on the clock */
.job-paper.is-live .job-paper-marker { scale: 0 1; transition: scale .2s; }
.job-paper.is-live .job-paper-result-fig { scale: .4; opacity: 0; transition: scale .2s ease-in, opacity .15s; }
.job-paper.is-live .job-paper-burst { scale: .5; opacity: 0; transition: scale .2s, opacity .15s; }
.job-paper.is-live .job-paper-result-cap { opacity: 0; transition: opacity .2s; }
.job-paper.is-live .is-done .job-paper-marker { scale: 1 1; transition: scale .35s cubic-bezier(.3, 0, .2, 1); }
.job-paper.is-live .is-done .job-paper-result-fig { scale: 1; opacity: 1; transition: scale .6s var(--spring) .25s, opacity .12s .25s; }
.job-paper.is-live .is-done .job-paper-burst { scale: 1; opacity: 1; transition: scale .5s var(--spring) .32s, opacity .12s .32s; }
.job-paper.is-live .is-done .job-paper-result-cap { opacity: 1; transition: opacity .3s .6s; }
