/* ------------------------------------------------------------------
   Slide 29, "RTLS Technologies": calm and premium. A quiet navy backdrop, three light cards that hang in 3D space (CSS perspective) with room around the products.
   The cards settle in one after another; afterwards only the pointer moves them (a slight tilt, a pull to the front on click). js/techcine.js adds tc-play when the slide arrives.
------------------------------------------------------------------- */
section[data-kind="techcine"] { padding: 0; color: #fff; overflow: hidden; }
.reveal .slides section[data-kind="techcine"] { background: radial-gradient(120% 95% at 50% -8%, #0D3A8C 0%, #07236A 42%, #041238 100%); }   /* (beats the grid of the dark slides in theme.css) */
section[data-kind="techcine"] .chrome { z-index: 7; }

.tc-stage { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; box-sizing: border-box; padding: 56px var(--px, 112px) 124px;
  perspective: 2200px; perspective-origin: calc(50% + var(--cx, 0) * 70px) calc(44% + var(--cy, 0) * 40px); }
section[data-kind="techcine"] .tc-title { margin: 0 0 52px; font-size: 88px; line-height: 1.04; font-weight: 700; letter-spacing: -.02em; color: #fff; flex: none; }
.tc-row { flex: 1; min-height: 0; display: flex; gap: 72px; align-items: stretch; transform-style: preserve-3d; will-change: transform; }
.tc-col { display: flex; flex-direction: column; min-width: 0; transform-style: preserve-3d; }
.tc-prox { flex: 1.9; } .tc-prec { flex: 1; }
section[data-kind="techcine"] .tc-cat { display: flex; align-items: center; gap: 26px; margin: 0 0 40px; font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: .01em; color: rgba(255, 255, 255, .92); flex: none; }
.tc-cat .tc-line { flex: 1; height: 1px; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); }
.tc-cards { flex: 1; min-height: 0; display: flex; gap: 40px; transform-style: preserve-3d; }
.tc-fly { flex: 1; min-width: 0; transform-style: preserve-3d; }

/* ---- a card: a light slab with a little thickness; the logos and the products stand a little in front of it ---- */
.tc-card { position: relative; height: 100%; transform-style: preserve-3d; outline: none; --rx: 0deg; --ry: 0deg; --tz: 0px; --by: 0deg; --sx: 30%; --sy: 18%;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--by))) translateZ(var(--tz)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s ease, filter .5s ease; }
.tc-fly.f1 .tc-card { --by: 5deg; } .tc-fly.f3 .tc-card { --by: -5deg; }
.tc-edge { position: absolute; inset: 0; border-radius: 34px; background: transparent; border: 1px solid rgba(150, 195, 255, .16); box-sizing: border-box; transform: translateZ(-14px) scale(.99); box-shadow: 0 60px 90px -34px rgba(0, 3, 20, .9); }   /* only a rim and the shadow: the glass of the card stays see-through */
.tc-face { position: absolute; inset: 0; border-radius: 34px; overflow: hidden; background: linear-gradient(165deg, rgba(36, 76, 158, .62) 0%, rgba(12, 36, 98, .72) 52%, rgba(6, 20, 64, .82) 100%); box-shadow: inset 0 0 0 1px rgba(150, 195, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .22); }
.tc-face::after { content: ""; position: absolute; inset: 0; background: radial-gradient(62% 46% at 50% 64%, rgba(110, 172, 255, .2), rgba(110, 172, 255, 0) 72%); pointer-events: none; }   /* a soft pool of light under the products */
.tc-sheen { position: absolute; inset: 0; opacity: 0; mix-blend-mode: soft-light; background: radial-gradient(520px 420px at var(--sx) var(--sy), #fff, rgba(255, 255, 255, 0) 62%); transition: opacity .35s ease; }
.tc-card:hover .tc-sheen, .tc-fly.is-focus .tc-sheen { opacity: .8; }
.tc-logos { position: absolute; left: 36px; top: 36px; max-width: calc(100% - 72px); box-sizing: border-box; display: flex; align-items: center; gap: 20px; padding: 10px 22px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(175, 212, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 30px -14px rgba(0, 6, 34, .7); transform: translateZ(36px); }   /* a glass capsule; the logos are the light versions (white lettering) */
.tc-logos img { height: var(--lh, 40px); width: auto; max-width: 100%; display: block; }
.tc-logos img + img { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .22); }
.tc-logos img[alt="UWB"] { filter: brightness(1.35) saturate(1.1); }
.tc-fly.f1 .tc-logos img { --lh: 32px; }

/* products: generous space around each one */
.tc-prod { position: absolute; translate: 0 0 var(--z, 50px); transition: translate .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.tc-prod img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(0, 4, 26, .55)); }
/* every product has a box with a width AND a height (% of the card), the picture sits inside it (object-fit: contain): in a wide window the cards get wider but not taller, so the pictures must not grow past the foot of the card; at least ~8 % of the card stays free below them */
.tc-prod.p1 { left: 8%; top: 18%; width: 84%; height: 40%; }
.tc-prod.p2 { left: 22%; top: 57%; width: 56%; height: 34%; }
.tc-prod.p3 { left: 11%; top: 26%; width: 78%; height: 62%; }
.tc-prod.p4 { left: 29%; top: 14%; width: 42%; height: 40%; }
.tc-prod.p5 { left: 18%; top: 56%; width: 64%; height: 36%; }
.tc-card:hover .tc-prod, .tc-fly.is-focus .tc-prod { translate: 0 0 calc(var(--z, 50px) + 40px); }
.tc-row:not(.has-focus) .tc-fly .tc-card:hover { --tz: 50px; }
.tc-row.has-focus .tc-fly:not(.is-focus) .tc-card { opacity: .45; filter: blur(2px); --tz: -60px; }
.tc-row.has-focus .tc-fly.is-focus .tc-card { --tz: 100px; }

/* ---- the arrival (starts with tc-play): the headline and the lines fade up, the cards settle one after another, the logos and products follow ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes tc-up { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes tc-line { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
  @keyframes tc-settle-l { from { opacity: 0; transform: translate3d(-90px, 70px, -380px) rotateY(34deg); } to { opacity: 1; transform: none; } }
  @keyframes tc-settle-c { from { opacity: 0; transform: translate3d(0, 90px, -420px) rotateX(16deg); } to { opacity: 1; transform: none; } }
  @keyframes tc-settle-r { from { opacity: 0; transform: translate3d(90px, 70px, -380px) rotateY(-34deg); } to { opacity: 1; transform: none; } }
  @keyframes tc-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes tc-prod-z { from { translate: 0 0 -60px; } }

  section.tc-play .tc-title { animation: tc-up .9s cubic-bezier(.2, .8, .2, 1) .1s backwards; }
  section.tc-play .tc-cat span { animation: tc-up .8s cubic-bezier(.2, .8, .2, 1) .45s backwards; } section.tc-play .tc-prec .tc-cat span { animation-delay: .6s; }
  section.tc-play .tc-cat .tc-line { animation: tc-line 1s cubic-bezier(.3, .8, .2, 1) .55s backwards; } section.tc-play .tc-prec .tc-cat .tc-line { animation-delay: .7s; }
  section.tc-play .tc-fly.f1 { animation: tc-settle-l 1.2s cubic-bezier(.16, 1, .3, 1) .55s backwards; }
  section.tc-play .tc-fly.f2 { animation: tc-settle-c 1.2s cubic-bezier(.16, 1, .3, 1) .7s backwards; }
  section.tc-play .tc-fly.f3 { animation: tc-settle-r 1.2s cubic-bezier(.16, 1, .3, 1) .85s backwards; }
  section.tc-play .tc-logos img { animation: tc-in .7s cubic-bezier(.2, .8, .2, 1) 1.5s backwards; }
  section.tc-play .tc-fly.f2 .tc-logos img { animation-delay: 1.62s; } section.tc-play .tc-fly.f3 .tc-logos img { animation-delay: 1.74s; }
  section.tc-play .tc-prod { animation: tc-prod-z 1s cubic-bezier(.2, .9, .2, 1) 1.6s backwards; }
  section.tc-play .tc-prod img { animation: tc-in .9s cubic-bezier(.2, .8, .2, 1) 1.6s backwards; }
  section.tc-play .tc-fly.f2 .tc-prod, section.tc-play .tc-fly.f2 .tc-prod img { animation-delay: 1.72s; } section.tc-play .tc-fly.f3 .tc-prod, section.tc-play .tc-fly.f3 .tc-prod img { animation-delay: 1.84s; }
  section.tc-play .tc-prod.p2, section.tc-play .tc-prod.p2 img, section.tc-play .tc-prod.p5, section.tc-play .tc-prod.p5 img { animation-delay: 1.9s; }
}
section[data-kind="techcine"]::before, section[data-kind="techcine"]::after { display: none; }   /* no decorative grid of the deck behind the cards: a quiet backdrop */
