/* ------------------------------------------------------------------
   Slide 5, "Industrial RTLS Core Applications": a live 3D car plant (scenes/src/scenes/core-apps.js) fills the whole slide. Five pins mark the places.
   Hover / click a pin (or key 1-5, or the arrows): the camera flies there and a glass card with the words unfolds in 3D next to it, joined to the pin by a dashed line.
   The words come from the cards below, js/usecases.js drives them. Without WebGL the old picture and static cards are shown (.uc-nogl).
------------------------------------------------------------------- */
section[data-kind="usecases"] { padding: 0; background: #F2F5FA; color: #0C1F4C; }
section[data-kind="usecases"] .uc-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
section[data-kind="usecases"] .chrome { z-index: 6; }
section[data-kind="usecases"] .head { position: absolute; left: var(--px); top: 36px; z-index: 3; margin: 0; }
section[data-kind="usecases"] .head h2 { font-size: 56px; }
.uc-fadeT { position: absolute; left: 0; right: 0; top: 0; height: 250px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(242, 245, 250, .96) 0, rgba(242, 245, 250, .86) 38%, rgba(242, 245, 250, 0) 100%); }
.uc-vig { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .9s ease; background: radial-gradient(120% 100% at 50% 46%, rgba(12, 31, 76, 0) 52%, rgba(12, 31, 76, .22) 100%); }
section[data-kind="usecases"].uc-focus .uc-vig { opacity: 1; }
.uc-fadeB { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(242, 245, 250, .95) 0, rgba(242, 245, 250, .7) 50%, rgba(242, 245, 250, 0) 100%); }

/* ---- the interface layer: transparent to the pointer, only its parts catch it ---- */
.uc-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; perspective: 2200px; perspective-origin: 50% 46%; opacity: 0; transition: opacity .9s ease .1s; }
section[data-kind="usecases"].uc-ready .uc-ui { opacity: 1; }
.uc-ui > * { pointer-events: auto; }
.uc-ui .uc-lead { pointer-events: none; }

/* ---- pins: the number of the place sits in the hole of the pin (a white disc that fills the opening, the digit is never smaller than 24 px); the name unfolds beside the pin on hover ---- */
.uc-hot { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; z-index: 4; font: inherit; color: inherit; cursor: pointer; will-change: transform; --r: 26px; }
.uc-hot::before { content: ""; position: absolute; left: calc(-1 * var(--r) - 12px); top: calc(-1 * var(--r) - 12px); width: calc(2 * var(--r) + 24px); height: calc(3.6 * var(--r) + 24px); border-radius: 40px; }      /* the hit area around the pin */
.uc-hot .uc-tag { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.uc-hot .uc-n { position: absolute; left: calc(var(--r) * -0.585); top: calc(var(--r) * -0.585); width: calc(var(--r) * 1.17); height: calc(var(--r) * 1.17); box-sizing: border-box; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fff 55%, #E6EEFC 100%); color: #0C1F4C; font-size: max(24px, calc(var(--r) * 0.62)); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 2px 5px rgba(0, 30, 110, .38), 0 0 0 1px rgba(0, 20, 90, .25); transition: transform .25s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }
.uc-hot .uc-nm { position: absolute; left: calc(var(--r) + 18px); top: -23px; height: 46px; display: flex; align-items: center; padding: 0 20px; border-radius: 23px; background: #0C1F4C; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: .005em; white-space: nowrap;
  opacity: 0; transform: translateX(-10px); pointer-events: none; box-shadow: 0 14px 26px -10px rgba(0, 20, 70, .7); transition: opacity .22s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.uc-hot:hover .uc-nm, .uc-hot:focus-visible .uc-nm { opacity: 1; transform: none; }
.uc-hot:hover .uc-n, .uc-hot:focus-visible .uc-n { transform: scale(1.08); }
.uc-hot:focus-visible { outline: none; }
.uc-hot.is-cur { pointer-events: none; }
.uc-hot.is-off { visibility: hidden; }
.uc-hot.is-dim .uc-n { opacity: .8; }

/* ---- the leader line from the pin to the card (dashed, like the original picture) ---- */
.uc-lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 5; }
.uc-lead .ln { fill: none; stroke: #0056BF; stroke-width: 3.5; stroke-dasharray: 3 10; stroke-linecap: round; opacity: 0; transition: opacity .35s ease; }
.uc-lead .dot { fill: #fff; stroke: #0056BF; stroke-width: 4; opacity: 0; transition: opacity .35s ease; }
.uc-lead.on .ln, .uc-lead.on .dot { opacity: 1; }
.uc-lead.on .ln { animation: uc-dash 1.4s linear infinite; }
@keyframes uc-dash { to { stroke-dashoffset: -26; } }

/* ---- the glass cards: they unfold in 3D from the pin side, then follow the pointer a little ---- */
.uc-card { position: absolute; z-index: 8; width: 640px; box-sizing: border-box; display: none; transform-style: preserve-3d; --rx: 0deg; --ry: 0deg; --bry: 10deg; pointer-events: none; }
.uc-card.is-on, .uc-card.is-out { display: block; }
.uc-card[data-card="left"] { left: 96px; transform-origin: 0% 50%; }
.uc-card[data-card="right"] { right: 96px; transform-origin: 100% 50%; --bry: -10deg; }
.uc-card .uc-in { position: relative; overflow: hidden; border-radius: 30px; background: linear-gradient(158deg, rgba(255, 255, 255, .985), rgba(244, 248, 255, .975) 70%, rgba(236, 243, 255, .97)); border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 50px 90px -34px rgba(0, 38, 120, .55), 0 14px 34px -12px rgba(0, 48, 135, .28), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 86, 191, .12); backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  transform: perspective(2400px) rotateY(calc(var(--bry) + var(--ry))) rotateX(calc(2deg + var(--rx))); transition: transform .18s ease-out; pointer-events: auto; }
.uc-card.is-on { animation: uc-in .95s cubic-bezier(.16, .84, .24, 1) both; }
.uc-card[data-card="right"].is-on { animation-name: uc-in-r; }
.uc-card.is-out { animation: uc-out .38s cubic-bezier(.5, 0, .9, .4) both; pointer-events: none; }
.uc-card[data-card="right"].is-out { animation-name: uc-out-r; }
@keyframes uc-in { from { opacity: 0; transform: translate3d(-80px, 22px, -380px) rotateY(58deg) scale(.86); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes uc-in-r { from { opacity: 0; transform: translate3d(80px, 22px, -380px) rotateY(-58deg) scale(.86); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes uc-out { to { opacity: 0; transform: translate3d(-60px, 0, -300px) rotateY(48deg) scale(.9); } }
@keyframes uc-out-r { to { opacity: 0; transform: translate3d(60px, 0, -300px) rotateY(-48deg) scale(.9); } }
.uc-card header { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 28px 20px; background: linear-gradient(120deg, #00266F, #003087 45%, #0056BF); color: #fff; }
.uc-card header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #ECC215, rgba(236, 194, 21, 0) 70%); }
.uc-card .uc-num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #0056BF; font-size: 28px; font-weight: 700; box-shadow: 0 0 0 5px rgba(255, 255, 255, .22); }
.uc-card h3 { flex: 1; margin: 0; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.005em; color: #fff; }
.uc-card .uc-badges { display: flex; gap: 8px; flex: none; }
.uc-card .uc-badges img { height: 38px; width: auto; display: block; }
.uc-card ul { position: relative; z-index: 1; margin: 0; padding: 24px 30px 14px; list-style: none; }
.uc-card li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 26px; line-height: 1.28; color: #0C1F4C; }
.uc-card li:last-child { margin-bottom: 0; }
.uc-card li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #6FB3FF, #0056BF 60%, #003087); box-shadow: 0 0 0 4px rgba(0, 86, 191, .14); }
.uc-card footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 22px 20px 30px; }
.uc-dots { display: flex; gap: 10px; }
.uc-dots i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #C5D3EA; transition: background .25s ease, width .25s ease; }
.uc-dots i.on { width: 34px; border-radius: 6px; background: #0056BF; }
.uc-step { display: flex; gap: 10px; }
.uc-step button { appearance: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: #EAF1FF; color: #0056BF; transition: background .2s ease, color .2s ease, transform .2s ease; }
.uc-step button:hover { background: #0056BF; color: #fff; transform: scale(1.06); }
.uc-step button:focus-visible { outline: 3px solid #ECC215; outline-offset: 2px; }
.uc-step svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the way back, the hint ---- */
.uc-hint { position: absolute; right: 112px; bottom: 96px; z-index: 9; margin: 0; padding: 8px 22px; border-radius: 24px; background: rgba(12, 31, 76, .88); color: #fff; font-size: 24px; line-height: 1.2; white-space: nowrap; pointer-events: none; transition: opacity .5s ease; }
.uc-hint.is-off { opacity: 0; }
.uc-back { appearance: none; position: absolute; right: 56px; top: 44px; z-index: 9; display: none; align-items: center; gap: 10px; height: 56px; padding: 0 24px 0 16px; border: 0; border-radius: 28px; background: rgba(255, 255, 255, .9); color: #0C1F4C; font: inherit; font-size: 24px; font-weight: 700; cursor: pointer; backdrop-filter: blur(14px); box-shadow: 0 16px 30px -14px rgba(0, 38, 120, .6), 0 0 0 1px rgba(0, 86, 191, .14); transition: background .2s ease, color .2s ease; }
section[data-kind="usecases"].uc-focus .uc-back { display: flex; }
.uc-back:hover { background: #0056BF; color: #fff; }
.uc-back:focus-visible { outline: 3px solid #ECC215; outline-offset: 2px; }
.uc-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
section[data-kind="usecases"].uc-focus .uc-hint { display: none; }

/* ---- no WebGL: the original picture with its five cards, in place ---- */
.uc-fallback { display: none; position: absolute; left: 460px; top: 300px; width: 1000px; height: auto; z-index: 0; }
section[data-kind="usecases"].uc-nogl .uc-fallback { display: block; }
section[data-kind="usecases"].uc-nogl .uc-scene, section[data-kind="usecases"].uc-nogl .uc-hot, section[data-kind="usecases"].uc-nogl .uc-lead, section[data-kind="usecases"].uc-nogl .uc-hint,
section[data-kind="usecases"].uc-nogl .uc-fadeB, section[data-kind="usecases"].uc-nogl .uc-step { display: none; }
section[data-kind="usecases"].uc-nogl .uc-ui { opacity: 1; }
section[data-kind="usecases"].uc-nogl .uc-card { display: block; width: auto; animation: none; pointer-events: auto; }
section[data-kind="usecases"].uc-nogl .uc-card .uc-in { transform: none; }
section[data-kind="usecases"].uc-nogl .uc-card footer { display: none; }
section[data-kind="usecases"].uc-nogl .uc-card header { padding: 10px 20px; gap: 12px; }
section[data-kind="usecases"].uc-nogl .uc-card .uc-num { width: 38px; height: 38px; font-size: 22px; }
section[data-kind="usecases"].uc-nogl .uc-card .uc-badges img { height: 30px; }
section[data-kind="usecases"].uc-nogl .uc-card ul { padding: 14px 22px 16px; }
section[data-kind="usecases"].uc-nogl .uc-card h3 { font-size: 26px; }
section[data-kind="usecases"].uc-nogl .uc-card li { font-size: 24px; margin-bottom: 8px; }
section[data-kind="usecases"].uc-nogl [data-i="2"] { left: 96px; right: auto; top: 176px; width: 650px; }
section[data-kind="usecases"].uc-nogl [data-i="0"] { left: auto; right: 96px; top: 176px; width: 500px; }
section[data-kind="usecases"].uc-nogl [data-i="4"] { left: 96px; right: auto; top: 410px; width: 440px; }
section[data-kind="usecases"].uc-nogl [data-i="3"] { left: 96px; right: auto; top: 708px; width: 560px; }
section[data-kind="usecases"].uc-nogl [data-i="1"] { left: auto; right: 96px; top: 590px; width: 420px; }

/* still / print / overview tiles: the plant with its numbered pins, no cards */
.reveal.overview .uc-ui, .uc-pv .uc-ui { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .uc-card.is-on, .uc-card.is-out { animation-duration: .01s; } .uc-lead .ln { animation: none; } }

/* ======================================================================================================================================
   2026-11-27: the plant is on a DARK ground like the hall slides (data-tone="dark"): navy fades instead of white ones, white title, dark glass cards and chips, light-blue leader line.
   (the user: "slide 4 is on a light background, make it dark and more premium, it looks like a toy").  These rules override the light ones above.
   ====================================================================================================================================== */
section[data-kind="usecases"] { background: #061434; color: #fff; }
section[data-kind="usecases"] .head h2 { color: #fff; text-shadow: 0 4px 30px rgba(0, 8, 30, .6); }
section[data-kind="usecases"] .head .eyebrow { color: var(--hl, #F2C300); }
.uc-fadeT { background: linear-gradient(180deg, rgba(4, 14, 40, .94) 0, rgba(4, 14, 40, .7) 42%, rgba(4, 14, 40, 0) 100%); }
.uc-fadeB { background: linear-gradient(0deg, rgba(4, 14, 40, .94) 0, rgba(4, 14, 40, .6) 50%, rgba(4, 14, 40, 0) 100%); }
.uc-vig { background: radial-gradient(120% 100% at 50% 46%, rgba(2, 8, 26, 0) 50%, rgba(2, 8, 26, .55) 100%); }
.uc-hot .uc-n { background: radial-gradient(circle at 50% 38%, #fff 55%, #DCE9FF 100%); box-shadow: inset 0 2px 5px rgba(0, 30, 110, .38), 0 0 0 1px rgba(0, 20, 90, .25), 0 0 18px rgba(110, 175, 255, .55); }
.uc-hot .uc-nm { background: linear-gradient(160deg, rgba(18, 44, 104, .9), rgba(6, 18, 52, .92)); border: 1px solid rgba(143, 208, 255, .4); box-shadow: 0 14px 30px -10px rgba(0, 4, 28, .9), inset 0 1px 0 rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.uc-lead .ln { stroke: #8FD0FF; filter: drop-shadow(0 0 6px rgba(110, 185, 255, .8)); }
.uc-lead .dot { fill: #fff; stroke: #8FD0FF; }
.uc-card .uc-in { background: linear-gradient(160deg, rgba(14, 36, 90, .84), rgba(5, 16, 46, .93) 72%); border: 1px solid rgba(143, 208, 255, .3);
  box-shadow: 0 50px 90px -30px rgba(0, 4, 28, .95), 0 14px 34px -12px rgba(0, 10, 50, .6), inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(143, 208, 255, .1); }
.uc-card header { background: linear-gradient(120deg, rgba(40, 92, 200, .42), rgba(20, 56, 140, .22) 55%, rgba(20, 56, 140, 0)); border-bottom: 1px solid rgba(143, 208, 255, .22); }
.uc-card header::after { height: 3px; background: linear-gradient(90deg, #F2C300, rgba(242, 195, 0, 0) 62%); }
.uc-card .uc-num { background: radial-gradient(circle at 34% 28%, #7DB4FF 0%, #3A78F0 58%, #1E4FC4 100%); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(210, 232, 255, .7), 0 0 22px rgba(70, 150, 255, .6); }
.uc-card h3 { color: #fff; text-shadow: 0 2px 16px rgba(0, 8, 40, .5); }
.uc-card li { color: #fff; }
.uc-card li::before { background: #58AEFF; box-shadow: 0 0 0 4px rgba(88, 174, 255, .16), 0 0 12px rgba(88, 174, 255, .95); }
.uc-dots i { background: rgba(255, 255, 255, .26); }
.uc-dots i.on { background: #F2C300; }
.uc-step button { background: rgba(143, 208, 255, .14); color: #CFE6FF; box-shadow: inset 0 0 0 1px rgba(143, 208, 255, .3); }
.uc-step button:hover { background: #3A78F0; color: #fff; }
.uc-step button:focus-visible, .uc-back:focus-visible { outline-color: #F2C300; }
.uc-hint { background: linear-gradient(160deg, rgba(18, 44, 104, .88), rgba(6, 18, 52, .92)); border: 1px solid rgba(143, 208, 255, .35); box-shadow: 0 14px 30px -12px rgba(0, 4, 28, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.uc-back { background: linear-gradient(160deg, rgba(18, 44, 104, .88), rgba(6, 18, 52, .92)); color: #fff; box-shadow: 0 16px 30px -14px rgba(0, 4, 28, .9), inset 0 0 0 1px rgba(143, 208, 255, .35); }
.uc-back:hover { background: #3A78F0; color: #fff; }
section[data-kind="usecases"].uc-nogl .uc-fallback { border-radius: 28px; box-shadow: 0 40px 90px -30px rgba(0, 4, 28, .9), 0 0 0 1px rgba(143, 208, 255, .25); }          /* without WebGL the old picture (white ground) sits on the dark slide as a card */

/* 2026-11-27: the Overview button sits bottom centre, just above the page number: the top right corner belongs to the New / Original / Compare switch */
.uc-back { right: auto; top: auto; left: 50%; bottom: 88px; transform: translateX(-50%); }

/* 2026-11-27: the guide through the five places is started on purpose: "Start guide" at the bottom centre (in the same place as the Overview button, which replaces it while a place is open).
   In the overview the arrow keys move through the deck as on every slide. A soft ring breathes around the button (opacity / transform only) so that it is noticed. */
.uc-start { appearance: none; position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 9; display: none; align-items: center; gap: 12px; height: 60px; padding: 0 30px 0 22px; border: 0; border-radius: 30px; cursor: pointer;
  background: linear-gradient(160deg, #3A78F0, #1F4FD0); color: #fff; font: inherit; font-size: 26px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 18px 34px -14px rgba(0, 4, 28, .95), inset 0 0 0 1px rgba(190, 225, 255, .45); transition: background .2s ease, box-shadow .2s ease; }
.uc-start svg { width: 26px; height: 26px; fill: currentColor; }
.uc-start::after { content: ""; position: absolute; inset: -6px; border-radius: 36px; border: 2px solid rgba(143, 208, 255, .75); opacity: 0; pointer-events: none; }
section[data-kind="usecases"].uc-ready:not(.uc-focus) .uc-start { display: flex; }
.uc-start:hover { background: linear-gradient(160deg, #5A93FF, #2D62E8); }
.uc-start:focus-visible { outline: 3px solid #F2C300; outline-offset: 4px; }
section[data-kind="usecases"].uc-nogl .uc-start { display: none; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes uc-breathe { 0% { opacity: .75; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.22, 1.5); } }
  section[data-kind="usecases"].uc-ready:not(.uc-focus) .uc-start::after { animation: uc-breathe 2.4s ease-out 1.2s infinite; }
}
