/* Freelancers V2 · package v4 (approved by Nikolina, Nov 19 2026): walking bear header + Ivan's 14 Oakline scenes in our windows.
   Load in <head>, after the page CSS. Markup is in the HTML; no script builds anything. */

/* ============ 1 · HEADER ============ */
.flp,body{background:#F8FCFB!important}
.flh{overflow:clip!important}
/* grain, grain2 and fade are direct children of .flh: they cover the whole header */
.flh>.flh-grain,.flh>.flh-grain2{position:absolute;inset:0;z-index:1}
.flh-grain,.flh-grain2{-webkit-mask-image:linear-gradient(#000 0,#000 640px,transparent 880px);mask-image:linear-gradient(#000 0,#000 640px,transparent 880px)}
.flh>.flh-fade{z-index:1;top:600px!important;bottom:auto!important;height:300px!important;
  background:linear-gradient(180deg,rgba(248,252,251,0) 0%,rgba(248,252,251,.18) 22%,rgba(248,252,251,.5) 48%,rgba(248,252,251,.82) 72%,#F8FCFB 92%)!important}
.flh-inner{position:relative;z-index:3}
/* lens: geometry in cqw of the lens, so the sharp bear fills the frame exactly at every width */
.flh-vis{z-index:auto!important;aspect-ratio:440/540;padding:0!important;border-width:0!important}
.flh-lens{position:absolute;inset:0;width:100%!important;height:100%!important;left:0!important;top:0!important;border:0!important;border-radius:28px;container-type:inline-size;outline:1px solid #ffffffe6;outline-offset:-1px;z-index:3}
.flh-clear{position:absolute!important;display:block!important;z-index:3;left:-168.18cqw!important;top:-70.45cqw!important;width:349.09cqw!important;height:232.73cqw!important;max-width:none!important;transition:none!important;clip-path:inset(30.27% 23.18% 16.99% 48.18% round 28px)!important}
.flh-logo{z-index:5!important;top:16px!important;left:16px!important;width:28px!important;height:28px!important}
@media (min-width:1200px){
  .flh-vis{width:440px!important;height:540px!important;top:132px!important;left:auto!important;right:calc((100% - 1200px)/2 + 110px)!important}
  /* frost is a direct child of .flh: same place as before, relative to the lens (lens left = 50% + 50px, top 132) */
  .flh>.flh-frost{left:calc(50% + 50px - 1290px)!important;top:calc(132px - 1626px)!important;width:2802px!important;height:3127px!important}
}
/* "This week" card on the chest (mint chips, never near-black) */
.flh-week{z-index:4!important;top:calc(61% * 440 / 540)!important;bottom:auto!important;left:16px!important;right:16px!important;width:auto!important;
  border-radius:16px!important;padding:14px 14px 12px!important;box-shadow:0 12px 30px rgba(20,70,70,.16)!important}
.flh .flh-wt{display:flex!important;justify-content:space-between;align-items:center;margin:0 0 10px!important;font-size:14px!important}
.flh-wt small{font:500 11px/1 Inter,sans-serif;color:#2F6B57;background:#E8F7F1;border-radius:999px;padding:5px 9px}
.flh-wk{gap:6px!important}
.flh-d{min-height:0!important;padding:8px 6px!important;border-radius:9px!important}
.flh .flh-dn{font-size:11px!important;margin:0 0 7px!important;color:#4F5B66!important}
.flh-tag{background:#DDF4EC!important;color:#1D5C49!important;font-weight:600!important;font-size:11.5px!important;padding:6px!important;border-radius:6px!important;text-align:center}
.flh-tag.ol{background:#fff!important;color:#1D5C49!important;box-shadow:inset 0 0 0 1.5px #8FD3BA!important}
.flh-tag.ok::before{content:"✓ "}
.flh-ft{margin:10px 0 0;font:400 11.5px/1.3 Inter,sans-serif;color:#4F5B66;display:flex;align-items:center;gap:7px}
.flh-ft i{width:7px;height:7px;border-radius:50%;background:#3FBF93;flex:none}
@media (max-width:1199.98px){
  .flh{height:auto}
  .flh-vis{position:relative!important;top:auto!important;right:auto!important;left:auto!important;width:min(440px,calc(100% - 32px))!important;height:auto!important;margin:56px auto 0!important}
  .flh-frost{display:none!important}
  .flh-week{top:auto!important;bottom:16px!important}
  .flh>.flh-fade{top:auto!important;bottom:0!important}
  .flh-grain,.flh-grain2{-webkit-mask-image:linear-gradient(#000 0,#000 calc(100% - 260px),transparent calc(100% - 20px));mask-image:linear-gradient(#000 0,#000 calc(100% - 260px),transparent calc(100% - 20px))}
}
/* phones: a taller lens, the face and ears above the card */
@media (max-width:640px){
  .flh-vis{aspect-ratio:440/620!important}
  .flh-clear{top:-65.91cqw!important;clip-path:inset(28.32% 23.18% 11.13% 48.18% round 28px)!important}
  .flh-d.mon{display:none!important}
  .flh-wk{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .flh-wt small{display:none}
  .flh-tag{font-size:11px!important;padding:6px 3px!important;white-space:nowrap}
}

/* ============ 2 · MODULES: our white 512 x 381 windows with Ivan's scenes ============ */
.st-sec .mc.mkx .mk-stage>.mkx-win{position:absolute;left:41.5px;top:32.5px;width:512px;height:381px;background:#fff;border-radius:22px;overflow:hidden;z-index:5;container:flq/inline-size}
.mkx-win .flp-panel{position:absolute!important;inset:0!important;width:auto!important;height:auto!important;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s}
.mkx-win .flp-panel.on,.mkx-still .mkx-win .flp-panel{opacity:1;visibility:visible;transition:opacity .45s ease,visibility 0s}
@media (prefers-reduced-motion:reduce){.mkx-win .flp-panel{transition:none!important}}
.mkx-win .flq{position:absolute;inset:0;font-family:Geist,Arial,sans-serif;color:#292e32;font-size:16px;line-height:normal;text-align:left;letter-spacing:normal}
.mkx-win .flq *{box-sizing:border-box}
.mkx-win .flq button{font:inherit}
.mkx-win .flq .sq-scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;aspect-ratio:auto!important;border-radius:0!important;background:#fff!important;margin:0!important}
.mkx-win .flq .sq-ambient,.mkx-win .flq .sq-shape,.mkx-win .flq .sq-scene::before,.mkx-win .flq .sq-scene::after{display:none!important}
/* a scene that is one card fills our window: no card inside the card */
.mkx-win .flq .sq-scene>.sq-wbx{position:absolute!important;inset:0!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:#fff!important;padding:26px 28px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.mkx-win .flq .sq-scene>.editorial,.mkx-win .flq .sq-scene>.client-site,.mkx-win .flq .sq-scene>.visual-editor{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;box-shadow:none!important;border:0!important;transform:none!important}
.mkx-win .flq .editorial img{height:150px!important;object-fit:cover!important}
/* hidden: fiction labels, draft labels, Replay controls; nothing in a window needs a click */
.mkx-win .flq .fiction,.mkx-win .flq .draft-label,.mkx-win .flq .controls,.mkx-win .flq [data-replay]{display:none!important}
.mkx-win .flq button,.mkx-win .flq a{pointer-events:none}
/* contrast: small grey labels #5F6584 */
.mkx-win .flq .sq-av-small,.mkx-win .flq .sq-av-tag,.mkx-win .flq small,.mkx-win .flq .source{color:#5F6584!important}
/* 6 · Make time for your own marketing: the portfolio site fills the window, the LinkedIn post a small card across the hero's bottom edge */
.mkx-win .flq .sq-scene[data-key=own] .portfolio{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;display:flex!important;flex-direction:column!important}
.mkx-win .flq .sq-scene[data-key=own] .portfolio>div{flex:1;display:flex;flex-direction:column;justify-content:center;padding:28px 32px!important}
.mkx-win .flq .sq-scene[data-key=own] .portfolio :is(h2,p:where(.mk-h2)){font-size:34px!important;line-height:1.08!important;margin:10px 0 12px!important}
.mkx-win .flq .sq-scene[data-key=own] .portfolio p:not(:where(.mk-h)){font-size:13px!important}
.mkx-win .flq .sq-scene[data-key=own] .portfolio .site-button{align-self:flex-start!important;width:auto!important}
.mkx-win .flq .sq-scene[data-key=own] .portfolio footer{border-top:1px solid #E3EEEA!important;align-items:center!important;gap:14px!important;padding:14px 32px!important}
.mkx-win .flq .sq-scene[data-key=own] .portfolio footer>span{max-width:150px!important}
.mkx-win .flq .sq-scene[data-key=own] .portfolio footer small{display:none!important}
.mkx-win .flq .sq-scene[data-key=own] .portfolio footer img{width:96px!important;height:64px!important;object-fit:cover!important}
.mkx-win .flq .sq-scene[data-key=own] .own-post{position:absolute!important;right:22px!important;bottom:76px!important;left:auto!important;top:auto!important;width:228px!important;max-width:none!important;z-index:3!important;transform:none!important;margin:0!important;background:#fff!important;border-radius:14px!important;border:1px solid #E3EEEA!important;box-shadow:0 12px 28px rgba(30,70,60,.16)!important;overflow:hidden!important}
.mkx-win .flq .sq-scene[data-key=own] .own-post .post-art{display:none!important}
.mkx-win .flq .sq-scene[data-key=own] .own-post>p:not(:where(.mk-h)){padding:0 12px 10px!important;margin:0!important;font-size:11.5px!important;line-height:1.4!important}
.mkx-win .flq .sq-scene[data-key=own] .own-post>header{padding:10px 12px 8px!important}
.mkx-win .flq .sq-scene[data-key=own] .own-post>footer{padding:8px 12px!important;font-size:var(--mkmin,10.5px)!important;border-top:1px solid #EEF2F0!important}

/* round 30 px button only on the modules that rotate (tabs and steps); the text in the pill is not shown */
.mc.mkx-still .mk-btn,.mc.mkx-still .mc-pause{display:none!important}

/* ============ 3 · PHONES and small tablets (<720 px): the window is never scaled as one picture ============ */
@media (max-width:719.98px){
  .st-sec .mc.mkx{aspect-ratio:auto!important;height:calc(var(--mwh,420px) + 28px)!important}
  .st-sec .mc.mkx:not(.mkx-still){height:calc(var(--mwh,420px) + 66px)!important}
  .st-sec .mc.mkx .mk-stage{transform:none!important;width:100%!important;height:100%!important;translate:none!important}
  .st-sec .mc.mkx .mk-stage>.mkx-win{left:14px;right:14px;top:14px;width:auto;height:var(--mwh,420px)}
  .mkx-win .flq .sq-scene>.sq-wbx{padding:16px!important}
  .mkx-win .flq .sq-scene[data-key=own] .portfolio>div{padding:18px 18px 110px!important}
  .mkx-win .flq .sq-scene[data-key=own] .portfolio :is(h2,p:where(.mk-h2)){font-size:28px!important}
  .mkx-win .flq .sq-scene[data-key=own] .portfolio footer{padding:12px 18px!important}
  .mkx-win .flq .sq-scene[data-key=own] .own-post{right:14px!important;bottom:96px!important;width:min(228px,calc(100% - 28px))!important}
  .mkx-win .flq .editorial img{height:120px!important}
}
/* phones: own marketing gets a taller window, so the LinkedIn card sits below the hero's button, never over it */
@media (max-width:719.98px){
  #fl6 .mc.mkx{--mwh:520px}
  .mkx-win .flq .sq-scene[data-key=own] .portfolio>div{justify-content:flex-start!important;padding-top:22px!important}
}
/* 320: the page's old rule hid Tuesday; the card shows Tue to Fri (four boxes) on every phone */
@media (max-width:359px){.flh-wk>.flh-d:nth-child(2){display:block!important}.flh-tag{font-size:10.5px!important;padding:6px 2px!important}}

/* v5 · stacking, back to front: frost 0 · grain, grain2, fade 1 · copy 3 · lens and clear 3 · card 4 */
.flh>.flh-frost{position:absolute;z-index:0!important;max-width:none}
@media (max-width:1199.98px){.flh>.flh-frost{display:none!important}}
.flh-week{z-index:4!important}
/* 1024: the frames are scaled, so small labels get a 10.7 px floor and stay at least 10 px on screen */
@media (min-width:720px) and (max-width:1199.98px){.mkx-win{--mkmin:10.7px}}

/* v6 · module 1: the article, the visual editor and the client site fill the whole 512 x 381 window;
   the picture area or the site body grows to take the extra height (list-style scenes unchanged) */
.mkx-win .flq .sq-scene>.editorial,.mkx-win .flq .sq-scene>.visual-editor,.mkx-win .flq .sq-scene>.client-site{display:flex!important;flex-direction:column!important}
.mkx-win .flq .editorial>.editorial-body{flex:1;display:flex;flex-direction:column;min-height:0}
.mkx-win .flq .editorial>.editorial-body>img{flex:1 1 auto;min-height:150px;height:auto!important}
.mkx-win .flq .editorial>.editorial-body>footer{margin-top:auto}
.mkx-win .flq .visual-editor>.visual-workspace{flex:1;min-height:0;height:auto!important;padding:10px 0}
.mkx-win .flq .visual-editor>.visual-workspace>.visual-canvas{height:100%!important;width:auto!important;aspect-ratio:1/1;flex:none;max-width:100%}
.mkx-win .flq .client-site>.site-body{flex:1;min-height:0}
.mkx-win .flq .client-site>.site-body>img{height:100%!important;min-height:0;max-height:none}
/* 1024: frames are scaled about 0.93, so the floor goes to 11.3 px to stay at least 10.5 px on screen */
@media (min-width:720px) and (max-width:1199.98px){.mkx-win{--mkmin:11.3px}}
/* Images & video: the chair picture sits fully inside its own rounded frame, not cropped */
.mkx-win .flq .visual-editor>.visual-workspace>.visual-canvas{border-radius:12px;overflow:hidden;background:#f3f5f3}
.mkx-win .flq .visual-editor>.visual-workspace>.visual-canvas img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center;display:block}
