/* ==========================================================================
   Formium Alliance — Work (grid + project pages), modelled on the layout of a clean studio portfolio.
   Light page, oversized light headline, a pill filter bar, a three-column grid of picture cards, and a project page with a text column,
   a picture and a services check-list. Uses the tokens of .bl (formium-blog.css): --ink, --ink-2, --ink-3, --line, type sizes.
   Loaded by formium-showcase.html and formium-showcase-details.html only.
   ========================================================================== */
.wk { --ease-w: cubic-bezier(.22, 1, .36, 1); background: #fff; }
.wk-wrap { width: 100%; max-width: none; margin-inline: auto; padding-inline: clamp(20px, 3.2vw, 56px); }   /* full width: only a small margin at each side */
.wk h1, .wk h2, .wk h3 { font-weight: 300 !important; color: var(--ink); letter-spacing: -.03em; text-wrap: balance; }

/* ---------- hero ---------- */
.wk-hero { position: relative; padding-top: 168px; padding-bottom: 40px; text-align: center; }
.wk-hero::before, .wk-hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: 0; transition: opacity 2.4s ease .3s; }
.wk-hero::before { width: 460px; height: 460px; left: 8%; top: 70px; background: radial-gradient(closest-side, rgba(244, 60, 0, .2), transparent); animation: wk-drift-a 16s ease-in-out infinite alternate; }
.wk-hero::after { width: 520px; height: 520px; right: 4%; top: 20px; background: radial-gradient(closest-side, rgba(90, 120, 255, .17), transparent); animation: wk-drift-b 19s ease-in-out infinite alternate; }
.wk-hero::before, .wk-hero::after { display: none; }
@keyframes wk-drift-a { to { transform: translate3d(140px, 60px, 0) scale(1.2); } }
@keyframes wk-drift-b { to { transform: translate3d(-160px, 90px, 0) scale(.9); } }
.wk-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-family: var(--f-mono); font-size: var(--t-micro); line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.wk-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #f43c00; position: relative; }
.wk-kicker i::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(244, 60, 0, .5); animation: wk-ping 2.4s ease-out infinite; }
@keyframes wk-ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.wk .wk-hero h1 { margin: 0 auto; max-width: 16ch; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.04; }
.wk-hero .wk-sub { margin: 18px auto 0; font-size: var(--t-body); line-height: 1.5; color: var(--ink-3); }
/* words rise out of a mask, one after another */
.wk-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.wk-w > span { display: inline-block; transform: translateY(110%) rotate(3deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease-w) calc(var(--d, 0) * 90ms + .15s); }
.wk-hero.is-in .wk-w > span { transform: none; }
.wk-js .wk-sub { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 1.2s var(--ease-w), transform 1.2s var(--ease-w), filter 1.2s var(--ease-w); }
.wk-js .wk-sub { transition-delay: .6s; }
.wk-hero.is-in .wk-sub { opacity: 1; transform: none; filter: none; }

/* ---------- sections, one per type of work ---------- */
.wk-sec-block { padding-top: clamp(36px, 6vw, 72px); scroll-margin-top: 96px; }
.wk-sec-block:first-child { padding-top: 0; }
.wk-sec-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-bottom: 14px; }
.wk-sec-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); transform-origin: 0 50%; }
.wk-js .wk-sec-head::after { transform: scaleX(0); transition: transform 1.4s var(--ease-w); }
.wk-js .wk-sec-head h2 { transform: translateY(60%); opacity: 0; transition: transform 1s var(--ease-w) .1s, opacity .8s var(--ease-w) .1s; }
.wk-js .wk-sec-head span { opacity: 0; transition: opacity 1s var(--ease-w) .5s; font-variant-numeric: tabular-nums; }
.wk-sec-block.is-in .wk-sec-head::after { transform: none; }
.wk-sec-block.is-in .wk-sec-head h2 { transform: none; opacity: 1; }
.wk-sec-block.is-in .wk-sec-head span { opacity: 1; }
.wk .wk-sec-head h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.wk-sec-head span { font-size: var(--t-small); color: var(--ink-3); white-space: nowrap; }

/* ---------- the bar: floats at the bottom of the screen (liquid glass, like the blog island); the dark pill slides to wherever you are ---------- */
.wk-bar { position: fixed; z-index: 80; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 99px; max-width: calc(100vw - 24px);
  isolation: isolate; opacity: 0; transform: translate(-50%, 46px) scale(.9); transform-origin: 50% 100%; pointer-events: none; transition: transform .7s cubic-bezier(.34, 1.3, .5, 1), opacity .4s ease; }
.wk-bar-scroll { position: relative; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; border-radius: 99px; }
.wk-bar-scroll > button { margin: 0; }
.wk-bar-scroll::-webkit-scrollbar { display: none; }
.wk-bar.is-in { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.wk-bar.is-away { opacity: 0; transform: translate(-50%, 80px) scale(.9); pointer-events: none; }
.wk-bar button { position: relative; z-index: 1; flex: none; height: 38px; padding: 0 18px; border: 0; border-radius: 99px; background: transparent; color: rgba(18, 18, 20, .62); font: inherit; font-size: var(--t-small); line-height: 1; cursor: pointer; white-space: nowrap; transition: color .35s var(--ease-w); }
.wk-bar button:hover { color: #121214; }
.wk-bar button.is-on { color: #fff; }
.wk-bar button:focus-visible { outline: 2px solid #121214; outline-offset: 2px; }
.wk-bar button[hidden] { display: none; }
.wk-bar-dot { position: absolute; z-index: 0; top: 0; left: 0; height: 38px; width: 0; border-radius: 99px; background: #121214; transform: translateX(0); transition: transform .6s cubic-bezier(.34, 1.25, .5, 1), width .6s cubic-bezier(.34, 1.25, .5, 1); }
/* the glass is painted on a wrapper so the sliding pill stays crisp */
.wk-bar-glass { position: absolute; inset: 0; z-index: -1; border-radius: 99px; pointer-events: none; }
.wk-bar-glass::before { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: inherit; backdrop-filter: blur(5px) brightness(1.08) saturate(1.3); -webkit-backdrop-filter: blur(5px) brightness(1.08) saturate(1.3); filter: url(#lg-dist-btn); }
.wk-bar-glass::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .22) 100%), rgba(255, 255, 255, .3);
  border: 1px solid rgba(10, 10, 10, .09); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .95), inset 0 0 14px rgba(255, 255, 255, .5), 0 16px 40px -14px rgba(10, 10, 10, .3); }
html.fa-nosvg .wk-bar-glass::before { backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); filter: none; }
body:has(.wk-bar) .wk-cta { padding-bottom: 150px; }

/* ---------- the grid ---------- */
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 22px; align-items: start; }
.wk-card { display: block; color: inherit; text-decoration: none; }
.wk-card[hidden] { display: none; }
.wk-media { display: block; position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 9; background: var(--paper); cursor: none; }
.wk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; --s: 1.14; --py: 0px; transform: translate3d(0, var(--py), 0) scale(var(--s)); transition: transform 1.3s var(--ease-w); will-change: transform; }
.wk-card:hover .wk-media img { --s: 1.22; }
.wk-card h3 { margin: 16px 0 0; font-size: var(--t-body); line-height: 1.3; font-weight: 600 !important; letter-spacing: -.01em; }
.wk-card p { margin: 4px 0 0; font-size: var(--t-body); line-height: 1.45; color: var(--ink-3); transition: color .4s var(--ease-w); }
.wk-card:hover p { color: var(--ink-2); }
.wk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.wk-tags li { padding: 5px 11px; border-radius: 99px; background: var(--paper); font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); transition: background-color .35s var(--ease-w), color .35s var(--ease-w); }
.wk-card:hover .wk-tags li { background: var(--ink); color: #fff; }
.wk-card:hover .wk-tags li:nth-child(2) { transition-delay: .05s; } .wk-card:hover .wk-tags li:nth-child(3) { transition-delay: .1s; }
/* the picture wipes up out of the page, settles from a closer zoom; then the words follow */
.wk-js .wk-card .wk-media { clip-path: inset(100% 0 0 0 round 4px); transition: clip-path 1.25s var(--ease-w); }
.wk-js .wk-card .wk-media img { --s: 1.4; }
.wk-js .wk-card h3, .wk-js .wk-card p, .wk-js .wk-card .wk-tags { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-w), transform .8s var(--ease-w), color .4s var(--ease-w); }
.wk-js .wk-card.is-in .wk-media { clip-path: inset(0 0 0 0 round 4px); }
.wk-js .wk-card.is-in .wk-media img { --s: 1.14; }
.wk-js .wk-card.is-in:hover .wk-media img { --s: 1.22; }
.wk-js .wk-card.is-in h3 { opacity: 1; transform: none; transition-delay: .45s; }
.wk-js .wk-card.is-in p { opacity: 1; transform: none; transition-delay: .55s; }
.wk-js .wk-card.is-in .wk-tags { opacity: 1; transform: none; transition-delay: .65s; }
.wk-empty { padding: 60px 0; text-align: center; color: var(--ink-3); }

/* the bubble that follows the cursor over a picture */
.wk-view { position: fixed; z-index: 90; left: 0; top: 0; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center; background: #121214; color: #fff; font-size: 14px; letter-spacing: -.005em; pointer-events: none; opacity: 0; transform: translate3d(-200px, -200px, 0) scale(.4); transition: opacity .3s var(--ease-w); }
.wk-view span { transition: transform .5s var(--ease-w); }
.wk-view.is-on { opacity: 1; }
body.wk-body .fa-cursor { transition: opacity .3s; }
body.wk-view-on .fa-cursor { opacity: 0 !important; }

/* things that rise as they arrive */
.wk-js .wk-rise { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-w), transform 1.1s var(--ease-w); transition-delay: calc(var(--rd, 0) * 90ms); }
.wk-js .wk-rise.is-in { opacity: 1; transform: none; }

/* ---------- services band + call to action ---------- */
.wk-band { padding-block: 96px 24px; }
.wk-band-in { border-top: 1px solid var(--line); padding-top: 56px; display: grid; gap: 22px; max-width: 760px; }
.wk .wk-band h2 { margin: 0; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; }
.wk-band p { margin: 0; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.wk-svc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.wk-svc a { display: inline-block; padding: 8px 16px; border-radius: 99px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: var(--t-small); transition: background-color .35s var(--ease-w); }
.wk-svc a:hover { background: var(--paper-2); }
.wk-link { display: inline-flex; align-items: center; gap: 8px; width: max-content; color: var(--ink); text-decoration: none; font-size: var(--t-small); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .3s; }
.wk-link:hover { border-color: var(--ink); }
.wk-link svg, .wk-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-w); }
.wk-link:hover svg, .wk-btn:hover svg { transform: translateX(3px); }
.wk-cta { padding-block: 96px 120px; text-align: center; }
.wk-cta-k { margin: 0; font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .02em; color: var(--ink-3); }
.wk .wk-cta h2 { margin: 14px 0 32px; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.05; }
.wk a.wk-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; font-size: var(--t-body); transition: transform .4s var(--ease-w); }
.wk a.wk-btn:hover { transform: translateY(-2px); }

/* ---------- a project page ---------- */
.wk-detail { padding-top: 128px; }
.wk-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.wk .wk-top h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; }
.wk-client { flex: none; text-align: right; font-size: var(--t-small); line-height: 1.4; color: var(--ink-3); max-width: 30ch; }
.wk-client b { display: block; font-weight: 600; color: var(--ink); font-size: var(--t-body); }
.wk-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px clamp(28px, 5vw, 64px); padding-block: 32px 72px; align-items: start; }
.wk-copy p { margin: 0 0 1.15em; font-size: var(--t-body); line-height: 1.6; color: var(--ink); text-wrap: pretty; }
.wk-copy h4 { margin: 38px 0 14px; font-size: var(--t-small); letter-spacing: .02em; text-transform: uppercase; font-weight: 600; }
.wk-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.wk-checks li { display: flex; align-items: center; gap: 10px; font-size: var(--t-body); line-height: 1.35; }
.wk-checks svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.wk-hero-img { margin: 0; border-radius: 4px; overflow: hidden; background: var(--paper); aspect-ratio: 1 / 1; }
.wk-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-stats { display: flex; flex-wrap: wrap; gap: 28px 56px; padding-block: 0 72px; }
.wk-stats div { min-width: 140px; }
.wk-stats b { display: block; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; font-weight: 300; letter-spacing: -.03em; }
.wk-stats span { display: block; margin-top: 6px; font-size: var(--t-small); color: var(--ink-3); }
.wk-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px clamp(28px, 5vw, 64px); padding-block: 56px; border-top: 1px solid var(--line); }
.wk .wk-sec h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.wk-sec-body { font-size: var(--t-body); line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.wk-sec-body p { margin: 0 0 1.1em; }
.wk-sec-body ul, .wk-sec-body ol { margin: 0 0 1.1em 1.2em; padding: 0; }
.wk-sec-body li { margin-bottom: .4em; }
.wk-quote { margin: 0; padding-block: 72px; border-top: 1px solid var(--line); }
.wk-quote blockquote { margin: 0; max-width: 28em; font-size: clamp(24px, 3vw, 40px); line-height: 1.25; font-weight: 300; letter-spacing: -.025em; text-wrap: balance; }
.wk-quote figcaption { margin-top: 20px; font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.wk-more { padding-block: 72px 24px; border-top: 1px solid var(--line); }
.wk-more-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.wk .wk-more-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); }
.wk-more .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-notfound { padding: 80px 0 120px; text-align: center; }

@media (min-width: 1700px) { .wk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wk-more .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: none) { .wk-view { display: none; } .wk-media { cursor: auto; } }
@media (max-width: 720px) {
  .wk-hero { padding-top: 132px; padding-bottom: 40px; } .wk-hero::before, .wk-hero::after { width: 280px; height: 280px; }
  .wk-grid, .wk-more .wk-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .wk-sec-head span { display: none; }
  .wk-detail { padding-top: 104px; }
  .wk-top { flex-direction: column; align-items: flex-start; }
  .wk-client { text-align: left; }
  .wk-lead, .wk-sec { grid-template-columns: minmax(0, 1fr); }
  .wk-lead { padding-bottom: 48px; }
  .wk-checks { grid-template-columns: minmax(0, 1fr); }
  .wk-band { padding-top: 64px; } .wk-cta { padding-block: 64px 88px; }
}
@media (prefers-reduced-motion: reduce) { .wk-bar, .wk-bar-dot { transition-duration: .01ms !important; } .wk *, .wk *::before, .wk *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; } .wk-js .wk-card .wk-media { clip-path: none; } .wk-js .wk-sec-head::after { transform: none; } .wk-view { display: none; } }

/* project page: the title and the picture arrive with the same words-and-wipe motion */
.wk-js .wk-hero-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-w) .2s; }
.wk-js .wk-hero-img img { transform: scale(1.25); transition: transform 1.8s var(--ease-w) .2s; }
.wk-js .wk-case-in .wk-hero-img { clip-path: inset(0); }
.wk-js .wk-case-in .wk-hero-img img { transform: none; }
.wk-js .wk-top h1 .wk-w > span { transform: translateY(110%); }
.wk-js .wk-case-in .wk-top h1 .wk-w > span { transform: none; }
.wk-js .wk-top { }
.wk-js .wk-top::after { content: ''; }

/* ---------- "under maintenance" pop-up ---------- */
html.wk-pop-on, html.wk-pop-on body { overflow: hidden; }
.wk-pop { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(12, 12, 14, .42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .45s var(--ease-w, ease); }
.wk-pop.is-in { opacity: 1; } .wk-pop.is-out { opacity: 0; pointer-events: none; }
.wk-pop-card { position: relative; width: min(100%, 460px); padding: 36px 34px 30px; border-radius: 28px; background: #fff; color: #1a1a1c; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); transform: translateY(18px) scale(.97); transition: transform .6s var(--ease-w, ease); font-family: var(--fa-font, 'Geist', system-ui, sans-serif); }
.wk-pop.is-in .wk-pop-card { transform: none; }
.wk-pop-k { margin: 0 0 14px; font-family: var(--fa-mono, ui-monospace, monospace); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: rgba(26, 26, 28, .45); }
.wk .wk-pop-card h2, .wk-pop .wk-pop-card h2 { margin: 0 0 12px; font-size: 28px !important; line-height: 1.12 !important; font-weight: 400 !important; letter-spacing: -.03em !important; color: #1a1a1c !important; }
.wk-pop-card p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(26, 26, 28, .64); }
.wk-pop-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.wk-pop-ok { height: 46px; padding: 0 24px; border: 0; border-radius: 99px; background: #1a1a1c; color: #fff; font: inherit; font-size: 15px; cursor: pointer; transition: transform .35s var(--ease-w, ease); }
.wk-pop-ok:hover { transform: translateY(-2px); }
.wk-pop-home { display: inline-block; line-height: 1.25; font-size: 15px; color: #1a1a1c; text-decoration: none; border-bottom: 1px solid rgba(26, 26, 28, .25); padding-bottom: 1px; }
.wk-pop-home:hover { border-color: #1a1a1c; }
.wk-pop-x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(26, 26, 28, .06); color: #1a1a1c; font-size: 22px; line-height: 1; cursor: pointer; }
.wk-pop-x:hover { background: #1a1a1c; color: #fff; }
.wk-pop :focus-visible { outline: 2px solid #1a1a1c !important; outline-offset: 3px; }
html.wk-pop-on .wk-bar { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wk-pop, .wk-pop-card { transition: opacity .2s linear; transform: none; } }
