/* Vendored from design/samples/assets/concept-15/f-tiles.css by scripts/vendor-c14.mjs — edit the design file, then re-run. */
/* RANI 15F: the small client tiles as one system (built by f-tiles.js). Prefixed with "body main" to win over
   c14.css, f.css and f-site.css. Motion: transform, translate, scale and opacity only. */
body main ul.bns.ft-grid {
  --ft-gap: clamp(10px, 1vw, 16px);
  --ft-pad: clamp(18px, calc(var(--ft-colw, 440px) * 0.052), 26px);
  --ease-ft: cubic-bezier(0.2, 0.9, 0.25, 1);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--ft-row, 510px);
  grid-auto-flow: row dense; gap: var(--ft-gap); margin-top: var(--ft-gap);
}
body main ul.bns.ft-grid > li.ft-li { grid-column: auto; display: block; min-width: 0; height: 100%; }
body main ul.bns.ft-grid > li.ft-li.ft-li--wide { grid-column: span 2; }
@media (min-width: 761px) and (max-width: 1000px) { body main ul.bns.ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the tile */
.ft { --ink-b: #0a0a0a; --mx: 0; --my: 0; position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "stage" "cap"; height: 100%; padding: var(--ft-pad); border-radius: 28px; overflow: clip; isolation: isolate;
  color: var(--ink-b); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ft--dark { --ink-b: #fff; }
.ft:focus-visible { outline: 3px solid #ff4fa3; outline-offset: 3px; }
.ft__bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform-origin: 50% 100%;
  background: radial-gradient(ellipse 62% 44% at 50% 72%, color-mix(in srgb, #fff 24%, var(--field)) 0%, transparent 72%), var(--field); } /* taste-skill-ignore: the light the work stands in */
.ft--dark .ft__bg { background: radial-gradient(ellipse 62% 44% at 50% 72%, color-mix(in srgb, #fff 14%, var(--field)) 0%, transparent 72%), var(--field); }

/* head: the logo box and the chip */
.ft__head { grid-area: head; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: calc(var(--ft-colw, 440px) * 0.12); min-height: 40px; position: relative; z-index: 30; }
.ft__logo { display: flex; align-items: center; min-width: 0; height: 100%; }
.ft__logo i { position: relative; display: block; overflow: hidden; flex: none; width: 110px; height: 40px; }
body main .ft__logo img.bn__logo { position: absolute; max-width: none; max-height: none; width: 100%; height: 100%; object-fit: fill; transform: none; }
body main .ft:not(.ft--dark) .ft__logo img.bn__logo:not(.bn__logo--colour), body main .ft .ft__logo img.logo-ink { filter: brightness(0) !important; }
body main .ft--dark .ft__logo img.bn__logo:not(.bn__logo--colour), body main .ft .ft__logo img.logo-light { filter: none !important; }
.ft__logo--name i { width: auto !important; height: auto !important; overflow: visible; }
.ft__name { font-size: clamp(1.25rem, calc(var(--ft-colw, 440px) * 0.06), 1.75rem); font-weight: 800; line-height: 1; white-space: nowrap; }

/* the chip: an arrow in a circle; on hover it turns pink and says where it goes */
.ft__go { display: inline-flex; align-items: center; gap: 10px; flex: none; font-weight: 800; font-size: var(--s-small, 0.9375rem); }
.ft__go-c { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0a0a0a; color: #fff; transition: background-color 300ms ease, color 300ms ease, scale 500ms var(--ease-ft); }
.ft__arr { width: 18px; height: 18px; transition: translate 450ms var(--ease-ft); }
:lang(he) .ft__arr { scale: -1 1; }
.ft--dark .ft__go-c { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.4); } /* one rule: an ink chip everywhere, pink when active */
.ft__go-t { opacity: 0; translate: 10px 0; transition: opacity 300ms ease, translate 450ms var(--ease-ft); white-space: nowrap; }
[dir="ltr"] .ft__go-t { translate: -10px 0; }
.ft.is-hot .ft__go-t, .ft:focus-visible .ft__go-t { opacity: 1; translate: 0 0; }
.ft.is-hot .ft__go-c, .ft:focus-visible .ft__go-c { background: #ff4fa3; color: #0a0a0a; scale: 1.06; }
:lang(he) .ft.is-hot .ft__arr { translate: -3px 0; } :lang(en) .ft.is-hot .ft__arr { translate: 3px 0; }

/* the stage: same size in every tile, full bleed sideways */
.ft__stage { grid-area: stage; position: relative; margin-inline: calc(var(--ft-pad) * -1); min-height: 0; }
.ft__it { position: absolute; display: block; transform: rotate(var(--r, 0deg)); }
.ft__it.is-off { display: none; }
.ft__lean, .ft__float { display: block; width: 100%; height: 100%; }
.ft__lean { transition: transform 700ms var(--ease-ft);
  transform: translate3d(calc(var(--mx) * var(--d, 1) * 12px + var(--sx, 0) * var(--spread, 0px)), calc(var(--my) * var(--d, 1) * 7px - var(--lift, 0px) * var(--d, 1)), 0) rotate(calc(var(--sx, 0) * var(--fan, 0deg))); }
.ft__float img { width: 100%; height: 100%; display: block; }
.ft__card .ft__float { border-radius: 6px; overflow: clip; background: #111; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 22px 34px -14px rgba(0, 0, 0, 0.5); } /* taste-skill-ignore: prints lying on the colour */
.ft__card img { object-fit: cover; object-position: center top; }
.ft__prod img { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.2)); } /* taste-skill-ignore: products standing in the light */
.ft__dev img { filter: none; }
/* each product's contact shadow stays on the floor while the product lifts */
.ft__prod::after { content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; bottom: -7px; height: 16px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.32), transparent); transition: opacity 600ms ease, transform 700ms var(--ease-ft); }
.ft__dev::after { display: none; }

/* hover (or the centred card on a phone): cards spread and fan out a little more, products lift */
.ft.is-hot { --spread: 16px; --fan: 3deg; --lift: 8px; }
.ft--products.is-hot, .ft--devices.is-hot { --spread: 8px; --fan: 0deg; --lift: 14px; }
.ft.is-hot .ft__prod::after { opacity: 0.55; transform: scaleX(0.84); }
.ft.is-hot .ft__card[data-k="0"] .ft__lean { scale: 1.03; }
.ft__card[data-k="0"] .ft__lean { transition: transform 700ms var(--ease-ft), scale 700ms var(--ease-ft); }

/* the caption: two lines kept for the line, set from the bottom, then tags and count on one row */
.ft__cap { grid-area: cap; display: grid; gap: 10px; position: relative; z-index: 30; }
.ft__h { --fs: clamp(1.125rem, calc(var(--ft-colw, 440px) * 0.05), 1.625rem); height: calc(var(--fs) * 1.14 * 2); display: flex; align-items: flex-end; }
body main .ft__h h3 { font-size: var(--fs); line-height: 1.14; max-width: none; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; }
.ft__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; font-size: var(--s-small, 0.9375rem); }
.ft__meta .tags { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; overflow: hidden; }
body main .ft .tag { background: color-mix(in srgb, var(--ink-b) 12%, transparent); color: inherit; white-space: nowrap; font-size: 0.875rem; min-height: 28px; }
.ft .bn__count { flex: none; font-weight: 700; opacity: 0.8; }

/* a wide tile (an app brand, or the one that closes a row): the words in a column, the work beside them */
.ft.ft--wide { grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head stage" ". stage" "cap stage"; column-gap: var(--ft-pad); }
.ft.ft--wide .ft__stage { margin-inline: 0 calc(var(--ft-pad) * -1); margin-block: calc(var(--ft-pad) * -0.4) calc(var(--ft-pad) * -1); }
.ft.ft--wide .ft__head { position: static; }
.ft.ft--wide .ft__go { position: absolute; z-index: 30; top: var(--ft-pad); inset-inline-end: var(--ft-pad); height: calc(var(--ft-colw, 440px) * 0.12); min-height: 40px; }
.ft.ft--wide .ft__meta { flex-wrap: wrap; justify-content: flex-start; }
.ft.ft--wide .ft__bg { background: radial-gradient(ellipse 46% 56% at 34% 70%, color-mix(in srgb, #fff 24%, var(--field)) 0%, transparent 72%), var(--field); } /* taste-skill-ignore: the light the work stands in */
[dir="ltr"] .ft.ft--wide .ft__bg { background: radial-gradient(ellipse 46% 56% at 66% 70%, color-mix(in srgb, #fff 24%, var(--field)) 0%, transparent 72%), var(--field); }

/* phone: a swipe row of equal cards, the next one showing at the edge */
@media (max-width: 760px) {
  body main ul.bns.ft-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--m); scroll-padding-inline: var(--m); scrollbar-width: none; overscroll-behavior-x: contain; margin-top: 10px; }
  body main ul.bns.ft-grid > li.ft-li, body main ul.bns.ft-grid > li.ft-li.ft-li--wide { flex: none; width: 80vw; height: calc(80vw * 1.24); max-height: 560px; scroll-snap-align: center; grid-column: auto; }
  .ft { border-radius: 24px; }
  .ft__h { --fs: 1.375rem; }
  .ft__go-t { display: none; }
}

/* entrance: the colour rises, then the work, then the words */
@media (prefers-reduced-motion: no-preference) {
  .ft:not(.is-still) .ft__bg { transform: scaleY(0); transition: transform 900ms cubic-bezier(0.7, 0, 0.2, 1) var(--ft-d, 0ms); }
  .ft:not(.is-still) .ft__it { opacity: 0; translate: 0 26%; transition: opacity 600ms ease calc(var(--ft-d, 0ms) + 380ms + var(--k) * 110ms), translate 1300ms var(--ease-ft) calc(var(--ft-d, 0ms) + 380ms + var(--k) * 110ms); }
  .ft:not(.is-still) .ft__head, .ft:not(.is-still) .ft__cap { opacity: 0; translate: 0 12px; transition: opacity 600ms ease, translate 900ms var(--ease-ft); }
  .ft:not(.is-still) .ft__head { transition-delay: calc(var(--ft-d, 0ms) + 460ms); }
  .ft:not(.is-still) .ft__cap { transition-delay: calc(var(--ft-d, 0ms) + 560ms); }
  .ft.is-in .ft__bg { transform: none; }
  .ft.is-in .ft__it { opacity: 1; translate: none; }
  .ft.is-in .ft__head, .ft.is-in .ft__cap { opacity: 1; translate: none; }
  /* idle: the work breathes while the tile is on screen */
  .ft.is-in.is-live .ft__float { animation: ft-float calc(6s + var(--k) * 0.8s) ease-in-out calc(1.6s - var(--k) * 1.9s) infinite; }
  .ft--works.is-in.is-live .ft__card .ft__float { animation-name: ft-float-card; }
}
@keyframes ft-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -5px, 0); } }
@keyframes ft-float-card { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -4px, 0) rotate(0.6deg); } }
@media (prefers-reduced-motion: reduce) {
  .ft__lean, .ft__go-t, .ft__go-c, .ft__arr { transition: none !important; }
}
/* with reduced motion the chip still answers the pointer, without moving */
@media (hover: hover) and (pointer: fine) { .ft.is-still:hover .ft__go-c { background: #ff4fa3; color: #0a0a0a; } .ft.is-still:hover .ft__go-t { opacity: 1; translate: none; } }
/* the packaging banners whose logo reads small at concept 14's one height (f-pack.js sets --logo-k per brand) */
@media (min-width: 761px) { .bns > li:not(.bns__lead) .bn[data-big-logo] .bn__logo { height: calc(clamp(32px, 2.6vw, 46px) * var(--logo-k, 1)); max-width: 100%; } }
@media (max-width: 760px) { .bn[data-big-logo] .bn__logo { height: calc(36px * var(--logo-k, 1)); } }
